-
Notifications
You must be signed in to change notification settings - Fork 5
/
Cephconfigopenstack.sh
37 lines (26 loc) · 1.95 KB
/
Cephconfigopenstack.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#Update Deployment IP
DeploymentIP= "172.90.0.33"
ceph osd pool create volumes
ceph osd pool create images
ceph osd pool create backups
ceph osd pool create vms
rbd pool init volumes
rbd pool init images
rbd pool init backups
rbd pool init vms
ceph auth get-or-create client.glance mon 'profile rbd' osd 'profile rbd pool=images' mgr 'profile rbd pool=images'
ceph auth get-or-create client.cinder mon 'profile rbd' osd 'profile rbd pool=volumes, profile rbd pool=vms, profile rbd-read-only pool=images' mgr 'profile rbd pool=volumes, profile rbd pool=vms'
ceph auth get-or-create client.cinder-backup mon 'profile rbd' osd 'profile rbd pool=backups' mgr 'profile rbd pool=backups'
ssh-copy-id root@$DeploymentIP
scp -r /etc/ceph/ceph.conf root@$DeploymentIP:/etc/kolla/config/cinder/cinder-backup/ceph.conf
scp -r /etc/ceph/ceph.conf root@$DeploymentIP:/etc/kolla/config/cinder/cinder-volume/ceph.conf
scp -r /etc/ceph/ceph.conf root@$DeploymentIP:/etc/kolla/config/glance/ceph.conf
scp -r /etc/ceph/ceph.conf root@$DeploymentIP:/etc/kolla/config/nova/ceph.conf
ceph auth get-or-create client.cinder-backup > /etc/ceph/ceph.client.cinder-backup.keyring
ceph auth get-or-create client.cinder > /etc/ceph/ceph.client.cinder.keyring
ceph auth get-or-create client.glance > /etc/ceph/ceph.client.glance.keyring
scp -r /etc/ceph/ceph.client.glance.keyring root@$DeploymentIP:/etc/kolla/config/glance/ceph.client.glance.keyring
scp -r /etc/ceph/ceph.client.cinder-backup.keyring root@$DeploymentIP:/etc/kolla/config/cinder/cinder-backup/ceph.client.cinder-backup.keyring
scp -r /etc/ceph/ceph.client.cinder.keyring root@$DeploymentIP:/etc/kolla/config/cinder/cinder-backup/ceph.client.cinder.keyring
scp -r /etc/ceph/ceph.client.cinder.keyring root@$DeploymentIP:/etc/kolla/config/cinder/cinder-volume/ceph.client.cinder.keyring
scp -r /etc/ceph/ceph.client.cinder.keyring root@$DeploymentIP:/etc/kolla/config/nova/ceph.client.cinder.keyring