Skip to content

Commit

Permalink
Resolves #7
Browse files Browse the repository at this point in the history
Added custom repo for GlusterFS for our RPI's. Also added a fix for
existing GlusterFS repos.
  • Loading branch information
mrlesmithjr committed May 2, 2018
1 parent b9e81a3 commit f8586a1
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 0 deletions.
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@
- [Heapster](#heapster)
- [InfluxDB/Grafana](#influxdbgrafana)
- [Resetting The Kubernetes Cluster](#resetting-the-kubernetes-cluster)
- [Fixing Broken GlusterFS Repo](#fixing-broken-glusterfs-repo)
- [License](#license)
- [Author Information](#author-information)

Expand Down Expand Up @@ -872,6 +873,12 @@ run the following `Ansible` playbook which will take care of that for you.
ansible-playbook -i inventory/ playbooks/reset_cluster.yml
```

## Fixing Broken GlusterFS Repo
If you experience the following [issue](https://github.com/mrlesmithjr/ansible-rpi-k8s-cluster/issues/7) you can
run the playbook [fix_glusterfs_repo.yml](playbooks/fix_glusterfs_repo.yml) which
will remove the broken `3.10` repo. Once that is done you should be good to go
and be able to run [deploy.yml](playbooks/deploy.yml) once again.

## License

MIT
Expand Down
7 changes: 7 additions & 0 deletions inventory/group_vars/rpi_k8s/glusterfs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,11 @@ glusterfs_create_bricks:
owner: root
group: root

# defines Debian repo for GlusterFS
glusterfs_debian_repo_info:
key_url: "https://download.gluster.org/pub/gluster/glusterfs/{{ glusterfs_version }}/rsa.pub"
repo: "deb [arch=arm64] http://download.gluster.org/pub/gluster/glusterfs/{{ glusterfs_version }}/LATEST/Debian/{{ ansible_distribution_release|lower }}/arm64/apt {{ ansible_distribution_release|lower }} main"

glusterfs_version: 3.13

glusterfs_volume_force_create: true
15 changes: 15 additions & 0 deletions playbooks/fix_glusterfs_repo.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
---
- hosts: rpi_k8s
vars:
glusterfs_versions_to_remove:
- "3.8"
- "3.9"
- "3.10"
tasks:
- name: debian | removing glusterfs apt repo
apt_repository:
repo: "deb http://download.gluster.org/pub/gluster/glusterfs/{{ item }}/LATEST/Debian/stretch/apt stretch main"
state: absent
become: true
with_items: "{{ glusterfs_versions_to_remove }}"
when: ansible_distribution == "Debian"

0 comments on commit f8586a1

Please sign in to comment.