mirror of https://github.com/ceph/ceph-ansible.git
Merge pull request #449 from nexecook/pre-infernalis_fixes
fixes ceph_stable_release logic mentioned in issue #446pull/456/head
commit
f64920e233
|
@ -47,6 +47,16 @@ dummy:
|
||||||
#ceph_stable_key: https://download.ceph.com/keys/release.asc
|
#ceph_stable_key: https://download.ceph.com/keys/release.asc
|
||||||
#ceph_stable_release: infernalis # ceph stable release
|
#ceph_stable_release: infernalis # ceph stable release
|
||||||
|
|
||||||
|
###################
|
||||||
|
# Stable Releases #
|
||||||
|
###################
|
||||||
|
#ceph_stable_releases:
|
||||||
|
# - dumpling
|
||||||
|
# - emperor
|
||||||
|
# - firefly
|
||||||
|
# - giant
|
||||||
|
# - hammer
|
||||||
|
#
|
||||||
# Use the option below to specify your applicable package tree, eg. when using non-LTS Ubuntu versions
|
# Use the option below to specify your applicable package tree, eg. when using non-LTS Ubuntu versions
|
||||||
# # for a list of available Debian distributions, visit http://ceph.com/debian-{{ ceph_stable_release }}/dists/
|
# # for a list of available Debian distributions, visit http://ceph.com/debian-{{ ceph_stable_release }}/dists/
|
||||||
# for more info read: https://github.com/ceph/ceph-ansible/issues/305
|
# for more info read: https://github.com/ceph/ceph-ansible/issues/305
|
||||||
|
|
|
@ -45,6 +45,16 @@ ceph_stable: false # use ceph stable branch
|
||||||
ceph_stable_key: https://download.ceph.com/keys/release.asc
|
ceph_stable_key: https://download.ceph.com/keys/release.asc
|
||||||
ceph_stable_release: infernalis # ceph stable release
|
ceph_stable_release: infernalis # ceph stable release
|
||||||
|
|
||||||
|
###################
|
||||||
|
# Stable Releases #
|
||||||
|
###################
|
||||||
|
ceph_stable_releases:
|
||||||
|
- dumpling
|
||||||
|
- emperor
|
||||||
|
- firefly
|
||||||
|
- giant
|
||||||
|
- hammer
|
||||||
|
|
||||||
# Use the option below to specify your applicable package tree, eg. when using non-LTS Ubuntu versions
|
# Use the option below to specify your applicable package tree, eg. when using non-LTS Ubuntu versions
|
||||||
# # for a list of available Debian distributions, visit http://ceph.com/debian-{{ ceph_stable_release }}/dists/
|
# # for a list of available Debian distributions, visit http://ceph.com/debian-{{ ceph_stable_release }}/dists/
|
||||||
# for more info read: https://github.com/ceph/ceph-ansible/issues/305
|
# for more info read: https://github.com/ceph/ceph-ansible/issues/305
|
||||||
|
|
|
@ -6,12 +6,7 @@
|
||||||
owner: ceph
|
owner: ceph
|
||||||
group: ceph
|
group: ceph
|
||||||
mode: 0755
|
mode: 0755
|
||||||
when:
|
when: ceph_stable_release not in ceph_stable_releases
|
||||||
ceph_stable_release != 'dumpling' or
|
|
||||||
ceph_stable_release != 'emperor' or
|
|
||||||
ceph_stable_release != 'firefly' or
|
|
||||||
ceph_stable_release != 'giant' or
|
|
||||||
ceph_stable_release != 'hammer'
|
|
||||||
|
|
||||||
- name: create bootstrap-mds directory (before infernalis release)
|
- name: create bootstrap-mds directory (before infernalis release)
|
||||||
file:
|
file:
|
||||||
|
@ -20,13 +15,7 @@
|
||||||
owner: root
|
owner: root
|
||||||
group: root
|
group: root
|
||||||
mode: 0755
|
mode: 0755
|
||||||
when:
|
when: cephx and ceph_stable_release in ceph_stable_releases
|
||||||
cephx and
|
|
||||||
(ceph_stable_release == 'dumpling' or
|
|
||||||
ceph_stable_release == 'emperor' or
|
|
||||||
ceph_stable_release == 'firefly' or
|
|
||||||
ceph_stable_release == 'giant' or
|
|
||||||
ceph_stable_release == 'hammer')
|
|
||||||
|
|
||||||
- name: copy mds bootstrap key (for or after infernalis release)
|
- name: copy mds bootstrap key (for or after infernalis release)
|
||||||
copy:
|
copy:
|
||||||
|
@ -36,12 +25,7 @@
|
||||||
group: ceph
|
group: ceph
|
||||||
mode: 0600
|
mode: 0600
|
||||||
when:
|
when:
|
||||||
cephx and
|
cephx and ceph_stable_release not in ceph_stable_releases
|
||||||
(ceph_stable_release != 'dumpling' or
|
|
||||||
ceph_stable_release != 'emperor' or
|
|
||||||
ceph_stable_release != 'firefly' or
|
|
||||||
ceph_stable_release != 'giant' or
|
|
||||||
ceph_stable_release != 'hammer')
|
|
||||||
|
|
||||||
- name: copy mds bootstrap key (before infernalis release)
|
- name: copy mds bootstrap key (before infernalis release)
|
||||||
copy:
|
copy:
|
||||||
|
@ -51,12 +35,7 @@
|
||||||
group: root
|
group: root
|
||||||
mode: 0600
|
mode: 0600
|
||||||
when:
|
when:
|
||||||
cephx and
|
cephx and ceph_stable_release in ceph_stable_releases
|
||||||
(ceph_stable_release == 'dumpling' or
|
|
||||||
ceph_stable_release == 'emperor' or
|
|
||||||
ceph_stable_release == 'firefly' or
|
|
||||||
ceph_stable_release == 'giant' or
|
|
||||||
ceph_stable_release == 'hammer')
|
|
||||||
|
|
||||||
- name: create mds directory (for or after infernalis release)
|
- name: create mds directory (for or after infernalis release)
|
||||||
file:
|
file:
|
||||||
|
@ -66,27 +45,17 @@
|
||||||
group: ceph
|
group: ceph
|
||||||
mode: 0755
|
mode: 0755
|
||||||
when:
|
when:
|
||||||
cephx and
|
cephx and ceph_stable_release not in ceph_stable_releases
|
||||||
(ceph_stable_release != 'dumpling' or
|
|
||||||
ceph_stable_release != 'emperor' or
|
|
||||||
ceph_stable_release != 'firefly' or
|
|
||||||
ceph_stable_release != 'giant' or
|
|
||||||
ceph_stable_release != 'hammer')
|
|
||||||
|
|
||||||
- name: create mds directory (before infernalis release)
|
- name: create mds directory (before infernalis release)
|
||||||
file:
|
file:
|
||||||
path: /var/lib/ceph/mds/ceph-{{ ansible_hostname }}
|
path: /var/lib/ceph/mds/ceph-{{ ansible_hostname }}
|
||||||
state: directory
|
state: directory
|
||||||
owner: ceph
|
owner: root
|
||||||
group: cephh
|
group: root
|
||||||
mode: 0755
|
mode: 0755
|
||||||
when:
|
when:
|
||||||
cephx and
|
cephx and ceph_stable_release in ceph_stable_releases
|
||||||
(ceph_stable_release == 'dumpling' or
|
|
||||||
ceph_stable_release == 'emperor' or
|
|
||||||
ceph_stable_release == 'firefly' or
|
|
||||||
ceph_stable_release == 'giant' or
|
|
||||||
ceph_stable_release == 'hammer')
|
|
||||||
|
|
||||||
- name: create mds keyring
|
- name: create mds keyring
|
||||||
command: ceph --cluster ceph --name client.bootstrap-mds --keyring /var/lib/ceph/bootstrap-mds/ceph.keyring auth get-or-create mds.{{ ansible_hostname }} osd 'allow rwx' mds 'allow' mon 'allow profile mds' -o /var/lib/ceph/mds/ceph-{{ ansible_hostname }}/keyring
|
command: ceph --cluster ceph --name client.bootstrap-mds --keyring /var/lib/ceph/bootstrap-mds/ceph.keyring auth get-or-create mds.{{ ansible_hostname }} osd 'allow rwx' mds 'allow' mon 'allow profile mds' -o /var/lib/ceph/mds/ceph-{{ ansible_hostname }}/keyring
|
||||||
|
@ -103,11 +72,7 @@
|
||||||
group: ceph
|
group: ceph
|
||||||
when:
|
when:
|
||||||
cephx and
|
cephx and
|
||||||
(ceph_stable_release != 'dumpling' or
|
ceph_stable_release not in ceph_stable_releases
|
||||||
ceph_stable_release != 'emperor' or
|
|
||||||
ceph_stable_release != 'firefly' or
|
|
||||||
ceph_stable_release != 'giant' or
|
|
||||||
ceph_stable_release != 'hammer')
|
|
||||||
|
|
||||||
- name: set mds key permissions (before infernalis)
|
- name: set mds key permissions (before infernalis)
|
||||||
file:
|
file:
|
||||||
|
@ -116,12 +81,7 @@
|
||||||
owner: root
|
owner: root
|
||||||
group: root
|
group: root
|
||||||
when:
|
when:
|
||||||
cephx and
|
cephx and ceph_stable_release in ceph_stable_releases
|
||||||
(ceph_stable_release == 'dumpling' or
|
|
||||||
ceph_stable_release == 'emperor' or
|
|
||||||
ceph_stable_release == 'firefly' or
|
|
||||||
ceph_stable_release == 'giant' or
|
|
||||||
ceph_stable_release == 'hammer')
|
|
||||||
|
|
||||||
- name: activate metadata server with upstart (for or after infernalis release)
|
- name: activate metadata server with upstart (for or after infernalis release)
|
||||||
file:
|
file:
|
||||||
|
@ -136,11 +96,7 @@
|
||||||
changed_when: false
|
changed_when: false
|
||||||
when:
|
when:
|
||||||
ansible_distribution == "Ubuntu" and
|
ansible_distribution == "Ubuntu" and
|
||||||
(ceph_stable_release != 'dumpling' or
|
ceph_stable_release not in ceph_stable_releases
|
||||||
ceph_stable_release != 'emperor' or
|
|
||||||
ceph_stable_release != 'firefly' or
|
|
||||||
ceph_stable_release != 'giant' or
|
|
||||||
ceph_stable_release != 'hammer')
|
|
||||||
|
|
||||||
- name: activate metadata server with upstart (before infernalis release)
|
- name: activate metadata server with upstart (before infernalis release)
|
||||||
file:
|
file:
|
||||||
|
@ -154,12 +110,7 @@
|
||||||
- upstart
|
- upstart
|
||||||
changed_when: false
|
changed_when: false
|
||||||
when:
|
when:
|
||||||
ansible_distribution == "Ubuntu" and
|
ansible_distribution == "Ubuntu" and ceph_stable_release in ceph_stable_releases
|
||||||
(ceph_stable_release == 'dumpling' or
|
|
||||||
ceph_stable_release == 'emperor' or
|
|
||||||
ceph_stable_release == 'firefly' or
|
|
||||||
ceph_stable_release == 'giant' or
|
|
||||||
ceph_stable_release == 'hammer')
|
|
||||||
|
|
||||||
- name: activate metadata server with sysvinit (for or after infernalis release)
|
- name: activate metadata server with sysvinit (for or after infernalis release)
|
||||||
file:
|
file:
|
||||||
|
@ -174,11 +125,7 @@
|
||||||
changed_when: false
|
changed_when: false
|
||||||
when:
|
when:
|
||||||
ansible_distribution != "Ubuntu" and
|
ansible_distribution != "Ubuntu" and
|
||||||
(ceph_stable_release != 'dumpling' or
|
ceph_stable_release not in ceph_stable_releases
|
||||||
ceph_stable_release != 'emperor' or
|
|
||||||
ceph_stable_release != 'firefly' or
|
|
||||||
ceph_stable_release != 'giant' or
|
|
||||||
ceph_stable_release != 'hammer')
|
|
||||||
|
|
||||||
- name: activate metadata server with sysvinit (before infernalis release)
|
- name: activate metadata server with sysvinit (before infernalis release)
|
||||||
file:
|
file:
|
||||||
|
@ -192,12 +139,7 @@
|
||||||
- sysvinit
|
- sysvinit
|
||||||
changed_when: false
|
changed_when: false
|
||||||
when:
|
when:
|
||||||
ansible_distribution != "Ubuntu" and
|
ansible_distribution != "Ubuntu" and ceph_stable_release in ceph_stable_releases
|
||||||
(ceph_stable_release == 'dumpling' or
|
|
||||||
ceph_stable_release == 'emperor' or
|
|
||||||
ceph_stable_release == 'firefly' or
|
|
||||||
ceph_stable_release == 'giant' or
|
|
||||||
ceph_stable_release == 'hammer')
|
|
||||||
|
|
||||||
- name: start and add that the metadata service to the init sequence (ubuntu)
|
- name: start and add that the metadata service to the init sequence (ubuntu)
|
||||||
service:
|
service:
|
||||||
|
@ -213,15 +155,9 @@
|
||||||
name: ceph
|
name: ceph
|
||||||
state: started
|
state: started
|
||||||
enabled: yes
|
enabled: yes
|
||||||
args: mds
|
args: mds.{{ ansible_hostname }}
|
||||||
changed_when: false
|
changed_when: false
|
||||||
when: ansible_distribution != "Ubuntu" and
|
when: ansible_distribution != "Ubuntu" and ceph_stable_release in ceph_stable_releases
|
||||||
(ceph_stable_release == 'dumpling' or
|
|
||||||
ceph_stable_release == 'emperor' or
|
|
||||||
ceph_stable_release == 'firefly' or
|
|
||||||
ceph_stable_release == 'giant' or
|
|
||||||
ceph_stable_release == 'hammer')
|
|
||||||
|
|
||||||
|
|
||||||
- name: start and add that the metadata service to the init sequence (for or after infernalis)
|
- name: start and add that the metadata service to the init sequence (for or after infernalis)
|
||||||
service:
|
service:
|
||||||
|
@ -229,9 +165,4 @@
|
||||||
state: started
|
state: started
|
||||||
enabled: yes
|
enabled: yes
|
||||||
changed_when: false
|
changed_when: false
|
||||||
when: ansible_distribution != "Ubuntu" and not
|
when: ansible_distribution != "Ubuntu" and ceph_stable_release not in ceph_stable_releases
|
||||||
(ceph_stable_release == 'dumpling' or
|
|
||||||
ceph_stable_release == 'emperor' or
|
|
||||||
ceph_stable_release == 'firefly' or
|
|
||||||
ceph_stable_release == 'giant' or
|
|
||||||
ceph_stable_release == 'hammer')
|
|
||||||
|
|
|
@ -25,12 +25,7 @@
|
||||||
mode: 0600
|
mode: 0600
|
||||||
owner: ceph
|
owner: ceph
|
||||||
group: ceph
|
group: ceph
|
||||||
when:
|
when: ceph_stable_release not in ceph_stable_releases
|
||||||
ceph_stable_release != 'dumpling' or
|
|
||||||
ceph_stable_release != 'emperor' or
|
|
||||||
ceph_stable_release != 'firefly' or
|
|
||||||
ceph_stable_release != 'giant' or
|
|
||||||
ceph_stable_release != 'hammer'
|
|
||||||
|
|
||||||
- name: create monitor directory (for or after infernalis release)
|
- name: create monitor directory (for or after infernalis release)
|
||||||
file:
|
file:
|
||||||
|
@ -39,12 +34,7 @@
|
||||||
owner: ceph
|
owner: ceph
|
||||||
group: ceph
|
group: ceph
|
||||||
mode: 0755
|
mode: 0755
|
||||||
when:
|
when: ceph_stable_release not in ceph_stable_releases
|
||||||
ceph_stable_release != 'dumpling' or
|
|
||||||
ceph_stable_release != 'emperor' or
|
|
||||||
ceph_stable_release != 'firefly' or
|
|
||||||
ceph_stable_release != 'giant' or
|
|
||||||
ceph_stable_release != 'hammer'
|
|
||||||
|
|
||||||
- name: set initial monitor key permissions (before infernalis release)
|
- name: set initial monitor key permissions (before infernalis release)
|
||||||
file:
|
file:
|
||||||
|
@ -52,12 +42,7 @@
|
||||||
mode: 0600
|
mode: 0600
|
||||||
owner: root
|
owner: root
|
||||||
group: root
|
group: root
|
||||||
when:
|
when: ceph_stable_release in ceph_stable_releases
|
||||||
ceph_stable_release == 'dumpling' or
|
|
||||||
ceph_stable_release == 'emperor' or
|
|
||||||
ceph_stable_release == 'firefly' or
|
|
||||||
ceph_stable_release == 'giant' or
|
|
||||||
ceph_stable_release == 'hammer'
|
|
||||||
|
|
||||||
- name: create monitor directory (before infernalis release)
|
- name: create monitor directory (before infernalis release)
|
||||||
file:
|
file:
|
||||||
|
@ -66,31 +51,16 @@
|
||||||
owner: root
|
owner: root
|
||||||
group: root
|
group: root
|
||||||
mode: 0755
|
mode: 0755
|
||||||
when:
|
when: ceph_stable_release in ceph_stable_releases
|
||||||
ceph_stable_release == 'dumpling' or
|
|
||||||
ceph_stable_release == 'emperor' or
|
|
||||||
ceph_stable_release == 'firefly' or
|
|
||||||
ceph_stable_release == 'giant' or
|
|
||||||
ceph_stable_release == 'hammer'
|
|
||||||
|
|
||||||
- name: ceph monitor mkfs (for or after infernalis release)
|
- name: ceph monitor mkfs (for or after infernalis release)
|
||||||
command: ceph-mon --setuser ceph --setgroup ceph --mkfs -i {{ ansible_hostname }} --fsid {{ fsid }} --keyring /var/lib/ceph/tmp/keyring.mon.{{ ansible_hostname }}
|
command: ceph-mon --setuser ceph --setgroup ceph --mkfs -i {{ ansible_hostname }} --fsid {{ fsid }} --keyring /var/lib/ceph/tmp/keyring.mon.{{ ansible_hostname }}
|
||||||
args:
|
args:
|
||||||
creates: /var/lib/ceph/mon/ceph-{{ ansible_hostname }}/keyring
|
creates: /var/lib/ceph/mon/ceph-{{ ansible_hostname }}/keyring
|
||||||
when:
|
when: ceph_stable_release not in ceph_stable_releases
|
||||||
ceph_stable_release != 'dumpling' or
|
|
||||||
ceph_stable_release != 'emperor' or
|
|
||||||
ceph_stable_release != 'firefly' or
|
|
||||||
ceph_stable_release != 'giant' or
|
|
||||||
ceph_stable_release != 'hammer'
|
|
||||||
|
|
||||||
- name: ceph monitor mkfs (before infernalis release)
|
- name: ceph monitor mkfs (before infernalis release)
|
||||||
command: ceph-mon --mkfs -i {{ ansible_hostname }} --fsid {{ fsid }} --keyring /var/lib/ceph/tmp/keyring.mon.{{ ansible_hostname }}
|
command: ceph-mon --mkfs -i {{ ansible_hostname }} --fsid {{ fsid }} --keyring /var/lib/ceph/tmp/keyring.mon.{{ ansible_hostname }}
|
||||||
args:
|
args:
|
||||||
creates: /var/lib/ceph/mon/ceph-{{ ansible_hostname }}/keyring
|
creates: /var/lib/ceph/mon/ceph-{{ ansible_hostname }}/keyring
|
||||||
when:
|
when: ceph_stable_release in ceph_stable_releases
|
||||||
ceph_stable_release == 'dumpling' or
|
|
||||||
ceph_stable_release == 'emperor' or
|
|
||||||
ceph_stable_release == 'firefly' or
|
|
||||||
ceph_stable_release == 'giant' or
|
|
||||||
ceph_stable_release == 'hammer'
|
|
||||||
|
|
|
@ -9,7 +9,9 @@
|
||||||
with_items:
|
with_items:
|
||||||
- done
|
- done
|
||||||
- upstart
|
- upstart
|
||||||
when: ansible_distribution == "Ubuntu"
|
when:
|
||||||
|
ansible_distribution == "Ubuntu" and ceph_stable_release not in ceph_stable_releases
|
||||||
|
|
||||||
changed_when: false
|
changed_when: false
|
||||||
|
|
||||||
- name: activate monitor with upstart before infernalis release
|
- name: activate monitor with upstart before infernalis release
|
||||||
|
@ -24,11 +26,7 @@
|
||||||
- upstart
|
- upstart
|
||||||
when:
|
when:
|
||||||
ansible_distribution == "Ubuntu" and
|
ansible_distribution == "Ubuntu" and
|
||||||
(ceph_stable_release == 'dumpling' or
|
ceph_stable_release in ceph_stable_releases
|
||||||
ceph_stable_release == 'emperor' or
|
|
||||||
ceph_stable_release == 'firefly' or
|
|
||||||
ceph_stable_release == 'giant' or
|
|
||||||
ceph_stable_release == 'hammer')
|
|
||||||
changed_when: false
|
changed_when: false
|
||||||
|
|
||||||
- name: start and add that the monitor service to the init sequence (ubuntu)
|
- name: start and add that the monitor service to the init sequence (ubuntu)
|
||||||
|
@ -46,11 +44,7 @@
|
||||||
changed_when: false
|
changed_when: false
|
||||||
when:
|
when:
|
||||||
ansible_distribution != "Ubuntu" and
|
ansible_distribution != "Ubuntu" and
|
||||||
(ceph_stable_release == 'dumpling' or
|
ceph_stable_release in ceph_stable_releases
|
||||||
ceph_stable_release == 'emperor' or
|
|
||||||
ceph_stable_release == 'firefly' or
|
|
||||||
ceph_stable_release == 'giant' or
|
|
||||||
ceph_stable_release == 'hammer')
|
|
||||||
|
|
||||||
- name: start and add that the monitor service to the init sequence (for or after infernalis)
|
- name: start and add that the monitor service to the init sequence (for or after infernalis)
|
||||||
service:
|
service:
|
||||||
|
@ -59,12 +53,8 @@
|
||||||
enabled: yes
|
enabled: yes
|
||||||
changed_when: false
|
changed_when: false
|
||||||
when:
|
when:
|
||||||
ansible_distribution != "Ubuntu" and not
|
ansible_distribution != "Ubuntu" and
|
||||||
(ceph_stable_release == 'dumpling' or
|
ceph_stable_release not in ceph_stable_releases
|
||||||
ceph_stable_release == 'emperor' or
|
|
||||||
ceph_stable_release == 'firefly' or
|
|
||||||
ceph_stable_release == 'giant' or
|
|
||||||
ceph_stable_release == 'hammer')
|
|
||||||
|
|
||||||
- name: collect admin and bootstrap keys
|
- name: collect admin and bootstrap keys
|
||||||
command: ceph-create-keys --id {{ ansible_hostname }}
|
command: ceph-create-keys --id {{ ansible_hostname }}
|
||||||
|
|
|
@ -18,13 +18,7 @@
|
||||||
owner: ceph
|
owner: ceph
|
||||||
group: ceph
|
group: ceph
|
||||||
mode: 0755
|
mode: 0755
|
||||||
when:
|
when: cephx and ceph_stable_release not in ceph_stable_releases
|
||||||
cephx and
|
|
||||||
(ceph_stable_release != 'dumpling' or
|
|
||||||
ceph_stable_release != 'emperor' or
|
|
||||||
ceph_stable_release != 'firefly' or
|
|
||||||
ceph_stable_release != 'giant' or
|
|
||||||
ceph_stable_release != 'hammer')
|
|
||||||
|
|
||||||
- name: create bootstrap-osd directory (before infernalis release)
|
- name: create bootstrap-osd directory (before infernalis release)
|
||||||
file:
|
file:
|
||||||
|
@ -33,13 +27,7 @@
|
||||||
owner: root
|
owner: root
|
||||||
group: root
|
group: root
|
||||||
mode: 0755
|
mode: 0755
|
||||||
when:
|
when: cephx and ceph_stable_release in ceph_stable_releases
|
||||||
cephx and
|
|
||||||
(ceph_stable_release == 'dumpling' or
|
|
||||||
ceph_stable_release == 'emperor' or
|
|
||||||
ceph_stable_release == 'firefly' or
|
|
||||||
ceph_stable_release == 'giant' or
|
|
||||||
ceph_stable_release == 'hammer')
|
|
||||||
|
|
||||||
- name: copy osd bootstrap key (for or after infernalis release)
|
- name: copy osd bootstrap key (for or after infernalis release)
|
||||||
copy:
|
copy:
|
||||||
|
@ -48,13 +36,7 @@
|
||||||
owner: ceph
|
owner: ceph
|
||||||
group: ceph
|
group: ceph
|
||||||
mode: 0600
|
mode: 0600
|
||||||
when:
|
when: cephx and ceph_stable_release not in ceph_stable_releases
|
||||||
cephx and
|
|
||||||
(ceph_stable_release != 'dumpling' or
|
|
||||||
ceph_stable_release != 'emperor' or
|
|
||||||
ceph_stable_release != 'firefly' or
|
|
||||||
ceph_stable_release != 'giant' or
|
|
||||||
ceph_stable_release != 'hammer')
|
|
||||||
|
|
||||||
- name: copy osd bootstrap key (before infernalis release)
|
- name: copy osd bootstrap key (before infernalis release)
|
||||||
copy:
|
copy:
|
||||||
|
@ -63,10 +45,4 @@
|
||||||
owner: root
|
owner: root
|
||||||
group: root
|
group: root
|
||||||
mode: 600
|
mode: 600
|
||||||
when:
|
when: cephx and ceph_stable_release in ceph_stable_releases
|
||||||
cephx and
|
|
||||||
(ceph_stable_release == 'dumpling' or
|
|
||||||
ceph_stable_release == 'emperor' or
|
|
||||||
ceph_stable_release == 'firefly' or
|
|
||||||
ceph_stable_release == 'giant' or
|
|
||||||
ceph_stable_release == 'hammer')
|
|
||||||
|
|
|
@ -6,12 +6,7 @@
|
||||||
owner: ceph
|
owner: ceph
|
||||||
group: ceph
|
group: ceph
|
||||||
mode: 0755
|
mode: 0755
|
||||||
when:
|
when: ceph_stable_release not in ceph_stable_releases
|
||||||
ceph_stable_release != 'dumpling' or
|
|
||||||
ceph_stable_release != 'emperor' or
|
|
||||||
ceph_stable_release != 'firefly' or
|
|
||||||
ceph_stable_release != 'giant' or
|
|
||||||
ceph_stable_release != 'hammer'
|
|
||||||
|
|
||||||
- name: create ceph rest api directory (before infernalis release)
|
- name: create ceph rest api directory (before infernalis release)
|
||||||
file:
|
file:
|
||||||
|
@ -20,12 +15,7 @@
|
||||||
owner: root
|
owner: root
|
||||||
group: root
|
group: root
|
||||||
mode: 0755
|
mode: 0755
|
||||||
when:
|
when: ceph_stable_release in ceph_stable_releases
|
||||||
ceph_stable_release == 'dumpling' or
|
|
||||||
ceph_stable_release == 'emperor' or
|
|
||||||
ceph_stable_release == 'firefly' or
|
|
||||||
ceph_stable_release == 'giant' or
|
|
||||||
ceph_stable_release == 'hammer'
|
|
||||||
|
|
||||||
- name: copy ceph rest api keyring (for or after infernalis release)
|
- name: copy ceph rest api keyring (for or after infernalis release)
|
||||||
copy:
|
copy:
|
||||||
|
@ -35,12 +25,7 @@
|
||||||
group: ceph
|
group: ceph
|
||||||
mode: 600
|
mode: 600
|
||||||
when:
|
when:
|
||||||
cephx and
|
cephx and ceph_stable_release not in ceph_stable_releases
|
||||||
(ceph_stable_release != 'dumpling' or
|
|
||||||
ceph_stable_release != 'emperor' or
|
|
||||||
ceph_stable_release != 'firefly' or
|
|
||||||
ceph_stable_release != 'giant' or
|
|
||||||
ceph_stable_release != 'hammer')
|
|
||||||
|
|
||||||
- name: copy ceph rest api keyring (before infernalis release)
|
- name: copy ceph rest api keyring (before infernalis release)
|
||||||
copy:
|
copy:
|
||||||
|
@ -50,12 +35,7 @@
|
||||||
group: root
|
group: root
|
||||||
mode: 600
|
mode: 600
|
||||||
when:
|
when:
|
||||||
cephx and
|
cephx and ceph_stable_release in ceph_stable_releases
|
||||||
(ceph_stable_release == 'dumpling' or
|
|
||||||
ceph_stable_release == 'emperor' or
|
|
||||||
ceph_stable_release == 'firefly' or
|
|
||||||
ceph_stable_release == 'giant' or
|
|
||||||
ceph_stable_release == 'hammer')
|
|
||||||
|
|
||||||
- name: activate ceph rest api with upstart (for or after infernalis release)
|
- name: activate ceph rest api with upstart (for or after infernalis release)
|
||||||
file:
|
file:
|
||||||
|
@ -69,12 +49,7 @@
|
||||||
- upstart
|
- upstart
|
||||||
changed_when: false
|
changed_when: false
|
||||||
when:
|
when:
|
||||||
ansible_distribution == "Ubuntu" and
|
ansible_distribution == "Ubuntu" and ceph_stable_release not in ceph_stable_releases
|
||||||
(ceph_stable_release != 'dumpling' or
|
|
||||||
ceph_stable_release != 'emperor' or
|
|
||||||
ceph_stable_release != 'firefly' or
|
|
||||||
ceph_stable_release != 'giant' or
|
|
||||||
ceph_stable_release != 'hammer')
|
|
||||||
|
|
||||||
- name: activate ceph rest api with upstart (before infernalis release)
|
- name: activate ceph rest api with upstart (before infernalis release)
|
||||||
file:
|
file:
|
||||||
|
@ -88,12 +63,7 @@
|
||||||
- upstart
|
- upstart
|
||||||
changed_when: false
|
changed_when: false
|
||||||
when:
|
when:
|
||||||
ansible_distribution == "Ubuntu" and
|
ansible_distribution == "Ubuntu" and ceph_stable_release not in ceph_stable_releases
|
||||||
(ceph_stable_release != 'dumpling' or
|
|
||||||
ceph_stable_release != 'emperor' or
|
|
||||||
ceph_stable_release != 'firefly' or
|
|
||||||
ceph_stable_release != 'giant' or
|
|
||||||
ceph_stable_release != 'hammer')
|
|
||||||
|
|
||||||
- name: activate ceph rest api with sysvinit (for or after infernalis release))
|
- name: activate ceph rest api with sysvinit (for or after infernalis release))
|
||||||
file:
|
file:
|
||||||
|
@ -106,12 +76,7 @@
|
||||||
- done
|
- done
|
||||||
- sysvinit
|
- sysvinit
|
||||||
when:
|
when:
|
||||||
ansible_distribution != "Ubuntu" and
|
ansible_distribution != "Ubuntu" and ceph_stable_release not in ceph_stable_releases
|
||||||
(ceph_stable_release != 'dumpling' or
|
|
||||||
ceph_stable_release != 'emperor' or
|
|
||||||
ceph_stable_release != 'firefly' or
|
|
||||||
ceph_stable_release != 'giant' or
|
|
||||||
ceph_stable_release != 'hammer')
|
|
||||||
|
|
||||||
- name: activate ceph rest api with sysvinit (before infernalis release))
|
- name: activate ceph rest api with sysvinit (before infernalis release))
|
||||||
file:
|
file:
|
||||||
|
@ -124,12 +89,7 @@
|
||||||
- done
|
- done
|
||||||
- sysvinit
|
- sysvinit
|
||||||
when:
|
when:
|
||||||
ansible_distribution != "Ubuntu" and
|
ansible_distribution != "Ubuntu" and ceph_stable_release not in ceph_stable_releases
|
||||||
(ceph_stable_release != 'dumpling' or
|
|
||||||
ceph_stable_release != 'emperor' or
|
|
||||||
ceph_stable_release != 'firefly' or
|
|
||||||
ceph_stable_release != 'giant' or
|
|
||||||
ceph_stable_release != 'hammer')
|
|
||||||
|
|
||||||
# NOTE (leseb): will uncomment this when this https://github.com/ceph/ceph/pull/4144 lands
|
# NOTE (leseb): will uncomment this when this https://github.com/ceph/ceph/pull/4144 lands
|
||||||
#- name: start and add that the Ceph REST API service to the init sequence (Ubuntu)
|
#- name: start and add that the Ceph REST API service to the init sequence (Ubuntu)
|
||||||
|
|
|
@ -9,12 +9,7 @@
|
||||||
with_items:
|
with_items:
|
||||||
- /var/lib/ceph/bootstrap-rgw
|
- /var/lib/ceph/bootstrap-rgw
|
||||||
- /var/lib/ceph/radosgw/ceph-rgw.{{ ansible_hostname }}
|
- /var/lib/ceph/radosgw/ceph-rgw.{{ ansible_hostname }}
|
||||||
when:
|
when: ceph_stable_release not in ceph_stable_releases
|
||||||
ceph_stable_release != 'dumpling' or
|
|
||||||
ceph_stable_release != 'emperor' or
|
|
||||||
ceph_stable_release != 'firefly' or
|
|
||||||
ceph_stable_release != 'giant' or
|
|
||||||
ceph_stable_release != 'hammer'
|
|
||||||
|
|
||||||
- name: create rados gateway directories (before infernalis release)
|
- name: create rados gateway directories (before infernalis release)
|
||||||
file:
|
file:
|
||||||
|
@ -26,12 +21,7 @@
|
||||||
with_items:
|
with_items:
|
||||||
- /var/lib/ceph/bootstrap-rgw
|
- /var/lib/ceph/bootstrap-rgw
|
||||||
- /var/lib/ceph/radosgw/ceph-rgw.{{ ansible_hostname }}
|
- /var/lib/ceph/radosgw/ceph-rgw.{{ ansible_hostname }}
|
||||||
when:
|
when: ceph_stable_release in ceph_stable_releases
|
||||||
ceph_stable_release == 'dumpling' or
|
|
||||||
ceph_stable_release == 'emperor' or
|
|
||||||
ceph_stable_release == 'firefly' or
|
|
||||||
ceph_stable_release == 'giant' or
|
|
||||||
ceph_stable_release == 'hammer'
|
|
||||||
|
|
||||||
- name: copy rados gateway bootstrap key (for or after infernalis release)
|
- name: copy rados gateway bootstrap key (for or after infernalis release)
|
||||||
copy:
|
copy:
|
||||||
|
@ -40,13 +30,7 @@
|
||||||
owner: ceph
|
owner: ceph
|
||||||
group: ceph
|
group: ceph
|
||||||
mode: 0600
|
mode: 0600
|
||||||
when:
|
when: cephx and ceph_stable_release not in ceph_stable_releases
|
||||||
cephx and
|
|
||||||
(ceph_stable_release != 'dumpling' or
|
|
||||||
ceph_stable_release != 'emperor' or
|
|
||||||
ceph_stable_release != 'firefly' or
|
|
||||||
ceph_stable_release != 'giant' or
|
|
||||||
ceph_stable_release != 'hammer')
|
|
||||||
|
|
||||||
- name: copy rados gateway bootstrap key (before infernalis release)
|
- name: copy rados gateway bootstrap key (before infernalis release)
|
||||||
copy:
|
copy:
|
||||||
|
@ -55,13 +39,7 @@
|
||||||
owner: root
|
owner: root
|
||||||
group: root
|
group: root
|
||||||
mode: 0600
|
mode: 0600
|
||||||
when:
|
when: cephx and ceph_stable_release in ceph_stable_releases
|
||||||
cephx and
|
|
||||||
(ceph_stable_release == 'dumpling' or
|
|
||||||
ceph_stable_release == 'emperor' or
|
|
||||||
ceph_stable_release == 'firefly' or
|
|
||||||
ceph_stable_release == 'giant' or
|
|
||||||
ceph_stable_release == 'hammer')
|
|
||||||
|
|
||||||
- name: create rados gateway keyring
|
- name: create rados gateway keyring
|
||||||
command: ceph --cluster ceph --name client.bootstrap-rgw --keyring /var/lib/ceph/bootstrap-rgw/ceph.keyring auth get-or-create client.rgw.{{ ansible_hostname }} osd 'allow rwx' mon 'allow rw' -o /var/lib/ceph/radosgw/ceph-rgw.{{ ansible_hostname }}/keyring
|
command: ceph --cluster ceph --name client.bootstrap-rgw --keyring /var/lib/ceph/bootstrap-rgw/ceph.keyring auth get-or-create client.rgw.{{ ansible_hostname }} osd 'allow rwx' mon 'allow rw' -o /var/lib/ceph/radosgw/ceph-rgw.{{ ansible_hostname }}/keyring
|
||||||
|
@ -76,13 +54,7 @@
|
||||||
mode: 0600
|
mode: 0600
|
||||||
owner: ceph
|
owner: ceph
|
||||||
group: ceph
|
group: ceph
|
||||||
when:
|
when: cephx and ceph_stable_release not in ceph_stable_releases
|
||||||
cephx and
|
|
||||||
(ceph_stable_release != 'dumpling' or
|
|
||||||
ceph_stable_release != 'emperor' or
|
|
||||||
ceph_stable_release != 'firefly' or
|
|
||||||
ceph_stable_release != 'giant' or
|
|
||||||
ceph_stable_release != 'hammer')
|
|
||||||
|
|
||||||
- name: set rados gateway key permissions (before infernalis release)
|
- name: set rados gateway key permissions (before infernalis release)
|
||||||
file:
|
file:
|
||||||
|
@ -90,13 +62,7 @@
|
||||||
mode: 0600
|
mode: 0600
|
||||||
owner: root
|
owner: root
|
||||||
group: root
|
group: root
|
||||||
when:
|
when: cephx and ceph_stable_release in ceph_stable_releases
|
||||||
cephx and
|
|
||||||
(ceph_stable_release == 'dumpling' or
|
|
||||||
ceph_stable_release == 'emperor' or
|
|
||||||
ceph_stable_release == 'firefly' or
|
|
||||||
ceph_stable_release == 'giant' or
|
|
||||||
ceph_stable_release == 'hammer')
|
|
||||||
|
|
||||||
- name: activate rados gateway with upstart (for or after infernalis release)
|
- name: activate rados gateway with upstart (for or after infernalis release)
|
||||||
file:
|
file:
|
||||||
|
@ -110,12 +76,7 @@
|
||||||
- upstart
|
- upstart
|
||||||
changed_when: false
|
changed_when: false
|
||||||
when:
|
when:
|
||||||
ansible_distribution == "Ubuntu" and
|
ansible_distribution == "Ubuntu" and ceph_stable_release not in ceph_stable_releases
|
||||||
(ceph_stable_release != 'dumpling' or
|
|
||||||
ceph_stable_release != 'emperor' or
|
|
||||||
ceph_stable_release != 'firefly' or
|
|
||||||
ceph_stable_release != 'giant' or
|
|
||||||
ceph_stable_release != 'hammer')
|
|
||||||
|
|
||||||
- name: activate rados gateway with upstart (before infernalis release)
|
- name: activate rados gateway with upstart (before infernalis release)
|
||||||
file:
|
file:
|
||||||
|
@ -129,12 +90,7 @@
|
||||||
- upstart
|
- upstart
|
||||||
changed_when: false
|
changed_when: false
|
||||||
when:
|
when:
|
||||||
ansible_distribution == "Ubuntu" and
|
ansible_distribution == "Ubuntu" and ceph_stable_release in ceph_stable_releases
|
||||||
(ceph_stable_release == 'dumpling' or
|
|
||||||
ceph_stable_release == 'emperor' or
|
|
||||||
ceph_stable_release == 'firefly' or
|
|
||||||
ceph_stable_release == 'giant' or
|
|
||||||
ceph_stable_release == 'hammer')
|
|
||||||
|
|
||||||
- name: activate rados gateway with sysvinit (for or after infernalis release)
|
- name: activate rados gateway with sysvinit (for or after infernalis release)
|
||||||
file:
|
file:
|
||||||
|
@ -148,12 +104,7 @@
|
||||||
- sysvinit
|
- sysvinit
|
||||||
changed_when: false
|
changed_when: false
|
||||||
when:
|
when:
|
||||||
ansible_distribution != "Ubuntu" and
|
ansible_distribution != "Ubuntu" and ceph_stable_release not in ceph_stable_releases
|
||||||
(ceph_stable_release != 'dumpling' or
|
|
||||||
ceph_stable_release != 'emperor' or
|
|
||||||
ceph_stable_release != 'firefly' or
|
|
||||||
ceph_stable_release != 'giant' or
|
|
||||||
ceph_stable_release != 'hammer')
|
|
||||||
|
|
||||||
- name: activate rados gateway with sysvinit (before infernalis release)
|
- name: activate rados gateway with sysvinit (before infernalis release)
|
||||||
file:
|
file:
|
||||||
|
@ -167,12 +118,7 @@
|
||||||
- sysvinit
|
- sysvinit
|
||||||
changed_when: false
|
changed_when: false
|
||||||
when:
|
when:
|
||||||
ansible_distribution != "Ubuntu" and
|
ansible_distribution != "Ubuntu" and ceph_stable_release in ceph_stable_releases
|
||||||
(ceph_stable_release == 'dumpling' or
|
|
||||||
ceph_stable_release == 'emperor' or
|
|
||||||
ceph_stable_release == 'firefly' or
|
|
||||||
ceph_stable_release == 'giant' or
|
|
||||||
ceph_stable_release == 'hammer')
|
|
||||||
|
|
||||||
- name: generate rados gateway sudoers file
|
- name: generate rados gateway sudoers file
|
||||||
template:
|
template:
|
||||||
|
|
Loading…
Reference in New Issue