summaryrefslogtreecommitdiff
path: root/chunks/cloud-init.morph
diff options
context:
space:
mode:
authorAdam Coldrick <adam.coldrick@codethink.co.uk>2014-04-14 12:22:53 +0000
committerAdam Coldrick <adam.coldrick@codethink.co.uk>2014-04-14 12:22:53 +0000
commit0ce6de7adbd5fe6b268e1b8a1422cdfeb7cdebf5 (patch)
treeda8498e1eab2464b06117337cb0b7c87322e6ed1 /chunks/cloud-init.morph
parent10dda889872542b8f261555c139791ff34eec9b1 (diff)
downloaddefinitions-0ce6de7adbd5fe6b268e1b8a1422cdfeb7cdebf5.tar.gz
Add chunk morphologies to definitions repositorybaserock/adamcoldrick/chunks-in-definitions-by-kind
Diffstat (limited to 'chunks/cloud-init.morph')
-rw-r--r--chunks/cloud-init.morph18
1 files changed, 18 insertions, 0 deletions
diff --git a/chunks/cloud-init.morph b/chunks/cloud-init.morph
new file mode 100644
index 00000000..76de124f
--- /dev/null
+++ b/chunks/cloud-init.morph
@@ -0,0 +1,18 @@
+name: cloud-init
+kind: chunk
+repo: upstream:cloud-init
+ref: eeb4923b3528ebf4d93d8297b2d489738c3ea7c3
+build-system: python-distutils
+post-install-commands:
+- mkdir -p "$DESTDIR"/lib/systemd/system
+- cp systemd/* "$DESTDIR"/lib/systemd/system/
+- mkdir -p "$DESTDIR"/etc/systemd/system/
+- |
+ for S in $(cd systemd; ls *.service); do
+ ln -s /lib/systemd/system/$S "$DESTDIR"/etc/systemd/system/$S;
+ done
+- mkdir -p "$DESTDIR"/lib/systemd/system/multi-user.target.wants/
+- |
+ for S in $(cd systemd; ls *.service); do
+ ln -s /lib/systemd/system/$S "$DESTDIR"/lib/systemd/system/multi-user.target.wants/$S;
+ done