<div dir="ltr"><div dir="ltr"></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Sep 13, 2019 at 3:06 PM Emilien Macchi <<a href="mailto:emilien@redhat.com">emilien@redhat.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">With our long-term goal to simplify TripleO and focus on what people actually deploy and how they operate their clouds, it appears that the Paunch CLI hasn't been a critical piece in our project and I propose that we deprecate it; create an Ansible module to call Paunch as a library only.<br clear="all"><div><br></div><div>I've been playing with it a little today:</div><div><a href="https://review.opendev.org/#/c/682093/" target="_blank">https://review.opendev.org/#/c/682093/</a></div><div><a href="https://review.opendev.org/#/c/682094/" target="_blank">https://review.opendev.org/#/c/682094/</a></div><div><br></div><div>Here is how you would call paunch:</div><div> - name: Start containers for step {{ step }}<br> paunch:<br> config: "/var/lib/tripleo-config/hashed-container-startup-config-step_{{ step }}.json"<br> config_id: "tripleo_step{{ step }}"<br> action: apply<br> container_cli: "{{ container_cli }}"<br> managed_by: "tripleo-{{ tripleo_role_name }}"</div><div><br></div><div>A few benefits:</div><div>- Deployment tasks in THT would call the new module instead of a shell command</div><div>- More Pythonic and clean for Ansible, to interact with the actual task during the run</div><div>- Removing some code in Paunch, make it easier to maintain for us</div><div><br></div><div>For now, the Ansible module only covers "paunch apply", we will probably cover "delete" and "cleanup" eventually.</div></div></blockquote><div><br></div><div>The paunch cli's "print-cmd" action has been occasionally useful as a debug aid. Will this info be available through some other means?<br></div><div><br></div><div>Alan</div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>Please let me know if you have any questions or concerns,<br></div><div>-- <br><div dir="ltr" class="gmail-m_1685803681567768149gmail_signature"><div dir="ltr">Emilien Macchi<br></div></div></div></div>
</blockquote></div></div>