希望有人能帮我解决我的问题)
所以,我有几个由puppetpipe理的VHost,包括DNS(unbound)。 一个虚拟主机被删除前一段时间,并最近重新创build新的IP地址(我不能使用旧IP :()。但是,当在puppet运行在DNS服务器上,我得到了下一个错误:
Nov 17 15:30:19 dns puppet-agent[39154]: Could not retrieve catalog from remote server: Error 400 on SERVER: Duplicate declaration: Unbound::Record[host.example.com] is already declared in file puppetdb_entry.pp:13; cannot redeclare at puppetdb_entry.pp:13 on node dns.example.com
这里是puppetdb_entry.pp的内容:
define component::unbound::puppetdb_entry ( $hostname, $ipaddress_eth0, $fqdn = $name ) { $desired_fqdn = "${hostname}.${component::unbound::puppetdb_hosts::mock_domain}" unbound::record { $desired_fqdn: type => 'A', content => $ipaddress_eth0, ttl => 380 } }
我已经阅读了有关serverfault的相关主题,但其中大部分都声明参数两次,但我不(至less我不能看到我声明两次)。
所以我希望你们能帮我明白我的错在哪里。
提前致谢!