On 07 Apr 2015, at 04:55, Dave Hunsinger <[email protected]> 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 [email protected].
> 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.

-- 
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/38B69EAB-3FB9-42CF-888D-2EE141E22606%40gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to