Ask Your Question

PE-Puppetserver fails to start, permission error on included module script

asked 2016-05-09 21:47:48 -0500

mike.r gravatar image

Seems like weird design,

my PE Puppetserver isnt starting, looking at puppetserver.log, its choking on permissions on some shell scripts inside one of my installed modules.

    at clojure.lang.RestFn.invoke( [puppet-server-release.jar:na]
    at clojure.lang.Var.invoke( [puppet-server-release.jar:na]
    at clojure.lang.AFn.applyToHelper( [puppet-server-release.jar:na]
    at clojure.lang.Var.applyTo( [puppet-server-release.jar:na]
    at clojure.main.main( [puppet-server-release.jar:na]
**Caused by: /etc/puppetlabs/code/environments/production/modules/cis/files/linuxcontrols/scripts/ (Permission denied)**
    at Method) ~[na:1.8.0_71]
    at ~[na:1.8.0_71]
    at<init>( ~[na:1.8.0_71]

the SH script had 750 permission,

-rwxr-x---. 1 root root 264 May 5 13:37

after changing the perms to 755, the puppetserver had no issues starting.

Is this by design or is this a bug? A faulty or inadequate module file can break PE server from starting up?

my env: puppet master on Centos7, version 4.3.2

 [root@puppetmaster3 ~]# rpm -qa | grep puppet

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2016-05-11 11:38:03 -0500

puppet runs as the user puppet (usually!) - all puppet files should be owned by this user. these files are describing an end state you want systems to be in - within these files you can say runas/owner= etc etc

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2016-05-09 21:47:48 -0500

Seen: 103 times

Last updated: May 11 '16