]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
drop centos7 support guits-refact_container_binary 5507/head
authorGuillaume Abrioux <gabrioux@redhat.com>
Fri, 3 Jul 2020 08:57:55 +0000 (10:57 +0200)
committerGuillaume Abrioux <gabrioux@redhat.com>
Fri, 3 Jul 2020 08:57:55 +0000 (10:57 +0200)
DNM/WIP

Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
roles/ceph-common/tasks/installs/redhat_community_repository.yml
roles/ceph-defaults/defaults/main.yml
roles/ceph-facts/tasks/container_binary.yml
roles/ceph-mgr/tasks/pre_requisite.yml
roles/ceph-nfs/tasks/ganesha_selinux_fix.yml
site-container.yml.sample
tests/functional/setup.yml

index 5fd817d75c97b6baa7911befafe20b95408417c3..a5bea1c64c48e484191c07e9c08b59b47b72c735 100644 (file)
@@ -1,12 +1,4 @@
 ---
-- name: install yum plugin priorities
-  package:
-    name: yum-plugin-priorities
-  register: result
-  until: result is succeeded
-  tags: with_pkg
-  when: ansible_distribution_major_version | int == 7
-
 - name: configure red hat ceph community repository stable key
   rpm_key:
     key: "{{ ceph_stable_key }}"
index 2561737436b88ead3d1efa9d005a429a1f638784..01137bfe95e378a00886f1836c0f218074595ada 100644 (file)
@@ -78,7 +78,7 @@ debian_package_dependencies: []
 
 centos_package_dependencies:
   - epel-release
-  - "{{ 'python3-libselinux' if ansible_distribution_major_version | int >= 8 else 'libselinux-python' }}"
+  - python3-libselinux
 
 redhat_package_dependencies: []
 
index 8e866bcbf15151b2983450cd8262ba19a7702bbc..fcaf844740209464172fec6d0455a63f8df69881 100644 (file)
@@ -6,4 +6,4 @@
 
 - name: set_fact container_binary
   set_fact:
-    container_binary: "{{ 'podman' if (podman_binary.stat.exists and ansible_distribution == 'Fedora') or (ansible_os_family == 'RedHat' and ansible_distribution_major_version == '8') else 'docker' }}"
\ No newline at end of file
+    container_binary: "{{ 'podman' if (podman_binary.stat.exists and ansible_distribution == 'Fedora') or (ansible_os_family == 'RedHat') else 'docker' }}"
\ No newline at end of file
index 76102e22f4c96690cb202a4188c6d460d92f9c4c..eff558b1072168d8139d486c67fdf85ff029b840 100644 (file)
@@ -1,7 +1,7 @@
 ---
 - name: set_fact ceph_mgr_packages for sso
   set_fact:
-    ceph_mgr_packages: "{{ ceph_mgr_packages | union(['python3-saml' if ansible_distribution_major_version | int == 8 else 'python-saml']) }}"
+    ceph_mgr_packages: "{{ ceph_mgr_packages | union(['python3-saml']) }}"
   when:
     - dashboard_enabled | bool
     - ansible_distribution == 'RedHat'
     ceph_mgr_packages: "{{ ceph_mgr_packages | union(['ceph-mgr-dashboard']) }}"
   when: dashboard_enabled | bool
 
-- name: set_fact ceph_mgr_packages for non el7 distribution
+- name: set_fact ceph_mgr_packages
   set_fact:
     ceph_mgr_packages: "{{ ceph_mgr_packages | union(['ceph-mgr-diskprediction-local']) }}"
-  when:
-    - ansible_os_family != 'RedHat'
-    - ansible_distribution_major_version | int != 7
 
 - name: install ceph-mgr packages on RedHat or SUSE
   package:
index f739b32d7b0a1978a259b206657aff53eb4c25fe..9e040ed624d1044d5603e5b79e1e680c1ad43c88 100644 (file)
@@ -9,21 +9,12 @@
 - name: if selinux is not disable
   when: selinuxstatus.stdout != 'Disabled'
   block:
-    - name: install policycoreutils-python
-      package:
-        name: policycoreutils-python
-        state: present
-      register: result
-      until: result is succeeded
-      when: ansible_distribution_major_version == '7'
-
     - name: install nfs-ganesha-selinux and python3-policycoreutils on RHEL 8
       package:
         name: ['nfs-ganesha-selinux', 'python3-policycoreutils']
         state: present
       register: result
       until: result is succeeded
-      when: ansible_distribution_major_version == '8'
 
     - name: add ganesha_t to permissive domain
       selinux_permissive:
index ed2595ee16b384fb81238f105f238ef016ce4193..b980008193455c3e6f2d48ab61acb85e35b8964d 100644 (file)
 
     - name: set_fact container_binary
       set_fact:
-        container_binary: "{{ 'podman' if (podman_binary.stat.exists and ansible_distribution == 'Fedora') or (ansible_os_family == 'RedHat' and ansible_distribution_major_version == '8') else 'docker' }}"
+        container_binary: "{{ 'podman' if (podman_binary.stat.exists and ansible_distribution == 'Fedora') or (ansible_os_family == 'RedHat') else 'docker' }}"
 
     - name: get ceph status from the first monitor
       command: >
index 67bc40a779f7392e3dc33045fb6321fa30711d84..41052f0c1046e6abdbb2d37584acc96fa21f9543 100644 (file)
@@ -22,7 +22,7 @@
       mount:
         path: '{{ rootmount.mount }}'
         src: '{{ rootmount.device }}'
-        opts: 'noatime,nodiratime{% if ansible_os_family == "RedHat" and ansible_distribution_major_version | int < 8 %},nobarrier{% endif %}'
+        opts: 'noatime,nodiratime'
         fstype: '{{ rootmount.fstype }}'
         state: mounted
 
       until: result is succeeded
       when: not is_atomic | bool
 
-    - name: centos based systems - configure repos
-      block:
-        - name: disable fastest mirror detection
-          ini_file:
-            path: /etc/yum/pluginconf.d/fastestmirror.conf
-            section: main
-            option: enabled
-            value: 0
-        - name: install epel
-          package:
-            name: epel-release
-            state: present
-          register: result
-          until: result is succeeded
-        - name: enable local epel repository
-          ini_file:
-            path: /etc/yum.repos.d/epel.repo
-            section: epel
-            option: baseurl
-            value: http://apt-mirror.front.sepia.ceph.com/epel7/
-        - name: disable remote epel repository
-          ini_file:
-            path: /etc/yum.repos.d/epel.repo
-            section: epel
-            option: metalink
-            state: absent
-      when:
-        - ansible_distribution == 'CentOS'
-        - ansible_distribution_major_version | int == 7
-        - not is_atomic | bool
-
     - name: resize logical volume for root partition to fill remaining free space
       lvol:
         lv: root