[Puppet Users] Exporting custom fact to PuppetDB ok with command but KO with daemon

2014-11-27 Thread Vincent Miszczak
Hello, Nearly everything is in the title. When I manually run a puppet agent --test on a host (let's say host1) that export @@something, I can get something on another host (let's say host2) and I'm happy. Later, when the daemon on host1 runs, it still exports @@something but custom facts

[Puppet Users] export concat::fragments does not work

2014-10-06 Thread Vincent Miszczak
Hello, I need to export concat::fragment on some nodes and gather the results on some other. To create the export I do something like : @@concat::fragment{/myfile-$fqdn: target=/myfile } but on the export node I get : Invalid relationship [...] because Exec[concat_/myfile] doesn't seem to

Re: [Puppet Users] Re: require broken with create_resources() ?

2014-08-21 Thread Vincent Miszczak
I've done some tests : Foreman really just reply a YAML hash with the class name and its parameters (there is a viewer, it just output what it should). I've been trying parse order issue (myclass is output after applications), but having anotherclass that come before, it does not work. I've

[Puppet Users] require broken with create_resources() ?

2014-08-20 Thread Vincent Miszczak
Hello, I have a define like this : define application::install($root,$url,$user=root) { include git #Puppet wants a command to start with /something... $cmd=/bin/echo 1{ cd $root||mkdir $rootcd $root ; }git clone -b prod $url . $unless=/bin/ls -alh $root |grep '.git' exec{$cmd:

Re: [Puppet Users] Re: require broken with create_resources() ?

2014-08-20 Thread Vincent Miszczak
I've simplified things a bit in the description to make it easy to read. I don't really have $apps = { test = { url= https://mygitrepos/myapp.git;, root= /opt/apps/myapp, user=root, require=Class[myclass], } } Instead, I pass a YAML hash through an ENC (Foreman to be

[Puppet Users] Dynamically assign files to hiera hierarchy

2014-05-02 Thread Vincent Miszczak
Hi, I'd like to add things dynamically to :hierarchy: when I use hiera. I'd like to be able to do the following : in site.pp: hiera_roles() hiera_roles() would search in hiera for something like : mynode.yaml: roles: - roles/appserver - roles/databaseserver and I could have :

[Puppet Users] Re: Dynamically assign files to hiera hierarchy

2014-05-02 Thread Vincent Miszczak
) end end end end Le vendredi 2 mai 2014 16:11:51 UTC+2, Vincent Miszczak a écrit : Hi, I'd like to add things dynamically to :hierarchy: when I use hiera. I'd like to be able to do the following : in site.pp: hiera_roles() hiera_roles() would

Re: [Puppet Users] Re: Dynamically assign files to hiera hierarchy

2014-05-02 Thread Vincent Miszczak
have to think about it. Any help is welcome. Le vendredi 2 mai 2014 18:53:57 UTC+2, Felix.Frank a écrit : On 05/02/2014 06:43 PM, Vincent Miszczak wrote: For my example, I have just included hiera_hook(roles) in site.pp to achieve to behavior I described previously. Uhuh. How