Skip to content

Instantly share code, notes, and snippets.

@kevduggan
Last active January 14, 2016 13:18
Show Gist options
  • Select an option

  • Save kevduggan/9a78a062cfcba2017496 to your computer and use it in GitHub Desktop.

Select an option

Save kevduggan/9a78a062cfcba2017496 to your computer and use it in GitHub Desktop.
merge dynamic ec2 and static inventory
#
# Map the ec2 groups (from the dynamic inventory ec2.py) to our groups.
# This merges the static and dynamic inventory.
#
# Placeholders for the dynamic ec2 groups must be added to the static inventory.
# You can then use them throughout the rest of the inventory
[tag_kafka_yes]
# map all dynamic instances tagged with 'tag_kafka_yes' into the static kafka group
[kafka:children]
tag_kafka_yes
[tag_kubernetes_yes]
[kubernetes:children]
tag_kubernetes_yes
[tag_kubernetes_master_yes]
[kubernetes_master:children]
tag_kubernetes_master_yes
[tag_kubernetes_minion_yes]
[kubernetes_minion:children]
tag_kubernetes_minion_yes
[tag_zookeeper_yes]
[zookeeper:children]
tag_zookeeper_yes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment