Skip to content
This repository has been archived by the owner on May 27, 2024. It is now read-only.

Commit

Permalink
Merge pull request #568 from deNBI/staging
Browse files Browse the repository at this point in the history
Staging
  • Loading branch information
dweinholz authored Dec 22, 2020
2 parents 1c20cb7 + 8901637 commit 69422aa
Show file tree
Hide file tree
Showing 7 changed files with 232 additions and 3 deletions.
67 changes: 67 additions & 0 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
# For most projects, this workflow file will not need changing; you simply need
# to commit it to your repository.
#
# You may wish to alter this file to override the set of languages analyzed,
# or to provide custom queries or build logic.
#
# ******** NOTE ********
# We have attempted to detect the languages in your repository. Please check
# the `language` matrix defined below to confirm you have the correct set of
# supported CodeQL languages.
#
name: "CodeQL"

on:
push:
branches: [ master, dev, staging ]
pull_request:
# The branches below must be a subset of the branches above
branches: [ master ]
schedule:
- cron: '39 22 * * 0'

jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest

strategy:
fail-fast: false
matrix:
language: [ 'python' ]
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python' ]
# Learn more:
# https://docs.github.com/en/free-pro-team@latest/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning#changing-the-languages-that-are-analyzed

steps:
- name: Checkout repository
uses: actions/checkout@v2

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v1
with:
languages: ${{ matrix.language }}
# If you wish to specify custom queries, you can do so here or in a config file.
# By default, queries listed here will override any specified in a config file.
# Prefix the list here with "+" to use these queries and those in the config file.
# queries: ./path/to/local/query, your-org/your-repo/queries@main

# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
# If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild
uses: github/codeql-action/autobuild@v1

# ℹ️ Command-line programs to run using the OS shell.
# 📚 https://git.io/JvXDl

# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
# and modify them (or add more) to build your code if your project
# uses a compiled language

#- run: |
# make bootstrap
# make release

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1
2 changes: 1 addition & 1 deletion PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ Try to fulfill the following points before the Pull Request is merged:

- [ ] The PR is reviewed by one of the team members.
- [ ] If the PR is merged in the master then a release should be be made.
- [ ] If the new code is well commented
- [ ] If the new code is readable, if not it should be well commented
- [ ] Update the Changelog file

For releases only:
Expand Down
43 changes: 43 additions & 0 deletions VirtualMachineService/ancon/playbooks/cwlab.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,23 @@
- name: Disable periodic updates
block:
- name: Disable unattended upgrades
lineinfile:
path: /etc/apt/apt.conf.d/10periodic
regexp: "^APT::Periodic::Unattended-Upgrade"
line: 'APT::Periodic::Unattended-Upgrade "0";'
create: yes
- name: Stop apt-daily.* systemd services
service:
name: "{{ item }}"
state: stopped
with_items:
- unattended-upgrades
- apt-daily
- apt-daily.timer
- apt-daily-upgrade
- apt-daily-upgrade.timer


- name: Wait for automatic system updates 1
shell: while sudo fuser /var/lib/dpkg/lock >/dev/null 2>&1; do sleep 1; done;

Expand Down Expand Up @@ -38,3 +58,26 @@
user: 1000:1000
recreate: yes
container_default_behavior: no_defaults

- name: Enable periodic updates
block:
- name: enable unattended upgrades
lineinfile:
path: /etc/apt/apt.conf.d/10periodic
regexp: "^APT::Periodic::Unattended-Upgrade"
line: 'APT::Periodic::Unattended-Upgrade "1";'
create: yes
- name: Start apt-daily.* systemd services
service:
name: "{{ item }}"
state: started
with_items:
- unattended-upgrades
- apt-daily
- apt-daily.timer
- apt-daily-upgrade
- apt-daily-upgrade.timer




39 changes: 39 additions & 0 deletions VirtualMachineService/ancon/playbooks/guacamole.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,23 @@
- name: Disable periodic updates
block:
- name: Disable unattended upgrades
lineinfile:
path: /etc/apt/apt.conf.d/10periodic
regexp: "^APT::Periodic::Unattended-Upgrade"
line: 'APT::Periodic::Unattended-Upgrade "0";'
create: yes
- name: Stop apt-daily.* systemd services
service:
name: "{{ item }}"
state: stopped
with_items:
- unattended-upgrades
- apt-daily
- apt-daily.timer
- apt-daily-upgrade
- apt-daily-upgrade.timer


