#client_connections: {}
-
+#no_log_on_ceph_key_tasks: True
###############
# DEPRECATION #
#client_connections: {}
-
+#no_log_on_ceph_key_tasks: True
###############
# DEPRECATION #
- cephx | bool
- keys | length > 0
- inventory_hostname == groups.get('_filtered_clients') | first
- no_log: true
+ no_log: "{{ no_log_on_ceph_key_tasks }}"
- name: slurp client cephx key(s)
slurp:
- cephx | bool
- keys | length > 0
- inventory_hostname == groups.get('_filtered_clients') | first
- no_log: true
+ no_log: "{{ no_log_on_ceph_key_tasks }}"
- name: pool related tasks
when:
group: "{{ ceph_uid }}"
with_items: "{{ hostvars[groups['_filtered_clients'][0]]['slurp_client_keys']['results'] }}"
when: not item.get('skipped', False)
- no_log: true
+ no_log: "{{ no_log_on_ceph_key_tasks }}"
when:
- cephx | bool
- item.copy_key | bool
+ no_log: "{{ no_log_on_ceph_key_tasks }}"
- name: copy ceph key(s) if needed
copy:
with_items: "{{ _client_keys.results }}"
when:
- item.item.copy_key | bool
- no_log: true
+ no_log: "{{ no_log_on_ceph_key_tasks }}"
when: cephx | bool
CEPH_CONTAINER_BINARY: "{{ container_binary }}"
delegate_to: "{{ groups.get(mon_group_name, [])[0] }}"
run_once: True
+ no_log: "{{ no_log_on_ceph_key_tasks }}"
- name: enforce container_binary on first monitor
import_role:
check_mode: False
changed_when: False
run_once: true
+ no_log: "{{ no_log_on_ceph_key_tasks }}"
- name: copy ceph key(s) if needed
copy:
owner: "{{ ceph_uid if containerized_deployment else 'ceph' }}"
group: "{{ ceph_uid if containerized_deployment else 'ceph' }}"
mode: "{{ ceph_keyring_permissions }}"
- no_log: true
+ no_log: "{{ no_log_on_ceph_key_tasks }}"
- name: start ceph-crash daemon
when: containerized_deployment | bool
client_connections: {}
-
+no_log_on_ceph_key_tasks: True
###############
# DEPRECATION #
when:
- cephx | bool
- item.copy_key | bool
+ no_log: "{{ no_log_on_ceph_key_tasks }}"
- name: copy ceph key(s) if needed
copy:
when:
- cephx | bool
- item.item.copy_key | bool
- no_log: true
+ no_log: "{{ no_log_on_ceph_key_tasks }}"
- name: add mgr ip address to trusted list with dashboard - ipv4
set_fact:
when:
- cephx | bool
- item.copy_key | bool
+ no_log: "{{ no_log_on_ceph_key_tasks }}"
- name: copy ceph key(s) if needed
copy:
when:
- cephx | bool
- item.item.copy_key | bool
- no_log: true
+ no_log: "{{ no_log_on_ceph_key_tasks }}"
args:
creates: /var/lib/ceph/mds/{{ cluster }}-{{ ansible_facts['hostname'] }}/keyring
changed_when: false
+ no_log: "{{ no_log_on_ceph_key_tasks }}"
when: cephx
- name: set mds key permissions
CEPH_CONTAINER_IMAGE: "{{ ceph_docker_registry + '/' + ceph_docker_image + ':' + ceph_docker_image_tag if containerized_deployment else None }}"
CEPH_CONTAINER_BINARY: "{{ container_binary }}"
when: groups.get(mgr_group_name, []) | length == 0 # the key is present already since one of the mons created it in "create ceph mgr keyring(s)"
+ no_log: "{{ no_log_on_ceph_key_tasks }}"
- name: create and copy keyrings
when: groups.get(mgr_group_name, []) | length > 0
with_items: "{{ groups.get(mgr_group_name, []) }}"
run_once: True
delegate_to: "{{ groups[mon_group_name][0] }}"
+ no_log: "{{ no_log_on_ceph_key_tasks }}"
- name: set_fact _mgr_keys
set_fact:
when:
- cephx | bool
- item.copy_key | bool
+ no_log: "{{ no_log_on_ceph_key_tasks }}"
- name: copy ceph key(s) if needed
copy:
- cephx | bool
- item is not skipped
- item.item.copy_key | bool
- no_log: true
+ no_log: "{{ no_log_on_ceph_key_tasks }}"
- name: set mgr key permissions
file:
CEPH_CONTAINER_IMAGE: "{{ ceph_docker_registry + '/' + ceph_docker_image + ':' + ceph_docker_image_tag if containerized_deployment else None }}"
CEPH_CONTAINER_BINARY: "{{ container_binary }}"
CEPH_ROLLING_UPDATE: "{{ rolling_update }}"
+ no_log: "{{ no_log_on_ceph_key_tasks }}"
when:
- cephx | bool
run_once: True
delegate_to: "{{ running_mon }}"
failed_when: initial_mon_key.rc not in [0, 2]
+ no_log: "{{ no_log_on_ceph_key_tasks }}"
when: running_mon is defined
- name: generate monitor initial keyring
delegate_to: localhost
become: false
run_once: true
+ no_log: "{{ no_log_on_ceph_key_tasks }}"
when:
- initial_mon_key is skipped
or
owner: "{{ ceph_uid if containerized_deployment else 'ceph' }}"
group: "{{ ceph_uid if containerized_deployment else 'ceph' }}"
mode: "0400"
+ no_log: "{{ no_log_on_ceph_key_tasks }}"
environment:
CEPH_CONTAINER_IMAGE: "{{ ceph_docker_registry + '/' + ceph_docker_image + ':' + ceph_docker_image_tag if containerized_deployment else None }}"
CEPH_CONTAINER_BINARY: "{{ container_binary }}"
CEPH_CONTAINER_IMAGE: "{{ ceph_docker_registry + '/' + ceph_docker_image + ':' + ceph_docker_image_tag if containerized_deployment else None }}"
CEPH_CONTAINER_BINARY: "{{ container_binary }}"
register: create_custom_admin_secret
+ no_log: "{{ no_log_on_ceph_key_tasks }}"
when:
- cephx | bool
- admin_secret != 'admin_secret'
when:
- not item.0.get('skipped', False)
- item.0.item.name == 'client.' + ceph_nfs_ceph_user or item.0.item.name == rgw_client_name
- no_log: true
+ no_log: "{{ no_log_on_ceph_key_tasks }}"
- name: include start_nfs.yml
import_tasks: start_nfs.yml
when:
- cephx | bool
- item.copy_key | bool
+ no_log: "{{ no_log_on_ceph_key_tasks }}"
- name: copy ceph key(s) if needed
copy:
when:
- cephx | bool
- item.item.copy_key | bool
- no_log: true
+ no_log: "{{ no_log_on_ceph_key_tasks }}"
when: groups.get(mon_group_name, []) | length > 0
- name: dbus related tasks
when:
- cephx | bool
- item.copy_key | bool
+ no_log: "{{ no_log_on_ceph_key_tasks }}"
- name: copy ceph key(s) if needed
copy:
when:
- cephx | bool
- item.item.copy_key | bool
- no_log: true
+ no_log: "{{ no_log_on_ceph_key_tasks }}"
- name: nfs object gateway related tasks
when: nfs_obj_gw | bool
args:
creates: /var/lib/ceph/radosgw/{{ cluster }}-rgw.{{ ansible_facts['hostname'] }}/keyring
changed_when: false
+ no_log: "{{ no_log_on_ceph_key_tasks }}"
- name: set rados gateway key permissions
file:
- { name: "client.admin", path: "/etc/ceph/{{ cluster }}.client.admin.keyring", copy_key: "{{ copy_admin_key }}" }
delegate_to: "{{ groups.get(mon_group_name)[0] }}"
run_once: true
+ no_log: "{{ no_log_on_ceph_key_tasks }}"
when:
- cephx | bool
- item.copy_key | bool
- cephx | bool
- item is not skipped
- item.item.copy_key | bool
- no_log: true
+ no_log: "{{ no_log_on_ceph_key_tasks }}"
CEPH_CONTAINER_BINARY: "{{ container_binary }}"
with_items: "{{ openstack_keys }}"
delegate_to: "{{ groups[mon_group_name][0] }}"
+ no_log: "{{ no_log_on_ceph_key_tasks }}"
- name: get keys from monitors
command: "{{ hostvars[groups[mon_group_name][0]]['container_exec_cmd'] | default('') }} ceph --cluster {{ cluster }} auth get {{ item.name }}"
with_items: "{{ openstack_keys }}"
run_once: true
delegate_to: "{{ groups.get(mon_group_name)[0] }}"
+ no_log: "{{ no_log_on_ceph_key_tasks }}"
- name: copy ceph key(s) if needed
copy:
- "{{ _osp_keys.results }}"
- "{{ groups[mon_group_name] }}"
delegate_to: "{{ item.1 }}"
- no_log: true
+ no_log: "{{ no_log_on_ceph_key_tasks }}"
when:
- cephx | bool
- openstack_config | bool
when:
- cephx | bool
- item.copy_key | bool
+ no_log: "{{ no_log_on_ceph_key_tasks }}"
- name: copy ceph key(s) if needed
copy:
when:
- cephx | bool
- item.item.copy_key | bool
- no_log: true
+ no_log: "{{ no_log_on_ceph_key_tasks }}"
- name: create rbd-mirror keyring
command: >
owner: "ceph"
group: "ceph"
mode: "{{ ceph_keyring_permissions }}"
+ no_log: "{{ no_log_on_ceph_key_tasks }}"
when: not containerized_deployment | bool
when:
- cephx | bool
- item.copy_key | bool
+ no_log: "{{ no_log_on_ceph_key_tasks }}"
- name: copy ceph key(s) if needed
copy:
- cephx | bool
- item is not skipped
- item.item.copy_key | bool
- no_log: true
+ no_log: "{{ no_log_on_ceph_key_tasks }}"
- name: copy SSL certificate & key data to certificate path
copy:
owner: "ceph"
group: "ceph"
mode: "0600"
+ no_log: "{{ no_log_on_ceph_key_tasks }}"
environment:
CEPH_CONTAINER_IMAGE: "{{ ceph_docker_registry + '/' + ceph_docker_image + ':' + ceph_docker_image_tag if containerized_deployment else None }}"
CEPH_CONTAINER_BINARY: "{{ container_binary }}"