| A standard use case, is when installing a package, to modify the user created by the package to be compliant with enterprise user management (UID/GID/shell/GECOS). Some time, the user can be created before installing the package, but some time it is not possible, as the user is hardcoded in postinstall script of package. This code is working with agent 6.22, but not 6.23. (user/group abrt are not defined on server before run) On 6.23 it works for the group (uses lgroupmod), but not for the user (wrongly uses lusedadd) => incoherence.
package { 'abrt': |
ensure => 'present', |
} |
-> group { 'abrt': |
ensure => 'present', |
gid => '59998', |
forcelocal => true, |
} |
-> user { 'abrt': |
ensure => 'present', |
uid => '59998', |
gid => '59998', |
forcelocal => true, |
} |
|
|
Notice: /Stage[main]/Unx_system::Crash_dump/Package[abrt]/ensure: created (corrective) |
Notice: /Stage[main]/Unx_system::Crash_dump/Group[abrt]/gid: gid changed '173' to 59998 (corrective) |
Error: Could not create user abrt: Execution of '/usr/sbin/luseradd -g 59998 -d /etc/abrt -s /sbin/nologin -u 59998 -M abrt' returned 3: Account creation failed: entry already present in file. |
Error: /Stage[main]/Unx_system::Crash_dump/User[abrt]/ensure: change from 'absent' to 'present' failed: Could not create user abrt: Execution of '/usr/sbin/luseradd -g 59998 -d /etc/abrt -s /sbin/nologin -u 59998 -M abrt' returned 3: Account creation failed: entry already present in file. (corrective) |
|
|