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
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
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
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:
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
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 :
)
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
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