From 3b2354f8d8aad716f2c456e0dd33cdec8317e037 Mon Sep 17 00:00:00 2001 From: Richard Ipsum Date: Tue, 17 Mar 2015 08:12:00 +0000 Subject: Add configuration for swift controller node This adds configuration needed to deploy a swift proxy-server that uses keystone for authentication. Change-Id: I038180e2d1e16f1f612986ca9db241ce05afa84c --- .../usr/lib/systemd/system/swift-controller-setup.service | 11 +++++++++++ openstack/usr/lib/systemd/system/swift-proxy.service | 13 +++++++++++++ 2 files changed, 24 insertions(+) create mode 100644 openstack/usr/lib/systemd/system/swift-controller-setup.service create mode 100644 openstack/usr/lib/systemd/system/swift-proxy.service (limited to 'openstack/usr/lib/systemd/system') diff --git a/openstack/usr/lib/systemd/system/swift-controller-setup.service b/openstack/usr/lib/systemd/system/swift-controller-setup.service new file mode 100644 index 00000000..3e0ddaf7 --- /dev/null +++ b/openstack/usr/lib/systemd/system/swift-controller-setup.service @@ -0,0 +1,11 @@ +[Unit] +Description=Run swift-controller-setup (once) +After=local-fs.target postgres-server.service openstack-keystone-setup.service openstack-keystone.service + +[Service] +Type=oneshot +ExecStart=/usr/bin/ansible-playbook -v -M /usr/share/ansible/ansible-openstack-modules -i /usr/share/openstack/hosts /usr/share/openstack/swift-controller.yml +Restart=no + +[Install] +WantedBy=multi-user.target diff --git a/openstack/usr/lib/systemd/system/swift-proxy.service b/openstack/usr/lib/systemd/system/swift-proxy.service new file mode 100644 index 00000000..bb51d594 --- /dev/null +++ b/openstack/usr/lib/systemd/system/swift-proxy.service @@ -0,0 +1,13 @@ +[Unit] +Description=OpenStack Swift Proxy Server +After=syslog.target network.target memcached.service openstack-keystone.service swift-controller-setup.service + +[Service] +Type=forking +PIDFile=/var/run/swift/proxy-server.pid +Restart=on-failure +ExecStart=/usr/bin/swift-init proxy-server start +ExecStop=/usr/bin/swift-init proxy-server stop + +[Install] +WantedBy=multi-user.target -- cgit v1.2.1