c86e66c9dc
Add the initial playbooks for making ceph and ansible play nice together. This does not include all of the openstack changes to make things like nova, glance, and cinder work. This will simply build the ceph cluster and thats it. The next patchset will do the OpenStack integration. DocImpact Change-Id: Ie1697dde5f92e833652933a80f0004f31b641330 Partially-Implements: blueprint ceph-container
21 lines
419 B
Bash
21 lines
419 B
Bash
#!/bin/bash
|
|
SOURCE="/opt/kolla/ceph-osd/ceph.conf"
|
|
TARGET="/etc/ceph/ceph.conf"
|
|
OWNER="ceph"
|
|
|
|
if [[ -f "$SOURCE" ]]; then
|
|
cp $SOURCE $TARGET
|
|
chown ${OWNER}: $TARGET
|
|
chmod 0644 $TARGET
|
|
fi
|
|
|
|
SOURCE="/opt/kolla/ceph-osd/ceph.client.admin.keyring"
|
|
TARGET="/etc/ceph/ceph.client.admin.keyring"
|
|
OWNER="ceph"
|
|
|
|
if [[ -f "$SOURCE" ]]; then
|
|
cp $SOURCE $TARGET
|
|
chown ${OWNER}: $TARGET
|
|
chmod 0600 $TARGET
|
|
fi
|