Ask Your Question
0

puppetdb debugging @@file

asked 2014-05-15 16:09:25 -0500

I am using the backuppc modules that has the following code:

@@file { "${backuppc::params::config_directory}/pc/${::fqdn}.pl":
    ensure  => $ensure,
    content => template("${module_name}/host.pl.erb"),
    owner   => 'backuppc',
    group   => $backuppc::params::group_apache,
    mode    => '0640',
    tag     => "backuppc_config_${backuppc_hostname}"
  }

For some darn reason the puppet master is not pushing the config. The class ran because the other components worked. I can see the class running with a do a puppet agent --debug --test, but I am looking for recommendations on how to debug this further. Other servers are running fine. It is the puppet master that is not pushing the config to backuppc_config tag.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2014-05-16 02:41:29 -0500

doc75 gravatar image

I guess that you are using wyrie/puppet-backuppc.

Looking quickly at the code and I guess that when realizing the resource, ::fqdn is not having the same value than backuppc_hostname:

File <<| tag == "backuppc_config_${::fqdn}" |>> {
    group => $backuppc::params::group_apache,
    notify => Service[$backuppc::params::service],
    require => File["${backuppc::params::config_directory}/pc"],

Or you do not include the bacckuppc::server class (but I just quickly looked at the module and might have misunderstood its normal usage).

Silly question: Are you sure that this virtual resource is realized ?

Such resource are effectively pushed to the client if a call to realize or File <| title == "resource_name" |> is used.

edit flag offensive delete link more

Comments

Yes I am using wyrie/puppet-backuppc, the backuppp:server class is running on the backup server, and works for all other hosts, except the puppet server. How do I determine if the virtual resource is realized and debug this more?

chrislovecnm gravatar imagechrislovecnm ( 2014-05-16 11:11:06 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2014-05-15 16:09:25 -0500

Seen: 117 times

Last updated: May 16 '14