Project

General

Profile

Bug #14942

puppet group fails when added to foreman user before puppetserver installation

Added by Dominic Cleal over 5 years ago. Updated about 3 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Foreman modules
Target version:
Difficulty:
Triaged:
Bugzilla link:
Pull request:
Fixed in Releases:
Found in Releases:

Description

When performing a full installation of Foreman on a Debian system with Puppet AIO, the puppet group gets created during the Puppet run.

Previously in a non-AIO installation, the group would probably be created during installation of the Puppet agent package, which is an installer dependency.

[ERROR 2016-05-06 08:32:42 main]  Could not set groups on user[foreman]: Execution of '/usr/sbin/usermod -G puppet foreman' returned 6: usermod: group 'puppet' does not exist
[ERROR 2016-05-06 08:32:42 main]  /Stage[main]/Foreman::Config/User[foreman]/groups: change from  to puppet failed: Could not set groups on user[foreman]: Execution of '/usr/sbin/usermod -G puppet foreman' returned 6: usermod: group 'puppet' does not exist
[ WARN 2016-05-06 08:37:57 main]  /Stage[main]/Puppet::Server::Install/Package[puppetserver]/ensure: created
[ WARN 2016-05-06 08:38:20 main]  /Stage[main]/Foreman_proxy::Config/User[foreman-proxy]/groups: groups changed '' to ['puppet']

However on an RPM AIO installation the ordering happens to be a bit different:

[ WARN 2016-05-05 13:09:47 main]  /Stage[main]/Puppet::Server::Install/Package[puppetserver]/ensure: created
[ WARN 2016-05-05 13:09:48 main]  /Stage[main]/Puppet::Server::Config/File[/opt/puppetlabs/puppet/cache/reports]/group: group changed 'root' to 'puppet'
[ WARN 2016-05-05 13:11:37 main]  /Stage[main]/Foreman_proxy::Config/User[foreman-proxy]/groups: groups changed '' to ['puppet']
[ WARN 2016-05-05 13:12:47 main]  /Stage[main]/Foreman::Config/User[foreman]/groups: groups changed '' to ['puppet']

Related issues

Blocks Foreman - Tracker #8447: Puppet 4 supportClosed2014-11-19

Copied to Installer - Bug #15804: adding foreman user to puppet group fails if puppetserver disabledNew2016-05-06

Associated revisions

Revision ec18f649 (diff)
Added by Dominic Cleal over 5 years ago

refs #14942 - require puppet::server::install first for puppet group (#246)

Revision 9114252e (diff)
Added by Dominic Cleal over 5 years ago

refs #14942 - order install before foreman/foreman_proxy for puppet group (#399)

Revision dc4ceb53 (diff)
Added by Dominic Cleal over 5 years ago

fixes #14942 - require puppet::server::install first for puppet group (#440)

History

#1 Updated by Dominic Cleal over 5 years ago

#2 Updated by Dominic Cleal over 5 years ago

  • Status changed from New to Assigned
  • Assignee set to Dominic Cleal

#4 Updated by Dominic Cleal over 5 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100

#5 Updated by Dominic Cleal over 5 years ago

  • Legacy Backlogs Release (now unused) set to 136

#6 Updated by Tom Downes about 5 years ago

  • Copied to Bug #15804: adding foreman user to puppet group fails if puppetserver disabled added

Also available in: Atom PDF