Hi, I am using Amazon Linux 3.2 ec2 instance to install puppet master. I used puppet-server install command. Installation is done. When i use sudo vim /etc/puppet/puppet.conf.. I see only [main] and [agent] blocks. I dont see [master] block. My doubt is whether master get installed or not ?? I have installed cloud-provisioner using puppet module tool. I should move the lib directory of cloud-provisioner to :$RUBYLIB manually because export RUBYLIB=/etc/puppet/modules/cloud_provisioner/lib:$RUBYLIB did not work for me. Please give me the steps of exporting manually because i am new to unix environment. Thanks and Regards Srinivas. -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/dwIbAQS1-d8J. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Hi, I need to describe dependencies between nodes, for example, to be sure that database is deployed on one node before deploying web application on another node. This link http://grokbase.com/t/gg/puppet-users/127svph7e0/how-to-acgieve-inter-node-dependencies-with-puppet explain that MCollective is needed for that. Is it true ? Do I need to install MCollective to define dependencies between node ? Cordialement, Bernard Granier CE Plateforme Système bernard.granier@morpho.com<mailto:bernard.granier@morpho.com> 01 58 11 32 51 . # " This e-mail and any attached documents may contain confidential or proprietary information. If you are not the intended recipient, you are notified that any dissemination, copying of this e-mail and any attachments thereto or use of their contents by any means whatsoever is strictly prohibited. If you have received this e-mail in error, please advise the sender immediately and delete this e-mail and all attached documents from your computer system." # -- 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.
"GRANIER Bernard (MORPHO)" <bernard.granier@morpho.com> writes:> Hi, > > I need to describe dependencies between nodes, for example, > to be sure that database is deployed on one node before > deploying web application on another node. >I haven''t messed with inter-dependent nodes yet, but exported resources might fit the bill. Something like: ,---- | node a { | # Do this when the DB is installed | @@file { "/tmp/dbdone.txt": content => "Woo, DB installed!\n", tag => "dbdone", } | } | | node b { | File <<| tag == ''foofile'' |>> | } `---- Then if /tmp/dbdone.txt is on nodeb it''s safe to install? Again, haven''t tried this but potentially worth looking at. No matter what I''m curious what the solution is. -- Kyle Sexton -- 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.
On 22 February 2013 06:24, Kyle Sexton <ks@mocker.org> wrote:> "GRANIER Bernard (MORPHO)" <bernard.granier@morpho.com> writes: > > > Hi, > > > > I need to describe dependencies between nodes, for example, > > to be sure that database is deployed on one node before > > deploying web application on another node. > > > > I haven''t messed with inter-dependent nodes yet, but exported resources > might fit the bill. Something like: >I agree with Kyle. This seems like the best way to achieve this sort of node interdependence. ,----> | node a { > | # Do this when the DB is installed > | @@file { "/tmp/dbdone.txt": content => "Woo, DB installed!\n", tag > => "dbdone", } > | } > | > | node b { > | File <<| tag == ''foofile'' |>> > | } > `---- > > > Then if /tmp/dbdone.txt is on nodeb it''s safe to install? Again, > haven''t tried this but potentially worth looking at. No matter what I''m > curious what the solution is. > > > -- > Kyle Sexton > > -- > 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.
GRANIER Bernard (MORPHO)
2013-Feb-26 11:09 UTC
RE: [Puppet Users] dependencies between nodes
Hi, Thanks for the answer, I understand that with exported resources, I can create interactions between nodes. But If I understood your suggestion, on node b I will get the file defined on node a : great. But does this implicitly mean that all resources on node b will wait that the file is created ? Or how do I define a require link between the classes define on node b ? May I write something like that : node a { # Do this when the DB is installed @@file { "/tmp/dbdone.txt": content => "Woo, DB installed!\n", tag => "dbdone", } } node b { File <<| tag == dbdone |>> Pakackage{''jboss'': require => [ File<<| tag == dbdone |>>], } } Cordialement, Bernard Granier CE Plateforme Système bernard.granier@morpho.com 01 58 11 32 51 -----Original Message----- From: puppet-users@googlegroups.com [mailto:puppet-users@googlegroups.com] On Behalf Of Kyle Sexton Sent: Thursday, February 21, 2013 9:25 PM To: puppet-users@googlegroups.com Subject: Re: [Puppet Users] dependencies between nodes "GRANIER Bernard (MORPHO)" <bernard.granier@morpho.com> writes:> Hi, > > I need to describe dependencies between nodes, for example, to be sure > that database is deployed on one node before deploying web application > on another node. >I haven''t messed with inter-dependent nodes yet, but exported resources might fit the bill. Something like: ,---- | node a { | # Do this when the DB is installed | @@file { "/tmp/dbdone.txt": content => "Woo, DB installed!\n", tag | => "dbdone", } } | | node b { | File <<| tag == ''foofile'' |>> | } `---- Then if /tmp/dbdone.txt is on nodeb it''s safe to install? Again, haven''t tried this but potentially worth looking at. No matter what I''m curious what the solution is. -- Kyle Sexton -- 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. # " This e-mail and any attached documents may contain confidential or proprietary information. If you are not the intended recipient, you are notified that any dissemination, copying of this e-mail and any attachments thereto or use of their contents by any means whatsoever is strictly prohibited. If you have received this e-mail in error, please advise the sender immediately and delete this e-mail and all attached documents from your computer system." # -- 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.
GRANIER Bernard (MORPHO)
2013-Feb-26 13:41 UTC
RE: [Puppet Users] dependencies between nodes
Hi, Anothoer point about dependencies between nodes, is it possible to say that an exported resources requires another one ? If I used the example given by kyle : node a { # Do this when the DB is installed @@file { "/tmp/dbdone.txt": content => "Woo, DB installed!\n", tag => "dbdone", } } node b { File <<| tag == dbdone |>> Pakackage{''jboss'': require => [ File<<| tag == dbdone |>>], } } I want to export the resource file only if db installation success otherwise not. Cordialement, Bernard Granier CE Plateforme Système bernard.granier@morpho.com 01 58 11 32 51 -----Original Message----- From: GRANIER Bernard (MORPHO) Sent: Tuesday, February 26, 2013 12:09 PM To: puppet-users@googlegroups.com Subject: RE: [Puppet Users] dependencies between nodes Hi, Thanks for the answer, I understand that with exported resources, I can create interactions between nodes. But If I understood your suggestion, on node b I will get the file defined on node a : great. But does this implicitly mean that all resources on node b will wait that the file is created ? Or how do I define a require link between the classes define on node b ? May I write something like that : node a { # Do this when the DB is installed @@file { "/tmp/dbdone.txt": content => "Woo, DB installed!\n", tag => "dbdone", } } node b { File <<| tag == dbdone |>> Pakackage{''jboss'': require => [ File<<| tag == dbdone |>>], } } Cordialement, Bernard Granier CE Plateforme Système bernard.granier@morpho.com 01 58 11 32 51 -----Original Message----- From: puppet-users@googlegroups.com [mailto:puppet-users@googlegroups.com] On Behalf Of Kyle Sexton Sent: Thursday, February 21, 2013 9:25 PM To: puppet-users@googlegroups.com Subject: Re: [Puppet Users] dependencies between nodes "GRANIER Bernard (MORPHO)" <bernard.granier@morpho.com> writes:> Hi, > > I need to describe dependencies between nodes, for example, to be sure > that database is deployed on one node before deploying web application > on another node. >I haven''t messed with inter-dependent nodes yet, but exported resources might fit the bill. Something like: ,---- | node a { | # Do this when the DB is installed | @@file { "/tmp/dbdone.txt": content => "Woo, DB installed!\n", tag | => "dbdone", } } | | node b { | File <<| tag == ''foofile'' |>> | } `---- Then if /tmp/dbdone.txt is on nodeb it''s safe to install? Again, haven''t tried this but potentially worth looking at. No matter what I''m curious what the solution is. -- Kyle Sexton -- 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. # " This e-mail and any attached documents may contain confidential or proprietary information. If you are not the intended recipient, you are notified that any dissemination, copying of this e-mail and any attachments thereto or use of their contents by any means whatsoever is strictly prohibited. If you have received this e-mail in error, please advise the sender immediately and delete this e-mail and all attached documents from your computer system." # -- 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.
GRANIER Bernard (MORPHO)
2013-Feb-26 17:47 UTC
RE: [Puppet Users] dependencies between nodes
Hi, To use exported ressources, I choice to install mysql and I modify puppet.conf, adding : storeconfigs = true dbadapter = mysql dbuser = puppet dbpassword = <<a password>> dbserver = localhost dbsocket = /var/run/mysqld/mysqld.sock Then I run : /etc/init.d/puppetmaster restart And on client I have the following error : Warning: Error 400 on SERVER: Could not retrieve facts for <<agent fqdn>>: Could not autoload puppet/indirector/facts/active_record: uninitialized constant ActiveRecord Does some one knows what''s happened ? Cordialement, Bernard Granier CE Plateforme Système bernard.granier@morpho.com<mailto:bernard.granier@morpho.com> 01 58 11 32 51 From: puppet-users@googlegroups.com [mailto:puppet-users@googlegroups.com] On Behalf Of Peter Brown Sent: Friday, February 22, 2013 2:49 AM To: puppet-users Subject: Re: [Puppet Users] dependencies between nodes On 22 February 2013 06:24, Kyle Sexton <ks@mocker.org<mailto:ks@mocker.org>> wrote: "GRANIER Bernard (MORPHO)" <bernard.granier@morpho.com<mailto:bernard.granier@morpho.com>> writes:> Hi, > > I need to describe dependencies between nodes, for example, > to be sure that database is deployed on one node before > deploying web application on another node. >I haven''t messed with inter-dependent nodes yet, but exported resources might fit the bill. Something like: I agree with Kyle. This seems like the best way to achieve this sort of node interdependence. ,---- | node a { | # Do this when the DB is installed | @@file { "/tmp/dbdone.txt": content => "Woo, DB installed!\n", tag => "dbdone", } | } | | node b { | File <<| tag == ''foofile'' |>> | } `---- Then if /tmp/dbdone.txt is on nodeb it''s safe to install? Again, haven''t tried this but potentially worth looking at. No matter what I''m curious what the solution is. -- Kyle Sexton -- 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<mailto:puppet-users%2Bunsubscribe@googlegroups.com>. To post to this group, send email to puppet-users@googlegroups.com<mailto: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<mailto:puppet-users+unsubscribe@googlegroups.com>. To post to this group, send email to puppet-users@googlegroups.com<mailto: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. # " This e-mail and any attached documents may contain confidential or proprietary information. If you are not the intended recipient, you are notified that any dissemination, copying of this e-mail and any attachments thereto or use of their contents by any means whatsoever is strictly prohibited. If you have received this e-mail in error, please advise the sender immediately and delete this e-mail and all attached documents from your computer system." # -- 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.