[Puppet Users] Re: Merging Directories

2009-02-07 Thread chakkerz
Heh, yeah, doing that sort of things (recurse into /etc) seems dangerous. What i'm using this for though is to merge the bb config that is generic and the one that is OS dependent. Also i use it to deploy some files into /opt/sbin. Thanks for your thoughts though :) i'll keep them in mind chakke

[Puppet Users] Re: Merging Directories

2009-02-05 Thread Luke Kanies
On Jan 29, 2009, at 4:15 PM, chakkerz wrote: > > Hello there > > I'm deploying a program which has generic and OS specific (as well as > architecture, but that's a minor issue). So in essence i'm deploying > from blah_generic/etc recursive and then blah_linux/etc . I need the > files from both ope

[Puppet Users] Re: Merging Directories

2009-02-02 Thread chakkerz
Yeah, looks like it works a treat. The collision occurs on the container (the directory) not the files. I guess if there is a file collision, then the second file will win, because of the require =>s It took a while for the source param bit to get through, but that's a good idea ... reduces typos

[Puppet Users] Re: Merging Directories

2009-02-02 Thread Andrew Shafer
This seems much better to me. Specify what you want directly. Is there ever going to be more than one file that could collide? You probably only need the $bbVersion in the source param that way you can use one name and get rid of the path. On Sun, Feb 1, 2009 at 11:02 PM, chakkerz wrote: >

[Puppet Users] Re: Merging Directories

2009-02-01 Thread chakkerz
ensure => [ directory, present], seems to do the trick file { "/var/bb/$bbVersion.linux/etc": # changed path=> "/var/bb/bb/ linux_etc", path=> "/var/bb/bb/

[Puppet Users] Re: Merging Directories

2009-02-01 Thread chakkerz
Hello again Another day another thing i haven't done before :) I realize that i've got that workaround above, but i really don't want to have to do this, the reason being: i have scripts in /opt/sbin , they are deployed as part of the install, and other users deploy service scripts for locally

[Puppet Users] Re: Merging Directories

2009-01-29 Thread chakkerz
Ok, i've got a working workaround, but is there a neater way: class blah {         if (skip_blah != "true")         {                 ## deploy generic                 # transfer generic data                 file                 { "/var/blah/blah_v2":                         path    => "/

[Puppet Users] Re: Merging Directories

2009-01-29 Thread chakkerz
I think i'm deluding myself more than usually that above example should not work, because it matches my code, but the error message: err: //Node[puppetslave.example.org]/defaultnode/shared-default/ bigbrother/File[/var/bb/bbc1.9e-btf_linux/etc]/ensure: change from absent to file failed: Could