From 24cad9837ea25784243e0c485b9fe954f9a8a5a8 Mon Sep 17 00:00:00 2001 From: Pedro Alvarez Date: Wed, 18 Jun 2014 11:53:27 +0000 Subject: Install Ansible scripts and create a unit to run them --- units/trove-setup.service | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 units/trove-setup.service (limited to 'units') 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 -- cgit v1.2.1