puppet fileserver 提供非模块文件

Tom*_*art 5 configuration-management puppet

我想要服务器文件位于/etc/puppet/files/key.pgp

  file { "/var/www/key.gpg":
    ensure  => present,
    source  => 'puppet:///files/key.gpg',
  }
Run Code Online (Sandbox Code Playgroud)

我收到此错误:

Not authorized to call find on /file_metadata/files/key.gpg
Run Code Online (Sandbox Code Playgroud)

auth.conf:(我知道这应该匹配file*

path /file
allow *
Run Code Online (Sandbox Code Playgroud)

文件服务器.conf:

[files]
  path /etc/puppet/files
  allow *
Run Code Online (Sandbox Code Playgroud)

难道我做错了什么?我正在使用图书馆员来管理我的模块,所以我不想放置任何特定于模块目录的配置。

Ste*_*way 0

如果您的 Puppet 代理在 192.168.1.x 子网中的主机上运行,​​则此配置看起来正确。

拒绝来自fileserver.conf,因为您auth.conf允许所有/file*资源。您的 puppet 代理似乎没有通过此范围内的 IP 进行连接 - 尝试临时添加allow *到[files] 部分以确认这一点。fileserver.conf

如果您的 Puppet Agent 主机是多宿主的,请检查它从哪个接口发送。

另请检查 fileserver.conf 上的权限和所有权是否正确。