To receive notifications about scheduled maintenance, please subscribe to the mailing-list gitlab-operations@sympa.ethz.ch. You can subscribe to the mailing-list at https://sympa.ethz.ch

Commit cc83e2cd authored by Bengt Giger's avatar Bengt Giger
Browse files

Fixed linting errors in system_update_manager

parent 0a519fd6
Pipeline #88556 failed with stage
in 7 minutes and 19 seconds
......@@ -26,6 +26,7 @@ timeservice-chrony-test:
rules:
- changes:
- roles/timeservice
- .gitlab-ci.yml
script:
- cd roles/timeservice;
molecule test;
......@@ -37,6 +38,7 @@ timeservice-ntp-test:
rules:
- changes:
- roles/timeservice
- .gitlab-ci.yml
script:
- cd roles/timeservice;
molecule test -s ntp;
......@@ -49,6 +51,7 @@ private_subnet_client-test:
rules:
- changes:
- roles/private_subnet_client
- .gitlab-ci.yml
variables:
DOCKER_HOST: tcp://localhost:2375
script:
......@@ -63,6 +66,7 @@ console_configuration-test:
rules:
- changes:
- roles/console_configuration
- .gitlab-ci.yml
variables:
DOCKER_HOST: tcp://localhost:2375
script:
......@@ -77,45 +81,49 @@ system_update_manager-test:
rules:
- changes:
- roles/system_update_manager
- .gitlab-ci.yml
variables:
DOCKER_HOST: tcp://localhost:2375
script:
- cd roles/system_update_manager;
molecule test;
system_update_manager-test:
system_update_manager-increase-test:
stage: tests
tags:
- k8s-runner
rules:
- changes:
- roles/system_update_manager
- .gitlab-ci.yml
variables:
DOCKER_HOST: tcp://localhost:2375
script:
- cd roles/system_update_manager;
molecule test -s increase;
system_update_manager-test:
system_update_manager-decrease-test:
stage: tests
tags:
- k8s-runner
rules:
- changes:
- roles/system_update_manager
- .gitlab-ci.yml
variables:
DOCKER_HOST: tcp://localhost:2375
script:
- cd roles/system_update_manager;
molecule test -s decrease;
system_update_manager-test:
system_update_manager-remove-test:
stage: tests
tags:
- k8s-runner
rules:
- changes:
- roles/system_update_manager
- .gitlab-ci.yml
variables:
DOCKER_HOST: tcp://localhost:2375
script:
......
......@@ -6,7 +6,7 @@ driver:
lint: |
set -e
yamllint -c molecule/yaml-lint.yml .
ansible-lint tasks
ansible-lint -c molecule/default/ansible-lint.yml tasks
platforms:
- name: EL7
image: geerlingguy/docker-centos7-ansible:latest
......
......@@ -6,7 +6,7 @@ driver:
lint: |
set -e
yamllint -c molecule/yaml-lint.yml .
ansible-lint tasks
ansible-lint -c molecule/default/ansible-lint.yml tasks
platforms:
- name: el7
image: geerlingguy/docker-centos7-ansible:latest
......
......@@ -6,7 +6,7 @@ driver:
lint: |
set -e
yamllint -c molecule/yaml-lint.yml .
ansible-lint tasks
ansible-lint -c molecule/default/ansible-lint.yml tasks
platforms:
- name: EL7
image: geerlingguy/docker-centos7-ansible:latest
......
......@@ -6,7 +6,7 @@ driver:
lint: |
set -e
yamllint -c molecule/yaml-lint.yml .
ansible-lint tasks
ansible-lint -c molecule/default/ansible-lint.yml tasks
platforms:
- name: EL7
image: geerlingguy/docker-centos7-ansible:latest
......
......@@ -62,6 +62,6 @@
- set_fact:
update_manager_reboot_required: true
when: reboot_required_file.stat.exists == true
when: reboot_required_file.stat.exists
when: system_update_manager_forceupdate == true
when: system_update_manager_forceupdate
......@@ -16,13 +16,13 @@
owner: root
group: root
mode: 0600
when: system_update_manager_cronjob == true
when: system_update_manager_cronjob
- name: Ensure cronjob is removed
file:
path: /etc/cron.d/update_manager
state: absent
when: system_update_manager_cronjob != true
when: not system_update_manager_cronjob
- name: Reboot if required after update
reboot:
......@@ -33,5 +33,5 @@
post_reboot_delay: 30
test_command: uptime
when:
- system_update_manager_reboot_required == true
- system_update_manager_autoreboot == true
- system_update_manager_reboot_required
- system_update_manager_autoreboot
......@@ -5,6 +5,7 @@
section: main
option: exclude
unsafe_writes: true
mode: "0644"
value: "{{ system_update_manager_excluded | join(' ') }}"
# tracer detects if a system has to be rebooted
......@@ -34,7 +35,8 @@
ignore_errors: true
changed_when: false
- set_fact:
- name: Set flag if reboot is required
set_fact:
system_update_manager_reboot_required: true
when: tracer_output.rc != 0
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment