]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
Change ansible_lsb by ansible_distribution_release
authorDimitri Savineau <dsavinea@redhat.com>
Thu, 20 Jun 2019 18:04:24 +0000 (14:04 -0400)
committerDimitri Savineau <savineau.dimitri@gmail.com>
Fri, 21 Jun 2019 15:55:05 +0000 (11:55 -0400)
The ansible_lsb fact is based on the lsb package (lsb-base,
lsb-release or redhat-lsb-core).
If the package isn't installed on the remote host then the fact isn't
populated.

--------
"ansible_lsb": {},
--------

Switching to the ansible_distribution_release fact instead.

Signed-off-by: Dimitri Savineau <dsavinea@redhat.com>
group_vars/all.yml.sample
group_vars/rhcs.yml.sample
roles/ceph-common/tasks/installs/debian_community_repository.yml
roles/ceph-common/tasks/installs/debian_custom_repository.yml
roles/ceph-common/tasks/installs/debian_dev_repository.yml
roles/ceph-common/tasks/installs/prerequisite_rhcs_cdn_install_debian.yml
roles/ceph-common/tasks/installs/prerequisite_rhcs_iso_install_debian.yml
roles/ceph-defaults/defaults/main.yml
roles/ceph-nfs/tasks/pre_requisite_non_container_debian.yml

index 453f6e473c910e9e999c1b760658e309b20ba38e..0211eb43be8b1e6c39dabb759c08473fc5148bf1 100644 (file)
@@ -163,7 +163,7 @@ dummy:
 # 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://download.ceph.com/debian-{{ ceph_stable_release }}/dists/
 # for more info read: https://github.com/ceph/ceph-ansible/issues/305
-#ceph_stable_distro_source: "{{ ansible_lsb.codename }}"
+#ceph_stable_distro_source: "{{ ansible_distribution_release }}"
 
 # This option is needed for _both_ stable and dev version, so please always fill the right version
 # # for supported distros, see http://download.ceph.com/rpm-{{ ceph_stable_release }}/
@@ -199,7 +199,7 @@ dummy:
 #
 #ceph_stable_repo_uca: "http://ubuntu-cloud.archive.canonical.com/ubuntu"
 #ceph_stable_openstack_release_uca: queens
-#ceph_stable_release_uca: "{{ ansible_lsb.codename }}-updates/{{ ceph_stable_openstack_release_uca }}"
+#ceph_stable_release_uca: "{{ ansible_distribution_release }}-updates/{{ ceph_stable_openstack_release_uca }}"
 
 # REPOSITORY: openSUSE OBS
 #
index fcd5ac7723f40eabd78ecb352fe5dfe632226ced..6f8a25ea41ae1e31d76a33eca7a3e691ac24bd65 100644 (file)
@@ -163,7 +163,7 @@ ceph_repository: rhcs
 # 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://download.ceph.com/debian-{{ ceph_stable_release }}/dists/
 # for more info read: https://github.com/ceph/ceph-ansible/issues/305
-#ceph_stable_distro_source: "{{ ansible_lsb.codename }}"
+#ceph_stable_distro_source: "{{ ansible_distribution_release }}"
 
 # This option is needed for _both_ stable and dev version, so please always fill the right version
 # # for supported distros, see http://download.ceph.com/rpm-{{ ceph_stable_release }}/
@@ -199,7 +199,7 @@ ceph_rhcs_version: 4
 #
 #ceph_stable_repo_uca: "http://ubuntu-cloud.archive.canonical.com/ubuntu"
 #ceph_stable_openstack_release_uca: queens
-#ceph_stable_release_uca: "{{ ansible_lsb.codename }}-updates/{{ ceph_stable_openstack_release_uca }}"
+#ceph_stable_release_uca: "{{ ansible_distribution_release }}-updates/{{ ceph_stable_openstack_release_uca }}"
 
 # REPOSITORY: openSUSE OBS
 #
index 794305929a257026e3a2e3cbaabde8134681a8f2..0afa23befc8877dfe3c5c905ace656c9f5b65482 100644 (file)
@@ -15,6 +15,6 @@
 
 - name: configure debian ceph stable community repository
   apt_repository:
-    repo: "deb {{ ceph_stable_repo }} {{ ceph_stable_distro_source | default(ansible_lsb.codename) }} main"
+    repo: "deb {{ ceph_stable_repo }} {{ ceph_stable_distro_source | default(ansible_distribution_release) }} main"
     state: present
     update_cache: yes
index 9037ea3b0cc4027552f66052e752a3dc0a375df9..ccd822c9d8fb56c47878a164d61643ca8827e7c6 100644 (file)
@@ -1,7 +1,7 @@
 ---
 - name: configure debian custom repository
   apt_repository:
