| |
@@ -85,12 +85,6 @@
|
| |
chdir: "{{ config_root }}"
|
| |
when: '"gerrit" in arch.roles'
|
| |
|
| |
- - name: Check dashboards
|
| |
- command: python3 /usr/libexec/software-factory/sf-update-dashboard --check --input dashboards/
|
| |
- args:
|
| |
- chdir: "{{ config_root }}"
|
| |
- when: '"gerrit" in arch.roles'
|
| |
-
|
| |
- name: Check policy file
|
| |
command: python3 -c "import yaml; yaml.safe_load(open('policies/policy.yaml'))"
|
| |
args:
|
| |
@@ -105,6 +99,15 @@
|
| |
chdir: "{{ config_root }}"
|
| |
when: '"repoxplorer" in arch.roles'
|
| |
|
| |
+ - name: Check nodepool dhall configuration
|
| |
+ shell: |
|
| |
+ for dhall_conf in $(ls nodepool/*.dhall 2> /dev/null); do
|
| |
+ echo ${dhall_conf}
|
| |
+ dhall-to-yaml --file ${dhall_conf} --output build/$(basename ${dhall_conf} .dhall).yaml || exit 1
|
| |
+ done
|
| |
+ args:
|
| |
+ chdir: "{{ config_root }}"
|
| |
+
|
| |
- name: Validate nodepool configuration
|
| |
block:
|
| |
- name: Install defconf nodepool.yaml
|
| |
@@ -155,7 +158,14 @@
|
| |
config-validate
|
| |
args:
|
| |
chdir: "{{ config_root }}"
|
| |
- when: '"nodepool-launcher" in arch.roles'
|
| |
+
|
| |
+ - name: Run nodepool config-validate for static configuration
|
| |
+ command: >
|
| |
+ env - find nodepool/static_config/ -name '*.yaml' -exec /bin/nodepool -c {} config-validate \;
|
| |
+ args:
|
| |
+ chdir: "{{ config_root }}"
|
| |
+ when:
|
| |
+ - '"nodepool-launcher" in arch.roles'
|
| |
|
| |
- name: Validate zuul configuration
|
| |
block:
|
| |