-
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into chore/bareos_dir_overwrite_dir_conf
- Loading branch information
Showing
5 changed files
with
52 additions
and
69 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,57 +11,39 @@ on: | |
- cron: '3 2 2 * *' | ||
|
||
jobs: | ||
lint: | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- name: checkout | ||
uses: actions/checkout@v4 | ||
- name: ansible-lint | ||
uses: ansible-community/ansible-lint-action@main | ||
test: | ||
needs: | ||
- lint | ||
runs-on: ubuntu-20.04 | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
config: | ||
- image: "debian" | ||
tag: "latest" | ||
- image: "debian" | ||
tag: "bullseye" | ||
- image: "enterpriselinux" | ||
tag: "latest" | ||
- image: "fedora" | ||
tag: "39" | ||
- image: "fedora" | ||
tag: "latest" | ||
- image: "ubuntu" | ||
tag: "jammy" | ||
- image: "ubuntu" | ||
tag: "latest" | ||
steps: | ||
- name: checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: disable apparmor for mysql | ||
run: sudo ln -s /etc/apparmor.d/usr.sbin.mysqld /etc/apparmor.d/disable/ | ||
|
||
- name: parse apparmor for mysql | ||
run: sudo apparmor_parser -R /etc/apparmor.d/usr.sbin.mysqld | ||
|
||
- name: Set up Python 3. | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.x' | ||
|
||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install -r requirements.txt | ||
- name: molecule | ||
run: molecule converge | ||
env: | ||
image: ${{ matrix.config.image }} | ||
tag: ${{ matrix.config.tag }} | ||
uses: adfinis/github-workflows-bareos/.github/workflows/[email protected] | ||
with: | ||
systems: | | ||
{ | ||
"config": [ | ||
{ | ||
"image": "debian", | ||
"tag": "latest" | ||
}, | ||
{ | ||
"image": "debian", | ||
"tag": "bullseye" | ||
}, | ||
{ | ||
"image": "enterpriselinux", | ||
"tag": "latest" | ||
}, | ||
{ | ||
"image": "fedora", | ||
"tag": "40" | ||
}, | ||
{ | ||
"image": "fedora", | ||
"tag": "latest" | ||
}, | ||
{ | ||
"image": "ubuntu", | ||
"tag": "jammy" | ||
}, | ||
{ | ||
"image": "ubuntu", | ||
"tag": "latest" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,26 @@ | ||
--- | ||
|
||
- name: Prepare | ||
hosts: all | ||
become: yes | ||
gather_facts: no | ||
become: true | ||
gather_facts: false | ||
|
||
roles: | ||
- role: robertdebock.bootstrap | ||
# The roles buildtools, python_pip and postgres are required. | ||
# bareos-dir needs to connect to a database. | ||
- role: robertdebock.buildtools | ||
# EPEL is required for RHEL7. | ||
- role: robertdebock.epel | ||
- role: robertdebock.python_pip | ||
- role: robertdebock.postgres | ||
# The roles core_dependencies and postfix are required for the `bareos_role`: "dir". | ||
# The roles core_dependencies and postfix are required for the `bareos_role`: "dir". | ||
# bareos-dir needs to send emails. | ||
# - role: robertdebock.core_dependencies | ||
# - role: robertdebock.postfix | ||
|
||
- name: Setup Bareos Repository | ||
hosts: all | ||
become: true | ||
gather_facts: true | ||
roles: | ||
- role: adfinis.bareos_repository | ||
bareos_repository_enable_tracebacks: yes | ||
bareos_repository_enable_tracebacks: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters