I am trying to do this
class installzabbix ()
{
class { 'enablerepo::zabbix' }->
class { 'haproxy::zabbix': }->
class { 'zabbix::server': }->
class { 'pacemaker::zabbix': }
}
This is resulting in duplicate declaration errors such as
Error: Duplicate declaration: Service[zabbix-server] is already declared in file /etc/puppet/modules/zabbix/init.pp:34; cannot redeclare at /etc/puppet/modules/pacemaker/init.pp:25 on node testsystem.local
There are many more. The classes are created to work on their own.
Is there any way to get the parser to ignore duplicate decs?
If not, what can I do here?
Thanks
↧