Hi all,
I try to code a Puppet type that act like this :
class1 {
mytype { "a name":
command => "command = YY"
}
}
class2 {
mytype { "a name":
command => "command = XX",
}
}
On the client, it generate a file :
myfile.cfg
-------------
command = YY
command = XX
I want to purge "myfile.cfg" at each run ( I don't want to use someting like
ensure => absent to remove old stuff)
I don't know where to put the code to delete the file and maintain a state
variable to avoid the deletion for each call of the type.
Should I use prefetch and flush method ?
If someone is able to code the provider, he will have my eternal gratitude :)
Thanks for your help.
Long live Puppet !
--
You received this message because you are subscribed to the Google Groups
"Puppet Developers" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/puppet-dev?hl=en.