Habitat packages should run as root

Many InSpec resources require root access to properly scan. Let's
default the run user to root until we need to accommodate different
options.

Signed-off-by: Adam Leff <adam@leff.co>
This commit is contained in:
Adam Leff 2017-04-13 10:34:47 -04:00
parent c70824d0c8
commit 9b472e1b59
No known key found for this signature in database
GPG key ID: 7A5136DE1C1112F8

View file

@ -294,6 +294,7 @@ pkg_origin=#{habitat_origin}
pkg_source="nosuchfile.tar.gz"
pkg_deps=(chef/inspec)
pkg_build_deps=()
pkg_svc_user=root
EOL
plan += "pkg_license='#{profile.metadata.params[:license]}'\n\n" if profile.metadata.params[:license]