Is there a work around to sandbox the fileserver mounts?

4 views
Skip to first unread message

Tim Harper

unread,
Mar 26, 2009, 5:43:15 PM3/26/09
to puppet...@googlegroups.com
... premature send ...

When I use this environment (via puppetd --test --environment tim), the unique manifest path takes on effect, however, the fileserverconfig does not, as is evident by it not throwing an error from a completely invalid file contents (picture typing the file by pounding on the keyboard) (i first tried corrupting the paths, that didn't do anything either)

Looking at the wiki (just barely noticed it, don't know why I didn't realize it before), I understand why:

========
Only certain parameters make sense to be configured per-environment, and all of those parameters revolve around specifying what files to use to compile a client's configuration. Those parameters are:

    * modulepath: Where to look for modules. It's best to have a standard module directory that all environments share and then a per-environment directory where custom modules can be stored.
    * templatedir: Where to look for templates. The modulepath should be preferred to this setting, but it allows you to have different versions of a given template in each environment.
    * manifest: Which file to use as the main entry point for the configuration. The Puppet parser looks for other files to compile in the same directory as this manifest, so this parameter also determines where other per-environment Puppet manifests should be stored. With a separate module path, it should be easy to use the same simple manifest in all environments.

====

to me it makes sense to configure the files per-environment.  We store a variety of config files that we distribute as is, like apache vhost files and generic config files.  Does anyone know of if there is a work around to sandbox the fileserver mounts?

Thanks,

Tim

Nigel Kersten

unread,
Mar 26, 2009, 7:00:55 PM3/26/09
to puppet...@googlegroups.com
Honestly, you just want to put everything in modules if you're using
environments, and not use fileserver mounts outside of modules.
--
Nigel Kersten
nig...@google.com
System Administrator
Google, Inc.

Tim Harper

unread,
Mar 26, 2009, 7:47:32 PM3/26/09
to puppet...@googlegroups.com
Thank you for the quick tip :)

Can you access files in modules from normal non-module manifests?  (IE - can I start off by moving all of my file mounts in to a module) ?

Tim Harper

unread,
Mar 26, 2009, 7:56:02 PM3/26/09
to puppet...@googlegroups.com
You know what, I went ahead and tried it, and it worked great.  Thanks!

Tim

Thomas Bellman

unread,
Mar 27, 2009, 6:08:35 AM3/27/09
to puppet...@googlegroups.com
Nigel Kersten wrote:

> Honestly, you just want to put everything in modules if you're using
> environments, and not use fileserver mounts outside of modules.

But not those that you use for plugins (custom facts and custom types).
You will only get confused if you try to put them into environments.

I believe you'll be able to have environment-specific custom facts in
0.25, but not environment-specific custom types or functions.


/Bellman

Reply all
Reply to author
Forward
0 new messages