Hi guys.
I have virtual user in my *.pp like that
@user { "grt_user2":
uid => "N",
gid => "N",
comment => "",
home => "/home/grt_user2",
membership => minimum,
shell => "/bin/bash",
groups => $hostname ? {
"puppet-pinocio" => ["grt_user2", "daemon",
"sys", "adm", "tty",
"disk", "lp", "mem", "tcpdump",
"locate", "floppy", "mail", "news",
"uucp", "console", "audio", "cdrom"],
.....
},
ensure => "present",
password => ''$1$...'',
}
then I realize it and its everything ok.
But! when I delete some groups in "groups" and add couple, so puppetd
will use usermod with wrong groups list. For example:
this is in site.pp
["grt_user2", "daemon", "sys", "adm",
"tty", "disk", "lp", "mem",
"ntp", "ldap", "floppy", "mail",
"news", "uucp", "console", "audio",
"cdrom", "tape", "video"]
and this in /etc/groups
["grt_user2", "daemon", "sys", "adm",
"tty", "disk", "lp", "mem",
"ntp", "tcpdump", "ldap", "floppy",
"mail", "news", "uucp", "console",
"audio", "cdrom", "tape", "video"]
as you can see "tcpdump" still in groups. What I did wrong? My puppet
version is 0.24.7 on Gentoo (btw in 0.24.4 my example dont workin
too).
Btw if I will make simple changes in groups (I mean one by one) then
puppet will make right changes in groups, I think, but I`m not sure.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---