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.

Reply via email to