Offhand, does anyone know the difference between the 2 constructs below to manage secondary groups ? This is the ''groupadd'' provider I think (CentOS). Think I''d prefer the former if the result is the same (I create these users in a definition and it''s simpler to not touch it). group { "foo": members => [ "eeny", "meeny", "miney" ] } and user { "eeny": ... groups => ["foo"] ... } user { "meeny": ... groups => ["foo"] ... } user { "miney": ... groups => ["foo"] ... } -- 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.
On Mon, Mar 15, 2010 at 09:31:54AM +0000, Dick Davies wrote:> Offhand, does anyone know the difference between the 2 > constructs below to manage secondary groups ? > This is the ''groupadd'' provider I think (CentOS). > Think I''d prefer the former if the result is the sameThe result will be the same. How did you think it might be different? The path to execution within Puppet will be different, which may or may not matter to you. -- Bruce Remember you''re a Womble. -- 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.
On Mon, Mar 15, 2010 at 9:52 AM, Bruce Richardson <itsbruce@workshy.org> wrote:> On Mon, Mar 15, 2010 at 09:31:54AM +0000, Dick Davies wrote: >> Offhand, does anyone know the difference between the 2 >> constructs below to manage secondary groups ? >> This is the ''groupadd'' provider I think (CentOS). >> Think I''d prefer the former if the result is the same > > The result will be the same. How did you think it might be different?Was thinking of operational quirks - whether they both support ensure = absent, etc. But yeah, i suppose they both edit /etc/groups at the end of the day.> The path to execution within Puppet will be different, which may or may > not matter to you. > > -- > Bruce > > Remember you''re a Womble. > > -- > 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. > >-- 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.
Ah, turns out the group type doesn''t support the ''members'' attribute on CentOS anyway - dilemma avoided :) On Tue, Mar 16, 2010 at 11:20 AM, Dick Davies <sisred@cf.ac.uk> wrote:> On Mon, Mar 15, 2010 at 9:52 AM, Bruce Richardson <itsbruce@workshy.org> wrote: >> On Mon, Mar 15, 2010 at 09:31:54AM +0000, Dick Davies wrote: >>> Offhand, does anyone know the difference between the 2 >>> constructs below to manage secondary groups ? >>> This is the ''groupadd'' provider I think (CentOS). >>> Think I''d prefer the former if the result is the same >> >> The result will be the same. How did you think it might be different? > > Was thinking of operational quirks - whether they both support ensure > = absent, etc. > But yeah, i suppose they both edit /etc/groups at the end of the day. > >> The path to execution within Puppet will be different, which may or may >> not matter to you. >> >> -- >> Bruce >> >> Remember you''re a Womble. >> >> -- >> 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. >> >> >-- 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.