On 3/3/2009 5:12 AM, Scott wrote:> I''ve tried requiring the exec the definition runs, I''ve
tried
> requiring the actual definition using various forms, and I''ve
tried
> using an alias but I keep getting various errors.
I have the following working for making a standard user access list
(originally from David Schmitt). Hopefully the line breaks won''t render
it unreadable:
file {
"/etc/puppet/files/apps/pam_listfile/users.conf.d/cae-unix-users.conf":
checksum => md5,
notify =>
Exec["concat_uniq_/etc/puppet/files/apps/pam_listfile/users.conf.default"]
}
concatenated_file_uniq {
"/etc/puppet/files/apps/pam_listfile/users.conf.default":
dir => "/etc/puppet/files/apps/pam_listfile/users.conf.d";
}
define concatenated_file_uniq ($dir, $mode = 0644, $owner = root, $group
= root)
{
file {
$name:
ensure => present,
checksum => md5,
mode => $mode,
owner => $owner,
group => $group;
}
exec { "find ${dir} -maxdepth 1 -type f ! -name
''*puppettmp''
-print0 | sort -z | xargs -0 cat | sort | uniq > ${name}":
refreshonly => true,
subscribe => File[$dir],
alias => "concat_uniq_${name}",
}
}
> Also, I''m curious how come there''s no aptrepo type
included in puppet
> when there''s a yumrepo type?
This is what I use for an aptrepo definition:
http://reductivelabs.com/trac/puppet/wiki/Recipes/Apt_Repositories
--
Mike Renfro / R&D Engineer, Center for Manufacturing Research,
931 372-3601 / Tennessee Technological University
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---