Ive been asked to use Ansible to create a CI and CD pipeline - i have
extensive knowledge of Puppet and know experience of Ansible - im almost
two weeks in and after trying to model Ansible with same concepts derived
from Puppet im almost happy
Some frustrations aside i wondered whether I am doing things a ok
My setup is thus -
I have a Packer repo to build OS
I have an Ansible repo using ansible-galaxy (like i did with r10k)
Vagrant repo and ansible is including in the project as a submodule
I have a nodes.yaml file like so:
---
inv:
groups:
webserver:
web1:
memory: 256
dbs:
db1:
varnish:
varnish:
child_groups:
all_groups: ['webserver','dbs', 'varnish']
I have code (its in a separate file ) that Vagrant uses to create nodes and
ansible groups while still relying on Vagrants auto generated inventory to
manage the whole affair.
So the only file that needs modifying is nodes.yaml and hopefully in this
environment will reman static
What I would like to know is Im i going about this well as in is this the
best practice way of doing things
--
You received this message because you are subscribed to the Google Groups
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/65575816-e049-4fc2-872b-6fcc0133f2fb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.