Yes, that's what I meant, if it were available I would use it. But I don't 
think useradd knows how to deal with it because AFAIK it only creates local 
users. The same about /etc/passwd could be said about 
/etc/sysconfig/network. You might want to control it partially only, not 
the whole content of the file. In this last case, it is easier to solve the 
problem if you are dealing with templates. Then , you can just set a 
variable and the whole thing is done. But with /etc/passwd it is not 
possible.

Em segunda-feira, 6 de maio de 2013 11h15min52s UTC-3, Martin Langhoff 
escreveu:
>
> On Mon, May 6, 2013 at 8:49 AM, Bernardo Costa <[email protected]<javascript:>> 
> wrote: 
> > Well, I'll tell you that for now some kind of configuration is difficult 
> to 
> > be done with puppet. At least I couldn't find a way to do it. Ex: 
> > controlling a /etc/passwd file but partially with a libnss compat 
> syntax. 
> > This means entries of local users are no controlled but entries 
> beginning 
> > with a '+' are. As I couldn't find a way to do it, for now it is not 
> being 
> > controlled by puppet. 
>
> Interesting -- that sounds like something that Puppet's 
> user/useradd.rb could be taught about? If /sbin/useradd has support 
> for it, I guess it should be a reasonable patch. If not, that's a 
> whole another kettle of fish... 
>
> I guess what I mean to say is: if Puppet had support for that case, 
> you'd use it. There aren't fundamental or practical reasons no to. Is 
> that correct? 
>
> cheers, 
>
>
>
> m 
> -- 
>  [email protected] <javascript:> 
>  -  ask interesting questions 
>  - don't get distracted with shiny stuff  - working code first 
>  ~ http://docs.moodle.org/en/User:Martin_Langhoff 
>

-- 
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/puppet-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to