diff options
author | Pedro Alvarez <pedro.alvarez@codethink.co.uk> | 2014-06-18 11:53:27 +0000 |
---|---|---|
committer | Pedro Alvarez <pedro.alvarez@codethink.co.uk> | 2014-07-14 15:02:10 +0000 |
commit | 24cad9837ea25784243e0c485b9fe954f9a8a5a8 (patch) | |
tree | 467722bf82f79e92654b87d3deb401631da02384 /units | |
parent | e6bf7b4b32d477352cf45b4b0abb6993d524f78a (diff) | |
download | trove-setup-24cad9837ea25784243e0c485b9fe954f9a8a5a8.tar.gz |
Install Ansible scripts and create a unit to run them
Diffstat (limited to 'units')
-rw-r--r-- | units/trove-setup.service | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/units/trove-setup.service b/units/trove-setup.service new file mode 100644 index 0000000..3b923a2 --- /dev/null +++ b/units/trove-setup.service @@ -0,0 +1,16 @@ +[Unit] +Description=Run trove-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/trove/trove.conf + +[Service] +ExecStart=/usr/bin/ansible-playbook -v -i /usr/lib/trove-setup/ansible/hosts /usr/lib/trove-setup/ansible/trove-setup.yml |