pholas@gmail.com
2013-Apr-19 01:52 UTC
[Puppet Users] Need some suggestions about how to handle dependencies between different Puppet nodes
I''m trying to use puppet to automate IBM Domino installation. The first demo that I want to make is including two servers. - One will be the primary Domino Server. - The other will be the additional server. Now the problem I met is when I have to define an sequence there because Domino additional server requires a server id that must be generated by the 1st node. In other way, the 2nd node have to wait the 1st node finished, then it can be installed and configured. I tried to Google this similar issue. I found MCollective could be the answer but I can not find a example. Is there anyone knows how to handle dependencies between different Puppet nodes. -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscribe@googlegroups.com. To post to this group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Peter Brown
2013-Apr-19 03:43 UTC
Re: [Puppet Users] Need some suggestions about how to handle dependencies between different Puppet nodes
Someone else was asking something similar a while ago. The only solution I can remember is to export a file from the 1st node with the server id in it and require that on the second node. I would be using the ripienaar-concat module on puppet forge to manage the config file and export the server id stanza from the first node. You would need to put a require on the second node or some other check to make sure it exists before building the second node. You could also run a query against puppetdb and require that on the second node. Does that make sense? On 19 April 2013 11:52, <pholas@gmail.com> wrote:> > I''m trying to use puppet to automate IBM Domino installation. The first > demo that I want to make is including two servers. > > - One will be the primary Domino Server. > - The other will be the additional server. > > Now the problem I met is when I have to define an sequence there because > Domino additional server requires a server id that must be generated by the > 1st node. In other way, the 2nd node have to wait the 1st node finished, > then it can be installed and configured. > > I tried to Google this similar issue. I found MCollective could be the > answer but I can not find a example. Is there anyone knows how to handle > dependencies between different Puppet nodes. > > -- > You received this message because you are subscribed to the Google Groups > "Puppet Users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to puppet-users+unsubscribe@googlegroups.com. > To post to this group, send email to puppet-users@googlegroups.com. > Visit this group at http://groups.google.com/group/puppet-users?hl=en. > For more options, visit https://groups.google.com/groups/opt_out. > > >-- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscribe@googlegroups.com. To post to this group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
jcbollinger
2013-Apr-19 12:59 UTC
[Puppet Users] Re: Need some suggestions about how to handle dependencies between different Puppet nodes
On Thursday, April 18, 2013 8:52:59 PM UTC-5, pho...@gmail.com wrote:> > > I''m trying to use puppet to automate IBM Domino installation. The first > demo that I want to make is including two servers. > > - One will be the primary Domino Server. > - The other will be the additional server. > > Now the problem I met is when I have to define an sequence there because > Domino additional server requires a server id that must be generated by the > 1st node. In other way, the 2nd node have to wait the 1st node finished, > then it can be installed and configured. > > I tried to Google this similar issue. I found MCollective could be the > answer but I can not find a example. Is there anyone knows how to handle > dependencies between different Puppet nodes. >Dependencies are one thing, but what you''re asking about is orchestration -- you want to control the relative timing and sequence of Puppet runs on different nodes. Puppet does not currently provide for that. MCollective could do, but I cannot speak to details there. A question to ask yourself, however, is whether this is a problem you actually need to solve. If you can tolerate the additional server being misconfigured for a short time -- at least with respect to Domino -- then you don''t really need to ensure that the primary is configured first. Instead, you can simply rely on the additional server to be configured correctly for the primary on the first Puppet run after the primary is configured. By playing with the Puppet run interval, you can make that delay more or less as small as you like. John -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscribe@googlegroups.com. To post to this group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users?hl=en. For more options, visit https://groups.google.com/groups/opt_out.