<div dir="ltr">Mathew,<div><br></div><div>You can take from either puppet repo and convert to a solution for chef:</div><div><br></div><div><a href="https://github.com/nohtyp/rhnreg_ks">https://github.com/nohtyp/rhnreg_ks</a> (this module is written to remove all pre-existing systems before registering the system back with spacewalk).</div><div><br></div><div>If you take this and write your own module for spacewalk that is applied during the provisioning it should solve your issue.</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Aug 28, 2017 at 11:11 PM, Yu, Matthew <span dir="ltr"><<a href="mailto:matthew.yu@fitchratings.com" target="_blank">matthew.yu@fitchratings.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">





<div lang="EN-US" link="#0563C1" vlink="#954F72">
<div class="m_-626681755198125855WordSection1">
<p class="MsoNormal">I’ve got spacewalk 2.6 setup and running fine in AWS environment.   The issue I have is duplicate system profile with duplicate hostname when the system is being reprovision or when the Chef recipe has been updated.
<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Does anyone have any thoughts how to prevent the duplicate system profiles ?
<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal"><u></u><u></u></p>
</div>
<br clear="both">
______________________________<wbr>______________________________<wbr>__________<br>
Confidentiality Notice:  The information contained in this e-mail and any attachment(s) is confidential and for the use of the addressee(s) only.  If you are not the intended recipient of this e-mail, do not duplicate or redistribute it by any means.  Please delete this e-mail and any attachment(s) and notify us immediately.  Unauthorized use, reliance, disclosure or copying of the contents of this e-mail and any attachment(s), or any similar action, is strictly prohibited.  Fitch Ratings reserves the right, to the extent permitted by applicable law, to retain, monitor and intercept e-mail messages both to and from its systems.<br>
<br>
This e-mail has been scanned by the MessageLabs Email Security System.  For more information, please visit <a href="http://www.messagelabs.com/email" target="_blank">http://www.messagelabs.com/<wbr>email</a>.<br>
______________________________<wbr>______________________________<wbr>__________<br>
</div>

<br>______________________________<wbr>_________________<br>
Spacewalk-list mailing list<br>
<a href="mailto:Spacewalk-list@redhat.com">Spacewalk-list@redhat.com</a><br>
<a href="https://www.redhat.com/mailman/listinfo/spacewalk-list" rel="noreferrer" target="_blank">https://www.redhat.com/<wbr>mailman/listinfo/spacewalk-<wbr>list</a><br></blockquote></div><br></div>