diff options
author | Tiago Gomes <tiago.gomes@codethink.co.uk> | 2015-03-25 11:22:36 +0000 |
---|---|---|
committer | Tiago Gomes <tiago.gomes@codethink.co.uk> | 2015-04-16 16:34:49 +0000 |
commit | e657d841fd76ae2a6e059c95f916fa8bc335d0c9 (patch) | |
tree | c208d8f7d114247a3536b0636ff7a86eaa98cf30 /strata/openstack-services/ironic.morph | |
parent | 982968055496a8e878565abaf63f7f292995ae8a (diff) | |
download | definitions-e657d841fd76ae2a6e059c95f916fa8bc335d0c9.tar.gz |
Add the Ironic baremetal service to Openstack
Add their dependencies as well. The service will be configured in
another commit.
Change-Id: Icb23890fd3d002cb93fd32b0cdc9076518e77475
Diffstat (limited to 'strata/openstack-services/ironic.morph')
-rw-r--r-- | strata/openstack-services/ironic.morph | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/strata/openstack-services/ironic.morph b/strata/openstack-services/ironic.morph new file mode 100644 index 00000000..850399b4 --- /dev/null +++ b/strata/openstack-services/ironic.morph @@ -0,0 +1,17 @@ +name: ironic +kind: chunk +build-system: python-distutils +post-install-commands: +# Install rootwrap.conf +- install -D -m 640 etc/ironic/rootwrap.conf "$DESTDIR"/etc/ironic/rootwrap.conf +# Move rootwrap files to a proper location +- mkdir -p "$DESTDIR"/etc/ironic/rootwrap.d +- install -m 644 etc/ironic/rootwrap.d/* "$DESTDIR"/etc/ironic/rootwrap.d/ +# Add ironic to sudoers controlling which commands will run as a root +# using the openstack rootwrap. +- | + install -D -m 0440 /proc/self/fd/0 <<'EOF' "$DESTDIR"/etc/sudoers.d/ironic-rootwrap + Defaults:ironic !requiretty + + ironic ALL=(root) NOPASSWD: /usr/bin/ironic-rootwrap /etc/ironic/rootwrap.conf * + EOF |