On Sat, Sep 24, 2011 at 04:02:22PM +0100, R.I.Pienaar wrote:
> 
> 
> ----- Original Message -----
> > Thanks for the reply.
> > 
> > 
> > I modified the rc script to run as a user.
> > But now I'm facing the following problem:
> > I have to include some nasty puppet code for adding the service
> > before i can use the service resource type.
> > And the service resource type returns ok, but the service is in fact
> > not started.
> > When i do it manually, it requires a password for that user.
> > So, I tried to manage the user with puppet and provided a password,
> > but get the message:
> > Provider useradd does not support features manages_passwords; not
> > managing attribute password
> > I know this is a problem with Puppet and CentOS, but I have
> > ruby-shadow and shadow-utils installed on my CentOS 6.0 VM.
> > 
> > 
> > I also don't know if this is going to help with starting the service.
> > I want to use the service type to start the service with a specific
> > user, but without asking for a password.
> 
> you should use su in your script to switch users to the one the service
> should run as.

Actually, runuser is better than su for use in init scripts.

-- 
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+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.

Reply via email to