Hi all,

I need a Puppet type that act like this :

class1 {

  mytype { "name:
    command => "command = YY"
  }
}

class2 {

  mytype { "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 tried erb files but it doesn't fit my needs.


Here are my questions :

Is it possible :) ?
Is there a builtin type to do these ?
Do I have to make a type and a provider ?
How can I purge myfile.cfg only once when puppet run on the client ?

Thanks for your help !

--

Florent PAILLOT



--
You received this message because you are subscribed to the Google Groups "Puppet 
Users" 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-users?hl=en.

Reply via email to