summaryrefslogtreecommitdiffstats
path: root/debian/lib-systemd/system/ceph-create-keys.service
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--debian/lib-systemd/system/ceph-create-keys.service9
1 files changed, 9 insertions, 0 deletions
diff --git a/debian/lib-systemd/system/ceph-create-keys.service b/debian/lib-systemd/system/ceph-create-keys.service
new file mode 100644
index 00000000..4e29bc1e
--- /dev/null
+++ b/debian/lib-systemd/system/ceph-create-keys.service
@@ -0,0 +1,9 @@
+[Unit]
+Description=Create Ceph client.admin key when possible
+PartOf=ceph-mon.service
+
+[Service]
+Environment=CLUSTER=ceph
+Environment=CONFIG=/etc/ceph/ceph.conf
+EnvironmentFile=-/etc/default/ceph
+ExecStart=/usr/sbin/ceph-create-keys --cluster ${CLUSTER} --id %H