Project

General

Profile

Actions

Bug #14942

closed

puppet group fails when added to foreman user before puppetserver installation

Added by Dominic Cleal almost 8 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Foreman modules
Target version:
Difficulty:
Triaged:
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 2 (1 open1 closed)

Blocks Foreman - Tracker #8447: Puppet 4 supportClosed11/19/2014

Actions
Copied to Installer - Bug #15804: adding foreman user to puppet group fails if puppetserver disabledNew05/06/2016Actions
Actions #1

Updated by Dominic Cleal almost 8 years ago

Actions #2

Updated by Dominic Cleal almost 8 years ago

  • Status changed from New to Assigned
  • Assignee set to Dominic Cleal
Actions #4

Updated by Dominic Cleal almost 8 years ago

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

Updated by Dominic Cleal almost 8 years ago

  • translation missing: en.field_release set to 136
Actions #6

Updated by Tom Downes over 7 years ago

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

Also available in: Atom PDF