Re: [Puppet Users] Using an array to manage a string of directories that need to be managed

2011-12-14 Thread Felix Frank
Hi,

On 12/13/2011 11:25 PM, Forrie wrote:
> I thought I could just create a simple array and then use a file {}
> statement to ensure they are created.   Seems simple enough.  Some
> don't feel that's the most efficient way.
> 
> Since I'm going to be using autofs to ensure the mounts exist, I
> suppose I could craft a template which could make use of this array
> and then ship out the autofs configuration to each system, as a
> dependency.

this sounds pretty good to me.

Cheers,
Felix

-- 
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.



[Puppet Users] Using an array to manage a string of directories that need to be managed

2011-12-13 Thread Forrie
I've read previous posts about iterating over arrays, hashes, etc.

I have a series of directories that need to be created (and
maintained, with appropriate permissions) that serve as NFS mount
points on a series of systems.Sometimes, when they are no longer
needed, they will be removed (another issue).

I thought I could just create a simple array and then use a file {}
statement to ensure they are created.   Seems simple enough.  Some
don't feel that's the most efficient way.

Since I'm going to be using autofs to ensure the mounts exist, I
suppose I could craft a template which could make use of this array
and then ship out the autofs configuration to each system, as a
dependency.

Might someone offer advice on how to best handle this one.


Thanks!

-- 
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.