]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
drop use_fqdn variables
authorDimitri Savineau <dsavinea@redhat.com>
Tue, 14 Jan 2020 16:54:36 +0000 (11:54 -0500)
committerGuillaume Abrioux <gabrioux@redhat.com>
Wed, 15 Jan 2020 10:32:39 +0000 (11:32 +0100)
This has been deprecated in the previous releases. Let's drop it.

Signed-off-by: Dimitri Savineau <dsavinea@redhat.com>
group_vars/all.yml.sample
group_vars/rhcs.yml.sample
roles/ceph-config/templates/ceph.conf.j2
roles/ceph-defaults/defaults/main.yml
roles/ceph-facts/tasks/facts.yml
roles/ceph-validate/tasks/main.yml

index 0f44c4942b8623b94a1196d3b94b2bb7f7810ad1..1aea5fb635a8e4ffe7e091c1a81aedb63dd77440 100644 (file)
@@ -330,7 +330,6 @@ dummy:
 #monitor_address_block: subnet
 # set to either ipv4 or ipv6, whichever your network is using
 #ip_version: ipv4
-#mon_use_fqdn: false # if set to true, the MON name used will be the fqdn in the ceph.conf
 
 #mon_host_v1:
 #  enabled: True
@@ -395,7 +394,6 @@ dummy:
 
 ## MDS options
 #
-#mds_use_fqdn: false # if set to true, the MDS name used will be the fqdn in the ceph.conf
 #mds_max_mds: 1
 
 ## Rados Gateway options
@@ -833,7 +831,6 @@ dummy:
 # DEPRECATION #
 ###############
 
-#use_fqdn_yes_i_am_sure: false
 
 
 ######################################################
index 7bd9c67c46249828d7eed02259f46437f1409578..4f6d4a73c36cb21c9ea15cd39200fb5e8ff457e2 100644 (file)
@@ -330,7 +330,6 @@ ceph_iscsi_config_dev: false
 #monitor_address_block: subnet
 # set to either ipv4 or ipv6, whichever your network is using
 #ip_version: ipv4
-#mon_use_fqdn: false # if set to true, the MON name used will be the fqdn in the ceph.conf
 
 #mon_host_v1:
 #  enabled: True
@@ -395,7 +394,6 @@ ceph_iscsi_config_dev: false
 
 ## MDS options
 #
-#mds_use_fqdn: false # if set to true, the MDS name used will be the fqdn in the ceph.conf
 #mds_max_mds: 1
 
 ## Rados Gateway options
@@ -833,7 +831,6 @@ alertmanager_container_image: registry.redhat.io/openshift4/ose-prometheus-alert
 # DEPRECATION #
 ###############
 
-#use_fqdn_yes_i_am_sure: false
 
 
 ######################################################
index d90a74ad543d0ab0ecb78594ba63ef7af2681448..0740854f1ef54c960bd28dcf044dd6d13b58d008 100644 (file)
@@ -26,9 +26,7 @@ osd crush chooseleaf type = 0
 
 {% if nb_mon > 0 and inventory_hostname in groups.get(mon_group_name, []) %}
 mon initial members = {% for host in groups[mon_group_name] %}
-      {% if hostvars[host]['ansible_fqdn'] is defined and mon_use_fqdn -%}
-        {{ hostvars[host]['ansible_fqdn'] }}
-      {%- elif hostvars[host]['ansible_hostname'] is defined -%}
+      {% if hostvars[host]['ansible_hostname'] is defined -%}
         {{ hostvars[host]['ansible_hostname'] }}
       {%- endif %}
       {%- if not loop.last %},{% endif %}
index df2ac751b18ddc213f5bd4edf5b528e57d1d7bce..050447af07ea7ba8773a0eaf00eb83d807b3204e 100644 (file)
@@ -322,7 +322,6 @@ monitor_address: x.x.x.x
 monitor_address_block: subnet
 # set to either ipv4 or ipv6, whichever your network is using
 ip_version: ipv4
-mon_use_fqdn: false # if set to true, the MON name used will be the fqdn in the ceph.conf
 
 mon_host_v1:
   enabled: True
@@ -387,7 +386,6 @@ filestore_xattr_use_omap: null
 
 ## MDS options
 #
-mds_use_fqdn: false # if set to true, the MDS name used will be the fqdn in the ceph.conf
 mds_max_mds: 1
 
 ## Rados Gateway options
@@ -825,7 +823,6 @@ client_connections: {}
 # DEPRECATION #
 ###############
 
-use_fqdn_yes_i_am_sure: false
 
 
 ######################################################
index 5a5c5ad9e8a15155aa0d94bef633d520f8402d7e..fa5031b4a93497b789102824d0ca619b6cdfca50 100644 (file)
 - name: set_fact monitor_name ansible_hostname
   set_fact:
     monitor_name: "{{ ansible_hostname }}"
-  when: not mon_use_fqdn | bool
-
-- name: set_fact monitor_name ansible_fqdn
-  set_fact:
-    monitor_name: "{{ ansible_fqdn }}"
-  when: mon_use_fqdn | bool
 
 - name: find a running monitor
   when: groups.get(mon_group_name, []) | length > 0
 - name: set_fact mds_name ansible_hostname
   set_fact:
     mds_name: "{{ ansible_hostname }}"
-  when: not mds_use_fqdn | bool
-
-- name: set_fact mds_name ansible_fqdn
-  set_fact:
-    mds_name: "{{ ansible_fqdn }}"
-  when: mds_use_fqdn | bool
 
 - name: set_fact rbd_client_directory_owner ceph
   set_fact:
index 0a87e4e18f4e01a61a6de980ad0bde94cb03ab69..90345e00ca13f5497d7b433906f6faefe36e03a1 100644 (file)
         - item.data is undefined
       with_items: '{{ lvm_volumes }}'
 
-- name: warning deprecation for fqdn configuration
-  fail:
-    msg: "fqdn configuration is not supported anymore. Use 'use_fqdn_yes_i_am_sure: true' if you really want to use it. See release notes for more details"
-  when:
-    - mon_use_fqdn | bool or mds_use_fqdn | bool
-    - not use_fqdn_yes_i_am_sure | bool
-
 - name: debian based systems tasks
   when: ansible_os_family == 'Debian'
   block: