' = { port = 8658 },
}
so that I can access more than just the cluster name in each template.
On Friday, July 25, 2014 6:56:57 AM UTC-7, Yanis Guenane wrote:
On 07/24/2014 08:08 PM, senorsmile wrote:
For example, I have an array like this:
clusters = [
'cluster1
I have solved this using create_resources
http://docs.puppetlabs.com/references/latest/function.html#createresources
which converts the hash into arrays that a define can digest.
On Friday, July 25, 2014 10:27:21 AM UTC-7, senorsmile wrote:
So, I have this partially working.
in /etc
this also:
% @clusters.each do |key,value| %
cluster name is %=key % and cluster port is %= value %
% end -%
On Fri, Jul 25, 2014 at 8:56 PM, senorsmile senor...@gmail.com
javascript: wrote:
I have solved this using create_resources
http://docs.puppetlabs.com/references/latest/function.html
For example, I have an array like this:
clusters = [
'cluster1',
'cluster2',
'cluster3',
'cluster4',
]
I then have a cluster.init.erb that looks soemthing like this:
start on runlevel [2345]
stop on runlevel [!2345]
expect fork
respawn
% @clusters.each do | cluster | -%
env