Skip to content

Commit

Permalink
Add ssh-oidc config (#364)
Browse files Browse the repository at this point in the history
* add ssh-oidc config

* delete old playbook

* linting
  • Loading branch information
sebastian-luna-valero authored Sep 10, 2024
1 parent 893e285 commit 4a3368f
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 4 deletions.
10 changes: 10 additions & 0 deletions deploy/cloud-init.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -73,3 +73,13 @@ write_files:
encoding: base64
path: /etc/openstack/clouds.yaml
permissions: "0644"
- content: |
# Created by cloud-init
#
# 1. Access is restricted to members of the vo.cloud.egi.eu VO with the auditor role
# urn:mace:egi.eu:group:cloud.egi.eu:role=auditor#aai.egi.eu
#
# 2. Once logged in, they have unrestricted sudo power:
%egi-eu_cloud-egi-eu ALL=(ALL) NOPASSWD:ALL
path: /etc/sudoers.d/motley
permissions: "0644"
3 changes: 3 additions & 0 deletions deploy/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ image_sync_image: "ghcr.io/egi-federation/fedcloud-image-sync:sha-$SHORT_SHA"
site_config_dir: "$(readlink -f ../sites)"
EOF

# install Ansible dependencies
ansible-galaxy role install -r galaxy-requirements.yaml

# Configure!
if ansible-playbook -i inventory.yaml \
--extra-vars @secrets.yaml \
Expand Down
2 changes: 2 additions & 0 deletions deploy/galaxy-requirements.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# ssh-oidc access
- src: grycap.motley-cue
4 changes: 4 additions & 0 deletions deploy/playbook.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
- hosts: all
become: true
roles:
- role: "grycap.motley-cue"
vars:
ssh_oidc_other_vos_name: cloud.egi.eu
ssh_oidc_other_vos_role: auditor
- role: catchall
vars:
site_config_dir: ../sites/
4 changes: 0 additions & 4 deletions playbook.yaml

This file was deleted.

0 comments on commit 4a3368f

Please sign in to comment.