I have many systems that require NFS mounts for production.  Rather than 
have one entry of file{} and mount{} per NFS import, in a *.pp file, I'd 
rather set up and iterate over an array.   Looking at the docs, I'm not 
quite sure how to do this properly.  We have three groups for which I would 
need this (production, development, test) that each have their own NFS 
mounts.

here's what I would use:

$server = "server.name.com"
$prefix = "/some/nfs/root"

# array
production = [ 
              "dir1", 
              "dir2", 
              "dir3", 
              "dir4", 
] # etc etc

Then issue a command to iterate and manage those NFS mounts.

Since these change from time-to-time, and require some pruning... I will be 
left with "unmanaged" resources (ie: directory mount points) scattered 
around that I will need to clean up.  I read through some tickets for 
feature requests and got lost in where this is going -- however, to keep 
the place neat and clean, I'd like to unmanage the mount points and the 
fstab entries after.   The idea of manually doing this from system to 
system isn't good.

I'm still new-ish to puppet, so any pointers would be appreciated.


Thanks.


-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/puppet-users/-/MQ9gniWF4gUJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.

Reply via email to