User Tools

Site Tools


devplayground

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
devplayground [2025/12/17 22:16]
pdonnell [Configuring CephFS Mounts]
devplayground [2026/02/03 22:40] (current)
djgalloway
Line 105: Line 105:
     - name: "2. Configure Ceph client files"     - name: "2. Configure Ceph client files"
       block:       block:
 +        # -----------------------------
 +        # CentOS
 +        # -----------------------------
 +        - name: "​▶️ Install Ceph Squid repo on CentOS"​
 +          ansible.builtin.dnf:​
 +            name: centos-release-ceph-squid.noarch
 +            state: present
 +          when: ansible_facts['​distribution'​] == "​CentOS"​
 +        ​
 +        - name: "​▶️ Install ceph-common on CentOS"​
 +          ansible.builtin.dnf:​
 +            name: ceph-common
 +            state: present
 +          when: ansible_facts['​distribution'​] == "​CentOS"​
 +        ​
 +        # -----------------------------
 +        # Fedora + RHEL (upstream Squid repo)
 +        # -----------------------------
 +        - name: "​▶️ Set Ceph EL major version (Fedora → el9)"
 +          ansible.builtin.set_fact:​
 +            ceph_el_major:​ >-
 +              {{ '​9'​ if ansible_facts['​distribution'​] == '​Fedora'​
 +                 else ansible_facts['​distribution_major_version'​] }}
 +          when: ansible_facts['​distribution'​] in ["​RedHat",​ "​Fedora"​]
 +        ​
 +        - name: "​▶️ Install Ceph Squid upstream repo RPM (via URL)"
 +          ansible.builtin.command:​ >-
 +            dnf -y install
 +            https://​download.ceph.com/​rpm-squid/​el{{ ceph_el_major }}/​noarch/​ceph-release-1-1.el{{ ceph_el_major }}.noarch.rpm
 +          args:
 +            creates: /​etc/​yum.repos.d/​ceph.repo
 +          when: ansible_facts['​distribution'​] in ["​RedHat",​ "​Fedora"​]
 +        ​
 +        - name: "​▶️ Install ceph-common on Fedora / RHEL"
 +          ansible.builtin.dnf:​
 +            name: ceph-common
 +            state: present
 +          when: ansible_facts['​distribution'​] in ["​RedHat",​ "​Fedora"​]
 +
         - name: "​▶️ Ensure /etc/ceph directory exists"​         - name: "​▶️ Ensure /etc/ceph directory exists"​
           ansible.builtin.file:​           ansible.builtin.file:​
Line 146: Line 185:
     - name: "3. Set up CephFS mounts"​     - name: "3. Set up CephFS mounts"​
       block:       block:
-        - name: "​▶️ Install ceph-common on Ubuntu/​Debian"​ 
-          ansible.builtin.apt:​ 
-            name: ceph-common 
-            state: present 
-            update_cache:​ yes 
-          when: ansible_facts['​os_family'​] == "​Debian"​ 
- 
-        - name: "​▶️ Install Ceph Squid repo on RHEL derivatives"​ 
-          ansible.builtin.dnf:​ 
-            name: centos-release-ceph-squid.noarch 
-            state: present 
-          when: ansible_facts['​os_family'​] == "​RedHat"​ 
- 
-        - name: "​▶️ Install ceph-common on RHEL derivatives"​ 
-          ansible.builtin.dnf:​ 
-            name: ceph-common 
-            state: present 
-          when: ansible_facts['​os_family'​] == "​RedHat"​ 
- 
         - name: "​▶️ Unmount filesystems if they currently exist"         - name: "​▶️ Unmount filesystems if they currently exist"
           ansible.posix.mount:​           ansible.posix.mount:​
devplayground.txt · Last modified: 2026/02/03 22:40 by djgalloway