Ask Your Question
0

simply manage a single file /etc/hosts and /etc/passwd [closed]

asked 2014-04-11 06:25:03 -0500

RobN gravatar image

Please excuse my newness but I am having trouble getting puppet to do anything. All I am trying to do right now is to manage a few files. For /etc/hosts I get:

Could not evaluate: Error 400 on SERVER: Not authorized to call find on /filemetadata/files/php/common/etc/hosts with {:links=>"manage"} Could not retrieve file metadata for puppet:///files/php/common/etc/hosts: Error 400 on SERVER: Not authorized to call find on /filemetadata/files/php/common/etc/hosts with {:links=>"manage"}

 file { "/etc/hosts":
    source  => "puppet:///files/php/common/etc/hosts",
  }

and when I full ... (more)

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by RobN
close date 2014-06-05 07:52:37.017947

1 Answer

Sort by ยป oldest newest most voted
1

answered 2014-04-11 06:34:08 -0500

mapa3m gravatar image

updated 2014-04-11 06:35:03 -0500

Are you serving the source file from under the modules "files" directory or from a dedicated fileserver? If it's the former, you should specify the path as "puppet:///modulename ... (more)

edit flag offensive delete link more

Comments

I was trying to serve it directly from the puppet master in the /etc/puppetlabs/puppet/files dir. I have nothing in fileserver.conf. I changed it to alloy *. got ...(more)

RobN gravatar imageRobN ( 2014-04-11 06:46:23 -0500 )edit

I am not sure if this helps, but it is a fresh install with all defaults taken. I added the above to a node declaration in site.pp and that ...(more)

RobN gravatar imageRobN ( 2014-04-11 07:00:48 -0500 )edit

If you are just starting out with Puppet, it's easier to serve files straight from the module managing the resource. If your module is "php", and it's in ...(more)

mapa3m gravatar imagemapa3m ( 2014-04-11 07:01:36 -0500 )edit

OK thanks so much that worked.

RobN gravatar imageRobN ( 2014-04-11 07:12:12 -0500 )edit

Question Tools

1 follower

Stats

Asked: 2014-04-11 06:25:03 -0500

Seen: 380 times

Last updated: Apr 11 '14