summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTiago Gomes <tiago.gomes@codethink.co.uk>2015-03-25 11:22:36 (GMT)
committerTiago Gomes <tiago.gomes@codethink.co.uk>2015-04-15 14:46:29 (GMT)
commit418dd52f4457cad7e546368f4fd7a9d197b0badf (patch)
tree8c275111cc370b4a3d6dd74b0f03566ae35b8789
parent794ad4e8724b982c8e93ef954d2f8370239d3ee3 (diff)
downloaddefinitions-418dd52f4457cad7e546368f4fd7a9d197b0badf.tar.gz
Add the Ironic baremetal service to Openstack
Add their dependencies as well. The service will be configured in another commit.
-rw-r--r--strata/openstack-clients.morph5
-rw-r--r--strata/openstack-clients/python-ironicclient.morph3
-rw-r--r--strata/openstack-services.morph15
-rw-r--r--strata/openstack-services/ironic.morph17
-rw-r--r--strata/openstack-services/pysendfile.morph3
-rw-r--r--strata/openstack-services/singledispatch.morph3
6 files changed, 46 insertions, 0 deletions
diff --git a/strata/openstack-clients.morph b/strata/openstack-clients.morph
index 9155911..32e0f35 100644
--- a/strata/openstack-clients.morph
+++ b/strata/openstack-clients.morph
@@ -96,3 +96,8 @@ chunks:
unpetrify-ref: 0.7.6
build-depends:
- python-keystoneclient
+- name: python-ironicclient
+ morph: strata/openstack-clients/python-ironicclient.morph
+ repo: upstream:openstack/python-ironicclient
+ ref: 4390a21663de3123fac306e9860624ba7deda0e6
+ unpetrify-ref: 0.4.1
diff --git a/strata/openstack-clients/python-ironicclient.morph b/strata/openstack-clients/python-ironicclient.morph
new file mode 100644
index 0000000..95be0bd
--- /dev/null
+++ b/strata/openstack-clients/python-ironicclient.morph
@@ -0,0 +1,3 @@
+name: python-ironicclient
+kind: chunk
+build-system: python-distutils
diff --git a/strata/openstack-services.morph b/strata/openstack-services.morph
index 2db1adf..45639aa 100644
--- a/strata/openstack-services.morph
+++ b/strata/openstack-services.morph
@@ -840,3 +840,18 @@ chunks:
repo: upstream:tftp-hpa
ref: 4faf178a509d8091b7ba1e1fa3d13bc68c5ff55f
unpetrify-ref: tftp-hpa-5.2
+- name: singledispatch
+ morph: strata/openstack-services/singledispatch.morph
+ repo: upstream:python-packages/singledispatch
+ ref: 92175ba65602a03086d2b1f770f45d88af93fc3e
+ unpetrify-ref: 3.4.0.3
+- name: pysinglefile
+ morph: strata/openstack-services/pysendfile.morph
+ repo: upstream:python-packages/pysendfile
+ ref: 6775b2938ef74255239c8e08458369921297b311
+ unpetrify-ref: release-2.0.0
+- name: ironic
+ morph: strata/openstack-services/ironic.morph
+ repo: upstream:openstack/ironic
+ ref: 0f4d454bf2093d3d62460f88aa9288bee3286b38
+ unpetrify-ref: stable/juno
diff --git a/strata/openstack-services/ironic.morph b/strata/openstack-services/ironic.morph
new file mode 100644
index 0000000..850399b
--- /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
diff --git a/strata/openstack-services/pysendfile.morph b/strata/openstack-services/pysendfile.morph
new file mode 100644
index 0000000..2e2f809
--- /dev/null
+++ b/strata/openstack-services/pysendfile.morph
@@ -0,0 +1,3 @@
+name: pysendfile
+kind: chunk
+build-system: python-distutils
diff --git a/strata/openstack-services/singledispatch.morph b/strata/openstack-services/singledispatch.morph
new file mode 100644
index 0000000..919c709
--- /dev/null
+++ b/strata/openstack-services/singledispatch.morph
@@ -0,0 +1,3 @@
+name: singledispatch
+kind: chunk
+build-system: python-distutils