2
votes
2answers
48 views

Is there a way to have puppet create a user's home folder (managehome) but not delete when ensure is 'absent'?

My first thought was doing something like this: define my_user( $name = $title, $ensure = present, $uid, $gid, $password, $groups, $comment, $shell ) { $managehome = $ensure ? { present ...
1
vote
2answers
20 views

How can we ensure that a user who is not realized does not exist in that puppet node?

We declare all our users as virtual resources. E.g.: @user { 'belmin': uid => 2001 comment => 'Belmin Fernandez', groups => ['sysadmins'], } Sometimes we temporarily realize a ...
0
votes
2answers
42 views

puppet nis user management

I started using puppet for managing our RHEL servers. At this point I try to setup the user management. We are running a NIS environment on our campus, so until now I added the line +testuser::::: to ...
2
votes
1answer
16k views

How to disable user's password via puppet securely?

I have my SSH servers setup to use only Public Key authentication with password authentication disabled. When adding users through puppet I would like to disable user passwords. So far I have came ...
0
votes
1answer
152 views

Puppet do wrong command for create user

I have 2 debian boxes. One with puppetmaster, second with puppetd. # puppet -V 2.7.18 In manifest i have: group { "tipadima": ensure => present, } user { "tipadima": ...
2
votes
1answer
164 views

Puppet - groupid (gid) for mysql group differs between prod and dev

I just puppetized mysql and ran into a weird issue where the gid for the mysql group on dev differs from production. Apparently on production I have a user that doesn't exist on the dev environment ...
2
votes
1answer
345 views

puppet loops to create users with values in a raw file

I would like to use puppet to create mailboxes. Basically, I only need a directory to be created when a new user arrives. However, the users list is quite huge and creating a file stanza per user is ...
4
votes
2answers
850 views

puppet execution of a python script where os.system(…) command is not working

I am trying to manage Unix users with puppet. Puppet provides enough tools to create accounts and provide authorized_keys files for instance, but no to set up user password, and it tell to the user. ...
2
votes
1answer
227 views

puppet trying to define global class variables

I'm trying to use puppet as a unix users management. Here is the class I created to add new users: class unix_accounts( $username, $forename, $name, $email, $uid) { user { $username: comment ...
3
votes
2answers
6k views

Adding an existing user to a group with puppet

Is it possible to add an existing user to a group with puppet 2.7.18? We have two modules, each one defines one class : module "user" creates all users, including user foo and user bar. module ...
7
votes
1answer
3k views

How can I have puppet only set password when creating a user?

I want Puppet not to manage a password (i.e., reset it when it's changed) but to set the initial password when Puppet creates the user. I was thinking of doing a notify to an Exec resource that sets ...
3
votes
4answers
1k views

Recommendations on managing dot files for users using Puppet

Goal is to have a collection of dot files (.bashrc, .vimrc, etc.) in a central location. Once it's there, Puppet should push out the files to all managed servers. I initially was thinking of giving ...
0
votes
2answers
603 views

Use Puppet to deploy files to all user's home directory

I want to deploy a simple text file (a git commit message template) to each user's home directory using Puppet. I came across this post which seems very close, but the part I'm not clear on is how do ...
2
votes
2answers
3k views

Puppet - how can i copy a file to several user folders?

Well i was using the info on this: Puppet - Any way to copy predefined custom configuration files for software on clients from the puppet master (host)? But i need some more elaborated, because i ...