Quantcast
Channel: Ask Puppet: Puppet DevOps Q&A Community - RSS feed
Viewing all articles
Browse latest Browse all 6104

I am using source in manifest and getting error

$
0
0
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

Viewing all articles
Browse latest Browse all 6104

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>