hi All,
I have a manifest with this (the module was downloaded from github for
generating known_hosts):
define ...{
[...things...]
## Ensure that all files and execs get the correct user/group
combinations.
Exec {
user => $user,
group => $user,
require => File[$root],
}
File {
ensure => $ensure ? { present => file, default => absent },
owner => $user,
group => $user,
}
}
My problem is that group -> $user does not true in all cases. Instead of
this I would like to use the true values of the user.
group should be something like
$group = `id -ng` user
group => $group,
This obviously doesn't work. But what is the right solution?
I am not master of puppets, but my guess is that I need a fact,
however, facts look good only for system wide settings.
Thank you,
tamas
--
You received this message because you are subscribed to the Google Groups "Puppet
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to puppet-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/puppet-users/5406DFB3.2040605%40martos.bme.hu.
For more options, visit https://groups.google.com/d/optout.