Quantcast
Channel: Ask Puppet: Puppet DevOps Q&A Community - RSS feed
Viewing all articles
Browse latest Browse all 6104

How to serve files from custom mount point?

$
0
0
Serving files from `puppet:///modules/{module_name}` works for me, however when I try to get file from custom mount point it fails. `fileserver.conf`: [files] path /etc/puppet/files allow * [plugins] allow * [munin-plugins] path /etc/puppet/munin-plugins allow * `auth.conf`: path /file allow * module code: $real_source = $source ? { '' => "munin/plugins/${plugin_src}", default => $source } file { "munin_plugin_${name}": path => "${munin::plugin::scriptpaths::script_path}/${name}", source => "puppet:///${mountpoint}/${real_source}", owner => root, group => 0, mode => '0755'; } manifest: munin::plugin::deploy { 'redis_': source => 'redis-munin/redis_memory_', mountpoint => 'munin-plugins' } full path to the file: `/etc/puppet/munin-plugins/redis-munin/redis_memory_` I keep getting error 400: Error: /Stage[main]//Node[my_server.com]/Munin::Plugin::Deploy[redis_memory_]/File[munin_plugin_redis_memory_]: Could not evaluate: Error 400 on SERVER: Not authorized to call find on /file_metadata/munin-plugins/redis-mun in/redis_memory_ with {:links=>"manage"} Could not retrieve file metadata for puppet:///munin-plugins/redis-munin/redis_memory_: Error 400 on SERVER: Not authorized to call find on /file_metadata/munin-plugins/redis-munin/redis_memory_ with {:links=>"manage"}` any ides what's wrong? **EDIT:** I'm using the default WebBrick server, does it matter in this case?

Viewing all articles
Browse latest Browse all 6104

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>