Hi
I am trying to transfer shell file via fileserver in pupper, but i am continuously getting the mentioned error.
fileserver.conf[files]
path /etc/puppet/files
allow *
auth.confpath ~ ^/file_(metadata|content)/files/
auth yes
allow /^(.+\.)?
puppet.com$/
allow_ip
192.168.1.0/24init.pp
class accounts {
@accounts::system { 'demo':
comment => 'demo users',
}
file { '/etc/puppet/templates/shadow.sh':
ensure => file,
recurse => true,
mode => "0777",
source => "puppet:///files/shadow.sh",
}
exec { "demo":
command => 'echo "demo:redhat@123" | chpasswd',
provider => 'shell',
require => File['/etc/puppet/templates/shadow.sh'],
}
}
Error on Client :
Error: /File[/var/lib/puppet/lib]: Failed to generate additional resources using 'eval_generate': Error 403 on SERVER: Forbidden request:
client2.puppet.com(192.168.1.19) access to /file_metadata/plugins [search] authenticated at :128
Debug: file_metadata supports formats: pson msgpack b64_zlib_yaml yaml raw
Error: /File[/var/lib/puppet/lib]: Could not evaluate: Error 403 on SERVER: Forbidden request:
client2.puppet.com(192.168.1.19) access to /file_metadata/plugins [find] authenticated at :128 Could not retrieve file metadata for puppet://
server.puppet.com/plugins: Error 403 on SERVER: Forbidden request:
client2.puppet.com(192.168.1.19) access to /file_metadata/plugins [find] authenticated at :128
Error: /Stage[main]/Accounts/File[/etc/puppet/templates/shadow.sh]: Failed to generate additional resources using 'eval_generate': Error 400 on SERVER: Not authorized to call search on /file_metadata/files/shadow.sh with {:links=>"manage", :recurse=>true, :checksum_type=>"md5"}
Debug: file_metadata supports formats: pson msgpack b64_zlib_yaml yaml raw
Error: /Stage[main]/Accounts/File[/etc/puppet/templates/shadow.sh]: Could not evaluate: Error 400 on SERVER: Not authorized to call find on /file_metadata/files/shadow.sh with {:links=>"manage"} Could not retrieve file metadata for puppet:///files/shadow.sh: Error 400 on SERVER: Not authorized to call find on /file_metadata/files/shadow.sh with {:links=>"manage"}
Jyotir