Ask Your Question

Revision history [back]

I am using source in manifest and getting error

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

click to hide/show revision 2
None

I am using source in manifest and getting error

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/

/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

seconds

I am using source in manifest and getting error

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'], }

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

I am using source in manifest and getting error

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

I am using source in manifest and getting error

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