Hi Luke,

Thanks for the reply.  That makes sense now ... my issue was thinking
it had the same behavour as the modulepath setting.

I might have to re-think how I was going to manage multiple
environments and multiple users using the same or different
environments.

For some background on what I was thinking I was planning on having:

1. A Repo(s) to manage settings that would be common across
environments (with minor tweaks managed by site settings)
/srv/puppetmaster/stable/manifests/
/srv/puppetmaster/stable/modules/

2. A Repo(s) that contains information that defines how an
environments nodes are setup and run
/srv/puppetmaster/stable/site-nodes/
/srv/puppetmaster/stable/site-modules/

I will just have to think a it harder on how to achieve this ...

On Apr 25, 5:56 pm, Luke Bigum <luke.bi...@lmax.com> wrote:
> I don't think $manifestdir will take a directory list, only a single
> directory. From the 2.7.12 docs:
>
> [root@puppet ~]# puppet --genconf | grep -B2 -A1 manifestdir
>
>      # The entry-point manifest for puppet master.
>      # The default value is '$manifestdir/site.pp'.
>      manifest = /etc/puppet/manifests/site.pp
> --
>      # Where puppet master looks for its manifests.
>      # The default value is '$confdir/manifests'.
>      manifestdir = /etc/puppet/manifests
>
> Is this your directory structure?
>
> /srv/puppetmaster/stable/manifests/
> /srv/puppetmaster/stable/manifests/site.pp
> /srv/puppetmaster/stable/site-nodes/
> /srv/puppetmaster/stable/site-nodes/core.mob.ifoley.local.pp

Yes this is correct.

>
> The import function is relative, so you could try do this:
>
> import "../site-nodes/*.pp"
>
> Or move the site-nodes directory under stable/manifests/ and do this:
>
> import "site-nodes/*.pp"
>

As mentioned above I will have a think about how I want things setup
now.

> --
> Luke Bigum
>
> Information Systems
> Ph: +44 (0) 20 3192 2520
> luke.bi...@lmax.com |http://www.lmax.com
> LMAX, Yellow Building, 1A Nicholas Road, London W11 4AN

Thanks for your help.

Peter.

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.

Reply via email to