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

Issue with define

$
0
0
Hi Puppet Experts, I am having a trouble with duplicate declaration from an outside class. I want to ensure this file independently from another class. Googling I found the define but no luck: err: Could not retrieve catalog from remote server: Error 400 on SERVER: Duplicate declaration: File[/opt/splunk/etc/system/local/authentication.conf] is already declared in file /export/puppet/environments/production/modules/splunk/manifests/standalone/conf_restart.pp at line 26; cannot redeclare at /export/puppet/environments/production/modules/splunk_plataforma/manifests/ldap.pp:15 on node a1-zock1.host.intranet My actual snippet is: class splunk_plataforma::ldap { case $hostname { 'a1-zock1', 'a1-zock2': { if defined(File["/opt/splunk/etc/system/local/authentication.conf"]) { file { "/opt/splunk/etc/system/local/authentication.conf": ensure => present, owner => "splunk", group => "splunk", mode => 644, source => "puppet:///modules/splunk_plataforma/authentication.conf", } } } } } I tried to use the original class instead of file. No luck too. I hope everyone can help me out. 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>