[rudder-users] Deploy specific files by node with 1 directive
Benoit LAURENT
benoit.laurent at ymail.com
Wed Nov 19 18:35:13 CET 2014
Hello,
I would like deploy with configuration files in my machine.
But if I used Rudder I must create 1 rule for each machine.
I would like to introduce to directives the hostname version.
For example:
In my /var/rudder/shared-files/ I commit one directory by hostname
and I put in configuration files:
tree shared-files
shared-files
host1
mysql.conf
host3
babla.conf
postgresql.conf
hostname43
And after I create directive "copy shared file." with copy from
shared-files/${HOSTNAME/UUID}/* TO /etc/rudder/conf/ .
Other raisoning, I would like to copy to all postgres node groups same
files by "role":
shared-files
default <= defaut conf for all nodes
mysql.conf
host3 <= errase conf for host3 node
mysql.conf
And after I create directive "copy shared file." with copy from
shared-files/${AUTOPATH}/* TO /etc/rudder/conf/ and rudder try to
copy from shared-files/host3 and if does not exists,
shared-files/default .
It it an example. And I dont know if it is a good raisoning: is it
possible to proceed with other method ?
Regards,
Benoit
More information about the rudder-users
mailing list