Skip to content

Commit de7d93c

Browse files
committed
Merge branch 'main' of github.com:t4d-gmbh/WebServerSetup
2 parents e749ae9 + dc3a844 commit de7d93c

156 files changed

Lines changed: 5158 additions & 158 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.ansible-lint

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
---
2+
# Ansible-lint configuration
3+
4+
# Skip rules that conflict with this project's conventions
5+
skip_list:
6+
- role-name # Roles use camelCase (hardenServer, etc.)
7+
- name[casing] # Allow flexible task naming
8+
- yaml[truthy] # Allow 'yes'/'no' in addition to 'true'/'false'
9+
- var-naming # Variables don't follow role-prefix convention (pre-existing)
10+
- fqcn # Modules not using fully qualified names yet (pre-existing)
11+
- key-order # Task key ordering is flexible
12+
- schema[galaxy] # Collection name uses PascalCase (pre-existing)
13+
- galaxy # No changelog/runtime yet
14+
15+
# Warn but don't fail on these
16+
warn_list:
17+
- command-instead-of-module
18+
- no-changed-when
19+
- yaml[line-length]
20+
- risky-file-permissions
21+
- no-handler
22+
- name[missing]
23+
- package-latest
24+
- jinja[spacing]
25+
26+
# Exclude molecule/test artifacts from linting
27+
exclude_paths:
28+
- .cache/
29+
- .github/
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
---
2+
name: "Compound - R Analytics Stack"
3+
4+
on:
5+
push:
6+
branches: [main]
7+
paths:
8+
- "roles/docker/**"
9+
- "roles/authentik/**"
10+
- "roles/opencpu/**"
11+
- "tests/compound-docker-auth-opencpu/**"
12+
pull_request:
13+
branches: [main]
14+
paths:
15+
- "roles/docker/**"
16+
- "roles/authentik/**"
17+
- "roles/opencpu/**"
18+
- "tests/compound-docker-auth-opencpu/**"
19+
schedule:
20+
- cron: "0 6 1 * *"
21+
workflow_dispatch:
22+
23+
jobs:
24+
molecule:
25+
name: Molecule
26+
runs-on: ubuntu-latest
27+
steps:
28+
- name: Checkout
29+
uses: actions/checkout@v4
30+
31+
- name: Set up Python
32+
uses: actions/setup-python@v5
33+
with:
34+
python-version: "3.12"
35+
36+
- name: Install dependencies
37+
run: |
38+
pip install ansible-core molecule molecule-plugins[docker] docker
39+
ansible-galaxy collection install -r requirements.yml
40+
41+
- name: Run Molecule tests
42+
run: molecule test
43+
working-directory: tests/compound-docker-auth-opencpu
44+
env:
45+
PY_COLORS: "1"
46+
ANSIBLE_FORCE_COLOR: "1"
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
---
2+
name: "Compound - Django Stack"
3+
4+
on:
5+
push:
6+
branches: [main]
7+
paths:
8+
- "roles/hardenServer/**"
9+
- "roles/postgresqlSetup/**"
10+
- "roles/certbot/**"
11+
- "roles/nginxWebServer/**"
12+
- "roles/installWebApp/**"
13+
- "roles/celerySetup/**"
14+
- "roles/gunicornSetup/**"
15+
- "tests/compound-django-stack/**"
16+
pull_request:
17+
branches: [main]
18+
paths:
19+
- "roles/hardenServer/**"
20+
- "roles/postgresqlSetup/**"
21+
- "roles/certbot/**"
22+
- "roles/nginxWebServer/**"
23+
- "roles/installWebApp/**"
24+
- "roles/celerySetup/**"
25+
- "roles/gunicornSetup/**"
26+
- "tests/compound-django-stack/**"
27+
schedule:
28+
- cron: "0 6 1 * *"
29+
workflow_dispatch:
30+
31+
jobs:
32+
molecule:
33+
name: Molecule
34+
runs-on: ubuntu-latest
35+
steps:
36+
- name: Checkout
37+
uses: actions/checkout@v4
38+
39+
- name: Set up Python
40+
uses: actions/setup-python@v5
41+
with:
42+
python-version: "3.12"
43+
44+
- name: Install dependencies
45+
run: |
46+
pip install ansible-core molecule molecule-plugins[docker] docker
47+
ansible-galaxy collection install -r requirements.yml
48+
49+
- name: Run Molecule tests
50+
run: molecule test
51+
working-directory: tests/compound-django-stack
52+
env:
53+
PY_COLORS: "1"
54+
ANSIBLE_FORCE_COLOR: "1"
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
---
2+
name: "Compound - Full Stack"
3+
4+
on:
5+
push:
6+
branches: [main]
7+
paths:
8+
- "roles/basic_config/**"
9+
- "roles/docker/**"
10+
- "roles/traefik/**"
11+
- "roles/authentik/**"
12+
- "roles/opencpu/**"
13+
- "tests/compound-full-stack/**"
14+
pull_request:
15+
branches: [main]
16+
paths:
17+
- "roles/basic_config/**"
18+
- "roles/docker/**"
19+
- "roles/traefik/**"
20+
- "roles/authentik/**"
21+
- "roles/opencpu/**"
22+
- "tests/compound-full-stack/**"
23+
schedule:
24+
- cron: "0 6 1 * *"
25+
workflow_dispatch:
26+
27+
jobs:
28+
molecule:
29+
name: Molecule
30+
runs-on: ubuntu-latest
31+
steps:
32+
- name: Checkout
33+
uses: actions/checkout@v4
34+
35+
- name: Set up Python
36+
uses: actions/setup-python@v5
37+
with:
38+
python-version: "3.12"
39+
40+
- name: Install dependencies
41+
run: |
42+
pip install ansible-core molecule molecule-plugins[docker] docker
43+
ansible-galaxy collection install -r requirements.yml
44+
45+
- name: Run Molecule tests
46+
run: molecule test
47+
working-directory: tests/compound-full-stack
48+
env:
49+
PY_COLORS: "1"
50+
ANSIBLE_FORCE_COLOR: "1"
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
---
2+
name: "Compound - VPN Stack"
3+
4+
on:
5+
push:
6+
branches: [main]
7+
paths:
8+
- "roles/docker/**"
9+
- "roles/authentik/**"
10+
- "roles/headscale/**"
11+
- "tests/compound-docker-auth-headscale/**"
12+
pull_request:
13+
branches: [main]
14+
paths:
15+
- "roles/docker/**"
16+
- "roles/authentik/**"
17+
- "roles/headscale/**"
18+
- "tests/compound-docker-auth-headscale/**"
19+
schedule:
20+
- cron: "0 6 1 * *"
21+
workflow_dispatch:
22+
23+
jobs:
24+
molecule:
25+
name: Molecule
26+
runs-on: ubuntu-latest
27+
steps:
28+
- name: Checkout
29+
uses: actions/checkout@v4
30+
31+
- name: Set up Python
32+
uses: actions/setup-python@v5
33+
with:
34+
python-version: "3.12"
35+
36+
- name: Install dependencies
37+
run: |
38+
pip install ansible-core molecule molecule-plugins[docker] docker
39+
ansible-galaxy collection install -r requirements.yml
40+
41+
- name: Run Molecule tests
42+
run: molecule test
43+
working-directory: tests/compound-docker-auth-headscale
44+
env:
45+
PY_COLORS: "1"
46+
ANSIBLE_FORCE_COLOR: "1"
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
---
2+
name: "Molecule - authentik"
3+
4+
on:
5+
push:
6+
branches: [main]
7+
paths:
8+
- "roles/authentik/**"
9+
pull_request:
10+
branches: [main]
11+
paths:
12+
- "roles/authentik/**"
13+
schedule:
14+
- cron: "0 6 1 * *"
15+
workflow_dispatch:
16+
17+
jobs:
18+
molecule:
19+
name: Molecule
20+
runs-on: ubuntu-latest
21+
steps:
22+
- name: Checkout
23+
uses: actions/checkout@v4
24+
25+
- name: Set up Python
26+
uses: actions/setup-python@v5
27+
with:
28+
python-version: "3.12"
29+
30+
- name: Install dependencies
31+
run: |
32+
pip install ansible-core molecule molecule-plugins[docker] docker
33+
ansible-galaxy collection install -r requirements.yml
34+
35+
- name: Run Molecule tests
36+
run: molecule test
37+
working-directory: roles/authentik
38+
env:
39+
PY_COLORS: "1"
40+
ANSIBLE_FORCE_COLOR: "1"
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
---
2+
name: "Molecule - basic_config"
3+
4+
on:
5+
push:
6+
branches: [main]
7+
paths:
8+
- "roles/basic_config/**"
9+
pull_request:
10+
branches: [main]
11+
paths:
12+
- "roles/basic_config/**"
13+
schedule:
14+
- cron: "0 6 1 * *"
15+
workflow_dispatch:
16+
17+
jobs:
18+
molecule:
19+
name: Molecule
20+
runs-on: ubuntu-latest
21+
steps:
22+
- name: Checkout
23+
uses: actions/checkout@v4
24+
25+
- name: Set up Python
26+
uses: actions/setup-python@v5
27+
with:
28+
python-version: "3.12"
29+
30+
- name: Install dependencies
31+
run: |
32+
pip install ansible-core molecule molecule-plugins[docker] docker
33+
ansible-galaxy collection install -r requirements.yml
34+
35+
- name: Run Molecule tests
36+
run: molecule test
37+
working-directory: roles/basic_config
38+
env:
39+
PY_COLORS: "1"
40+
ANSIBLE_FORCE_COLOR: "1"
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
---
2+
name: "Molecule - celerySetup"
3+
4+
on:
5+
push:
6+
branches: [main]
7+
paths:
8+
- "roles/celerySetup/**"
9+
pull_request:
10+
branches: [main]
11+
paths:
12+
- "roles/celerySetup/**"
13+
schedule:
14+
- cron: "0 6 1 * *"
15+
workflow_dispatch:
16+
17+
jobs:
18+
molecule:
19+
name: Molecule
20+
runs-on: ubuntu-latest
21+
steps:
22+
- name: Checkout
23+
uses: actions/checkout@v4
24+
25+
- name: Set up Python
26+
uses: actions/setup-python@v5
27+
with:
28+
python-version: "3.12"
29+
30+
- name: Install dependencies
31+
run: |
32+
pip install ansible-core molecule molecule-plugins[docker] docker
33+
ansible-galaxy collection install -r requirements.yml
34+
35+
- name: Run Molecule tests
36+
run: molecule test
37+
working-directory: roles/celerySetup
38+
env:
39+
PY_COLORS: "1"
40+
ANSIBLE_FORCE_COLOR: "1"
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
---
2+
name: "Molecule - certbot"
3+
4+
on:
5+
push:
6+
branches: [main]
7+
paths:
8+
- "roles/certbot/**"
9+
pull_request:
10+
branches: [main]
11+
paths:
12+
- "roles/certbot/**"
13+
schedule:
14+
- cron: "0 6 1 * *"
15+
workflow_dispatch:
16+
17+
jobs:
18+
molecule:
19+
name: Molecule
20+
runs-on: ubuntu-latest
21+
steps:
22+
- name: Checkout
23+
uses: actions/checkout@v4
24+
25+
- name: Set up Python
26+
uses: actions/setup-python@v5
27+
with:
28+
python-version: "3.12"
29+
30+
- name: Install dependencies
31+
run: |
32+
pip install ansible-core molecule molecule-plugins[docker] docker
33+
ansible-galaxy collection install -r requirements.yml
34+
35+
- name: Run Molecule tests
36+
run: molecule test
37+
working-directory: roles/certbot
38+
env:
39+
PY_COLORS: "1"
40+
ANSIBLE_FORCE_COLOR: "1"

0 commit comments

Comments
 (0)