Hi all,
I'm trying to use the Puppetlabs haproxy module (
https://forge.puppetlabs.com/puppetlabs/haproxy). Is it possible to use a
module written like this? I'd need Forman to output something like this:
node 'haproxy-server' {
class { 'haproxy': }
haproxy::listen { 'puppet00':
ipaddress => $::ipaddress,
ports => '8140',
}
}
node 'webserver01' {
@@haproxy::balancermember { $fqdn:
listening_service => 'puppet00',
server_names => $::hostname,
ipaddresses => $::ipaddress,
ports => '8140',
options => 'check'
}
}
Thanks,
Gareth
Gareth,
Foreman doesn't handle Puppet Resource Defines natively. More correctly, I
think the Foreman folks would say that Puppet doesn't allow the ENC to
define resources.
You will have to write a wrapper class which contains the defines. I
recently posted an example for another question on using
Razorsedge/puppet-network module.
Sean M. Alderman
Senior Engineer, UDit Systems Integration and Engineering
University of Dayton
salderman1@udayton.edu
"We are not some casual and meaningless product of evolution. Each of us
is the result of a thought of God. Each of us is willed. Each of us is
loved. Each of us is necessary." - BXVI
···
On Wed, Apr 2, 2014 at 11:47 AM, Gareth Allen wrote:
Hi all,
I’m trying to use the Puppetlabs haproxy module (
https://forge.puppetlabs.com/puppetlabs/haproxy). Is it possible to use
a module written like this? I’d need Forman to output something like this:
node ‘haproxy-server’ {
class { ‘haproxy’: }
haproxy::listen { ‘puppet00’:
ipaddress => $::ipaddress,
ports => ‘8140’,
}
}
node ‘webserver01’ {
@@haproxy::balancermember { $fqdn:
listening_service => ‘puppet00’,
server_names => $::hostname,
ipaddresses => $::ipaddress,
ports => ‘8140’,
options => ‘check’
}
}
Thanks,
Gareth
–
You received this message because you are subscribed to the Google Groups
"Foreman users" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to foreman-users+unsubscribe@googlegroups.com.
To post to this group, send email to foreman-users@googlegroups.com.
Visit this group at http://groups.google.com/group/foreman-users.
For more options, visit https://groups.google.com/d/optout.