Yes, different clusters require different node groups. 在 2014年11月13日星期四UTC+8下午10时09分39秒,Brian Coca写道: > > I'm not sure I understand the problem, you want to create the clusters but > are not able to specify them? > > On Wed, Nov 12, 2014 at 9:16 PM, linbo liao <[email protected] > <javascript:>> wrote: > >> Thanks. >> >> I want setup multi cluster instance. So in the play I can't specify the >> detailed cluster node groups, what I can do is use variable to cluster node >> groups. >> >> For example, >> >> [idc1_master] >> host1 cluster_node=idc1_node >> >> [idc1_node] >> host2 >> host3 >> >> [idc2_master] >> hosti cluster_node=idc2_node >> >> [idc2_node] >> hostj >> hostk >> >> >> idc1-master requires idc1_node groups, idc2_master requires idc2_node >> groups. If playbook use idc1_node, idc2 cluster will use idc1_node, which >> is not correct. >> >> >> 在 2014年11月12日星期三UTC+8下午9时56分28秒,Brian Coca写道: >> >>> I believe this is what you want: >>> >>> in the inventory: >>> [idc1_node] >>> .... >>> >>> in the play: >>> >>> - name: add nodes >>> debug: msg={{item}} >>> with_items: groups['idc1_node'] >>> tags: >>> - add-node >>> >>> >>> -- >>> Brian Coca >>> >> -- >> 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 [email protected] <javascript:>. >> To post to this group, send email to [email protected] >> <javascript:>. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/ansible-project/29d9bc6f-97aa-4236-aa17-f893741002b1%40googlegroups.com >> >> <https://groups.google.com/d/msgid/ansible-project/29d9bc6f-97aa-4236-aa17-f893741002b1%40googlegroups.com?utm_medium=email&utm_source=footer> >> . >> >> For more options, visit https://groups.google.com/d/optout. >> > > > > -- > Brian Coca >
-- 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 [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/8a758bd8-3779-4511-880a-f27710dd8646%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
