I have 40 Ubuntu 12.04 servers. These servers are managed with puppet.
Sometimes I have problem with puppet agent.
puppet agent spawn child process (sh) and this process fails. Sh is zombie process. Puppet doesn't work, I must restart puppet agent to make it works.
I use puppet to manage files, packages and services. Problematic agent didn't make any change before fails, server is up to date.
On our puppet box ( under the puppet/modules folder ) , I have added a module for installing a package. I then added the classes needed for the resources into the init.pp ( and other derived class files ) into the manifests folder.
After upgrading a node to Puppet 3.0.0 from the Puppet Labs YUM repository, the node that gets upgraded throws a munging error: [ashinn@dis1 ~]$ sudo puppet agent --test --trace
Error: Could not create resources for managing Puppet's files and directories in sections [:main, :agent, :ssl]: Parameter path failed on File[/var/lib/puppet/state/graphs]: Munging failed for value "/var/lib/puppet/state/
Running into an issue using two VM's running REL6. I set up the master and agent correctly and was able to cert the agent.
Is it possible to dynamically access a variable in a class?
I am getting an error of err: Could not retrieve catalog from remote server: Error 400 on SERVER: Invalid parameter port at /etc/puppet/manifests/nodes/node.pp:652 on node test-puppet
My puppet class: (The Line 652 at node.pp)
node 'test-puppet' {
class { 'syslog_ng':
host => "newhost",
ip => "192.168.1.10",
port => "1999",
logfile => "/var/log/test
I've got a file that notifies the puppet agent.
In the network module, the proxy settings are included in the .gemrc file like this:
file { "/root/.gemrc":
content => "http_proxy: $http_proxy\n",
notify => Service['puppet'],
}
The problem is that puppet stops and does not restart.
Aug 31 12:05:13 snch7log01 puppet-agent[1117]: (/Stage[main]/Network/File[/root/.gemrc]/content) conten
In my Puppet configuration I want to say "If I declare class X, apply its resources before class Y." In other words, I want to declare an ordering, but remain silent about whether or not to apply class X.
If I understand the "before" metaparameter correctly, saying:
class X {
...
before => Class['Y'],
}
class Y {
...
}
node N {
include Y
}
node M {
include X
include
the deleteDatabase method needs a context in order to work. So in my class there is a context declared called ourContext. This class does not extend any other class like
Activity so I guess you could call it a helper class.
The only place in the class that uses context is the one method shown below that is called deleteData.