Managing multiple files in a directory - permissions issue

196 views
Skip to first unread message

Dave Hunsinger

unread,
Apr 6, 2015, 11:20:45 PM4/6/15
to puppet...@googlegroups.com
Can somebody help me with what I'm doing wrong here? I want to copy all sshkeys in the file resource of this puppet module to the machine:

class sshkeys {


file { '/etc/ssh/ssh.keys':

  ensure => directory,

  owner => 'root',

  group => 'root',

  source => "puppet:///sshkeys",

  recurse => true,

  purge => true,

  }


}


Info: Applying configuration version '1428375139'

Error: /Stage[main]/Sshkeys/File[/etc/ssh/ssh.keys]: Failed to generate additional resources using 'eval_generate': Error 400 on SERVER: Not authorized to call search on /file_metadata/development/sshkeys with {:links=>"manage", :recurse=>true, :checksum_type=>"md5"}

Error: /Stage[main]/Sshkeys/File[/etc/ssh/ssh.keys]: Could not evaluate: Could not retrieve file metadata for puppet:///development/sshkeys: Error 400 on SERVER: Not authorized to call find on /file_metadata/development/sshkeys with {:links=>"manage", :source_permissions=>"use"}

Wrapped exception:

Error 400 on SERVER: Not authorized to call find on /file_metadata/development/sshkeys with {:links=>"manage", :source_permissions=>"use"}

Notice: Finished catalog run in 1.15 seconds

[root@lfmx-lin-stg01 daveh]#



CallidusCloud Connections

CallidusCloud HQ has moved. 
Our new address is: 
4140 Dublin Blvd, Suite 400, Dublin, CA 94568  

Martin Alfke

unread,
Apr 7, 2015, 3:14:39 AM4/7/15
to puppet...@googlegroups.com

On 07 Apr 2015, at 04:55, Dave Hunsinger <dhun...@calliduscloud.com> wrote:

> Can somebody help me with what I'm doing wrong here? I want to copy all sshkeys in the file resource of this puppet module to the machine:
>
> class sshkeys {
>
> file { '/etc/ssh/ssh.keys':
> ensure => directory,
> owner => 'root',
> group => 'root',
> source => "puppet:///sshkeys",
> recurse => true,
> purge => true,
> }
>
> }

You need to change the source:

source => ‘puppet:///modules/sshkeys',

>
> Info: Applying configuration version '1428375139'
> Error: /Stage[main]/Sshkeys/File[/etc/ssh/ssh.keys]: Failed to generate additional resources using 'eval_generate': Error 400 on SERVER: Not authorized to call search on /file_metadata/development/sshkeys with {:links=>"manage", :recurse=>true, :checksum_type=>"md5"}
> Error: /Stage[main]/Sshkeys/File[/etc/ssh/ssh.keys]: Could not evaluate: Could not retrieve file metadata for puppet:///development/sshkeys: Error 400 on SERVER: Not authorized to call find on /file_metadata/development/sshkeys with {:links=>"manage", :source_permissions=>"use"}
> Wrapped exception:
> Error 400 on SERVER: Not authorized to call find on /file_metadata/development/sshkeys with {:links=>"manage", :source_permissions=>"use"}
> Notice: Finished catalog run in 1.15 seconds
> [root@lfmx-lin-stg01 daveh]#
>
>
>
>
> CallidusCloud HQ has moved.
> Our new address is:
> 4140 Dublin Blvd, Suite 400, Dublin, CA 94568
>
> --
> 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 puppet-users...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/68fbbb6c-b0a1-4319-94a2-48e47e2247aa%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages