[tripleo] Deprecating paunch CLI?
Alan Bishop
abishop at redhat.com
Sat Sep 14 21:05:22 UTC 2019
On Fri, Sep 13, 2019 at 3:06 PM Emilien Macchi <emilien at redhat.com> wrote:
> 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.
>
> I've been playing with it a little today:
> https://review.opendev.org/#/c/682093/
> https://review.opendev.org/#/c/682094/
>
> Here is how you would call paunch:
> - name: Start containers for step {{ step }}
> paunch:
> config:
> "/var/lib/tripleo-config/hashed-container-startup-config-step_{{ step
> }}.json"
> config_id: "tripleo_step{{ step }}"
> action: apply
> container_cli: "{{ container_cli }}"
> managed_by: "tripleo-{{ tripleo_role_name }}"
>
> A few benefits:
> - Deployment tasks in THT would call the new module instead of a shell
> command
> - More Pythonic and clean for Ansible, to interact with the actual task
> during the run
> - Removing some code in Paunch, make it easier to maintain for us
>
> For now, the Ansible module only covers "paunch apply", we will probably
> cover "delete" and "cleanup" eventually.
>
The paunch cli's "print-cmd" action has been occasionally useful as a debug
aid. Will this info be available through some other means?
Alan
Please let me know if you have any questions or concerns,
> --
> Emilien Macchi
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-discuss/attachments/20190914/2ca607a9/attachment.html>
More information about the openstack-discuss
mailing list