Re: [Puppet Users] Ability to deploy a "skeleton" directory

2010-06-26 Thread Patrick Mohr
On Jun 26, 2010, at 12:32 AM, Thomas Bellman wrote: > Jean-Baptiste Barth wrote: > >> I'd like to be able to deploy a skeleton directory through puppet, i.e. >> puppet deploys it only if it does not exist. > [...] >> But I have 2 problems for the moment : >> - if I don't set owner/group, it tak

Re: [Puppet Users] Ability to deploy a "skeleton" directory

2010-06-26 Thread Thomas Bellman
Jean-Baptiste Barth wrote: I'd like to be able to deploy a skeleton directory through puppet, i.e. puppet deploys it only if it does not exist. [...] But I have 2 problems for the moment : - if I don't set owner/group, it takes uid/gid on the puppetmaster, which does not exist on the node ; i

Re: [Puppet Users] Ability to deploy a "skeleton" directory

2010-06-25 Thread Jean-Baptiste Barth
2010/6/26 Patrick Mohr > Do you mean you want the users to be able to change *all* the files? I > just pushed the directory using an exec with a "creates". I think I used a > combination of wget and tar. > Sounds like a good idea, maybe it will be much more simple in my case. Anyway, see my ot

Re: [Puppet Users] Ability to deploy a "skeleton" directory

2010-06-25 Thread Jean-Baptiste Barth
2010/6/25 Silviu Paragina > Change the ownership of the files on the server (but this implies that the > users exists on the server too). Second what puppet version? There were some > bugs in older versions that made puppet hash all the files in a folder if > the folder was maintained by puppet,

Re: [Puppet Users] Ability to deploy a "skeleton" directory

2010-06-25 Thread Patrick Mohr
On Jun 25, 2010, at 2:00 AM, Jean-Baptiste Barth wrote: > - I'd like puppet to let user change some files in the skeleton as they want, > i.e. skip this directory if it just exists > > Do you have an idea about how I could do that ? Do you mean you want the users to be able to change all the f

Re: [Puppet Users] Ability to deploy a "skeleton" directory

2010-06-25 Thread Silviu Paragina
On 25.06.2010 12:00, Jean-Baptiste Barth wrote: Hi, I'd like to be able to deploy a skeleton directory through puppet, i.e. puppet deploys it only if it does not exist. I tried this : file {"/path/to/this/directory": source => "puppet:///files/path/to/the/skeleton", ensure => directory,

[Puppet Users] Ability to deploy a "skeleton" directory

2010-06-25 Thread Jean-Baptiste Barth
Hi, I'd like to be able to deploy a skeleton directory through puppet, i.e. puppet deploys it only if it does not exist. I tried this : file {"/path/to/this/directory": source => "puppet:///files/path/to/the/skeleton", ensure => directory, recurse => true, owner => auser, group => agrou