File tree Expand file tree Collapse file tree 15 files changed +353
-34
lines changed Expand file tree Collapse file tree 15 files changed +353
-34
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ # .ansible-lint
3+ exclude_paths:
4+ - .cache/
5+ - .github/
6+ - venv/
7+ - .ansible/
Original file line number Diff line number Diff line change 1+ ansible
2+ ansible-core>=2.11
3+ ansible-lint
4+ dnspython
5+ yamllint
6+ molecule
7+ molecule-plugins
8+ molecule-plugins[docker]
9+ molecule-plugins[podman]
Original file line number Diff line number Diff line change 1+ ---
2+ name : lint
3+
4+ on : # yamllint disable-line rule:truthy
5+ push :
6+ pull_request :
7+
8+ jobs :
9+ lint :
10+ runs-on : ubuntu-latest
11+
12+ steps :
13+ - uses : actions/checkout@v4
14+
15+ - name : install dependencies
16+ run : >
17+ pip install -r .dev_requirements.txt
18+
19+ - run : yamllint --strict -c .yamllint .
20+
21+ - run : ansible-lint
Original file line number Diff line number Diff line change 1+ ---
2+
3+ name : molecule
4+
5+ on : # yamllint disable-line rule:truthy
6+ - push
7+ - pull_request
8+
9+ jobs :
10+ molecule :
11+ runs-on : ubuntu-latest
12+
13+ steps :
14+ - uses : actions/checkout@v4
15+
16+ - name : Install dependencies
17+ run : pip3 install -r .dev_requirements.txt
18+
19+ - name : Test playbook
20+ run : molecule test -- -e opencast_postgresql_password=123
21+ env :
22+ PY_COLORS : ' 1'
Original file line number Diff line number Diff line change 1+ venv /
2+ .ansible /
Original file line number Diff line number Diff line change 1+ ---
2+ # Yamllint configuration should be compatible with Ansible,
3+ # see https://ansible.readthedocs.io/projects/lint/rules/yaml/#yamllint-configuration
4+
5+ extends: default
6+
7+ rules:
8+ comments:
9+ # https://github.com/prettier/prettier/issues/6780
10+ min-spaces-from-content: 1
11+ # https://github.com/adrienverge/yamllint/issues/384
12+ comments-indentation: false
13+ document-start: disable
14+ # 160 chars was the default used by old E204 rule, but
15+ # you can easily change it or disable in your .yamllint file.
16+ line-length:
17+ max: 200
18+ # We are adding an extra space inside braces as that's how prettier does it
19+ # and we are trying not to fight other linters.
20+ braces:
21+ min-spaces-inside: 0 # yamllint defaults to 0
22+ max-spaces-inside: 1 # yamllint defaults to 0
23+ # key-duplicates:
24+ # forbid-duplicated-merge-keys: true # not enabled by default
25+ octal-values:
26+ forbid-implicit-octal: true # yamllint defaults to false
27+ forbid-explicit-octal: true # yamllint defaults to false
28+ # quoted-strings:
29+ # quote-type: double
30+ # required: only-when-needed
31+
32+
33+ ignore: |
34+ .cache/
35+ .github/
36+ venv/
Original file line number Diff line number Diff line change 11---
22
3- opencast_postgresql_version : 12
3+ opencast_postgresql_version : 16
44opencast_postgresql_user : opencast
55opencast_postgresql_database : opencast
66opencast_postgresql_connection_hosts :
Original file line number Diff line number Diff line change 11---
2- - name : restart postgresql
3- service :
4- name : postgresql
5- state : restarted
2+ - name : Restart Postgresql On CentOS
3+ ansible.builtin.service :
4+ name : " postgresql-{{ opencast_postgresql_version }}"
5+ state : restarted
6+ when : ansible_os_family == "RedHat"
7+
8+ - name : Restart Postgresql On Debian/Ubuntu
9+ ansible.builtin.service :
10+ name : postgresql
11+ state : restarted
12+ when : ansible_os_family == "Debian"
Original file line number Diff line number Diff line change 1+ ---
12galaxy_info :
23 author : Lars Kiesow
34 role_name : opencast_postgresql
45 namespace : elan
56 company : ELAN e.V.
67 description : Install and prepare PostgreSQL for Opencast
78 license : BSD-3-Clause
8- min_ansible_version : 2.9
9+ min_ansible_version : " 2.9"
10+
911 galaxy_tags :
1012 - opencast
13+
1114 platforms :
1215 - name : EL
1316 versions :
14- - 8
17+ - " 8"
18+ - " 9"
19+ - name : Debian
20+ versions :
21+ - " bullseye"
22+ - " bookworm"
23+ - name : Ubuntu
24+ versions :
25+ - " focal"
26+ - " jammy"
27+ - " noble"
1528
1629dependencies : []
Original file line number Diff line number Diff line change 1+ FROM {{ item.image }}
2+
3+ # Install dependencies
4+ {% if "centos" in item .name %}
5+ RUN dnf install --refresh -y sudo systemd bash ca-certificates iproute pam passwd shadow-utils python39 python3-libselinux
6+ {% else %}
7+ RUN apt-get update && apt-get install -y sudo init bash ca-certificates iproute2 python3 && apt-get clean
8+ {% endif %}
You can’t perform that action at this time.
0 commit comments