Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ansible InstanceGroup should add/remove instances #424

Merged
merged 5 commits into from
Aug 30, 2018

Conversation

rambleraptor
Copy link
Contributor

@rambleraptor rambleraptor commented Aug 30, 2018

InstanceGroups currently don't handle adding + removing instances.

I'm built out a InstanceLogic class (not married to that name) that handles figuring out the difference between Ansible instance list + GCP instance list and does the proper add + removes.

What this PR does:

  • Adds a instances property on Ansible only. This property is not used for API requests.

  • Adds the InstanceLogic code.

  • Calls InstanceLogic code after create/update.


[all]

Ansible InstanceGroup should add/remove instances

[terraform]

[puppet]

[puppet-bigquery]

[puppet-compute]

[puppet-container]

[puppet-dns]

[puppet-logging]

[puppet-pubsub]

[puppet-resourcemanager]

[puppet-sql]

[puppet-storage]

[chef]

[chef-compute]

[chef-container]

[chef-dns]

[chef-logging]

[chef-spanner]

[chef-sql]

[chef-storage]

[ansible]

InstanceGroup should add/remove instances

@modular-magician
Copy link
Collaborator

modular-magician commented Aug 30, 2018

I am a robot that works on MagicModules PRs!

I built this PR into one or more PRs on other repositories, and when those are closed, this PR will also be merged and closed.
depends: modular-magician/ansible#82

@rambleraptor
Copy link
Contributor Author

@SirGitsalot please take a look! Ansible requires support with Python 2.6, so there's a lot of list comprehensions + the like that I can't support.

Tracked submodules are build/puppet/_bundle build/puppet/auth build/puppet/bigquery build/puppet/compute build/puppet/sql build/puppet/storage build/puppet/spanner build/puppet/container build/puppet/dns build/puppet/pubsub build/puppet/resourcemanager build/chef/_bundle build/chef/auth build/chef/compute build/chef/sql build/chef/storage build/chef/spanner build/chef/container build/chef/dns build/chef/iam build/terraform build/ansible.
@modular-magician modular-magician merged commit e903fc6 into master Aug 30, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants