Ask Your Question
0

Create local users with a freeIPA environment?

asked 2015-06-24 11:32:40 -0500

mlanghor gravatar image

We're rolling out RedHat's version of freeIPA, and I'm running into an issue now with managing users locally.

Yea, it's kinda wonky, but we have all of our application accounts defined in IPA but disabled. Where the applications will be running we'd have them configured as local users. The accounts being in IPA simply to provide uid/gid lookups with shared filesystems.

This causes issues with Puppet trying to create the account, since useradd states that the user exists.

Any way in puppet to work around this, other than going right to the /etc/passwd, /etc/shadow, /etc/group files?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2015-07-26 00:41:23 -0500

johnnyb04 gravatar image

updated 2015-07-30 07:42:28 -0500

Have you tried the forcelocal attribute for the user resource? For instance...

user{ 'localusers': name => 'bob', ensure => present, forcelocal => true; }

https://docs.puppetlabs.com/references/latest/type.html#user-attribute-forcelocal

edit flag offensive delete link more

Comments

I hadn't tried that param. Thanks! should be much better than a file_line

mlanghor gravatar imagemlanghor ( 2015-12-08 12:50:13 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2015-06-24 11:32:40 -0500

Seen: 315 times

Last updated: Jul 30 '15