search for: managehom

Displaying 20 results from an estimated 36 matches for "managehom".

Did you mean: managehome
2007 Oct 18
3
Managehome not working in User type in Linux OS
...=> "$fullname", gid => "$group", groups => $ingroups, membership => minimum, uid => "$uid", shell => "/bin/bash", home => "/home/$name", managehome => true } } Any view is appreciated. -- Deepak _______________________________________________ Puppet-users mailing list Puppet-users@madstop.com https://mail.madstop.com/mailman/listinfo/puppet-users
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
2009 Feb 24
6
User/managehome with useradd provider on CentOS
Hi, When you set managehome to false on a User ressource, homedir will still be created on a CentOS box as the -M flag is not passed to useradd. $ diff -u /usr/lib/ruby/site_ruby/1.8/puppet/provider/user/ useradd.rb.bak \ /usr/lib/ruby/site_ruby/1.8/puppet/provider/user/useradd.rb --- /usr/lib/ruby/site_ruby/1.8/puppet...
2013 Apr 19
12
How to pass puppet/hiera veriable to external script ? Do I need to ?
Hi, I have a problem with running puppet with hiera based data. I am trying to cleanup user accounts on a range of servers (to have the same uid/gid). When I create existing account but with different uid/gid it doesn''t change files group ownership so I need to run a script which cleanups after cleanup ;-) I use the following code: --- :backends: - yaml :hierarchy: -
2013 Sep 12
2
testing for truth, are the docs correct?
...f-statements, you can test for truth with syntax like this: if $is_virtual == ''true'' { AFAICT that''s not the case. The quotes around ''true'' make the comparison always fail. Here''s my test case class users { define u($managehome=true) { notice("The value is: ${managehome}") # <== says it''s true if $managehome == ''true'' { notice("...yes, it is true") # <== not reached } else{...
2013 May 20
10
Problem creating user with Puppet
...eate a user with Puppet, using following code: user { "clavis": ensure => "present", home => "/home/clavis", name => "clavis", shell => "/bin/bash", managehome => true, } User is created properly, but home directory is not there, although I do have managehome => true in config. Any idea what might cause the problem ? Thanks in advance, Dusan -- You received this message because you are subscribed to the Google Groups "Puppet Users...
2008 Oct 16
5
virutal resources and ssh_authorized_key
Hello! I''ve got question - how to use ssh_autorized_key as a virtual resource? I''ve got bunch of users and ssh_authorized_key virtual resources, but only users gets to the target system - ssh keys not... I write something like: class admins { @user { "username": ... } @ssh_authorized_key { "username": ensure => present, key => "...",
2011 Jun 10
11
cannot manage home directories
...; ''staff'', comment => ''comment'', ensure => present, home => ''/Users/sysop'', shell => ''/bin/bash'', managehome => true, password => ''hash'', } I run the command puppet init.pp to apply it (mac osx 10.6) and I get "Parameter managehome failed: User provider directoryservice can not manage home directories at /private/ectic/puppet/init.pp:11 I looked at...
2011 Nov 28
11
Is it possible to conditionally replace a file ?
As far as I can tell, the "replace" parameter is all or nothing. What I am looking for is something like the exec/onlyif parameter that I can use to conditionally replace a file. Any thoughts ? “Sometimes I think the surest sign that intelligent life exists elsewhere in the universe is that none of it has tried to contact us.” Bill Waterson (Calvin & Hobbes) -- You received this
2007 Jun 11
4
freeBSD User provider
...# 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 best... Also i do not see where is the command to delete a user so perhaps user purging is...
2011 Aug 15
4
trying to resolve group dependency in creating users
...sts/init.pp class users { user { ''ringo'': ensure => present, uid => ''1506'', groups => [''admin''], shell => ''/bin/bash'', home => ''/home/ringo'', managehome => true, password => ''$6$jomSNhWn$AbuCjrUnLgmq5KfGygIcChHxM9Oxodcgv3ngHpbhJdJ4jzbsWt8Aj8aQI6G3WPqFe.mrG42KbD/'', } } And one that creates the group: # cat modules/groups/manifests/init.pp class groups { group { "admin": ensure => present, } }...
2012 Nov 09
2
Passing an array of user groups to a define
...ay, not a comma-separated list. I use the following define: define users::definitions ( $home = "/home/$title", $usergroups = $title, $ifensure = ''present'', ) { user { "$title": home => "$home", managehome => true, ensure => "$ifensure", groups => "$usergroups", } ... } And the following class to call the define: class users { users::definitions { ''rsnapshot'': usergroups => [ ''group1'', '...
2009 Oct 22
2
useradd: invalid numeric argument 'someuser'
...@user { "someuser": ensure => "present", uid => "4061", groups => [ someuser, sshusers ], comment => "Some User", home => "/home/someuser", shell => "/bin/bash", managehome => "true", password => ''$1$VezlG/$SSk0bJto9WNW4NRatiZJP1'', } class user::sshusers inherits user::virtual-users_groups { realize( Group["sshusers"], User["someuser"], ) } --~--~---------~--~----~------------~...
2012 Mar 30
2
Does create_resources support virtual resources?
...er",$system_users) create_resources("@users::mkgroup",$system_groups) } # class users The define (in mkuser.pp): define users::mkuser ( $uid, $gid = undef, $group = undef, $shell = ''/bin/bash'', $home = undef, $ensure = ''present'', $managehome = true, $dotssh = ''ensure'', $comment = ''created via puppet'', $groups = undef, $password = undef, $symlink = undef, $mode = undef ) { <SNIP> } The error: err: Could not retrieve catalog from remote server: Error 400 on SERVER: could not creat...
2012 Nov 15
4
Can I create virtual resources with create_resources function
...way of realizing the users. This is much more flexible than what I can do with this module out of the box. Using the pattern in that module, I tried to do this: class system::virt_users ( $config = undef ) { if $config { $defaults = { ensure => ''present'', managehome => true, shell => ''/bin/bash'' } create_resources(@user, $config, $defaults) } } But that gives me syntax error: Error: Could not retrieve catalog from remote server: Error 400 on SERVER: Syntax error at ''@''; expected '')'...
2009 Apr 21
1
realizing virtual ssh_authorized_key
...ser::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, } } class user::unixadmins i...
2013 May 17
0
Announce: Puppet 3.2.1-rc1 Available
...76664ae (Maint) Give each test a meaningful name ab670d1 (#20742) Handle DNs that cannot be parsed de34775 (#20742) Only use certifcate info if there is a CN Josh Cooper (1): 4274d66 (#20726) Manage home has issues on Solaris Josh Partlow (4): 0588e57 (#20726) Add user managehome acceptance tests 6f92379 Revert "Merge branch ''pull-1512''" 46df39d (#20726) Include password for useradd managehome tests on windows 866ecbc (maint) Change load order for puppet/provider/package/windows/package Matthaus Owens (1): 2576f8f (packa...
2009 Aug 16
3
userdel without -r switch
Hi how do I tell with user type to use userdel with -r short of using exec type? i have a user account called `foo'' so i created a test puppet file local to the system called test.pp # cat test.pp user {"foo": ensure => absent, managehome => true, } when I apply it on solaris or linux the userdel does not use the `-r'' switch (solaris) # puppet -d test.pp debug: Failed to load library ''shadow'' for feature ''libshadow'' debug: Puppet::Type::User::ProviderNetinfo: file nireport...
2011 Nov 29
1
How do I require a resource in a definition based on an array parameter?
...user { $username: require => 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...
2013 Mar 19
1
User Groups (hadnling undefine groups)
...t; $groups, # also tried [ $groups ], same result shell => ''/bin/bash'', home => "/home/${title}", comment => $user[''comment''], password => $user[''hash''], managehome => true, require => Group[$title], } ... -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscribe@go...