<div class="gmail_quote">On 27 March 2012 12:42, Fajar A. Nugraha <span dir="ltr"><<a href="mailto:list@fajar.net">list@fajar.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">IMHO lxc-execute should come with a BIG warning "DON'T USE UNLESS YOU</div>
REALLY KNOW WHAT YOU'RE DOING!" :P<br></blockquote><div><br></div><div>I know this is digression but I wondered if you could expand on this?  </div><div><br></div><div>Perhaps if I explained our use case and tell me if I'm doing the right thing?</div>
<div><ol><li>We create a new container</li><li>We want to bootstrap it with a puppet script (apt-get install puppet && puppet apply script.pp)</li></ol></div><div>We see two options for this:</div><div><ol><li>lxc-execute </li>
<li>issue a remote ssh command. </li></ol>To do 2) in an automated fashion we have to automatically authorize the hosts private key (we do that by simply copying it to /var/lib/lxc/$host/root/.ssh/authorized_keys).</div></div>