d0ugal / mistral-ansible-actions

Mistral Actions for calling Ansible
https://pypi.python.org/pypi/mistral-ansible-actions
4 stars 8 forks source link

Proposal to have a Workbook for TripleO Users #2

Open fultonj opened 7 years ago

fultonj commented 7 years ago

It might be useful to have a workbook for TripleO users which does the following:

  1. Uploads a directory of playbooks to a Swift container (and runs them from there)
  2. Builds the Ansible Inventory with Mistral and stores it in Swift or a Mistral environment
  3. Makes the keys from mistral environment-get ssh_keys available to Ansible (if that works then I'd borrow the same technique that the validations used to make a separate Ansible key pair).

Basically, I'm experimenting with this as stack@undercloud and using hacks [0][1][2] to get around not having something like the above. I was considering writing such a workbook and wanted to know if you had thoughts on this. I realize this project isn't only for TripleO users but I expect TripleO users will want to try it. Thanks.

[1] https://github.com/fultonj/mistral/blob/master/ansible/init.sh#L25-L32 [2] https://github.com/fultonj/mistral/blob/master/ansible/ansible-test.sh#L5

d0ugal commented 7 years ago

Interesting, so the idea would be to have a Mistral Workflow for managing Ansible playbooks? i.e. storing them in Swift and then executing them. I think that could be really cool, it would be a nice way to better integrate Ansible into OpenStack and make it really easy to use for anyone use.

I think this could be written in such a way that it isn't specific to TripleO. We might need some specific steps, but maybe we can make them optional?

I am away on PTO all of next week, but I'd like to continue this when I get back. I want to check out your repo too.

If we start going down this route I might have to change the name of this project! :smile: