Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updates following #347 #348

Merged
merged 4 commits into from
Jul 8, 2024
Merged
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
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:
enolfc marked this conversation as resolved.
Show resolved Hide resolved
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