Ask Your Question

how to setup custom mount points for masterless puppet?

asked 2014-12-12 09:01:33 -0600

pascal gravatar image

My setup relays heavily on custom mount points to deliver files to puppet agents. The normal environments are working fine, but now I have to also run the same modules/mount points on an isolated machine. I think this is the scenario 'puppet apply' is meant for. I set up the isolated machine like I did the other master machines, just without authentication in auth.conf. But every time I try to run puppet apply, it can not find any files from a mount point. The templates on the other hand are working fine., as well as other resource types.

Error message:

Could not evaluate: Could not retrieve information from environment production source(s) puppet:///mountpoint/path/to/file


oh, I am stuck with puppet 3.3, but I do not think that is part of the problem?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2014-12-14 07:45:29 -0600

Tomasz Olszewski gravatar image

updated 2014-12-14 07:46:57 -0600

Hello pascal,

I have masterless setup on couple of my servers, and it works like this:

In /etc/puppet/fileserver.conf

    path /etc/puppet/projects/myprojectname/files
    allow *

And then I use it in source parameter:

  file { '/etc/nginx/conf.d/custom.conf':
    ensure  => $ensure,
    mode    => '0644',
    owner   => 'root',
    group   => 'root',
    source  => [  "puppet:///files/nginx/${::fqdn}/custom.conf",

Puppet will search in /etc/puppet/projects/myprojectname/files/nginx/.../custom.conf

Standard modules mountpoint also works without any problems, when I keep my files in /etc/puppet/modules/nginx/files/...

edit flag offensive delete link more


Thanks, it was helpful to know that I was right. Somebody changed our base path on the puppet masters and hid the change to the fileserver.conf in a pile of added mounts, but did not update the install instructions. Ever had one of those one letter changes you only discovered after changing fonts?

pascal gravatar imagepascal ( 2014-12-17 11:13:06 -0600 )edit

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: 2014-12-12 09:01:33 -0600

Seen: 636 times

Last updated: Dec 14 '14