Skip to content
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
39 changes: 0 additions & 39 deletions .github/utils/download_from_gdrive.py

This file was deleted.

4 changes: 0 additions & 4 deletions .github/utils/gdrive_requirements.txt

This file was deleted.

46 changes: 0 additions & 46 deletions .github/utils/upload_to_gdrive.py

This file was deleted.

30 changes: 18 additions & 12 deletions .github/workflows/provision.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,15 @@ on:
schedule:
- cron: '0 6 * * 1'

permissions:
contents: read
packages: write

jobs:
provision:
runs-on: ubuntu-latest
env:
REPOSITORY_TOKEN: "${{ secrets.DEPENDENCIES_TOKEN }}"
GH_TOKEN: "${{ secrets.GH_WORKFLOWS_TOKEN }}"
GOOGLE_DRIVE_TOKEN: "${{ secrets.GOOGLE_DRIVE_TOKEN }}"
PROVISIONED_CONTAINER_GDRIVE_ID: "${{ secrets.PROVISIONED_CONTAINER_GDRIVE_ID }}"
runs-on: ubuntu-latest
steps:
- name: Free up space
uses: jlumbroso/free-disk-space@main
Expand Down Expand Up @@ -44,16 +45,21 @@ jobs:
else
discos-deploy manager:development --docker --default-passwords
fi
- name: Save provisioned image as tar artifact
- name: Login to GHCR
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
uses: docker/login-action@v4
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Tag and push images to GHCR
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
run: |
discos-container save discos_manager.tar
working-directory: /home/runner
IMAGE_TAG="${GITHUB_REF_NAME}-${GITHUB_SHA::7}"
discos-container tag latest "${IMAGE_TAG}"
discos-container push --tag latest
discos-container push --tag "${IMAGE_TAG}"
- name: Shutdown the container
if: always()
run: |
discos-container stop || true
- name: Upload the Docker image to Google Drive
run: |
pip install -r .github/utils/gdrive_requirements.txt
python .github/utils/upload_to_gdrive.py
gh secret set GOOGLE_DRIVE_TOKEN --org discos --visibility selected --repos discos,deployment < token.json
14 changes: 12 additions & 2 deletions ansible/Medicina.yml
Original file line number Diff line number Diff line change
Expand Up @@ -120,12 +120,22 @@
when: lustre_server_ip is defined


- name: Apply ACS configuration to ACS nodes
- name: Prepare for ACS setup
tags: provision
hosts: acs_meta
remote_user: root
roles:
- acs
- acs_prepare
- acs_environment


- name: Install ACS
tags: provision
hosts: acs_meta
remote_user: root
roles:
- acs_install
- discos_dependencies


- name: Configure the manager machine
Expand Down
14 changes: 12 additions & 2 deletions ansible/Noto.yml
Original file line number Diff line number Diff line change
Expand Up @@ -97,12 +97,22 @@
loop_var: username


- name: Apply ACS configuration to ACS nodes
- name: Prepare for ACS setup
tags: provision
hosts: manager
remote_user: root
roles:
- acs
- acs_prepare
- acs_environment


- name: Install ACS
tags: provision
hosts: manager
remote_user: root
roles:
- acs_install
- discos_dependencies


- name: Configure the manager machine
Expand Down
14 changes: 12 additions & 2 deletions ansible/SRT.yml
Original file line number Diff line number Diff line change
Expand Up @@ -123,12 +123,22 @@
- sardara_remote_directory is defined


- name: Apply ACS configuration to ACS nodes
- name: Prepare for ACS setup
tags: provision
hosts: acs_meta
remote_user: root
roles:
- acs
- acs_prepare
- acs_environment


- name: Install ACS
tags: provision
hosts: acs_meta
remote_user: root
roles:
- acs_install
- discos_dependencies


- name: Configure the manager machine
Expand Down
62 changes: 60 additions & 2 deletions ansible/development.yml
Original file line number Diff line number Diff line change
Expand Up @@ -111,12 +111,58 @@
loop_var: username


- name: Apply ACS configuration to ACS nodes
- name: Commit current container checkpoint
tags: provision
hosts: manager
tasks:
- name: Commit current container checkpoint
ansible.builtin.command: "discos-container checkpoint"
delegate_to: localhost
run_once: true
changed_when: false
when: ansible_virtualization_type == "docker"


- name: Prepare for ACS setup
tags: provision
hosts: manager
remote_user: root
roles:
- acs_prepare
- acs_environment


- name: Commit current container checkpoint
tags: provision
hosts: manager
tasks:
- name: Commit current container checkpoint
ansible.builtin.command: "discos-container checkpoint"
delegate_to: localhost
run_once: true
changed_when: false
when: ansible_virtualization_type == "docker"


- name: Install ACS
tags: provision
hosts: manager
remote_user: root
roles:
- acs
- acs_install
- discos_dependencies


- name: Commit current container checkpoint
tags: provision
hosts: manager
tasks:
- name: Commit current container checkpoint
ansible.builtin.command: "discos-container checkpoint"
delegate_to: localhost
run_once: true
changed_when: false
when: ansible_virtualization_type == "docker"


- name: Configure the manager machine
Expand Down Expand Up @@ -183,6 +229,18 @@
- vnc


- name: Commit current container checkpoint
tags: provision
hosts: manager
tasks:
- name: Commit current container checkpoint
ansible.builtin.command: "discos-container checkpoint"
delegate_to: localhost
run_once: true
changed_when: false
when: ansible_virtualization_type == "docker"


- name: Deploy DISCOS
tags: deploy
hosts: manager
Expand Down
30 changes: 0 additions & 30 deletions ansible/roles/acs/tasks/java.yml

This file was deleted.

29 changes: 0 additions & 29 deletions ansible/roles/acs/tasks/main.yml

This file was deleted.

21 changes: 0 additions & 21 deletions ansible/roles/acs/tasks/receivers_monitor.yml

This file was deleted.

Loading
Loading