[puppet 問題解決]Error 400 on SERVER: Not authorized to call find on

問題描述:
配置好了 puppet ,然後在客戶端執行 puppet 更新,報以下錯誤
[root@client1 ~]# puppet agent --test --server=master.puppet.com --no-daemonize --verbose
info: Caching catalog for client1.puppet.com
info: Applying configuration version '1373362423'
err: /File[/home/php_comm/config/config_server.inc.php]: Could not evaluate: Error 400 on SERVER: Not authorized to call find on /file_metadata/php1/config_server.inc.php Could not retrieve file metadata for puppet:///php1/config_server.inc.php: Error 400 on SERVER: Not authorized to call find on /file_metadata/php1/config_server.inc.php at /etc/puppet/modules/php1/manifests/config.pp:9
err: /File[/home/php_comm2/config/config_server.inc.php]: Could not evaluate: Error 400 on SERVER: Not authorized to call find on /file_metadata/php2/config_server.inc.php Could not retrieve file metadata for puppet:///php2/config_server.inc.php: Error 400 on SERVER: Not authorized to call find on /file_metadata/php2/config_server.inc.php at /etc/puppet/modules/php2/manifests/config.pp:9
notice: Finished catalog run in 0.67 seconds
原因與解決辦法:

原來是fileserver.conf 中對應的目錄沒有配置權限,在對應的目錄設置allow * 即可 ,如下:


[php1]

  path /usr/local/puppet/php1

allow *


[php2]

  path /usr/local/puppet/php2

  allow *


再重啓puppet服務,在客戶端測試


[root@client1 ~]# puppet agent --test --server=master.puppet.com --no-daemonize --verbose

info: Caching catalog for client1.puppet.com

info: Applying configuration version '1373362669'

notice: /File[/home/php_comm/config/config_server.inc.php]/ensure: defined content as '{md5}e8f670a8dc2232aa0d4528d3129167f7'

notice: /File[/home/php_comm2/config/config_server.inc.php]/ensure: defined content as '{md5}a336dc9e0fac0e18d5be124eafda5cb9'

notice: Finished catalog run in 0.64 seconds


發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章