Skip to content

Commit

Permalink
Updates following #347 (#348)
Browse files Browse the repository at this point in the history
* Update ansible-role link

* remove xenial ppa

* update check-in token endpoint

* add handler for Docker
  • Loading branch information
sebastian-luna-valero authored Jul 8, 2024
1 parent 58c38e2 commit 5eecf50
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 16 deletions.
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,7 @@ generated in this repository.

Deployment is managed on a separate private repository that includes several
secrets. Deployment is done with ansible using a
[dedicated role](https://github.com/EGI-Federation/ansible-role-fedcloud-ops)
with:
[dedicated role](./deploy/roles/catchall) with:

```sh
ansible-playbook -i inventory.yaml --extra-vars "@secrets.yaml" playbook.yaml
Expand Down
7 changes: 0 additions & 7 deletions deploy/cloud-init.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,6 @@ users:
- gh:enolfc
- gh:gwarf

apt:
sources:
ansible-ppa.list:
source: "deb http://ppa.launchpad.net/ansible/ansible/ubuntu xenial main"
# this is not a secret
keyid: 6125E2A8C77F2818FB7BD15B93C4A3FD7BB9C367 # gitleaks:allow

packages:
- git
- ansible
Expand Down
2 changes: 1 addition & 1 deletion deploy/roles/catchall/defaults/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ ams_host: msg.argo.grnet.gr
ams_token: secret

# check-in endpoint
checkin_token_endpoint: "https://aai.egi.eu/oidc/token"
checkin_token_endpoint: "https://aai.egi.eu/auth/realms/egi/protocol/openid-connect/token"

# docker image for the cloud info provider
cloud_info_image: egifedcloud/ops-cloud-info:latest
Expand Down
5 changes: 5 additions & 0 deletions deploy/roles/catchall/handlers/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
- name: Restart docker
ansible.builtin.systemd:
name: docker
state: restarted
daemon_reload: true
10 changes: 4 additions & 6 deletions deploy/roles/catchall/tasks/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@
path: /etc/docker
state: directory
mode: "775"
notify:
- Restart docker

- name: Configure docker
ansible.builtin.copy:
Expand All @@ -51,9 +53,5 @@
}
dest: /etc/docker/daemon.json
mode: "660"

- name: Restart docker
ansible.builtin.systemd:
name: docker
state: restarted
daemon_reload: true
notify:
- Restart docker

0 comments on commit 5eecf50

Please sign in to comment.