Re: Where puppet store the "source" files?

178 views
Skip to first unread message

Cosmin-Viorel Ilie

unread,
Sep 14, 2012, 10:24:43 AM9/14/12
to puppet...@googlegroups.com
I think you need to edit the auth.conf file to allow the puppet client access. 

On Friday, September 14, 2012 5:12:49 PM UTC+3, itJunky wrote:
I have a directive like this:

    file { "/etc/sudoers":
        owner => root,
        group => root,
        mode => 440, 
        source => "puppet:///modules/sudo/sudoers"
    }

When i try to get this file on puppet agent, i see error:
err: /Stage[main]/Sudo/File[/etc/sudoers]: Could not evaluate: Error 403 on SERVER: Forbidden request: puppet-client(192.168.200.170) access to /file_metadata/modules/sudo/sudoers [find] authenticated  at line 104 Could not retrieve file metadata for puppet:///modules/sudo/sudoers: Error 403 on SERVER: Forbidden request: puppet-client(192.168.200.170) access to /file_metadata/modules/sudo/sudoers [find] authenticated  at line 104 at /etc/puppet/manifests/site.pp:12    

In this error message i see a path "/file_metadata/modules/sudo/sudoers"! Where i can find directory "file_metadata"?

I trying to change any of directives like vardir, modulepath and much more, but not anyone of path not work as /file_metadata/ =(

itJunky

unread,
Sep 17, 2012, 3:42:12 AM9/17/12
to puppet...@googlegroups.com
My main issue it Where i can find directory "file_metadata"?
If I learn it, i can edit auth.conf to it directory.

пятница, 14 сентября 2012 г., 18:24:43 UTC+4 пользователь Cosmin-Viorel Ilie написал:

Martijn

unread,
Sep 17, 2012, 7:56:35 AM9/17/12
to puppet...@googlegroups.com
I don't know where your Puppet gets that path from. I've never seen it before. Maybe the setting is specified in your config file. Run the following commands as the user that your puppetmaster uses:

puppet --configprint modulepath

This command will show in which directories Puppet looks for your modules. In your case, I'd expect /file_metadata to be in that list.

puppet --configprint config

This command will show where Puppet's config file is stored. Open that file and you can set your prefered modulepath like this example:

[main]
    modulepath = /etc/puppetlabs/puppet/modules:/opt/puppet/share/puppet/modules

Run the first command again, and you should see that Puppet now uses the path you specified.

Hope this helps,
Martijn Heemels

Op maandag 17 september 2012 09:42:12 UTC+2 schreef itJunky het volgende:

itJunky

unread,
Sep 18, 2012, 8:57:32 AM9/18/12
to puppet...@googlegroups.com
I found this sh*t...

test169 alp # grep -R dist /etc/puppet/
/etc/puppet/modules/testing170/manifests/init.pp:                "puppet:///dist/apache2/*//" ]
/etc/puppet/modules/testing170/manifests/init.pp:    }          # real_path /usr/li/i/puppet/dist
/etc/puppet/modules/testing170/manifests/init.pp:                "puppet:///dist/sudo/sudoers" ]
/etc/puppet/modules/testing170/manifests/init.pp:    }          # real_path /usr/lib/puppet/dist
/etc/puppet/fileserver.conf:[dist]
/etc/puppet/fileserver.conf:  path /usr/lib/puppet/dist

This path i have in only one config /etc/puppet/fileserver.conf.

понедельник, 17 сентября 2012 г., 15:56:35 UTC+4 пользователь Martijn написал:
Reply all
Reply to author
Forward
0 new messages