diff options
author | Francisco Redondo Marchena <francisco.marchena@codethink.co.uk> | 2015-02-16 16:13:27 +0000 |
---|---|---|
committer | Francisco Redondo Marchena <francisco.marchena@codethink.co.uk> | 2015-03-02 17:45:43 +0000 |
commit | 3ebd0a08991627d2e5e51be7b4dc93488b5e04f5 (patch) | |
tree | 3fddd8a07daae3241dea25a5e8a6d1269997cf7d /strata/openstack-services | |
parent | f5d3405b03636ad369b68336a96a08fd6fd0f0b2 (diff) | |
download | definitions-3ebd0a08991627d2e5e51be7b4dc93488b5e04f5.tar.gz |
Install rootwrap filters on post-install time
Installing rootwrap filters from their repositories will
make easy to deal with updates. Also move neutron rootwrap
filters to the right location without duplication.
Diffstat (limited to 'strata/openstack-services')
-rw-r--r-- | strata/openstack-services/cinder.morph | 9 | ||||
-rw-r--r-- | strata/openstack-services/neutron.morph | 8 | ||||
-rw-r--r-- | strata/openstack-services/nova.morph | 9 |
3 files changed, 26 insertions, 0 deletions
diff --git a/strata/openstack-services/cinder.morph b/strata/openstack-services/cinder.morph new file mode 100644 index 00000000..bfc31026 --- /dev/null +++ b/strata/openstack-services/cinder.morph @@ -0,0 +1,9 @@ +name: cinder +kind: chunk +build-system: python-distutils +post-install-commands: +# Install rootwrap.conf +- 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/ diff --git a/strata/openstack-services/neutron.morph b/strata/openstack-services/neutron.morph new file mode 100644 index 00000000..1de5678b --- /dev/null +++ b/strata/openstack-services/neutron.morph @@ -0,0 +1,8 @@ +name: neutron +kind: chunk +build-system: python-distutils +post-install-commands: +# Move rootwrap files to a proper location +- mkdir -p "$DESTDIR"/etc/neutron +- mv "$DESTDIR$PREFIX"/etc/neutron/rootwrap.d "$DESTDIR"/etc/neutron/ +- mv "$DESTDIR$PREFIX"/etc/neutron/rootwrap.conf "$DESTDIR"/etc/neutron/ diff --git a/strata/openstack-services/nova.morph b/strata/openstack-services/nova.morph new file mode 100644 index 00000000..4bf15bc7 --- /dev/null +++ b/strata/openstack-services/nova.morph @@ -0,0 +1,9 @@ +name: nova +kind: chunk +build-system: python-distutils +post-install-commands: +# Install rootwrap.conf +- install -D -m 640 etc/nova/rootwrap.conf "$DESTDIR"/etc/nova/rootwrap.conf +# Move rootwrap files to a proper location +- mkdir -p "$DESTDIR"/etc/nova/rootwrap.d +- install -D -m 644 etc/nova/rootwrap.d/* "$DESTDIR"/etc/nova/rootwrap.d/ |