为什么puppetlabs防火墙模块不工作-错误500。不可接受的位置

为什么puppetlabs防火墙模块不工作-错误500。不可接受的位置,puppet,Puppet,我正在尝试在我的Puppet托管节点上安装puppetlabs防火墙。有三种环境,测试/uat/生产。我使用r10k管理这些设备上的模块 在代理上运行时,我运行“puppet agent-t”,返回的错误如下: sudo /opt/puppetlabs/bin/puppet agent -t Info: Using configured environment 'test' Info: Retrieving pluginfacts Info: Retrieving plugin Info: Re

我正在尝试在我的Puppet托管节点上安装puppetlabs防火墙。有三种环境,测试/uat/生产。我使用r10k管理这些设备上的模块

在代理上运行时,我运行“puppet agent-t”,返回的错误如下:

sudo /opt/puppetlabs/bin/puppet agent -t
Info: Using configured environment 'test'
Info: Retrieving pluginfacts
Info: Retrieving plugin
Info: Retrieving locales
Info: Loading facts
Error: Could not retrieve catalog from remote server: Error 500 on SERVER: Server Error: Unacceptable location. The name 'firewall' is unacceptable in file '/etc/puppetlabs/code/environments/test/modules/iptables_new/manifests/init.pp' (file: /etc/puppetlabs/code/environments/test/modules/iptables_new/manifests/init.pp, line: 33, column: 1) on node postfix.example.com
Warning: Not using cache on failed catalog
Error: Could not retrieve catalog; skipping run
“不可接受的位置”是什么意思?我没有更改puppetlabs防火墙模块的任何内容。我刚刚克隆了它并重新命名

以下是Puppet master上的environments.conf:

root@puppet:/home/puppet/environments# cat environments.conf
modulepath = site:modules:$basemodulepath
manifest = manifests/site.pp

任何想法都会很有帮助。

是你写的东西吗?/etc/puppetlabs/code/environments/test/modules/iptables\u new/manifests/init.pp?如果是这样的话,你能给我们看一下代码吗?在错误的路径上进行了大量挖掘之后,我发现在Puppet的5.5版本之后,必须从模块名派生一个类名。更多信息可在此处找到:。考虑到这一点,我将模块名称改为防火墙,它成功了!