[Puppet Users] duplicated resource with an exported resource
Hi all, I have found a problem setting up exported resources. The problem is that for every hosts I want to define in its /etc/hosts the primary ip, but I want to export a secondary ip with the same hostname that will be collected just by one server. So I defined: @@host { $::hostname : ensure => present, ip => $secondary_ip, } host { $::hostname : ensure => present, ip => $primary_ip } but when I launch puppet a duplicated resource arises: # puppet agent -t Info: Retrieving plugin Error: Could not retrieve catalog from remote server: Error 400 on SERVER: Duplicate declaration: Host[X] is already declared in file /etc/puppet/manifests/init.pp:15; cannot redeclare at /etc/puppet/manifests/init.pp:5 on node Warning: Not using cache on failed catalog Error: Could not retrieve catalog; skipping run I have just implemented a workaround: @@host { "${::hostname}-secondary" : ensure => present, ip => $secondary_ip, host_alises => $::hostname, } but I wanted to know if there is a better solution. thanks, -- 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+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/bc657bc3-9659-46b4-b713-26d9ebea9f64%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[Puppet Users] how to force an error
Hi, Does exist some way to force a error while applying the catalog? We need to check some facts vs configuration and force an error if doesnt' match, so we could have a report from the node in the puppetdb with the failed state. (we cannot use a compilation/evaluation error because it doesn't report to the puppetdb) Currently we use this ugly workaround: exec {'dummy exec to force an error': path => ['/bin'], } Is there any better solution? thanks, -- 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+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/e4f5da29-aad3-4391-9dcc-ac2f986cf1b9%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[Puppet Users] yum tries to downgrade a package (ensure => version)
Hi, I have found a problem trying to upgrade a rhel6 package (libcgroup), the current version installed is: libcgroup-0.37-7.el6.x86_64 And I want to install this version: libcgroup-0.37-7.2.el6_4.x86_64 So I created a class that states: package { 'libcgroup': ensure => '0.37-7.2.el6_4', } But when I run puppet agent -t : Error: Could not update: Failed to update to version 0.37-7.2.el6_4, got version 0.37-7.el6 instead Error: /Stage[main]/Checks::Linux::Libcgroup/Package[libcgroup]/ensure: change from 0.37-7.el6 to 0.37-7.2.el6_4 failed: Could not update: Failed to update to version 0.37-7.2.el6_4, got version 0.37-7.el6 instead When I run the debug yum tries to downgrade the package: Debug: Package[libcgroup](provider=yum): Downgrading package libcgroup from version 0.37-7.el6 to 0.37-7.2.el6_4 Debug: Executing '/usr/bin/yum -d 0 -e 0 -y downgrade libcgroup-0.37-7.2.el6_4' And obviously this package exists on the repo: # yum install libcgroup-0.37-7.2.el6_4 Loaded plugins: product-id, security, subscription-manager This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register. Setting up Install Process Resolving Dependencies --> Running transaction check ---> Package libcgroup.x86_64 0:0.37-7.el6 will be updated --> Processing Dependency: libcgroup = 0.37-7.el6 for package: libcgroup-devel-0.37-7.el6.x86_64 ---> Package libcgroup.x86_64 0:0.37-7.2.el6_4 will be an update --> Running transaction check ---> Package libcgroup-devel.x86_64 0:0.37-7.el6 will be updated ---> Package libcgroup-devel.x86_64 0:0.37-7.2.el6_4 will be an update --> Finished Dependency Resolution Dependencies Resolved = Package Arch Version Repository Size = Updating: libcgroup x86_64 0.37-7.2.el6_4 rhel 111 k Updating for dependencies: libcgroup-devel x86_64 0.37-7.2.el6_4 rhel35 k Transaction Summary = Upgrade 2 Package(s) If I set "ensure => latest" in the package definition it works. any hint? -- 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+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/e135cb09-a92e-4992-bead-dbf0d54ea269%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[Puppet Users] puppet run interval
It is the default behavior, so if you did not especify otherwise it will run every 30 minutes. Regards, -- 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+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/4974b835-4a1a-4091-928b-3bf17412fd1e%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: [Puppet Users] Re: Puppet Dashboard Groups
What about storing the facts in yaml format in the puppetmaster and just doing a grep there? -- 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+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/5a54a80e-0cdc-4006-b1b1-f4066a4a743f%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: [Puppet Users] Re: How to execute a target action before this one when this one triggers
I dont know if this may work, just an idea ( but I think it is really an ugly idea) Setup a dummy file for printers.conf anywhere I the filesystem Make it to notify the exec stop cups( setting refreshonly=true) chain it with the right file printers.conf and notify from here the cups service. Regards, -- 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+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/aaf6f35a-1bbc-4e2d-8743-cbb2fdfff08f%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: [Puppet Users] puppet user context
Could be that the ${plist_name} is undef inside the define? You could try adding a notify inside the define to check which value it has. Regards, -- 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+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/842805f9-f950-41aa-9373-9d8db7aa451c%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: [Puppet Users] Reg : Pushing files from Puppet Master to Agent node
Hi, http://docs.puppetlabs.com/mcollective/deploy/standard.html :P regards, El martes, 28 de enero de 2014 10:14:12 UTC+1, krishna bhaskara rao escribió: > > Hi, > > I am new to puppet. I am using Puppet open source version. I could not > find how to configure MCollective with Puppet open source. > If you have any documentation for this configuration, Please share me. > With Regards, > Krishna. > > On Tuesday, 28 January 2014 14:39:30 UTC+5:30, Jose Luis Ledesma wrote: >> >> Yes. I recommend the puppetlabs/mcollective module to make the >> configuration easier. >> >> Regards >> > -- 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+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/d9676ba6-3e44-41e5-9760-454a6a24b1f8%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: [Puppet Users] Reg : Pushing files from Puppet Master to Agent node
Yes. I recommend the puppetlabs/mcollective module to make the configuration easier. Regards -- 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+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/9e8d29cc-b4e8-4310-a61c-62ee1b5b2d99%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: [Puppet Users] Reg : Pushing files from Puppet Master to Agent node
In fact puppetmaster cannot force a push, but mcollective can force a puppet run. And that with a file resource would make the job. Regards, -- 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+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/270f1025-cc3a-414e-b8cf-9717bf025819%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[Puppet Users] environment variable inside a template
Nevermind, it's solved -- 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+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/8093392a-44de-4e36-be90-a186d9348971%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[Puppet Users] environment variable inside a template
Is it possible to use the environment variable inside a template? I use a ENC, and I want to avoid the : Warning: Local environment: "production" doesn't match server specified node environment "201401", switching agent to "201401". So I decided to setup puppet.conf inside one of my classes: file { 'puppet.conf': path=> '/etc/puppet/puppet.conf', owner => 'root', group => 'root', mode=> '0644', content => template("puppetserver/puppet.conf.rb"), } With a template to setup the right environemnt: # cat puppet.conf.rb [main] # The Puppet log directory. # The default value is '$vardir/log'. logdir = /var/log/puppet # Where Puppet PID files are kept. # The default value is '$vardir/run'. rundir = /var/run/puppet # Where SSL certificates are kept. # The default value is '$confdir/ssl'. ssldir = $vardir/ssl environment = <% @environment %> [...] But when I run puppet agent -t Notice: /Stage[main]/Puppetserver/File[puppet.conf]/content: --- /etc/puppet/puppet.conf 2014-01-24 13:57:38.936012378 +0100 +++ /tmp/puppet-file20140127-16572-37fj6g-0 2014-01-27 17:42:06.854923849 +0100 @@ -10,6 +10,7 @@ # Where SSL certificates are kept. # The default value is '$confdir/ssl'. ssldir = $vardir/ssl +environment = It seems it is not able to read the environment variable. Any ideas? thanks, -- 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+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/7f4adb4f-23e5-42df-8d91-7372786eea05%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[Puppet Users] Module ordering in nodes.pp
You have to make use of chaining arrows in order to establish a dependency. http://docs.puppetlabs.com/puppet/3/reference/lang_relationships.html#chaining-arrows Regards, -- 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+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/04531bd2-21ef-4bf7-ac9d-8989826bc334%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[Puppet Users] Hash and loops
Hello, You should look the create_resources: http://docs.puppetlabs.com/references/latest/function.html#createresources Regards, -- 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+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/a7f77bab-122a-47d5-ad7e-df152f32f152%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: [Puppet Users] Re: file resource to provide serveral files
Instead of $conf_file you should use $title or $name inside the define Regards, -- 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+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/3bd67df1-b018-4ff5-8d76-36e86bd0dcd0%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[Puppet Users] file resource to provide serveral files
I think that what you need is a define here. Regards, -- 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+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/b4e13ea9-7ceb-4cf5-8336-02639931562e%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: [Puppet Users] Is it possible to include files in puppet.conf
I don't understand the problem, just use a modulepath without the $environment, or set a couple of paths this way: modulepath = $confdir/environments/common:$confdir/environments/$environment/modules Regards, -- 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+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/30a3a627-e08b-49a1-9c02-176a7aaa6146%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[Puppet Users] Is it possible to include files in puppet.conf
Read about dynamic environments. Preview: make use of $environment in puppet.conf Regards, -- 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+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/78fcf9ae-91ea-4ef3-bd65-2e5a73dd35e4%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[Puppet Users] Monitor configfiles of a package
You can exec a rpm verify against the package, it should display which files has changed and then reinstall it to if needed but i think this is not a "puppet solution" Another option would be install the rpm in the puppet master, and create a module that deploy the files of the rpm( so no rpm installed on the servers)... Regards -- 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+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/14ce75b2-ec71-4d1c-a58b-43742290aef6%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: [Puppet Users] hiera suggestion
Copied from another thread: :hierarchy: ... - "%{environment}/classes/%{calling_class} Perhaps it is easier that way. Regards -- 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+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/8f785b3b-ea63-4004-be7b-5810d3fbdd38%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: [Puppet Users] dynamic /etc/hosts
In fact, I think that is easier, with host exported resources. See:https://groups.google.com/forum/m/#!topic/puppet-users/uAxbiIYH6Q4 -- 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+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/988f9aac-9e22-47b8-a590-85559874a20b%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: [Puppet Users] dynamic /etc/hosts
I think this could be accomplished with exported resources, on every node export a file with his IP, and collect the other ones. Then with a custom script you could verify if the entry is on the hosts file. About the offtopic dhcp vs hosts file, most clusters like to have the ips defined on the hosts file, f.e. in Hacmp cluster it is mandatory. Also, imho, it is not a good idea to have dhcp for cluster 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+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/e83ff07a-0cbf-440d-a8bd-646b4d23f0ca%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: [Puppet Users] How to manage SugarCRM config.php with Puppet?
Disclaimer: i dont know if this is posible at all. Augeas is able to parse XML, perhaps you can modify the php to load a xml, and use augeas to modify it. I don't have experience with augeas+XML, so this may be just a nonsense :) -- 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+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/272187c8-ae52-4ee7-988f-2e75f93e4e43%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[Puppet Users] Error: Could not retrieve catalog from remote server: Error 400 on SERVER: Could not find class
Ah! And the directory packages should be called nmap (the same name than the class, is how autoloader find it) Regards, -- 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+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/d06723e7-c635-477b-b18c-e78f345e08a2%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[Puppet Users] Error: Could not retrieve catalog from remote server: Error 400 on SERVER: Could not find class
Hi, Nmap.pp should be called init.pp Regards, -- 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+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/523cf7dd-ad36-48c9-a842-53476dfb419d%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[Puppet Users] Re: Puppet apply hangs
I think it was waiting for a manifest in the standard input -- 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+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/0f1b0e4d-0e05-4a46-b88b-73709a841246%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[Puppet Users] Re: Puppet apply hangs
0 is standard input... Seems that puppet is waiting for some input??? Or did puppet close fd 0? Regards -- 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+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/ab4db526-15b5-492d-8a84-8066029e88a1%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[Puppet Users] Replacing file errors: getaddrinfo: No such host is known
Could be something about filebucket? Perhaps launching the agent with debug gives some hint -- 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+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/475ba878-79b5-4076-b128-0170b6140a2f%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[Puppet Users] Re: Using Virtual Resources and create_resource combination
I'm not sure, but I remember reading something like: create_resources(@user, $myusers) Although I don't really know if this is the best solution for you -- 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+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/6b995703-6584-485e-8ed5-b165ecbd041f%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[Puppet Users] ssh module dependency failure
I think the error is here: require => Class["ssh:install"] Should be ssh::install Regards -- 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+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/867220e8-2ca7-4089-875b-0540fd19941b%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: [Puppet Users] Puppet User Administration, set password only at creating of user-accounts
Would be nice to have something like 'initial_password' in the user resource. Perhaps a solution could be create a custom fact with all the users of the server, and set an 'if' statement before the user resource. Hth -- 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+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/bc2b23e8-2020-47e9-a103-794ef3f5cc8b%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[Puppet Users] Re: logstash module to control service
It seems that the script when stops kills also himself -- 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+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/2bfbc786-0404-434d-b404-dc8046ce9f17%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[Puppet Users] Single certificate, multiple nodes... or image-based systems
You can use autosign for signing certificates. Regards, -- 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+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/ceb1ae6b-da1f-444a-9f3f-46198edf2a18%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: [Puppet Users] Decommission puppetdb
Remove also /etc/puppet/puppetdb.conf -- 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+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/75458c12-527b-4b80-b800-148cce25cb94%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: [Puppet Users] The Future - ENCs vs Hiera?
True, but with a profiles/roles design + hiera you shouldn't need to parametrize classes in the LDAP. Regards, -- 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+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/4421f494-cacb-4cca-90f5-0599bf9bf94e%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[Puppet Users] When does puppet agent load newly installed facter facts?
Puppet loads facts first of all, so custom facts deployed are not there until next run. Regards -- 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+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/f298496f-7b16-4d89-ad88-ddfdcc3645f7%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: [Puppet Users] Hiera and puppet apply/puppet agent
Mmm the error is about ssh_package_name, but you have tried the puppet apply with ssh_service_name. could be this the problem? -- 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+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/c7ffbdaf-52ab-4ef3-b449-b108bcb900c1%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: [Puppet Users] dashed by dashboard
You hace to enable both epel and optional repositories. Regards, -- 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+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/99b21bb1-2614-4061-afc0-cc9ce369bad5%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: [Puppet Users] Puppet require - failure handling
Clases WordPress requiere both MySQL and apache, so no resource of WordPress will be "executed" if any of them fails -- 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+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/a9e8974b-623c-496a-acbd-721ed377ad01%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: [Puppet Users] Puppet require - failure handling
Right! I wrote it from the mobile :s -- 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+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/f510902a-d745-4b5b-afa1-fc37388749fd%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[Puppet Users] Puppet require - failure handling
There is not after or before when puppet applies a manifest if there are not dependencies explicitly declared. In the example you have written mysql and apache will be applied in no particular order between them, but will be implemented both before any other resource in the WordPress class. If you want mysql or apache implemented before the other, you can chain classes: Class['mysql']=>Class['apache'] This will apply mysql before apache, and only will implement apache if mysql goes OK. -- 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+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/e8d6ef4d-edb1-41f4-ab4c-ad840e77754a%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: [Puppet Users] The Future - ENCs vs Hiera?
Enforcing environment from the master is a must for us, and I don't really see the point of configuring hiera against LDAP when puppet supports it natively. Do you know some benefit I'm missing? -- 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+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/cfc5f80d-8f11-4566-a451-9f8231a56a52%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: [Puppet Users] The Future - ENCs vs Hiera?
I'm in the process of setting up puppet in my company and I don't like at all the idea of having some thousand of files for describe the nodes. And, despite the well known limitations, I like a lot the idea of having an enc like ldap. Regards, -- 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+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/9ff568de-72a2-470c-98ab-5e2b9752b424%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: [Puppet Users] The Future - ENCs vs Hiera?
I'm in the process of setting up puppet in my company and I don't like at all the idea of having some thousand of files for describe the nodes. And, despite the well known limitations, I like a lot the idea of having an enc like ldap. Regards, -- 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+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/cbae58f9-3e14-472e-906d-ce7a3be355af%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: [Puppet Users] MCollective/Puppet - one-time run with other options
The problem about using runall/concurrency is that you cannot know when it will finish, so setting it on the crontab could be a source of a problems if it has not yet finished when the next run is schedulee -- 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+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/cff5bbd6-c856-44c7-836c-9e98355eb2c7%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: [Puppet Users] MCollective/Puppet - one-time run with other options
What do you mean by balancing 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+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/fb09a226-1908-496b-a0b1-858b745fcd61%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: [Puppet Users] MCollective/Puppet - one-time run with other options
Hello, We have puppet only in the lab's servers, we are planning to deploy to production in the near future. I found myself thinking about the same question some time ago. What we were thinking is, why to run puppet agent on every node? In fact puppetlabs says about setting the puppet agent in the crontab... What we have done in the laboratory is to disable puppet agent, and run it always from the puppetmaster/mco-client crontab in the next way: 0 * * * * /usr/bin/mco puppet runonce --noop --splaylimit 900 I don't know if it's the best solution for productive-environment, opinions? regards, El martes, 31 de diciembre de 2013 13:50:11 UTC+1, Jason Antman escribió: > > I also forgot the scariest option, which seems apt to break things: > - have mcollective stop the daemon > - mco puppet runonce > - have mcollective start the daemon back up > > -jason > > On 12/31/2013 07:42 AM, Jason Antman wrote: > > Hello, > > > > I've recently learned that my plans to use the puppet agent mcollective > > plugin to trigger one-time runs against a different environment, with > > the daemon running in the background, don't work because of how the > > agent plugin works (SIGUSR1 to the daemon if running). > > > > My original intent was as follows: > > I have a bunch of puppet nodes dedicated to testing new > > manifests/modules. Normally they, like all of my other nodes, run in > > daemon mode against the production environment. I have a Jenkins job > > that does some static testing of a specific branch of our puppet repo, > > and then checks out that branch as an environment on the master and > > (should/tries to) run `mco puppet runonce --environment `. > > > > So, while I think the "runonce" name is pretty misleading if it can't > > handle running when there's a daemon, I understand the limitations > > behind it. Now I'm looking for any suggestions on how to achieve what > > I'm trying to. I've been able to come up with a few options... if anyone > > has other suggestions, or opinions, please pass them along... > > > > 1) https://tickets.puppetlabs.com/browse/PUP-1319 (formerly redmine > > 5153) "Ability to run --onetime in the background while a daemon is > > idle" implies that running "--onetime --no-deamonize --foreground" works > > fine while there's a backgrounded daemon. So all that would be needed is > > a change to the mco puppet plugin to explicitly add an option to allow > > this? I manually run "puppet agent -t --environment foo" all the time > > while the daemon is running, and it works fine. > > > > 2) As suggested by chris spence, I could stop using daemon mode and > > start using cron to trigger periodic runs. I've been running in daemon > > mode for a lng time, but I guess with the deprecation of `puppet > > kick`, it's no longer needed. The remaining issue is how to spread out > > runs of all my nodes to minimize load on the master, and how to run at > > boot, which are solvable problems though more complex than "service > > puppet enable true". Any suggestions for how to spread out the runs? I'm > > using a custom ENC, so I suppose I could do it there as a param for > > cron, but I'm open to nicer solutions. > > > > 3) Going by R. I.'s blog post from 2010 (yeah a bit dated) > > > http://www.devco.net/archives/2010/03/17/scheduling_puppet_with_mcollective.php > > > about puppetcommander.rb, I could use something mco-based to schedule > > the runs. Though AFAIK this means running *that* controller either via > > cron on the master, or as a daemon somewhere (I assume the former would > > be preferable and easier). > > > > Any thoughts/suggestions? > > > > My main concerns are: > > 1) running 300+ nodes every 30 minutes, with load on the master > > distributed as evenly as possible. > > 2) Jenkins being able to force a given node or list of nodes to run > > immediately against an arbitrary environment. > > > > Thanks for any suggestions/feedback, > > J Antman > > > > -- 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+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/cebb4ac0-7e75-416b-bbed-3cacdbcc9542%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[Puppet Users] Re: mco puppet runonce fails intermittently
Someone knows how to review stderr/stdout of a mco command? El viernes, 27 de diciembre de 2013 17:17:08 UTC+1, Jose Luis Ledesma escribió: > > Hi all, > >sometimes when I run an mco puppet runonce it fails with the error: > > [root@puppet-master clientbucket]# mco puppet runonce -I client01 > > * [ > ] 1 / 1 > > > client01 Request Aborted >Puppet command 'puppet agent --onetime --daemonize --color=false > --splay --splaylimit 30' had exit code 1, expected 0 >Summary: Puppet command 'puppet agent --onetime --daemonize > --color=false --splay --splaylimit 30' had exit code 1, expected 0 > > > > Finished processing 1 / 1 hosts in 2297.88 ms > > > > > but not always... how can I debug this error? how could I see the > stdout/stderr of the command above? > > The weird thing is that the puppet command is executed properly, and > I get the report ¿?. This is a mco puppet status executed just some seconds > after: > > [root@puppet-master clientbucket]# mco puppet status -I client01 > > * [ > ] 1 / 1 > >client01: Currently applying a catalog; last completed run 48 seconds > ago > > > version: > mcollective 2.2.4 > puppet 3.3.2 > > thanks in advance, > -- 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+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/a22b8ae7-aa95-4ace-99cd-b97c9095c367%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[Puppet Users] mco puppet runonce fails intermittently
Hi all, sometimes when I run an mco puppet runonce it fails with the error: [root@puppet-master clientbucket]# mco puppet runonce -I client01 * [ > ] 1 / 1 client01 Request Aborted Puppet command 'puppet agent --onetime --daemonize --color=false --splay --splaylimit 30' had exit code 1, expected 0 Summary: Puppet command 'puppet agent --onetime --daemonize --color=false --splay --splaylimit 30' had exit code 1, expected 0 Finished processing 1 / 1 hosts in 2297.88 ms but not always... how can I debug this error? how could I see the stdout/stderr of the command above? The weird thing is that the puppet command is executed properly, and I get the report ¿?. This is a mco puppet status executed just some seconds after: [root@puppet-master clientbucket]# mco puppet status -I client01 * [ > ] 1 / 1 client01: Currently applying a catalog; last completed run 48 seconds ago version: mcollective 2.2.4 puppet 3.3.2 thanks in advance, -- 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+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/be89ceb3-df93-444a-b0c7-2f1d0ed074b0%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.