From 5be60a9facbe15b93694c99d714f264dd7c67db4 Mon Sep 17 00:00:00 2001 From: Pedro Alvarez Date: Tue, 14 Apr 2015 08:52:51 +0000 Subject: Openstack: Make Cinder configurable Change-Id: I9c2bb1a204a01fa82e90d517663f6cf654666395 Signed-off-by: Pedro Alvarez Signed-off-by: Francisco Redondo Marchena Signed-off-by: Patrick Darley --- .../usr/lib/systemd/system/openstack-cinder-api.service | 12 ++++++++++++ .../usr/lib/systemd/system/openstack-cinder-backup.service | 12 ++++++++++++ .../lib/systemd/system/openstack-cinder-scheduler.service | 12 ++++++++++++ .../usr/lib/systemd/system/openstack-cinder-setup.service | 9 +++++++++ .../usr/lib/systemd/system/openstack-cinder-volume.service | 12 ++++++++++++ 5 files changed, 57 insertions(+) create mode 100644 openstack/usr/lib/systemd/system/openstack-cinder-api.service create mode 100644 openstack/usr/lib/systemd/system/openstack-cinder-backup.service create mode 100644 openstack/usr/lib/systemd/system/openstack-cinder-scheduler.service create mode 100644 openstack/usr/lib/systemd/system/openstack-cinder-setup.service create mode 100644 openstack/usr/lib/systemd/system/openstack-cinder-volume.service (limited to 'openstack/usr/lib') diff --git a/openstack/usr/lib/systemd/system/openstack-cinder-api.service b/openstack/usr/lib/systemd/system/openstack-cinder-api.service new file mode 100644 index 00000000..c863f3f5 --- /dev/null +++ b/openstack/usr/lib/systemd/system/openstack-cinder-api.service @@ -0,0 +1,12 @@ +[Unit] +Description=OpenStack Volume Service (code-named Cinder) API server +After=syslog.target network-online.target +Wants=network-online.target + +[Service] +Type=simple +User=cinder +ExecStart=/usr/bin/cinder-api --config-file /etc/cinder/cinder.conf --log-file=/var/log/cinder/cinder-api.log + +[Install] +WantedBy=multi-user.target diff --git a/openstack/usr/lib/systemd/system/openstack-cinder-backup.service b/openstack/usr/lib/systemd/system/openstack-cinder-backup.service new file mode 100644 index 00000000..2f489228 --- /dev/null +++ b/openstack/usr/lib/systemd/system/openstack-cinder-backup.service @@ -0,0 +1,12 @@ +[Unit] +Description=OpenStack Cinder backup server +After=syslog.target network-online.target +Wants=network-online.target + +[Service] +Type=simple +User=cinder +ExecStart=/usr/bin/cinder-backup --config-file /etc/cinder/cinder.conf --log-file=/var/log/cinder/cinder-backup.log + +[Install] +WantedBy=multi-user.target diff --git a/openstack/usr/lib/systemd/system/openstack-cinder-scheduler.service b/openstack/usr/lib/systemd/system/openstack-cinder-scheduler.service new file mode 100644 index 00000000..025f1f3c --- /dev/null +++ b/openstack/usr/lib/systemd/system/openstack-cinder-scheduler.service @@ -0,0 +1,12 @@ +[Unit] +Description=OpenStack Cinder scheduler server +After=syslog.target network-online.target +Wants=network-online.target + +[Service] +Type=simple +User=cinder +ExecStart=/usr/bin/cinder-scheduler --config-file /etc/cinder/cinder.conf --log-file=/var/log/cinder/cinder-scheduler.log + +[Install] +WantedBy=multi-user.target diff --git a/openstack/usr/lib/systemd/system/openstack-cinder-setup.service b/openstack/usr/lib/systemd/system/openstack-cinder-setup.service new file mode 100644 index 00000000..bac80b6b --- /dev/null +++ b/openstack/usr/lib/systemd/system/openstack-cinder-setup.service @@ -0,0 +1,9 @@ +[Unit] +Description=Run cinder-setup Ansible scripts +After=local-fs.target openstack-keystone-setup.service postgres-server.service + +[Service] +ExecStart=/usr/bin/ansible-playbook -v -M /usr/share/ansible/ansible-openstack-modules -i /usr/share/openstack/hosts /usr/share/openstack/cinder.yml + +[Install] +WantedBy=multi-user.target diff --git a/openstack/usr/lib/systemd/system/openstack-cinder-volume.service b/openstack/usr/lib/systemd/system/openstack-cinder-volume.service new file mode 100644 index 00000000..4a8da9c3 --- /dev/null +++ b/openstack/usr/lib/systemd/system/openstack-cinder-volume.service @@ -0,0 +1,12 @@ +[Unit] +Description=OpenStack Cinder volume server +After=syslog.target network-online.target +Wants=network-online.target + +[Service] +Type=simple +User=cinder +ExecStart=/usr/bin/cinder-volume --config-file /etc/cinder/cinder.conf --log-file=/var/log/cinder/cinder-volume.log + +[Install] +WantedBy=multi-user.target -- cgit v1.2.1