puppetlabs / pupperware

Container fun time lives here.
Other
183 stars 67 forks source link

Allow management of puppet UID and GID values and names? #200

Closed Wildcarde closed 4 years ago

Wildcarde commented 4 years ago

Use Case

While we are currently using the stock puppet uid and gid for our puppet installs we are moving towards normalizing a lot of service accounts, user uids, and groups with our parent organization it would be good to be be able to set the internal ids in the containers to mirror the on system ones used for access control to environment folders and the like.

Describe the Solution You Would Like

I suspect this isn't going to be quite as trivial as it sounds but just having ENVVAR overrides for username/groupname/uid/gid would be great.

Describe Alternatives You've Considered

Configuring in with a RUN command for user add and the USER setting seems like it wouldn't work just because the servers seem to expect to launch as root then pick the specific user they are running on from the config file. Otherwise this approach might work as well letting you just make a derived image with the settings required (actually you might be able to do this anyway and just use usermod and groupmod to set the values?)

Wildcarde commented 4 years ago

I resolved this by making a derivative container and forcing the UID/GID settings there.