summaryrefslogtreecommitdiff
path: root/extensions/mason/mason-setup.service
diff options
context:
space:
mode:
authorPatrick Darley <patrick.darley@codethink.co.uk>2015-09-11 13:52:32 +0000
committerPatrick Darley <patrick.darley@codethink.co.uk>2015-09-11 13:52:32 +0000
commit44ef620105e0c3bac9d0fed42d4dfc233dbb9dfd (patch)
treec14f500b13afae93cd17868579a2cb23210a4b21 /extensions/mason/mason-setup.service
parent3bb679fbc9a3de80b01eddb49c59cf4163c34478 (diff)
downloaddefinitions-44ef620105e0c3bac9d0fed42d4dfc233dbb9dfd.tar.gz
Add extensions to the this old branch
Diffstat (limited to 'extensions/mason/mason-setup.service')
-rw-r--r--extensions/mason/mason-setup.service16
1 files changed, 16 insertions, 0 deletions
diff --git a/extensions/mason/mason-setup.service b/extensions/mason/mason-setup.service
new file mode 100644
index 00000000..60403bde
--- /dev/null
+++ b/extensions/mason/mason-setup.service
@@ -0,0 +1,16 @@
+[Unit]
+Description=Run mason-setup Ansible scripts
+Requires=network.target
+After=network.target
+Requires=opensshd.service
+After=opensshd.service
+
+# If there's a shared /var subvolume, it must be mounted before this
+# unit runs.
+Requires=local-fs.target
+After=local-fs.target
+
+ConditionPathExists=/etc/mason/mason.conf
+
+[Service]
+ExecStart=/usr/bin/ansible-playbook -v -i /usr/lib/mason-setup/ansible/hosts /usr/lib/mason-setup/ansible/mason-setup.yml