puppet - Could not retrieve information from environment from production source on files -


i've setup puppet module install , keep bacula backup system running on number of systems. i'm using puppet 3.7.5 selinix on both puppet server , clients.

part of formula i've come transfer ssl cert/key pair each host uses module. bacula can work on tls.

 i have defined in bacula config manifest:

 file { "/etc/pki/tls/private/${::hostname}.mydomain.com.key":        notify  => service["bacula-fd"],        owner => "bacula",        group => "bacula",        mode => 0400,        require => package["bacula-client","bacula-common"],        source => "puppet:///modules/bacula/${::hostname}/${::hostname}.mydomain.com.key",       }       file { "/etc/pki/tls/certs/${::hostname}.mydomain.com.crt":         notify  => service["bacula-fd"],         owner => "bacula",         group => "bacula",         mode => 0400,         require => package["bacula-client","bacula-common"],        source => "puppet:///modules/bacula/${::hostname}/${::hostname}.mydomain.com.crt",      } 

this has been working fine while now. on hosts added i'm getting "could not retrieve information" errors on keypairs i'm trying send over.

 error: /stage[main]/bacula::config/file[/etc/pki/tls/certs/monitor1.mydomain.com.crt]: not evaluate: not retrieve information environment production source(s)      puppet:///modules/bacula/monitor1/monitor1.mydomain.com.crt       error: /stage[main]/bacula::config/file[/etc/pki/tls/private/monitor1.mydomain.com.key]: not evaluate:      not retrieve information environment production source(s)      puppet:///modules/bacula/monitor1/monitor1.mydomain.com.key 

and weird part! of directories i'm transferring keys , certs have identical ownership , permissions both working , non working hosts!

this directory listing of certs , keys not work:

 /etc/puppet/environments/production/modules/bacula/files/monitor1:  total 8.0k  -rw-r--r--. 1 puppet puppet 2.0k jun 16 21:53 monitor1.mydomain.com.crt  -rw-r--r--. 1 puppet puppet 3.2k jun 16 21:53 monitor1.mydomain.com.key 

and listing directory containing certs , keys work:

/etc/puppet/environments/production/modules/bacula/files/logs:  total 8.0k  -rw-r--r--. 1 puppet puppet 1.9k apr 23 22:14 logs.mydomain.com.crt  -rw-r--r--. 1 puppet puppet 3.2k apr 23 22:14 logs.mydomain.com.key 

and these permissions on directories themselves:

 drwxr-xr-x. 2 puppet puppet 62 jun 16 22:13 /etc/puppet/environments/production/modules/bacula/files/logs  drwxr-xr-x. 2 puppet puppet 70 jun 16 22:14 /etc/puppet/environments/production/modules/bacula/files/monitor1 

trouble can tell no difference between working , non working directories.

if run puppet  bacula module on monitor1 host, error. if run puppet bacula module on logs host, works fine! same formula in config manifest, different directories same permissions on both, yet 1 fails! isn't making sense me.

puppet should able select correct directory name pull monitor1 host based on $hostname fact logs host.

i'm wondering may missing rid of error!


Comments

Popular posts from this blog

PHP DOM loadHTML() method unusual warning -

python - How to create jsonb index using GIN on SQLAlchemy? -

c# - TransactionScope not rolling back although no complete() is called -