radify / radiian

Radiian creates Ansible provisioning files for immutable infrastructure on AWS
https://www.npmjs.com/package/radiian
BSD 3-Clause "New" or "Revised" License
19 stars 2 forks source link

Before tagging old nodes, update inventory #60

Closed gavD closed 8 years ago

gavD commented 8 years ago

I suggest something like the following in provision.sh:

# ...
export PYTHONUNBUFFERED=1
inventory/ec2.py --refresh-cache

ansible-playbook tag-old-nodes.yaml --limit tag_Environment_whatever || true > /dev/null
# ...

Otherwise, the dynamic inventory is not aware of the nodes that are up there (stale cache) so it is unlikely to correctly tag the existing nodes.

gavD commented 8 years ago

done