-    repo: "deb {{ ceph_custom_repo }} {{ ansible_lsb.codename }} main"
+    repo: "deb {{ ceph_custom_repo }} {{ ansible_distribution_release }} main"
     state: present
     update_cache: no
   notify: update apt cache if a repo was added
\ No newline at end of file
index 758334434f50af81e62ec2f1d3c841076b43f4ef..9bde8bd2b527a1b90da5e78474b1f82e4a4cfff6 100644 (file)
@@ -1,7 +1,7 @@
 ---
 - name: fetch ceph debian development repository
   uri:
-    url: https://shaman.ceph.com/api/repos/ceph/{{ ceph_dev_branch }}/{{ ceph_dev_sha1 }}/{{ ansible_distribution | lower }}/{{ ansible_lsb.codename }}/repo
+    url: https://shaman.ceph.com/api/repos/ceph/{{ ceph_dev_branch }}/{{ ceph_dev_sha1 }}/{{ ansible_distribution | lower }}/{{ ansible_distribution_release }}/repo
     return_content: yes
   register: ceph_dev_deb_repo
 
index 300a12f00021f966f667d3f6040ad9ad5195fd9f..b5fd732cac0de998169fc422b48cca203885df2b 100644 (file)
@@ -8,7 +8,7 @@
 
 - name: enable red hat storage monitor repository for debian systems
   apt_repository:
-    repo: "deb {{ ceph_rhcs_cdn_debian_repo }}{{ ceph_rhcs_cdn_debian_repo_version }}/{{ item.repo }} {{ ceph_stable_distro_source | default(ansible_lsb.codename) }} main"
+    repo: "deb {{ ceph_rhcs_cdn_debian_repo }}{{ ceph_rhcs_cdn_debian_repo_version }}/{{ item.repo }} {{ ceph_stable_distro_source | default(ansible_distribution_release) }} main"
     state: present
     update_cache: yes
   with_items:
index ade0364ac5c7ccc47b21da33e81837dd286b4ddd..af740c70e8cac97fb178174104e02a43dfddd0b9 100644 (file)
@@ -51,7 +51,7 @@
 
 - name: add red hat storage repository for debian systems
   apt_repository:
-    repo: "deb file://{{ ceph_rhcs_repository_path }}/{{ item }} {{ ansible_lsb.codename }} main"
+    repo: "deb file://{{ ceph_rhcs_repository_path }}/{{ item }} {{ ansible_distribution_release }} main"
     state: present
     update_cache: yes
   with_items:
index 1ba516e5d804c95d977e3b529ff86b1097b2ab89..2fd9f9f3c35ab6a228c6e3b940cee0029943208d 100644 (file)
@@ -155,7 +155,7 @@ nfs_ganesha_stable_deb_repo: "{{ ceph_mirror }}/nfs-ganesha/deb-{{ nfs_ganesha_s
 # 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://download.ceph.com/debian-{{ ceph_stable_release }}/dists/
 # for more info read: https://github.com/ceph/ceph-ansible/issues/305
-#ceph_stable_distro_source: "{{ ansible_lsb.codename }}"
+#ceph_stable_distro_source: "{{ ansible_distribution_release }}"
 
 # This option is needed for _both_ stable and dev version, so please always fill the right version
 # # for supported distros, see http://download.ceph.com/rpm-{{ ceph_stable_release }}/
@@ -191,7 +191,7 @@ ceph_rhcs_cdn_debian_repo_version: "/3-release/" # for GA, later for updates use
 #
 ceph_stable_repo_uca: "http://ubuntu-cloud.archive.canonical.com/ubuntu"
 ceph_stable_openstack_release_uca: queens
-ceph_stable_release_uca: "{{ ansible_lsb.codename }}-updates/{{ ceph_stable_openstack_release_uca }}"
+ceph_stable_release_uca: "{{ ansible_distribution_release }}-updates/{{ ceph_stable_openstack_release_uca }}"
 
 # REPOSITORY: openSUSE OBS
 #
index e72da9d304e987b8e617df2621b31cf88e901719..09ea447e5bea709ce0f32e8ed114b40aa9280eac 100644 (file)
@@ -9,7 +9,7 @@
       block:
         - name: add nfs-ganesha stable repository
           apt_repository:
-            repo: "deb {{ nfs_ganesha_stable_deb_repo }} {{ ceph_stable_distro_source | default(ansible_lsb.codename) }} main"
+            repo: "deb {{ nfs_ganesha_stable_deb_repo }} {{ ceph_stable_distro_source | default(ansible_distribution_release) }} main"
             state: present
             update_cache: no
           register: add_ganesha_apt_repo