mirror of https://github.com/ceph/ceph-ansible.git
fixed name: capitilization
parent
d8609ec687
commit
6d55d57fa6
|
@ -14,7 +14,7 @@
|
||||||
# Hard code this so we will skip the entire file instead of individual tasks (Default isn't Consistent)
|
# Hard code this so we will skip the entire file instead of individual tasks (Default isn't Consistent)
|
||||||
static: False
|
static: False
|
||||||
|
|
||||||
- name: Include rgw multisite playbooks
|
- name: include rgw multisite playbooks
|
||||||
include: multisite/main.yml
|
include: multisite/main.yml
|
||||||
when: rgw_zone is defined and rgw_multisite and ( is_jewel or is_after_jewel )
|
when: rgw_zone is defined and rgw_multisite and ( is_jewel or is_after_jewel )
|
||||||
# Hard code this so we will skip the entire file instead of individual tasks (Default isn't Consistent)
|
# Hard code this so we will skip the entire file instead of individual tasks (Default isn't Consistent)
|
||||||
|
|
|
@ -1,23 +1,23 @@
|
||||||
---
|
---
|
||||||
- name: Check if the realm already exists
|
- name: check if the realm already exists
|
||||||
command: radosgw-admin realm get --rgw-realm={{ rgw_realm }}
|
command: radosgw-admin realm get --rgw-realm={{ rgw_realm }}
|
||||||
register: realmcheck
|
register: realmcheck
|
||||||
failed_when: False
|
failed_when: False
|
||||||
changed_when: False
|
changed_when: False
|
||||||
|
|
||||||
- name: Check if the zonegroup already exists
|
- name: check if the zonegroup already exists
|
||||||
command: radosgw-admin zonegroup get --rgw-zonegroup={{ rgw_zonegroup }}
|
command: radosgw-admin zonegroup get --rgw-zonegroup={{ rgw_zonegroup }}
|
||||||
register: zonegroupcheck
|
register: zonegroupcheck
|
||||||
failed_when: False
|
failed_when: False
|
||||||
changed_when: False
|
changed_when: False
|
||||||
|
|
||||||
- name: Check if the zone already exists
|
- name: check if the zone already exists
|
||||||
command: radosgw-admin zone get --rgw-zone={{ rgw_zone }}
|
command: radosgw-admin zone get --rgw-zone={{ rgw_zone }}
|
||||||
register: zonecheck
|
register: zonecheck
|
||||||
failed_when: False
|
failed_when: False
|
||||||
changed_when: False
|
changed_when: False
|
||||||
|
|
||||||
- name: Check if the system user already exists
|
- name: check if the system user already exists
|
||||||
command: radosgw-admin user info --uid=zone.user
|
command: radosgw-admin user info --uid=zone.user
|
||||||
register: usercheck
|
register: usercheck
|
||||||
failed_when: False
|
failed_when: False
|
||||||
|
|
|
@ -1,25 +1,25 @@
|
||||||
---
|
---
|
||||||
- name: Delete the zone user
|
- name: delete the zone user
|
||||||
command: radosgw-admin user rm --uid=zone.user
|
command: radosgw-admin user rm --uid=zone.user
|
||||||
run_once: true
|
run_once: true
|
||||||
failed_when: false
|
failed_when: false
|
||||||
|
|
||||||
- name: Delete the zone
|
- name: delete the zone
|
||||||
command: radosgw-admin zone delete --rgw-zonegroup={{ rgw_zonegroup }} --rgw-zone={{ rgw_zone }}
|
command: radosgw-admin zone delete --rgw-zonegroup={{ rgw_zonegroup }} --rgw-zone={{ rgw_zone }}
|
||||||
run_once: true
|
run_once: true
|
||||||
failed_when: false
|
failed_when: false
|
||||||
|
|
||||||
- name: Delete the zonegroup
|
- name: delete the zonegroup
|
||||||
command: radosgw-admin zonegroup delete --rgw-zonegroup={{ rgw_zonegroup }}
|
command: radosgw-admin zonegroup delete --rgw-zonegroup={{ rgw_zonegroup }}
|
||||||
run_once: true
|
run_once: true
|
||||||
failed_when: false
|
failed_when: false
|
||||||
|
|
||||||
- name: Delete the realm
|
- name: delete the realm
|
||||||
command: radosgw-admin realm delete --rgw-realm={{ rgw_realm }}
|
command: radosgw-admin realm delete --rgw-realm={{ rgw_realm }}
|
||||||
run_once: true
|
run_once: true
|
||||||
failed_when: false
|
failed_when: false
|
||||||
|
|
||||||
- name: Delete zone from RGW stanza in ceph.conf
|
- name: delete zone from rgw stanza in ceph.conf
|
||||||
lineinfile:
|
lineinfile:
|
||||||
dest: /etc/ceph/ceph.conf
|
dest: /etc/ceph/ceph.conf
|
||||||
regexp: "rgw_zone = {{ rgw_zonegroup }}-{{ rgw_zone }}"
|
regexp: "rgw_zone = {{ rgw_zonegroup }}-{{ rgw_zone }}"
|
||||||
|
|
|
@ -1,22 +1,22 @@
|
||||||
---
|
---
|
||||||
- name: Include multisite checks
|
- name: include multisite checks
|
||||||
include: checks.yml
|
include: checks.yml
|
||||||
|
|
||||||
# Include the tasks depending on the zone type
|
# Include the tasks depending on the zone type
|
||||||
- name: Include master multisite tasks
|
- name: include master multisite tasks
|
||||||
include: master.yml
|
include: master.yml
|
||||||
when: "rgw_zonemaster is defined and rgw_zonemaster"
|
when: "rgw_zonemaster is defined and rgw_zonemaster"
|
||||||
# Hard code this so we will skip the entire file instead of individual tasks (Default isn't Consistent)
|
# Hard code this so we will skip the entire file instead of individual tasks (Default isn't Consistent)
|
||||||
static: False
|
static: False
|
||||||
|
|
||||||
- name: Include secondary multisite tasks
|
- name: include secondary multisite tasks
|
||||||
include: secondary.yml
|
include: secondary.yml
|
||||||
when: "rgw_zonesecondary is defined and rgw_zonesecondary"
|
when: "rgw_zonesecondary is defined and rgw_zonesecondary"
|
||||||
# Hard code this so we will skip the entire file instead of individual tasks (Default isn't Consistent)
|
# Hard code this so we will skip the entire file instead of individual tasks (Default isn't Consistent)
|
||||||
static: False
|
static: False
|
||||||
|
|
||||||
# Continue with common tasks
|
# Continue with common tasks
|
||||||
- name: Add zone to RGW stanza in ceph.conf
|
- name: add zone to rgw stanza in ceph.conf
|
||||||
lineinfile:
|
lineinfile:
|
||||||
dest: /etc/ceph/ceph.conf
|
dest: /etc/ceph/ceph.conf
|
||||||
regexp: "{{ ansible_host }}"
|
regexp: "{{ ansible_host }}"
|
||||||
|
|
|
@ -1,26 +1,26 @@
|
||||||
---
|
---
|
||||||
- name: Create the realm
|
- name: create the realm
|
||||||
command: radosgw-admin realm create --rgw-realm={{ rgw_realm }} --default
|
command: radosgw-admin realm create --rgw-realm={{ rgw_realm }} --default
|
||||||
run_once: true
|
run_once: true
|
||||||
when: ("No such file or directory" in realmcheck.stderr) and rgw_zonemaster
|
when: ("No such file or directory" in realmcheck.stderr) and rgw_zonemaster
|
||||||
notify:
|
notify:
|
||||||
- update period
|
- update period
|
||||||
|
|
||||||
- name: Create the zonegroup
|
- name: create the zonegroup
|
||||||
command: radosgw-admin zonegroup create --rgw-zonegroup={{ rgw_zonegroup }} --endpoints=http://{{ ansible_fqdn }}:{{ radosgw_civetweb_port }} --master --default
|
command: radosgw-admin zonegroup create --rgw-zonegroup={{ rgw_zonegroup }} --endpoints=http://{{ ansible_fqdn }}:{{ radosgw_civetweb_port }} --master --default
|
||||||
run_once: true
|
run_once: true
|
||||||
when: ("No such file or directory" in zonegroupcheck.stderr) and rgw_zonemaster
|
when: ("No such file or directory" in zonegroupcheck.stderr) and rgw_zonemaster
|
||||||
notify:
|
notify:
|
||||||
- update period
|
- update period
|
||||||
|
|
||||||
- name: Create the zone
|
- name: create the zone
|
||||||
command: radosgw-admin zone create --rgw-zonegroup={{ rgw_zonegroup }} --rgw-zone={{ rgw_zone }} --endpoints=http://{{ ansible_fqdn }}:{{ radosgw_civetweb_port }} --access-key={{ system_access_key }} --secret={{ system_secret_key }} --default --master
|
command: radosgw-admin zone create --rgw-zonegroup={{ rgw_zonegroup }} --rgw-zone={{ rgw_zone }} --endpoints=http://{{ ansible_fqdn }}:{{ radosgw_civetweb_port }} --access-key={{ system_access_key }} --secret={{ system_secret_key }} --default --master
|
||||||
run_once: true
|
run_once: true
|
||||||
when: ("No such file or directory" in zonecheck.stderr) and rgw_zonemaster
|
when: ("No such file or directory" in zonecheck.stderr) and rgw_zonemaster
|
||||||
notify:
|
notify:
|
||||||
- update period
|
- update period
|
||||||
|
|
||||||
- name: Create the zone user
|
- name: create the zone user
|
||||||
command: radosgw-admin user create --uid=zone.user --display-name="Zone User" --access-key={{ system_access_key }} --secret={{ system_secret_key }} --system
|
command: radosgw-admin user create --uid=zone.user --display-name="Zone User" --access-key={{ system_access_key }} --secret={{ system_secret_key }} --system
|
||||||
run_once: true
|
run_once: true
|
||||||
when: "'could not fetch user info: no user info saved' in usercheck.stderr"
|
when: "'could not fetch user info: no user info saved' in usercheck.stderr"
|
||||||
|
|
|
@ -1,31 +1,31 @@
|
||||||
---
|
---
|
||||||
- name: Fetch the realm
|
- name: fetch the realm
|
||||||
command: radosgw-admin realm pull --url=http://{{ rgw_pullhost }}:{{ radosgw_civetweb_port }} --access-key={{ system_access_key }} --secret={{ system_secret_key }}
|
command: radosgw-admin realm pull --url=http://{{ rgw_pullhost }}:{{ radosgw_civetweb_port }} --access-key={{ system_access_key }} --secret={{ system_secret_key }}
|
||||||
run_once: true
|
run_once: true
|
||||||
when: ("No such file or directory" in realmcheck.stderr)
|
when: ("No such file or directory" in realmcheck.stderr)
|
||||||
notify:
|
notify:
|
||||||
- update period
|
- update period
|
||||||
|
|
||||||
- name: Fetch the period
|
- name: fetch the period
|
||||||
command: radosgw-admin period pull --url=http://{{ rgw_pullhost }}:{{ radosgw_civetweb_port }} --access-key={{ system_access_key }} --secret={{ system_secret_key }}
|
command: radosgw-admin period pull --url=http://{{ rgw_pullhost }}:{{ radosgw_civetweb_port }} --access-key={{ system_access_key }} --secret={{ system_secret_key }}
|
||||||
run_once: true
|
run_once: true
|
||||||
when: ("No such file or directory" in realmcheck.stderr)
|
when: ("No such file or directory" in realmcheck.stderr)
|
||||||
notify:
|
notify:
|
||||||
- update period
|
- update period
|
||||||
|
|
||||||
- name: Set default realm
|
- name: set default realm
|
||||||
command: radosgw-admin realm default --rgw-realm={{ rgw_realm }}
|
command: radosgw-admin realm default --rgw-realm={{ rgw_realm }}
|
||||||
run_once: true
|
run_once: true
|
||||||
notify:
|
notify:
|
||||||
- update period # Might not need to update period here
|
- update period # Might not need to update period here
|
||||||
|
|
||||||
- name: Set default zonegroup
|
- name: set default zonegroup
|
||||||
command: radosgw-admin zonegroup default --rgw-zonegroup={{ rgw_zonegroup }}
|
command: radosgw-admin zonegroup default --rgw-zonegroup={{ rgw_zonegroup }}
|
||||||
run_once: true
|
run_once: true
|
||||||
notify:
|
notify:
|
||||||
- update period # Might not need to update period here
|
- update period # Might not need to update period here
|
||||||
|
|
||||||
- name: Create the zone
|
- name: create the zone
|
||||||
command: radosgw-admin zone create --rgw-zonegroup={{ rgw_zonegroup }} --rgw-zone={{ rgw_zone }} --endpoints=http://{{ ansible_hostname }}:{{ radosgw_civetweb_port }} --access-key={{ system_access_key }} --secret={{ system_secret_key }} --default
|
command: radosgw-admin zone create --rgw-zonegroup={{ rgw_zonegroup }} --rgw-zone={{ rgw_zone }} --endpoints=http://{{ ansible_hostname }}:{{ radosgw_civetweb_port }} --access-key={{ system_access_key }} --secret={{ system_secret_key }} --default
|
||||||
run_once: true
|
run_once: true
|
||||||
when: ("No such file or directory" in zonecheck.stderr)
|
when: ("No such file or directory" in zonecheck.stderr)
|
||||||
|
|
Loading…
Reference in New Issue