Ask Your Question

facing issues to read module from puppet-master

asked 2015-06-02 01:52:30 -0500

Hi ,

I am facing issues in reading the module from master node. whevevr i run below command i get same output. Whereas i have added new module and module name in site.pp also. Please help me out to move ahead.

root@puppet-agent:/etc/puppet# puppet agent --test Info: Retrieving plugin Info: Caching catalog for puppet-agent Info: Applying configuration version '1433226523' Notice: Finished catalog run in 0.32 seconds

my site.pp file /etc/puppet/manifests# nano site.pp node 'puppet-agent' { include sudo }

and my module is in this path /etc/puppet/modules/sudo/manifests# nano init.pp

my module:

class sudo { package { 'sudo': ensure => present, } if $::osfamily == 'Ubuntu' { package { 'sudo-ldap': ensure => present, require => Package['sudo'], } } file { '/etc/sudoers': owner => 'root', group => 'root', mode => '0440', source => "puppet://$::server/modules/sudo/etc/sudoers", require => Package['sudo'], } }

edit retag flag offensive close merge delete


You might get more responses if you edit the post and fix the formatting so people can read your code more easily.

Alex Harvey gravatar imageAlex Harvey ( 2015-06-03 00:40:23 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2015-06-03 04:14:13 -0500

shirish shukla gravatar image

updated 2015-06-03 04:14:28 -0500

1# Please use formatting, so your text's get properly wrapped

2# Ensure use hostname correctly as fqdn

node 'puppet-agent'   <- ensure you used full fqdn here`

Use $ facter fqdn for correct input

3# Also you can use debug or verbose run test at client end for further troubleshooting

  puppet agent -t --onetime --no-daemonize --verbose --noop

  puppet agent -t --onetime --no-daemonize --debug --noop
edit flag offensive delete link more

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


Asked: 2015-06-02 01:52:30 -0500

Seen: 55 times

Last updated: Jun 03 '15