Displaying 2 results from an estimated 2 matches for "validproperties".
2007 Jun 11
4
freeBSD User provider
...here is what i think for the provider:
puppet-0.22.4/lib/puppet/provider/user/pw.rb
add line:
+ has_features :manages_homedir, :allows_duplicates
change this command (+ on the lines addedd)
def addcmd
cmd = [command(:pw), "useradd", @model[:name]]
@model.class.validproperties.each do |property|
next if 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...
2013 Apr 05
2
Flush provider - Differentiating between new resource and modification?
Morning all
I''m working on converting some of my NetApp providers to prefetch/flush
style to try and optimize performance.
I''ve hit an issue on my Netapp_user provider, around handling resource
creation versus resource modification?
What''s the easiest way to differentiate?
Current code is here: