p/fuel: deploy: Allow non-root deploys 57/37657/1
authorAlexandru Avadanii <Alexandru.Avadanii@enea.com>
Mon, 17 Jul 2017 23:45:17 +0000 (01:45 +0200)
committerAlexandru Avadanii <Alexandru.Avadanii@enea.com>
Mon, 17 Jul 2017 23:52:32 +0000 (01:52 +0200)
commit081dc460f888f9e2b7f9e2491f9c529c4dc48eed
treeeba4d7143fa3ed98444e80402a77664150a8357e
parent4f72e6be436badd2ded546424ec4a304cd6ce5d3
p/fuel: deploy: Allow non-root deploys

Fuel@OPNFV's ci/deploy.sh script imposes a hard requirement on
running as the root user, which can be refactored into a series of
smaller requirements.

Instead, relax the check to the ability to run sudo commands
inside the script, and explicitly add sudo for the package
installation commands.

This also adds a requirement for the Jenkins user running the
deploy to be part of the "kvm" and "libvirtd" groups, so
libvirt/virsh can manage VMs on the jump server / Jenkins slave.

See related change in OPNFV Releng repository [1].

[1] https://gerrit.opnfv.org/gerrit/#/c/37655

Change-Id: I29b90d285c99f85462493c2a3890264365fca9f0
Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
patches/opnfv-fuel/0007-deploy-Allow-non-root-deploys.patch [new file with mode: 0644]