Skip to content

Commit

Permalink
linting
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastian-luna-valero committed Sep 10, 2024
1 parent 4d60bbf commit 43b856b
Show file tree
Hide file tree
Showing 2 changed files with 56 additions and 56 deletions.
30 changes: 15 additions & 15 deletions deployment/cloud-init.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,22 @@
---
# avoid auto-upgrade kicking off in the first boot
bootcmd:
- [cloud-init-per, once, touch, /var/lib/apt/periodic/update-success-stamp]
- [cloud-init-per, once, touch, /var/lib/apt/periodic/update-success-stamp]

users:
- name: egi
gecos: EGI
primary_group: egi
groups: users
shell: /bin/bash
sudo: ALL=(ALL) NOPASSWD:ALL
ssh_import_id:
- gh:enolfc
- gh:gwarf
- gh:CatalinCondurache
- gh:sebastian-luna-valero
ssh_authorized_keys:
- ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQD3rdgKJj5WWIE5sD+Mup8HxgMQGY7cYwjwGGa4TJAkZMrhDon5MTgFko51xNZuU7pRhOdTQwJqu8Bkb+y2nAtFS3vHij4x4GgHU9TuLwhgiWjB3qhAj959vXg2FItHO8JsjM3a5R/VxX/hSXlEy+7iyHpH1zCi/LwhcFLEd7yTv0bV99yNMoLPQYhGjYQ5DqrWBKyu8ddFxfRzxaiHgFTvBPwa52Gwft7S7N90tV7fHCI8p+9nD57q6aWwTRtxbClJyf2vohSlIB0WqqPKTBy+he7QkV8VRq9zJyUMaelTTUy+nBolF4oyAHJViY9GAvfdEsHKW0FaV0SS4ICKjilQOAyK3uG+Hl26CCLvtWUmbx/XGAwfoCIipMqXwbjLwA2J+dXCaKS4uBz0f4eXKsXXoFmh4awEIOxpdVXUFYV231JxcgMGGhSQvaqla5QWZ93RNNS0v7SEhHKAkG6B8mOS8yyAu1mBCS0Y03p6xT/7lI5QI4cTIVD3HZU6dB2s/Fc= [email protected]
- name: egi
gecos: EGI
primary_group: egi
groups: users
shell: /bin/bash
sudo: ALL=(ALL) NOPASSWD:ALL
ssh_import_id:
- gh:enolfc
- gh:gwarf
- gh:CatalinCondurache
- gh:sebastian-luna-valero
ssh_authorized_keys:
- ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQD3rdgKJj5WWIE5sD+Mup8HxgMQGY7cYwjwGGa4TJAkZMrhDon5MTgFko51xNZuU7pRhOdTQwJqu8Bkb+y2nAtFS3vHij4x4GgHU9TuLwhgiWjB3qhAj959vXg2FItHO8JsjM3a5R/VxX/hSXlEy+7iyHpH1zCi/LwhcFLEd7yTv0bV99yNMoLPQYhGjYQ5DqrWBKyu8ddFxfRzxaiHgFTvBPwa52Gwft7S7N90tV7fHCI8p+9nD57q6aWwTRtxbClJyf2vohSlIB0WqqPKTBy+he7QkV8VRq9zJyUMaelTTUy+nBolF4oyAHJViY9GAvfdEsHKW0FaV0SS4ICKjilQOAyK3uG+Hl26CCLvtWUmbx/XGAwfoCIipMqXwbjLwA2J+dXCaKS4uBz0f4eXKsXXoFmh4awEIOxpdVXUFYV231JxcgMGGhSQvaqla5QWZ93RNNS0v7SEhHKAkG6B8mOS8yyAu1mBCS0Y03p6xT/7lI5QI4cTIVD3HZU6dB2s/Fc= [email protected]

write_files:
- content: |
Expand All @@ -30,4 +30,4 @@ write_files:
# 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'
permissions: "0644"
82 changes: 41 additions & 41 deletions deployment/playbook.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,58 +2,58 @@
- hosts: all
gather_facts: no
tasks:
- name: Wait for ssh
# give it some time as the VM may take a while to start
wait_for_connection:
delay: 30
timeout: 600
- name: Wait for ssh
# give it some time as the VM may take a while to start
wait_for_connection:
delay: 30
timeout: 600

- hosts: all
become: yes
gather_facts: yes
roles:
- role: 'grycap.docker'
docker_config_values: { "mtu": 1400 }
- role: 'grycap.motley-cue'
ssh_oidc_other_vos_name: cloud.egi.eu
ssh_oidc_other_vos_role: auditor
- role: "grycap.docker"
docker_config_values: { "mtu": 1400 }
- role: "grycap.motley-cue"
ssh_oidc_other_vos_name: cloud.egi.eu
ssh_oidc_other_vos_role: auditor

- hosts: all
become: yes
gather_facts: yes
tasks:
- name: Checkout repo at VM
ansible.builtin.git:
repo: 'https://github.com/EGI-Federation/fedcloud-dashboard.git'
version: "{{ git_ref }}"
dest: /fedcloud-dashboard
- name: Checkout repo at VM
ansible.builtin.git:
repo: "https://github.com/EGI-Federation/fedcloud-dashboard.git"
version: "{{ git_ref }}"
dest: /fedcloud-dashboard

- name: service file
ansible.builtin.copy:
content: |
#
# This manages the cloudkeeper OS backend
#
[Unit]
Description=Dashboard
After=docker.service
Requires=docker.service
- name: service file
ansible.builtin.copy:
content: |
#
# This manages the cloudkeeper OS backend
#
[Unit]
Description=Dashboard
After=docker.service
Requires=docker.service
[Service]
Type=oneshot
RemainAfterExit=true
WorkingDirectory=/fedcloud-dashboard
ExecStartPre=/usr/bin/docker pull python:3.10
ExecStart=/usr/bin/docker-compose up -d --force-recreate --build --remove-orphans
ExecStop=/usr/bin/docker-compose down
[Service]
Type=oneshot
RemainAfterExit=true
WorkingDirectory=/fedcloud-dashboard
ExecStartPre=/usr/bin/docker pull python:3.10
ExecStart=/usr/bin/docker-compose up -d --force-recreate --build --remove-orphans
ExecStop=/usr/bin/docker-compose down
[Install]
WantedBy=multi-user.target
dest: /etc/systemd/system/dashboard.service
[Install]
WantedBy=multi-user.target
dest: /etc/systemd/system/dashboard.service

- name: Run, baby run
ansible.builtin.systemd:
name: dashboard.service
enabled: yes
state: restarted
daemon_reload: yes
- name: Run, baby run
ansible.builtin.systemd:
name: dashboard.service
enabled: yes
state: restarted
daemon_reload: yes

0 comments on commit 43b856b

Please sign in to comment.