diff options
author | Tristan Van Berkom <tristan.vanberkom@codethink.co.uk> | 2016-10-31 15:35:03 +0900 |
---|---|---|
committer | Tristan Van Berkom <tristan.vanberkom@codethink.co.uk> | 2016-11-11 17:36:41 +0900 |
commit | 82d358156d80fabb06702023178445ec90b7ada9 (patch) | |
tree | b6783c139d95c608dc7bf1ce85e5a213a4397cf4 /unmaintained/strata/openstack-services/cinder.morph | |
parent | ec458e22d52b15458636a1f550e55e92a4fee962 (diff) | |
download | definitions-82d358156d80fabb06702023178445ec90b7ada9.tar.gz |
Moving unmaintained systems, clusters and their strata to unmaintained directory
This includes ceph, chef, cxmanage, java, openstack, nodejs, ocaml,
qt4, qt5 (system only, qt5 is used by ivi projects), swift, web,
xfce and zookeeper systems.
All strata which is referred to exclusively by systems and clusters in the
unmaintained directory have also been moved to the unmaintained directory.
Change-Id: If60b0fa8bc1d7f9c53137fa7106b396668682a9a
Diffstat (limited to 'unmaintained/strata/openstack-services/cinder.morph')
-rw-r--r-- | unmaintained/strata/openstack-services/cinder.morph | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/unmaintained/strata/openstack-services/cinder.morph b/unmaintained/strata/openstack-services/cinder.morph new file mode 100644 index 00000000..a0fc879f --- /dev/null +++ b/unmaintained/strata/openstack-services/cinder.morph @@ -0,0 +1,21 @@ +name: cinder +kind: chunk +build-system: python-distutils +post-install-commands: +# Install some default configuration files +- install -D -m 644 etc/cinder/logging_sample.conf "$DESTDIR"/etc/cinder/logging.conf +- install -D -m 644 etc/cinder/api-paste.ini "$DESTDIR"/etc/cinder/api-paste.ini +- install -D -m 644 etc/cinder/policy.json "$DESTDIR"/etc/cinder/policy.json +- install -D -m 640 etc/cinder/rootwrap.conf "$DESTDIR"/etc/cinder/rootwrap.conf +# Move rootwrap files to a proper location +- mkdir -p "$DESTDIR"/etc/cinder/rootwrap.d +- install -D -m 644 etc/cinder/rootwrap.d/* "$DESTDIR"/etc/cinder/rootwrap.d/ +# Add cinder to sudoers controlling which commands will run as a root +# using the openstack rootwrap. +- mkdir -p "$DESTDIR"/etc/sudoers.d +- | + install -D -m 0440 /proc/self/fd/0 <<'EOF' "$DESTDIR"/etc/sudoers.d/cinder-rootwrap + Defaults:cinder !requiretty + + cinder ALL=(root) NOPASSWD: /usr/bin/cinder-rootwrap /etc/cinder/rootwrap.conf * + EOF |