search for: allowdupe

Displaying 15 results from an estimated 15 matches for "allowdupe".

2017 Apr 19
2
PUPPET - group IDS
hope thus comes under the remit of this mailking list... We use puppet, and Im trying to come up with "code" that will create two user accounts with a shared groiup ID eg? user1 with UID 1000user 2 with UID 1001 but I would like them BOTH to share the GID of 2000 I've tried the following accounts::groups:? ? jointgroup:? ? ? ? gid: '2000' accounts::users: ? ? user1:? ? ? ?
2011 Dec 10
5
create user and push out keys.
Hello Im just been working with puppet, the first usecase i have is to set up a system to create users and then push ssh keys on this machines in the create users .ssh files. I just started with puppet so i am a bit cluesless, Can someone push me in the right direction? Im having a centos enviorment. -- You received this message because you are subscribed to the Google Groups "Puppet
2007 Jun 11
4
freeBSD User provider
...property == :ensure # the value needs to be quoted, mostly because -c might # have spaces in it if value = @model.should(property) and value != "" cmd << flag(property) << value end end if @model[:allowdupe] == :true cmd << "-o" end + if @model.managehome? + cmd << "-m" + end return cmd end i see that the provider user [:allowdupe] == :true while the linux one use allowdupe? so i don''t know which is...
2017 Apr 19
0
PUPPET - group IDS
...'/home/user2'? ? ? ? shell: '/bin/bash'? ? ? ? password: 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX' > But when I trfy and use this puppet agent -tv complains when trying to create user2 that GID 2000 is slready used . > > how may I manage this? I haven't used the "allowdupe" option, so I don't know if it works for GIDs, but supposedly this works: user { 'user1': uid => 1000, gid => 2000, ..., allowdupe => true } user { 'user2': uid => 1001, gid => 2000, ..., allowdupe => true } In YAML-ese,...
2009 Aug 04
3
Managing about 30 users?
I have about 30 dev. and operation users on my machines, is there a recipe anywhere for doing this? The best practices doc on the wiki is incomplete and confusing. Also, any workaround for the ssh_authorized_key bug in 24.8? All I really want to do is create users, home directories and put ssh keys in them, but it tries to add the keys first, so it doesn''t work.
2006 Dec 03
12
Problem with user type on 0.20.1... uses group "absent"
...type with puppet 0.20.1... this worked before with 0.19.x at least, not sure about 0.20. But I''ve got adduser.pp: <snip> define adduser($uid, $gid, $groups="users", $membership="minimum") { group { $name: gid => $gid, allowdupe => false, ensure => present } user { $name: uid => $uid, gid => $gid, allowdupe => false, ensure => present, groups => $groups, membership => minimum } } </...
2007 May 11
2
Can you use a define for a virtual type?
...$sysgroup = "sysadmin", $shell = "/bin/bash", $basedir = "/home.local", $ensure = "present" ) { group { $user: gid => $uid, ensure => $ensure, allowdupe => false, } user { $user: uid => $uid, gid => $uid, comment => $comment, home => "/home.local/$user", shell => $shell, groups => [ "$sysgroup", "users" ], ensure => $ensure,...
2009 Apr 21
1
realizing virtual ssh_authorized_key
...a couple of files): class user::virtual { @user { "seph": ensure => "present", uid => "2001", comment => "seph", home => "/home/seph", shell => "/bin/bash", allowdupe => false, managehome => true, } @ssh_authorized_key { "seph-2008": ensure => present, key => "...", type => "ssh-dss", name => "seph@macbook-2008", user => seph, }...
2011 Nov 29
1
How do I require a resource in a definition based on an array parameter?
...ire => Group[$username], ensure => present, uid => $uid, gid => $uid, groups => $groups, comment => $fullname, shell => $shell, managehome => true, allowdupe => false, } ssh_authorized_key { "${username}_authkey": user => $username, ensure => present, key => $authkey, type => $authkey_type, } } In the user resource, I am requiring the user&...
2009 Sep 18
5
Using variables in virtual resources
Hi. I''ve defined a virtual user "kenneth", and depending on a variable in the node definiton I''d like to add the users to different groups. Consider this example: ###### Code start node "server.example.com" { $server_type = "typeA" realize User[kenneth] } @user {"kenneth": ensure => present, uid => 1000,
2012 Jun 07
4
Dealing with multiple gid changes
So I discovered yesterday that if puppet changes the gid of a group it doesn''t go through the file system and update them with the new correct gid (at least this was the case on RHEL5 and client puppet v2.6.16 and puppetmaster 2.7.12). Now I thought that it might be possible to have puppet execute something like find /home/ -group <old_gid> | xargs chgrp groupname. However
2007 Aug 16
0
No subject
...} } user { $name: ensure => $ensure, uid => $uid, gid => $pgroup, groups => $groups, comment => $fullname, home => "${homefs}/$name", shell => $shell, allowdupe => false, #require => Group[$pgroup] # seems to be broken for some reason. } file { "${homefs}/$name": ensure => directory, owner => $home_owner, group => $home_group, mode => 750, require => User[...
2011 Aug 09
1
HP-UX user resource and shared homedir
Hi, on HP-UX we want some users to have the same homedir. Homedir is managed by puppet as file resource. We now want to move the users to another primary group. useradd.sam complains: err: /User[XXX]/gid: change from 3 to 0 failed: Could not set gid on user[XXX]: Execution of ''/usr/sam/lbin/usermod.sam -F -g 0 XXX'' returned 45: Cannot modify user ''XXX'':
2007 Jan 24
3
Another ''found a bug'' problem - This time with user purging.
Ok, given the statement on the web page about unlesssystemuser under Resources ( http://reductivelabs.com/projects/puppet/documentation/typedocs.html#resources), I assume that users can be purged. However, when I attempt to do this with resources { user: purge => true, noop => true } and what I get is: err: Found a bug: private method ''split'' called for nil:NilClass.
2007 Aug 22
12
Virtual resource not found
Hi All, I asked on IRC but didn''t have everything organized and most people seemed busy. Hoping someone can see what I''m missing here. I''m trying to create a network module, used similar to the ''users'' configuration described in the Best Practices document. I have a users module which has that and it works with similar syntax to below. If I