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

Add -g/--group option to configure command to configure all instances in a group. #17

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

fschulze
Copy link
Member

No description provided.

@tomster
Copy link
Contributor

tomster commented Sep 14, 2015

see fschulze#2

@tomster
Copy link
Contributor

tomster commented Sep 14, 2015

tried to use the feature in an existing playbook with multi-master jails and i wasn't able to limit the configuration to the jails of a given host.

is this still missing as a feature or am i missing how to use it?

or do i need to define explicit, separate groups for each ez-master?

mention the groups feature in the docs
@fschulze
Copy link
Member Author

Try the inventory command to see which groups are defined and which instances belong where.

I guess we would need a way to apply set operations for groups. Not sure if ansible already supports something like that where we could take a look.

@tomster
Copy link
Contributor

tomster commented Sep 14, 2015

well, the inventory shows the group with members of all ezmasters, so i can either apply the configuration to all hosts or none, which is not very useful...

perhaps ploy_ansible would have to create the 'secondary' groups explicitly for each master?

i.e. currently the following scenario

[ez-instance:foo]
ip = 10.0.0.11
master =  staging production
groups = mygroup

[ez-instance:bar]
ip = 10.0.0.12
master =  staging production
groups = mygroup

gives an inventory of

mygroup
  staging-foo
  staging-bar
  production-foo
  production-bar

there's actually nothing wrong with that, what we would need additionally is to generate the following groups:

staging-mygroup
  staging-foo
  staging-bar

production-mygroup
  production-foo
  production-bar

do you think that approach could work?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants