Lutz Bergner
2010-Mar-24 17:54 UTC
[Puppet Users] problems with project property of User resource
Hi, I wanted to set the project property of a Solaris user after realizing the user. Have already created the project by adding a line to /etc/ project. The user is created in virtual::user class wich is inherited by the target class to be able to add the project property. The project of the user xxxx gets not set properly and remains default when I use the project property ! Had to fall back to an Append_if_no_such_line solution. I did the following: class xxxxxx inherits virtual::user { . . . append_if_no_such_line { "XXXX-Server-Project": file => "/etc/project", line => "projectname:9998:XXXX Server Project:xxxx:xxxx:process.max-file-descriptor=(priv,40960,deny)" } realize(User["xxxx"], Group["xxxx"] ) User[username] {project => "projectname", require => [Group[xxxx], Append_if_no_such_line["XXXX-Server-Project"]]} } Thanks in advance for any help Lutz -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Martin Englund
2010-Mar-27 16:19 UTC
[Puppet Users] Re: problems with project property of User resource
Lutz, On Mar 24, 6:54 pm, Lutz Bergner <lutz.berg...@tomtom.com> wrote:> I wanted to set the project property of a Solaris user after realizing > the user. Have already created the project by adding a line to /etc/ > project. The user is created in virtual::user class wich is inherited > by the target class to be able to add the project property. The > project of the user xxxx gets not set properly and remains default > when I use the project property ! Had to fall back to an > Append_if_no_such_line solution. >the user type doesn''t create the project, it just assigns the project property of the user, so you have to create the project first. I''m going to create a ticket for a project type. cheers, /Martin -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.