- name: Wait for automatic system updates 1
shell: while sudo fuser /var/lib/dpkg/lock >/dev/null 2>&1; do sleep 1; done;

Expand Down Expand Up @@ -41,3 +61,22 @@
systemd:
daemon_reload: yes
when: guacamole_vars.create_only_backend == "true"

- name: Enable periodic updates
block:
- name: enable unattended upgrades
lineinfile:
path: /etc/apt/apt.conf.d/10periodic
regexp: "^APT::Periodic::Unattended-Upgrade"
line: 'APT::Periodic::Unattended-Upgrade "1";'
create: yes
- name: Start apt-daily.* systemd services
service:
name: "{{ item }}"
state: started
with_items:
- unattended-upgrades
- apt-daily
- apt-daily.timer
- apt-daily-upgrade
- apt-daily-upgrade.timer
39 changes: 39 additions & 0 deletions VirtualMachineService/ancon/playbooks/rstudio.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,23 @@
- name: Disable periodic updates
block:
- name: Disable unattended upgrades
lineinfile:
path: /etc/apt/apt.conf.d/10periodic
regexp: "^APT::Periodic::Unattended-Upgrade"
line: 'APT::Periodic::Unattended-Upgrade "0";'
create: yes
- name: Stop apt-daily.* systemd services
service:
name: "{{ item }}"
state: stopped
with_items:
- unattended-upgrades
- apt-daily
- apt-daily.timer
- apt-daily-upgrade
- apt-daily-upgrade.timer


- name: Wait for automatic system updates 1
shell: while sudo fuser /var/lib/dpkg/lock >/dev/null 2>&1; do sleep 1; done;
when: rstudio_vars.create_only_backend == "false"
Expand Down Expand Up @@ -35,3 +55,22 @@
- name: Flush rstudio handlers
meta: flush_handlers
when: rstudio_vars.create_only_backend == "false"

- name: Enable periodic updates
block:
- name: enable unattended upgrades
lineinfile:
path: /etc/apt/apt.conf.d/10periodic
regexp: "^APT::Periodic::Unattended-Upgrade"
line: 'APT::Periodic::Unattended-Upgrade "1";'
create: yes
- name: Start apt-daily.* systemd services
service:
name: "{{ item }}"
state: started
with_items:
- unattended-upgrades
- apt-daily
- apt-daily.timer
- apt-daily-upgrade
- apt-daily-upgrade.timer
41 changes: 41 additions & 0 deletions VirtualMachineService/ancon/playbooks/theiaide.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,23 @@
- name: Disable periodic updates
block:
- name: Disable unattended upgrades
lineinfile:
path: /etc/apt/apt.conf.d/10periodic
regexp: "^APT::Periodic::Unattended-Upgrade"
line: 'APT::Periodic::Unattended-Upgrade "0";'
create: yes
- name: Stop apt-daily.* systemd services
service:
name: "{{ item }}"
state: stopped
with_items:
- unattended-upgrades
- apt-daily
- apt-daily.timer
- apt-daily-upgrade
- apt-daily-upgrade.timer


- name: Wait for automatic system updates 1
shell: while sudo fuser /var/lib/dpkg/lock >/dev/null 2>&1; do sleep 1; done;
when: theiaide_vars.create_only_backend == "false"
Expand All @@ -13,3 +33,24 @@
theia_ide_bind_address: 0.0.0.0
theia_ide_bind_port: 8080
when: theiaide_vars.create_only_backend == "false"

- name: Enable periodic updates
block:
- name: enable unattended upgrades
lineinfile:
path: /etc/apt/apt.conf.d/10periodic
regexp: "^APT::Periodic::Unattended-Upgrade"
line: 'APT::Periodic::Unattended-Upgrade "1";'
create: yes
- name: Start apt-daily.* systemd services
service:
name: "{{ item }}"
state: started
with_items:
- unattended-upgrades
- apt-daily
- apt-daily.timer
- apt-daily-upgrade
- apt-daily-upgrade.timer


4 changes: 2 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
setuptools==50.3.2
setuptools==51.1.0.post20201221
thrift >= 0.11.0,<0.20.0
python-keystoneclient
openstacksdk ==0.52.0
Expand All @@ -10,4 +10,4 @@ ruamel.yaml<0.17.0
paramiko==2.7.2
pyvim==3.0.2
redis==3.5.3
requests==2.25.0
requests==2.25.1

0 comments on commit 69422aa

Please sign in to comment.