Hi Team,
I am using source parameter in manifest to push files to puppet agents.
Below is the my site.pp
package {'openssl':
ensure => present,
before => File['/etc/ssh/sshd_config'],
}
file {'ssh_config':
ensure => file,
path => '/etc/ssh/sshd_config',
mode => "600",
source => "puppet:///modules/files/ssh_config",
}
service {'sshd':
ensure => running,
enable => true,
subscribe => File['/etc/ssh/sshd_config'],
}
I have kept the source file ssh_config in below path.
/opt/puppetlabs/puppet/modules/files/
When i am tryung from agent i am receiving below error please help.
puppet agent -t
Info: Using configured environment 'production'
Info: Retrieving pluginfacts
Info: Retrieving plugin
Info: Caching catalog for dheera.asicdesigners.com
Info: Applying configuration version '1478337901'
Error: /Stage[main]/Main/File[ssh_config]: Could not evaluate: Could not retrieve information from environment production source(s) puppet:///modules/files/ssh_config
Notice: /Stage[main]/Main/Service[sshd]: Dependency File[ssh_config] has failures: true
Warning: /Stage[main]/Main/Service[sshd]: Skipping because of failed dependencies
Notice: Applied catalog in 0.19 seconds
↧