Greetings,
I have the global file defaults set up:
site.pp
File {
owner => "root",
group => "root",
mode => 0644,
}
In general this works well. I do have a node with numerous file
resources that do not conform to the above defaults. Is there an
elegant way to say something like:
server.pp
node server {
file { "/some/file/with/above/defaults-01.txt":
source => ...
}
file { "/some/file/with/above/defaults-02.txt":
source => ...
}
.
.
.
file { "/some/file/with/above/defaults-N.txt":
source => ...
}
# CHANGE SCOPE
{
File {
owner => "gitolite",
group => "gitolite",
mode => 0640,
}
file { "/gitolite/file-01.txt":
source => ...
}
file { "/gitolite/file-02.txt":
source => ...
}
file { "/gitolite/file-N.txt":
source => ...
}
}
# END OF SCOPE CHANGE
}
Thanks for the help!
-mz
--
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+unsubscribe@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/puppet-users?hl=en.