From 786341cf36cb2d01241759024cb467d31596fe16 Mon Sep 17 00:00:00 2001 From: Francis Kayiwa Date: Thu, 31 Oct 2024 09:59:02 -0400 Subject: [PATCH] add systemd to the rails_app include all rails_app dependent applications --- roles/approvals/molecule/default/molecule.yml | 14 ++++++-- .../molecule/default/molecule.yml | 14 ++++++-- roles/dpul/molecule/default/molecule.yml | 14 +++++--- roles/dss/molecule/default/molecule.yml | 36 +++++++++---------- roles/example/molecule/default/molecule.yml | 2 +- roles/figgy/molecule/default/molecule.yml | 14 ++++++-- roles/geaccirc/molecule/default/molecule.yml | 14 ++++++-- roles/lae/molecule/default/molecule.yml | 14 ++++++-- .../molecule/default/molecule.yml | 14 ++++++-- roles/oawaiver/molecule/default/molecule.yml | 14 ++++++-- .../orangelight/molecule/default/molecule.yml | 14 ++++++-- roles/passenger/molecule/default/molecule.yml | 2 +- roles/rails_app/molecule/default/molecule.yml | 14 ++++++-- .../molecule/default/molecule.yml | 14 ++++++-- 14 files changed, 138 insertions(+), 56 deletions(-) diff --git a/roles/approvals/molecule/default/molecule.yml b/roles/approvals/molecule/default/molecule.yml index 0e1659c89a..c9d31684a2 100644 --- a/roles/approvals/molecule/default/molecule.yml +++ b/roles/approvals/molecule/default/molecule.yml @@ -9,14 +9,22 @@ lint: | ansible-lint platforms: - name: instance - image: "quay.io/pulibrary/jammy-ansible:latest" - command: "" + image: "ghcr.io/pulibrary/pul_containers:jammy_multi" + command: "/lib/systemd/systemd" volumes: - - /sys/fs/cgroup:/sys/fs/cgroup:ro + - /sys/fs/cgroup:/sys/fs/cgroup:rw + tmpfs: + - /tmp + - /run + - /run/lock + cgroupns_mode: host privileged: true pre_build_image: true provisioner: name: ansible + config_options: + defaults: + remote_tmp: /tmp log: true verifier: name: ansible diff --git a/roles/blacklight_app/molecule/default/molecule.yml b/roles/blacklight_app/molecule/default/molecule.yml index 0e1659c89a..c9d31684a2 100644 --- a/roles/blacklight_app/molecule/default/molecule.yml +++ b/roles/blacklight_app/molecule/default/molecule.yml @@ -9,14 +9,22 @@ lint: | ansible-lint platforms: - name: instance - image: "quay.io/pulibrary/jammy-ansible:latest" - command: "" + image: "ghcr.io/pulibrary/pul_containers:jammy_multi" + command: "/lib/systemd/systemd" volumes: - - /sys/fs/cgroup:/sys/fs/cgroup:ro + - /sys/fs/cgroup:/sys/fs/cgroup:rw + tmpfs: + - /tmp + - /run + - /run/lock + cgroupns_mode: host privileged: true pre_build_image: true provisioner: name: ansible + config_options: + defaults: + remote_tmp: /tmp log: true verifier: name: ansible diff --git a/roles/dpul/molecule/default/molecule.yml b/roles/dpul/molecule/default/molecule.yml index 40d96fb789..c9d31684a2 100644 --- a/roles/dpul/molecule/default/molecule.yml +++ b/roles/dpul/molecule/default/molecule.yml @@ -9,18 +9,22 @@ lint: | ansible-lint platforms: - name: instance - image: "quay.io/pulibrary/jammy-ansible:latest" - command: "" + image: "ghcr.io/pulibrary/pul_containers:jammy_multi" + command: "/lib/systemd/systemd" volumes: - - /sys/fs/cgroup:/sys/fs/cgroup:ro + - /sys/fs/cgroup:/sys/fs/cgroup:rw + tmpfs: + - /tmp + - /run + - /run/lock + cgroupns_mode: host privileged: true pre_build_image: true provisioner: name: ansible - log: true config_options: defaults: remote_tmp: /tmp - local_tmp: /tmp + log: true verifier: name: ansible diff --git a/roles/dss/molecule/default/molecule.yml b/roles/dss/molecule/default/molecule.yml index 6db13a25c9..c9d31684a2 100644 --- a/roles/dss/molecule/default/molecule.yml +++ b/roles/dss/molecule/default/molecule.yml @@ -3,30 +3,28 @@ scenario: name: default driver: name: docker +lint: | + set -e + yamllint . + ansible-lint platforms: - name: instance - image: "quay.io/pulibrary/jammy-ansible:latest" + image: "ghcr.io/pulibrary/pul_containers:jammy_multi" + command: "/lib/systemd/systemd" + volumes: + - /sys/fs/cgroup:/sys/fs/cgroup:rw + tmpfs: + - /tmp + - /run + - /run/lock + cgroupns_mode: host privileged: true pre_build_image: true provisioner: name: ansible - playbooks: - converge: playbook.yml + config_options: + defaults: + remote_tmp: /tmp log: true -dependency: - name: galaxy - enabled: false -lint: - name: yamllint - options: - config-file: molecule/default/yaml-lint.yml verifier: - name: testinfra - env: - PYTHONWARNINGS: "ignore:.*U.*mode is deprecated:DeprecationWarning" - lint: - name: flake8 - options: - # show which tests where executed in test output - v: 1 - directory: ./tests/ + name: ansible diff --git a/roles/example/molecule/default/molecule.yml b/roles/example/molecule/default/molecule.yml index c4000fbd2c..c9d31684a2 100644 --- a/roles/example/molecule/default/molecule.yml +++ b/roles/example/molecule/default/molecule.yml @@ -9,7 +9,7 @@ lint: | ansible-lint platforms: - name: instance - image: "quay.io/pulibrary/jammy-ansible:latest" + image: "ghcr.io/pulibrary/pul_containers:jammy_multi" command: "/lib/systemd/systemd" volumes: - /sys/fs/cgroup:/sys/fs/cgroup:rw diff --git a/roles/figgy/molecule/default/molecule.yml b/roles/figgy/molecule/default/molecule.yml index 0e1659c89a..c9d31684a2 100644 --- a/roles/figgy/molecule/default/molecule.yml +++ b/roles/figgy/molecule/default/molecule.yml @@ -9,14 +9,22 @@ lint: | ansible-lint platforms: - name: instance - image: "quay.io/pulibrary/jammy-ansible:latest" - command: "" + image: "ghcr.io/pulibrary/pul_containers:jammy_multi" + command: "/lib/systemd/systemd" volumes: - - /sys/fs/cgroup:/sys/fs/cgroup:ro + - /sys/fs/cgroup:/sys/fs/cgroup:rw + tmpfs: + - /tmp + - /run + - /run/lock + cgroupns_mode: host privileged: true pre_build_image: true provisioner: name: ansible + config_options: + defaults: + remote_tmp: /tmp log: true verifier: name: ansible diff --git a/roles/geaccirc/molecule/default/molecule.yml b/roles/geaccirc/molecule/default/molecule.yml index 0e1659c89a..c9d31684a2 100644 --- a/roles/geaccirc/molecule/default/molecule.yml +++ b/roles/geaccirc/molecule/default/molecule.yml @@ -9,14 +9,22 @@ lint: | ansible-lint platforms: - name: instance - image: "quay.io/pulibrary/jammy-ansible:latest" - command: "" + image: "ghcr.io/pulibrary/pul_containers:jammy_multi" + command: "/lib/systemd/systemd" volumes: - - /sys/fs/cgroup:/sys/fs/cgroup:ro + - /sys/fs/cgroup:/sys/fs/cgroup:rw + tmpfs: + - /tmp + - /run + - /run/lock + cgroupns_mode: host privileged: true pre_build_image: true provisioner: name: ansible + config_options: + defaults: + remote_tmp: /tmp log: true verifier: name: ansible diff --git a/roles/lae/molecule/default/molecule.yml b/roles/lae/molecule/default/molecule.yml index 0e1659c89a..c9d31684a2 100644 --- a/roles/lae/molecule/default/molecule.yml +++ b/roles/lae/molecule/default/molecule.yml @@ -9,14 +9,22 @@ lint: | ansible-lint platforms: - name: instance - image: "quay.io/pulibrary/jammy-ansible:latest" - command: "" + image: "ghcr.io/pulibrary/pul_containers:jammy_multi" + command: "/lib/systemd/systemd" volumes: - - /sys/fs/cgroup:/sys/fs/cgroup:ro + - /sys/fs/cgroup:/sys/fs/cgroup:rw + tmpfs: + - /tmp + - /run + - /run/lock + cgroupns_mode: host privileged: true pre_build_image: true provisioner: name: ansible + config_options: + defaults: + remote_tmp: /tmp log: true verifier: name: ansible diff --git a/roles/lockers_and_study_spaces/molecule/default/molecule.yml b/roles/lockers_and_study_spaces/molecule/default/molecule.yml index 0e1659c89a..c9d31684a2 100644 --- a/roles/lockers_and_study_spaces/molecule/default/molecule.yml +++ b/roles/lockers_and_study_spaces/molecule/default/molecule.yml @@ -9,14 +9,22 @@ lint: | ansible-lint platforms: - name: instance - image: "quay.io/pulibrary/jammy-ansible:latest" - command: "" + image: "ghcr.io/pulibrary/pul_containers:jammy_multi" + command: "/lib/systemd/systemd" volumes: - - /sys/fs/cgroup:/sys/fs/cgroup:ro + - /sys/fs/cgroup:/sys/fs/cgroup:rw + tmpfs: + - /tmp + - /run + - /run/lock + cgroupns_mode: host privileged: true pre_build_image: true provisioner: name: ansible + config_options: + defaults: + remote_tmp: /tmp log: true verifier: name: ansible diff --git a/roles/oawaiver/molecule/default/molecule.yml b/roles/oawaiver/molecule/default/molecule.yml index 0e1659c89a..c9d31684a2 100644 --- a/roles/oawaiver/molecule/default/molecule.yml +++ b/roles/oawaiver/molecule/default/molecule.yml @@ -9,14 +9,22 @@ lint: | ansible-lint platforms: - name: instance - image: "quay.io/pulibrary/jammy-ansible:latest" - command: "" + image: "ghcr.io/pulibrary/pul_containers:jammy_multi" + command: "/lib/systemd/systemd" volumes: - - /sys/fs/cgroup:/sys/fs/cgroup:ro + - /sys/fs/cgroup:/sys/fs/cgroup:rw + tmpfs: + - /tmp + - /run + - /run/lock + cgroupns_mode: host privileged: true pre_build_image: true provisioner: name: ansible + config_options: + defaults: + remote_tmp: /tmp log: true verifier: name: ansible diff --git a/roles/orangelight/molecule/default/molecule.yml b/roles/orangelight/molecule/default/molecule.yml index 0e1659c89a..c9d31684a2 100644 --- a/roles/orangelight/molecule/default/molecule.yml +++ b/roles/orangelight/molecule/default/molecule.yml @@ -9,14 +9,22 @@ lint: | ansible-lint platforms: - name: instance - image: "quay.io/pulibrary/jammy-ansible:latest" - command: "" + image: "ghcr.io/pulibrary/pul_containers:jammy_multi" + command: "/lib/systemd/systemd" volumes: - - /sys/fs/cgroup:/sys/fs/cgroup:ro + - /sys/fs/cgroup:/sys/fs/cgroup:rw + tmpfs: + - /tmp + - /run + - /run/lock + cgroupns_mode: host privileged: true pre_build_image: true provisioner: name: ansible + config_options: + defaults: + remote_tmp: /tmp log: true verifier: name: ansible diff --git a/roles/passenger/molecule/default/molecule.yml b/roles/passenger/molecule/default/molecule.yml index c4000fbd2c..c9d31684a2 100644 --- a/roles/passenger/molecule/default/molecule.yml +++ b/roles/passenger/molecule/default/molecule.yml @@ -9,7 +9,7 @@ lint: | ansible-lint platforms: - name: instance - image: "quay.io/pulibrary/jammy-ansible:latest" + image: "ghcr.io/pulibrary/pul_containers:jammy_multi" command: "/lib/systemd/systemd" volumes: - /sys/fs/cgroup:/sys/fs/cgroup:rw diff --git a/roles/rails_app/molecule/default/molecule.yml b/roles/rails_app/molecule/default/molecule.yml index 0e1659c89a..c9d31684a2 100644 --- a/roles/rails_app/molecule/default/molecule.yml +++ b/roles/rails_app/molecule/default/molecule.yml @@ -9,14 +9,22 @@ lint: | ansible-lint platforms: - name: instance - image: "quay.io/pulibrary/jammy-ansible:latest" - command: "" + image: "ghcr.io/pulibrary/pul_containers:jammy_multi" + command: "/lib/systemd/systemd" volumes: - - /sys/fs/cgroup:/sys/fs/cgroup:ro + - /sys/fs/cgroup:/sys/fs/cgroup:rw + tmpfs: + - /tmp + - /run + - /run/lock + cgroupns_mode: host privileged: true pre_build_image: true provisioner: name: ansible + config_options: + defaults: + remote_tmp: /tmp log: true verifier: name: ansible diff --git a/roles/sidekiq_worker/molecule/default/molecule.yml b/roles/sidekiq_worker/molecule/default/molecule.yml index 0e1659c89a..c9d31684a2 100644 --- a/roles/sidekiq_worker/molecule/default/molecule.yml +++ b/roles/sidekiq_worker/molecule/default/molecule.yml @@ -9,14 +9,22 @@ lint: | ansible-lint platforms: - name: instance - image: "quay.io/pulibrary/jammy-ansible:latest" - command: "" + image: "ghcr.io/pulibrary/pul_containers:jammy_multi" + command: "/lib/systemd/systemd" volumes: - - /sys/fs/cgroup:/sys/fs/cgroup:ro + - /sys/fs/cgroup:/sys/fs/cgroup:rw + tmpfs: + - /tmp + - /run + - /run/lock + cgroupns_mode: host privileged: true pre_build_image: true provisioner: name: ansible + config_options: + defaults: + remote_tmp: /tmp log: true verifier: name: ansible