Skip to content
This repository has been archived by the owner on Jan 13, 2023. It is now read-only.

Completing a few TODOs #3

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 26 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,32 @@ Run the playbook:
ansible-playbook main.yml
```

TODO.
SSH into your control_plane node

```
ssh [email protected]
```

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

Expand Down
27 changes: 21 additions & 6 deletions main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,22 +24,36 @@

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:
src: /etc/ceph/ceph.pub
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:
Expand All @@ -61,6 +75,7 @@
ansible.builtin.package:
name:
- podman
- catatonit
- lvm2
state: present

Expand Down