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.conf*

path ~ ^/file_(metadata|content)/files/
auth yes
allow /^(.+\.)?puppet.com$/
allow_ip 192.168.1.0/24



*init.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




-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/878b95bb-9c03-4fae-b6df-0cb800816b2b%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to