Managing complex inventory

53 views
Skip to first unread message

tom....@bitjive.com

unread,
Feb 25, 2014, 10:31:40 AM2/25/14
to ansible...@googlegroups.com
I'm managing multiple separate applications from my Ansible repo, each with a different set of servers. Each application has multiple instances (dev, stage, prod).
To manage all this I have a whole bunch of inventory files:
  • app1
    • app1_variant1
      • dev
      • stage
      • prod
    • app1_variant2
      • dev
      • stage
      • prod
  • app2
    • dev
    • stage
    • prod
  • etc.
(that's 9 separate inventory files for those 2 apps).

Is there a better way to manage this? How does everyone else deal with lots of applications with different sets of servers?

Michael DeHaan

unread,
Feb 25, 2014, 5:20:25 PM2/25/14
to ansible...@googlegroups.com
Basically you don't need different inventory files if you don't want them to be.

More than likely, you'll just want to seperate dev/stage/prod and have groups for the apps.




--
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 ansible-proje...@googlegroups.com.
To post to this group, send email to ansible...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/be4ff225-098f-4a28-abe2-245cf5e9b7d1%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply all
Reply to author
Forward
0 new messages