Quantcast
Channel: Ask Puppet: Puppet DevOps Q&A Community - RSS feed
Viewing all articles
Browse latest Browse all 6104

Duplicate declaration errors

$
0
0
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

Viewing all articles
Browse latest Browse all 6104

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>