Ask Your Question

Are user and groups available to install_options in a package?

asked 2015-11-23 16:13:51 -0500

Here is my class:

class myapp::mymodule::install {

$packages = [ 'jetty-9.3.0', 'java-1.8.0-openjdk', ]

package { $packages: ensure => installed, }


This installs jetty as root. But I would like to run as user jetty.

Can i just add user and group?

will this work?

package {'jetty' : ensure => installed, user => 'jetty' group => 'jetty' mode => '0640', }

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2015-11-24 10:09:08 -0500

i don't believe so no - ownership/group is down to the package you're installing - modify the package in the repo would be best bet.

To see a list of available options try:

puppet describe package

or take a look at: package resource

if its not possible for you to modify the package you could create an additional entry to change the startup script or to do and exec which does a chown (which is sub optimal I know..)

Cheers Stuart

edit flag offensive delete link more


thank you. we will make edits to the startup script.

Eric Hanzl gravatar imageEric Hanzl ( 2015-11-24 11:01:43 -0500 )edit

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: 2015-11-23 16:13:51 -0500

Seen: 30 times

Last updated: Nov 24 '15