Hi, I''ve added in some initial user management to my growing puppet configs, and I''m seeing an odd behavior in that it is trying to set the groups for the users each time, despite them already being set. The list of groups it is setting for the user contains each group twice, in what seems to be a random order, like this: notice: //default/virt_all_users/User[cmanly]/groups: groups changed ''sysadmin,oracle,feeds,vrtsadm,devel,backup'' to ''backup,devel,oracle,sysadmin,sysadmin,oracle,feeds,vrtsadm ,devel,backup,feeds,vrtsadm'' Any suggestions? I''m not sure even where to begin. This is Solaris 10, BTW. The order of the groups in the "changed from" list matches the order in the output of ''id -a''. Thanks! - Chris Manly
On Nov 5, 2007, at 12:00 PM, Christopher Manly wrote:> I''ve added in some initial user management to my growing puppet > configs, > and I''m seeing an odd behavior in that it is trying to set the groups > for the users each time, despite them already being set. The list of > groups it is setting for the user contains each group twice, in what > seems to be a random order, like this: > > notice: //default/virt_all_users/User[cmanly]/groups: groups changed > ''sysadmin,oracle,feeds,vrtsadm,devel,backup'' to > ''backup,devel,oracle,sysadmin,sysadmin,oracle,feeds,vrtsadm > ,devel,backup,feeds,vrtsadm'' > > Any suggestions? I''m not sure even where to begin.Is anyone else seeing this behaviour, on Solaris or otherwise? I know others are using Solaris, so I''d hope it''d be consistent. What release of Puppet and Ruby are you using? -- Never esteem anything as of advantage to you that will make you break your word or lose your self-respect. -- Marcus Aurelius Antoninus --------------------------------------------------------------------- Luke Kanies | http://reductivelabs.com | http://madstop.com
I finally figured out what I was doing wrong here. I''d missed this critical piece of the documentation: "Multiple groups should be specified as an array" Amazing how having correct syntax leads to correct behavior! Christopher Manly wrote:> Hi, > > I''ve added in some initial user management to my growing puppet configs, > and I''m seeing an odd behavior in that it is trying to set the groups > for the users each time, despite them already being set. The list of > groups it is setting for the user contains each group twice, in what > seems to be a random order, like this: > > notice: //default/virt_all_users/User[cmanly]/groups: groups changed > ''sysadmin,oracle,feeds,vrtsadm,devel,backup'' to > ''backup,devel,oracle,sysadmin,sysadmin,oracle,feeds,vrtsadm > ,devel,backup,feeds,vrtsadm'' > > Any suggestions? I''m not sure even where to begin. > > This is Solaris 10, BTW. The order of the groups in the "changed from" > list matches the order in the output of ''id -a''. > > Thanks! > > - Chris Manly > > _______________________________________________ > Puppet-users mailing list > Puppet-users@madstop.com > https://mail.madstop.com/mailman/listinfo/puppet-users >
On Nov 21, 2007, at 3:52 PM, Christopher Manly wrote:> I finally figured out what I was doing wrong here. I''d missed this > critical piece of the documentation: > > "Multiple groups should be specified as an array" > > Amazing how having correct syntax leads to correct behavior!Can you file that as a bug anyway? It should still behave correctly, even if ''correctly'' isn''t the behaviour you want. -- Those who speak most of progress measure it by quantity and not by quality. --George Santayana --------------------------------------------------------------------- Luke Kanies | http://reductivelabs.com | http://madstop.com