In ucarp, multiple instances can be run and I have to run two instances
of ucarp. So, what ever I do, either create a custom resource ot
parameterised classes, they will have to be declared twice.
The code can be seen here https://github.com/shadyabhi/puppet-ucarp
I have developed two versions, one with classes and the other with
resources. And both suffer the same issue.
I would really appreciate if anyone can help me with this.
On Thu 25 Oct 2012 02:32:22 AM IST, jcbollinger wrote:
On Wednesday, October 24, 2012 10:07:56 AM UTC-5, Abhijeet Rastogi wrote:
Hi,
So, I am writing a module to install and configure ucarp. There is
only
one module in puppet forge and that is not that good.
In ucarp, same configuration files have to be served on two
servers and
to configure the host I am defining a custom resource
ucarp::host::config. So, for using, I'll have to create this resource
two times on two different servers. So, this resource generates few
files out of which few will be common and hence starts generating
multiple definitions error.
So, to use the module on Host A, a guy will have to first include
ucarp
(to do basic stuff like package installation and making sure
service is
running) and then something like
ucarp::host::config { "ucarp-test":
node_id => '1',
password => "testpass",
interface_primary => 'eth0',
interface_vip => 'eth1',
vip_addr => '1.1.1.1',
vip_addr_netmask => '2.2.2.2',
}
On Host B, everything would be same except the vip_addr value which
results in multiple definition errors for the files that I'm serving.
What is it that can be done?
Resources need to be unique only within the scope of one node. Two
different nodes' resources cannot cause a multiple definition error.
Either I don't understand what you are trying to do, or what you're
actually doing is not what you intend to do.
John
--
You received this message because you are subscribed to the Google
Groups "Puppet Users" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/puppet-users/-/W1fO1ZpxiUcJ.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/puppet-users?hl=en.
--
Cheers,
Abhijeet R
http://blog.abhijeetr.com
--
You received this message because you are subscribed to the Google Groups "Puppet
Users" group.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/puppet-users?hl=en.