Foreman installation error

Hello, I'm trying to install Foreman 1.3 on a Scientific Linux 6.4 machine
running Puppet 3.1.1. I'm new to Foreman, so I just ran the default
installer with the following command and errors:

foreman-installer

Could not set home on user[apache]: Execution of '/usr/sbin/usermod -d
/var/www apache' returned 6: usermod: user 'apache' does not exist in
/etc/passwd
/Stage[main]/Apache::Config/User[apache]/home: change from
/home/staff/apache to /var/www failed: Could not set home on user[apache]:
Execution of '/usr/sbin/usermod -d /var/www apache' returned 6: usermod:
user 'apache' does not exist in /etc/passwd
Could not set shell on user[apache]: Execution of '/usr/sbin/usermod -s
/sbin/nologin apache' returned 6: usermod: user 'apache' does not exist in
/etc/passwd
/Stage[main]/Apache::Config/User[apache]/shell: change from /bin/bash to
/sbin/nologin failed: Could not set shell on user[apache]: Execution of
'/usr/sbin/usermod -s /sbin/nologin apache' returned 6: usermod: user
'apache' does not exist in /etc/passwd

I can't find any postings regarding this behavior; maybe somebody in this
group knows what I'm doing wrong? Thanks for any time and help you can give!

-Brian

It looks like you might have the 'apache' user in a directory service,
but the installer tries to manage a few attributes on the account (I'm
not sure why this is necessary), which is failing.

If you can't avoid that, you could try removing the user and group
resources from
/usr/share/foreman-installer/modules/apache/manifests/config.pp.

··· On 18/10/13 17:50, Brian Auron wrote: > Hello, I'm trying to install Foreman 1.3 on a Scientific Linux 6.4 > machine running Puppet 3.1.1. I'm new to Foreman, so I just ran the > default installer with the following command and errors: > > # foreman-installer > Could not set home on user[apache]: Execution of '/usr/sbin/usermod -d > /var/www apache' returned 6: usermod: user 'apache' does not exist in > /etc/passwd > /Stage[main]/Apache::Config/User[apache]/home: change from > /home/staff/apache to /var/www failed: Could not set home on > user[apache]: Execution of '/usr/sbin/usermod -d /var/www apache' > returned 6: usermod: user 'apache' does not exist in /etc/passwd > Could not set shell on user[apache]: Execution of '/usr/sbin/usermod -s > /sbin/nologin apache' returned 6: usermod: user 'apache' does not exist > in /etc/passwd > /Stage[main]/Apache::Config/User[apache]/shell: change from /bin/bash > to /sbin/nologin failed: Could not set shell on user[apache]: Execution > of '/usr/sbin/usermod -s /sbin/nologin apache' returned 6: usermod: user > 'apache' does not exist in /etc/passwd > > I can't find any postings regarding this behavior; maybe somebody in > this group knows what I'm doing wrong? Thanks for any time and help you > can give!


Dominic Cleal
Red Hat Engineering