Re: [Puppet Users] Setting validproperties fields in provider modules

2014-04-17 Thread Felix Frank
Hi, On 04/16/2014 06:10 PM, Jim Perry wrote: > Thanks. I am still learning Ruby so I will look into accessors in more > detail. Sure, but note that those aren't the important point. Sticking to @resource should work just as well. > What I am trying to do is call the HPUX provider and use it to s

Re: [Puppet Users] Setting validproperties fields in provider modules

2014-04-16 Thread Jim Perry
Thanks. I am still learning Ruby so I will look into accessors in more detail. What I am trying to do is call the HPUX provider and use it to set the min and max age that gets passed back to the parent. Then I also need to be able to verify the right commands are used to reset the expiration when

Re: [Puppet Users] Setting validproperties fields in provider modules

2014-04-16 Thread Felix Frank
Hmm, I still don't really see what you are intent on doing specifically, to be honest. Looking at https://github.com/puppetlabs/puppet/blob/master/lib/puppet/provider/user/useradd.rb#L195 does this problem not boil down to overriding the passcmd method and adding some kind of case statements to ha

Re: [Puppet Users] Setting validproperties fields in provider modules

2014-04-15 Thread James Perry
The HPUX code I am trying to modify is already in the existing Puppet code base at https://github.com/puppetlabs/puppet/blob/master/lib/puppet/provider/user/hpux.rb. The functionality I am trying to use is to set the value of a specific property so that I can specify the commands to run depe

Re: [Puppet Users] Setting validproperties fields in provider modules

2014-04-15 Thread Felix Frank
On 04/14/2014 06:37 PM, Jim Perry wrote: > Not yet. I don't have it working and I was asking how to get our data > for troubleshooting it first. I see, well, this is unfortunate - debugging this (or even comparing it to working code) will be nigh impossible without looking at your concrete status.

Re: [Puppet Users] Setting validproperties fields in provider modules

2014-04-14 Thread Jim Perry
Not yet. I don't have it working and I was asking how to get our data for troubleshooting it first. On Apr 14, 2014 11:59 AM, "Felix Frank" wrote: > Okay then. > > Is your code up on github or pastebin for direct review? > > On 04/14/2014 05:53 PM, Jim Perry wrote: > >> I know from looking at oth

Re: [Puppet Users] Setting validproperties fields in provider modules

2014-04-14 Thread Felix Frank
Okay then. Is your code up on github or pastebin for direct review? On 04/14/2014 05:53 PM, Jim Perry wrote: >> I know from looking at other modules that I can get the values from >> doing a loop on @resource.class.validproperties and set the value by >> doing value = @resource.should(). -- You

Re: [Puppet Users] Setting validproperties fields in provider modules

2014-04-14 Thread Jim Perry
Not so far. You are the first reply. On Apr 14, 2014 11:52 AM, "Felix Frank" wrote: > Hi, > > sorry for the late reply. > > Did you ever get this fixed? > > Cheers, > Felix > > On 02/20/2014 03:29 AM, HPUX_PUPPET wrote: > > I am still working to the HPUX provider to handle password expirations >

Re: [Puppet Users] Setting validproperties fields in provider modules

2014-04-14 Thread Felix Frank
Hi, sorry for the late reply. Did you ever get this fixed? Cheers, Felix On 02/20/2014 03:29 AM, HPUX_PUPPET wrote: > I am still working to the HPUX provider to handle password expirations > and I have gotten the max and min password age values extracted from the > OS, but for the life of me I

[Puppet Users] Setting validproperties fields in provider modules

2014-02-19 Thread HPUX_PUPPET
I am still working to the HPUX provider to handle password expirations and I have gotten the max and min password age values extracted from the OS, but for the life of me I cannot seem to get them to assign to the :password_max_age and :password_min_age fields in the Ruby code. I know from look