diff --git a/README.md b/README.md index 7041cde..813b9df 100644 --- a/README.md +++ b/README.md @@ -49,7 +49,32 @@ Run the playbook: ansible-playbook main.yml ``` -TODO. +SSH into your control_plane node + +``` +ssh pi@deskpi1.local +``` + +Open `cepham` shell + +``` +sudo cepham shell +``` + +Create a file with a password for the admin user + +``` +echo "mysupersecurepassword" > password.txt +``` + +Set the new password to the admin user and then delete the file + +``` +ceph dashboard ac-user-set-password admin -i password.txt && rm password.txt +``` + +Now you can login into https://deskpi1.local:8443 using `admin` and the password you just set and then follow up with this [Install Ceph in a Raspberry Pi 4 Cluster -> Expanding the Cluster With the Dashboard](https://ceph.io/en/news/blog/2022/install-ceph-in-a-raspberrypi-4-cluster/#expanding-the-cluster-with-the-dashboard) + ### Upgrading the cluster diff --git a/main.yml b/main.yml index eefce38..63ccf81 100644 --- a/main.yml +++ b/main.yml @@ -24,15 +24,28 @@ tasks: # See: https://forums.raspberrypi.com/viewtopic.php?t=274486 - - name: Set up the Debian unstable repo (TODO). - meta: noop + - name: Set up the Debian unstable repo. + ansible.builtin.apt_repository: + repo: deb http://deb.debian.org/debian unstable main contrib non-free + state: present # See: https://ceph.com/en/news/blog/2022/install-ceph-in-a-raspberrypi-4-cluster/ - - name: Install cephadm (TODO). - meta: noop + - name: Install cephadm (and other pacages). + ansible.builtin.package: + name: + - podman + - catatonit # it crashes without this one + - lvm2 + - cephadm + state: present + + - name: Check if a ceph is bootstraped + register: bootstraped + stat: path=/etc/ceph/ceph.conf get_md5=no - - name: Create the ceph cluster (TODO). - meta: noop + - name: Create the ceph cluster. + shell: "cephadm bootstrap --mon-ip {{ ansible_host }}" # inventory ex: pi001 ansible_host=192.168.1.101 + when: bootstraped.stat.exists == False - name: Retrieve the ceph pubkey. ansible.builtin.fetch: @@ -40,6 +53,7 @@ dest: files/ceph.pub flat: yes + # Maybe we should merge this one with the L33 - name: Ensure NFS dependencies are installed. ansible.builtin.package: name: @@ -61,6 +75,7 @@ ansible.builtin.package: name: - podman + - catatonit - lvm2 state: present