What option I need to use to create a system account with "Puppet"? Like the bellow command: useradd -r nagios -s /sbin/nologin -d /var/lib/nagios -m nagios Sorry for this newbie question, I''m new in Puppet configuration :) Thanks ! -- 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.
Am Mon, 29 Mar 2010 18:23:04 -0300 schrieb Darvin Denmian:> What option I need to use to create a system account with "Puppet"? Like > the bellow command: > > useradd -r nagios -s /sbin/nologin -d /var/lib/nagios -m nagios > > Sorry for this newbie question, I''m new in Puppet configuration :) > > Thanks !User { "nagios": gid => "nagios", shell => "/sbin/nologin", home => "/var/lib/nagios", } see type reference "user" (and maybe "group" too): http://docs.reductivelabs.com/references/latest/type.html#id310 - Thomas -- 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.
Hi, Thomas: On Tuesday 30 March 2010 09:47:18 Thomas Mueller wrote:> Am Mon, 29 Mar 2010 18:23:04 -0300 schrieb Darvin Denmian: > > What option I need to use to create a system account with "Puppet"? Like > > the bellow command: > > > > useradd -r nagios -s /sbin/nologin -d /var/lib/nagios -m nagios > > > > Sorry for this newbie question, I''m new in Puppet configuration :) > > > > Thanks ! > > User { > "nagios": > gid => "nagios", > shell => "/sbin/nologin", > home => "/var/lib/nagios", > }No, that won''t do the trick. Useradd -r will honour SYS_UID_MIN-SYS_UID_MAX; whithout it UID_MIN-UID_MAX will cut it. In general, a "-r" account will get an UID somewhere between 100 and 499 while without it, it will go above 500. -- Jesús M. Navarro Ándago Ingeniería - www.andago.com Teléfono: +34 916 011 373 (ext. 29) Móvil: +34 666 431 088 e-mail: jesus.navarro@andago.com C/Alcalde Ángel Arroyo n.º10 2.ªPl. (28904) Getafe, Madrid *Parque Tecnológico de Bizkaia:* c/ Kanala Bidea, Edificio 103, Planta 1ª Izqda. 48170 Zamudio, Bizkaia -- 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 3/30/2010 9:47 AM, Thomas Mueller wrote:> Am Mon, 29 Mar 2010 18:23:04 -0300 schrieb Darvin Denmian: > >> What option I need to use to create a system account with "Puppet"? Like >> the bellow command: >> >> useradd -r nagios -s /sbin/nologin -d /var/lib/nagios -m nagios >> >> Sorry for this newbie question, I''m new in Puppet configuration :) >> >> Thanks ! > > > > User {It''s spelled "user" at this place (with a small u).> "nagios": > gid => "nagios", > shell => "/sbin/nologin", > home => "/var/lib/nagios", > } > > > > see type reference "user" (and maybe "group" too): > > http://docs.reductivelabs.com/references/latest/type.html#id310 > > - ThomasRegards, David -- dasz.at OG Tel: +43 (0)664 2602670 Web: http://dasz.at Klosterneuburg UID: ATU64260999 FB-Nr.: FN 309285 g FB-Gericht: LG Korneuburg -- 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.
Hello, thanks for all replies, but, as you can see in "/etc/login.defs" SYS_UID_MIN 100 SYS_UID_MAX 999 there are some UID for System Account (e.g. apache, postfix,maildrop). Will I need to specify manualy the UID to the new account? Thanks. On Tue, Mar 30, 2010 at 6:36 AM, David Schmitt <david@dasz.at> wrote:> On 3/30/2010 9:47 AM, Thomas Mueller wrote: >> >> Am Mon, 29 Mar 2010 18:23:04 -0300 schrieb Darvin Denmian: >> >>> What option I need to use to create a system account with "Puppet"? Like >>> the bellow command: >>> >>> useradd -r nagios -s /sbin/nologin -d /var/lib/nagios -m nagios >>> >>> Sorry for this newbie question, I''m new in Puppet configuration :) >>> >>> Thanks ! >> >> >> >> User { > > It''s spelled "user" at this place (with a small u). > >> "nagios": >> gid => "nagios", >> shell => "/sbin/nologin", >> home => "/var/lib/nagios", >> } >> >> >> >> see type reference "user" (and maybe "group" too): >> >> http://docs.reductivelabs.com/references/latest/type.html#id310 >> >> - Thomas > > > Regards, David > -- > dasz.at OG Tel: +43 (0)664 2602670 Web: http://dasz.at > Klosterneuburg UID: ATU64260999 > > FB-Nr.: FN 309285 g FB-Gericht: LG Korneuburg > > -- > 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.
Darvin Denmian wrote:> What option I need to use to create a system account with "Puppet"? > Like the bellow command: > > useradd -r nagios -s /sbin/nologin -d /var/lib/nagios -m nagios > > Sorry for this newbie question, I''m new in Puppet configuration :)You can''t do that with the plain user type in Puppet at the moment. There already is filed a feature request for this, though (http://projects.puppetlabs.com/issues/2645), but no-one has stepped up to implement it yet. In the meantime, clone my module "nsc-puppet-utils" using Git from <http://www.nsc.liu.se/~bellman/nsc-puppet-utils.git>. There I have a define rh_sysuser which does what you want. /Bellman -- 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.
Thanks Thomas, I will try your solution ! Thanks for all replies ! On Tue, Mar 30, 2010 at 8:48 AM, Thomas Bellman <bellman@nsc.liu.se> wrote:> Darvin Denmian wrote: > >> What option I need to use to create a system account with "Puppet"? >> Like the bellow command: >> >> useradd -r nagios -s /sbin/nologin -d /var/lib/nagios -m nagios >> >> Sorry for this newbie question, I''m new in Puppet configuration :) > > You can''t do that with the plain user type in Puppet at the moment. > There already is filed a feature request for this, though > (http://projects.puppetlabs.com/issues/2645), but no-one has stepped > up to implement it yet. > > In the meantime, clone my module "nsc-puppet-utils" using Git from > <http://www.nsc.liu.se/~bellman/nsc-puppet-utils.git>. There I > have a define rh_sysuser which does what you want. > > > /Bellman > > -- > 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.