Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[passenger] enable systemd #5494

Draft
wants to merge 17 commits into
base: main
Choose a base branch
from
14 changes: 11 additions & 3 deletions roles/abid/molecule/default/molecule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/ansible
log: true
verifier:
name: ansible
14 changes: 11 additions & 3 deletions roles/approvals/molecule/default/molecule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/ansible
log: true
verifier:
name: ansible
14 changes: 11 additions & 3 deletions roles/blacklight_app/molecule/default/molecule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/ansible
log: true
verifier:
name: ansible
2 changes: 1 addition & 1 deletion roles/blacklight_app/tasks/main.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
- name: blacklight_app | Create the cron job
- name: Blacklight_app | Create the cron job
ansible.builtin.cron:
name: Clean old Blacklight searches and Devise guest user accounts nightly
hour: "22"
Expand Down
2 changes: 2 additions & 0 deletions roles/dpul/molecule/default/ansible.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[defaults]
remote_tmp = /tmp/ansible
17 changes: 11 additions & 6 deletions roles/dpul/molecule/default/molecule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,23 @@ 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
- /tmp/ansible:/tmp/ansible: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
remote_tmp: /tmp/ansible
log: true
verifier:
name: ansible
15 changes: 15 additions & 0 deletions roles/dss/molecule/default/converge.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
---
- name: Converge
hosts: all
vars:
- running_on_server: false
become: true
pre_tasks:
- name: Update cache
ansible.builtin.apt:
update_cache: true
cache_valid_time: 600
tasks:
- name: "Include dss"
ansible.builtin.include_role:
name: dss
36 changes: 17 additions & 19 deletions roles/dss/molecule/default/molecule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/ansible
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
24 changes: 0 additions & 24 deletions roles/dss/molecule/default/playbook.yml

This file was deleted.

14 changes: 0 additions & 14 deletions roles/dss/molecule/default/tests/test_default.py

This file was deleted.

21 changes: 21 additions & 0 deletions roles/dss/molecule/default/verify.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
---
- name: Verify
hosts: all
tasks:
- name: Dss | check rubygems version
ansible.builtin.command: gem --version
register: result
changed_when: false
- name: Dss | assert rubygems version
ansible.builtin.assert:
that:
- result.stdout is match("3.5.13")

- name: Dss | check bundler version
ansible.builtin.command: bundler -v
register: result
changed_when: false
- name: Dss | assert bundler version
ansible.builtin.assert:
that:
- result.stdout is match("Bundler version 2.5.13")
12 changes: 10 additions & 2 deletions roles/example/molecule/default/molecule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,21 @@ lint: |
platforms:
- name: instance
image: "ghcr.io/pulibrary/pul_containers:jammy_multi"
command: "sleep infinity"
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/ansible
log: true
verifier:
name: ansible
14 changes: 11 additions & 3 deletions roles/figgy/molecule/default/molecule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/ansible
log: true
verifier:
name: ansible
Loading
Loading