Skip to content

Commit

Permalink
add ssh-oidc config
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastian-luna-valero committed Sep 10, 2024
1 parent 893e285 commit be35342
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 0 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
3 changes: 3 additions & 0 deletions deploy/playbook.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
- hosts: all
become: true
roles:
- role: 'grycap.motley-cue'
ssh_oidc_other_vos_name: cloud.egi.eu
ssh_oidc_other_vos_role: auditor
- role: catchall
vars:
site_config_dir: ../sites/

0 comments on commit be35342

Please sign in to comment.