Skip to content

Commit a67f6b8

Browse files
committed
init
0 parents  commit a67f6b8

File tree

219 files changed

+18173
-0
lines changed

Some content is hidden

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

219 files changed

+18173
-0
lines changed

.ansible-lint

+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
---
2+
# Collection wide lint-file
3+
# DO NOT CHANGE
4+
exclude_paths:
5+
- .cache/
6+
- .github/
7+
#- docs/
8+
- roles/sap_hypervisor_node_preconfigure
9+
#- roles/sap_vm_provision
10+
- roles/sap_vm_preconfigure
11+
12+
enable_list:
13+
- yaml
14+
15+
skip_list:
16+
# We don't want to enforce new Ansible versions for Galaxy:
17+
- meta-runtime[unsupported-version]
18+
# We do not want to use checks which are marked as experimental:
19+
- experimental
20+
# We use ignore_errors for all the assert tasks, which should be acceptable:
21+
- ignore-errors
22+
# We want to allow single digit version numbers in a role's meta/main.yml file:
23+
- schema
24+
# Allow templating inside name because it creates more detailed output:
25+
- name[template]
26+
- yaml[comments]
27+
- yaml[line-length]
28+
- no-changed-when
29+
- no-tabs
30+
- no-handler
31+
- jinja[spacing]
32+
- var-naming[no-jinja]

.gitattributes

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
*.yml linguist-detectable
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
---
2+
3+
# Workflow for ansible-lint of a role
4+
5+
name: ansible-lint of the role sap_hypervisor_node_preconfigure
6+
7+
on:
8+
push:
9+
branches:
10+
- main
11+
- dev
12+
paths:
13+
- 'roles/sap_hypervisor_node_preconfigure/**'
14+
pull_request:
15+
branches:
16+
- main
17+
- dev
18+
paths:
19+
- 'roles/sap_hypervisor_node_preconfigure/**'
20+
21+
jobs:
22+
ansible-lint:
23+
runs-on: ubuntu-latest
24+
25+
steps:
26+
- name: Check out the code
27+
uses: actions/checkout@main
28+
29+
- name: Set up Python 3
30+
uses: actions/setup-python@main
31+
with:
32+
python-version: '3.9'
33+
34+
- name: Install test dependencies
35+
run: |
36+
pip3 install ansible==7.5.0
37+
pip3 install ansible-compat==3.0.2
38+
pip3 install ansible-core==2.14.5
39+
pip3 install ansible-lint==6.8.6
40+
41+
- name: Run ansible-lint
42+
working-directory: /home/runner/work/community.sap_infrastructure/community.sap_infrastructure/roles/sap_hypervisor_node_preconfigure
43+
run: ansible-lint
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
---
2+
3+
# Workflow for ansible-lint of a role
4+
5+
name: ansible-lint of the role sap_vm_preconfigure
6+
7+
on:
8+
push:
9+
branches:
10+
- main
11+
- dev
12+
paths:
13+
- 'roles/sap_vm_preconfigure/**'
14+
pull_request:
15+
branches:
16+
- main
17+
- dev
18+
paths:
19+
- 'roles/sap_vm_preconfigure/**'
20+
21+
jobs:
22+
ansible-lint:
23+
runs-on: ubuntu-latest
24+
25+
steps:
26+
- name: Check out the code
27+
uses: actions/checkout@main
28+
29+
- name: Set up Python 3
30+
uses: actions/setup-python@main
31+
with:
32+
python-version: '3.12'
33+
34+
- name: Install test dependencies
35+
run: |
36+
pip3 install ansible==9.1.0
37+
pip3 install ansible-compat==4.1.10
38+
pip3 install ansible-core==2.16.2
39+
pip3 install ansible-lint==6.22.1
40+
41+
- name: Run ansible-lint
42+
working-directory: /home/runner/work/community.sap_infrastructure/community.sap_infrastructure/roles/sap_vm_preconfigure
43+
run: ansible-lint
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
---
2+
3+
# Workflow for ansible-lint of a role
4+
5+
name: ansible-lint of the role sap_vm_provision
6+
7+
on:
8+
push:
9+
branches:
10+
- main
11+
- dev
12+
paths:
13+
- 'roles/sap_vm_provision/**'
14+
pull_request:
15+
branches:
16+
- main
17+
- dev
18+
paths:
19+
- 'roles/sap_vm_provision/**'
20+
21+
workflow_dispatch:
22+
23+
jobs:
24+
ansible-lint:
25+
runs-on: ubuntu-latest
26+
27+
steps:
28+
- name: Check out the code
29+
uses: actions/checkout@v4
30+
31+
- name: Set up Python 3
32+
uses: actions/setup-python@v5
33+
with:
34+
python-version: '3.12'
35+
36+
- name: Install test dependencies
37+
run: |
38+
pip3 install ansible==9.1.0
39+
pip3 install ansible-compat==4.1.10
40+
pip3 install ansible-core==2.16.2
41+
pip3 install ansible-lint==6.22.1
42+
pip3 install jmespath==1.0.1
43+
44+
- name: Run ansible-lint
45+
working-directory: /home/runner/work/community.sap_infrastructure/community.sap_infrastructure/roles/sap_vm_provision
46+
run: ansible-lint
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
---
2+
3+
# Workflow for ansible-lint of a role
4+
5+
name: ansible-lint of the role sap_vm_temp_vip
6+
7+
on:
8+
push:
9+
branches:
10+
- main
11+
- dev
12+
paths:
13+
- 'roles/sap_vm_temp_vip/**'
14+
pull_request:
15+
branches:
16+
- main
17+
- dev
18+
paths:
19+
- 'roles/sap_vm_temp_vip/**'
20+
21+
workflow_dispatch:
22+
23+
jobs:
24+
ansible-lint:
25+
runs-on: ubuntu-latest
26+
27+
steps:
28+
- name: Check out the code
29+
uses: actions/checkout@v4
30+
31+
- name: Set up Python 3
32+
uses: actions/setup-python@v5
33+
with:
34+
python-version: '3.12'
35+
36+
- name: Install test dependencies
37+
run: |
38+
pip3 install ansible==9.1.0
39+
pip3 install ansible-compat==4.1.10
40+
pip3 install ansible-core==2.16.2
41+
pip3 install ansible-lint==6.22.1
42+
43+
- name: Run ansible-lint
44+
working-directory: /home/runner/work/community.sap_infrastructure/community.sap_infrastructure/roles/sap_vm_temp_vip
45+
run: ansible-lint
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
---
2+
3+
# Workflow for ansible-lint of a role
4+
5+
name: ansible-lint of the role sap_vm_verify
6+
7+
on:
8+
push:
9+
branches:
10+
- main
11+
- dev
12+
paths:
13+
- 'roles/sap_vm_verify/**'
14+
pull_request:
15+
branches:
16+
- main
17+
- dev
18+
paths:
19+
- 'roles/sap_vm_verify/**'
20+
21+
workflow_dispatch:
22+
23+
jobs:
24+
ansible-lint:
25+
runs-on: ubuntu-latest
26+
27+
steps:
28+
- name: Check out the code
29+
uses: actions/checkout@v4
30+
31+
- name: Set up Python 3
32+
uses: actions/setup-python@v5
33+
with:
34+
python-version: '3.12'
35+
36+
- name: Install test dependencies
37+
run: |
38+
pip3 install ansible==9.1.0
39+
pip3 install ansible-compat==4.1.10
40+
pip3 install ansible-core==2.16.2
41+
pip3 install ansible-lint==6.22.1
42+
pip3 install jmespath==1.0.1
43+
44+
- name: Run ansible-lint
45+
working-directory: /home/runner/work/community.sap_infrastructure/community.sap_infrastructure/roles/sap_vm_verify
46+
run: ansible-lint

.github/workflows/ansible-lint.yml

+54
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
---
2+
3+
# Workflow for ansible-lint of the collection
4+
5+
name: ansible-lint of the collection
6+
7+
on:
8+
schedule:
9+
- cron: '31 13 * * 1'
10+
11+
workflow_dispatch:
12+
13+
jobs:
14+
ansible-lint:
15+
runs-on: ubuntu-latest
16+
17+
steps:
18+
- name: Check out the code
19+
uses: actions/checkout@v4
20+
21+
- name: Set up Python 3
22+
uses: actions/setup-python@v5
23+
with:
24+
python-version: '3.12'
25+
26+
- name: Install dependencies for Python
27+
run: |
28+
pip3 install ansible==9.1.0
29+
pip3 install ansible-compat==4.1.10
30+
pip3 install ansible-core==2.16.2
31+
pip3 install ansible-lint==6.22.1
32+
pip3 install jmespath==1.0.1
33+
34+
- name: Install dependencies for Ansible
35+
run: ansible-galaxy collection install -r /home/runner/work/community.sap_infrastructure/community.sap_infrastructure/requirements.yml
36+
37+
- name: Move the collection to the correct location - Create new directory
38+
run: mkdir -p /home/runner/.ansible/collections/ansible_collections/community
39+
40+
- name: Move the collection to the correct location - Move the collection
41+
working-directory: /home/runner/
42+
run: mv /home/runner/work/community.sap_infrastructure/community.sap_infrastructure /home/runner/.ansible/collections/ansible_collections/community
43+
44+
- name: Move the collection to the correct location - Rename the directory
45+
working-directory: /home/runner/
46+
run: mv /home/runner/.ansible/collections/ansible_collections/community/community.sap_infrastructure /home/runner/.ansible/collections/ansible_collections/community/sap_infrastructure
47+
48+
- name: Run ansible-lint
49+
working-directory: /home/runner/.ansible/collections/ansible_collections/community/sap_infrastructure
50+
run: ansible-lint
51+
52+
- name: Move the collection to its previous location
53+
working-directory: /home/runner/
54+
run: mv /home/runner/.ansible/collections/ansible_collections/community/sap_infrastructure /home/runner/work/community.sap_infrastructure/community.sap_infrastructure
+53
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
---
2+
3+
# Worflow for ansible-test sanity tests
4+
5+
name: ansible-test sanity of the collection
6+
7+
on:
8+
schedule:
9+
- cron: '31 12 * * 1'
10+
11+
workflow_dispatch:
12+
13+
jobs:
14+
sanity:
15+
runs-on: ubuntu-latest
16+
17+
steps:
18+
- name: Check out the code
19+
uses: actions/checkout@v4
20+
21+
- name: Set up Python 3
22+
uses: actions/setup-python@v5
23+
with:
24+
python-version: '3.12'
25+
26+
- name: Install test dependencies
27+
run: |
28+
pip3 install ansible-lint==6.22.1
29+
pip3 install ansible-compat==4.1.10
30+
31+
# - name: Install collection dependencies
32+
# run: ansible-galaxy collection install community.general
33+
34+
- name: Move the collection to the correct location - Create new directory
35+
run: mkdir -p /home/runner/.ansible/collections/ansible_collections/community
36+
37+
- name: Move the collection to the correct location - Move the collection
38+
working-directory: /home/runner/
39+
run: mv /home/runner/work/community.sap_infrastructure/community.sap_infrastructure /home/runner/.ansible/collections/ansible_collections/community
40+
41+
- name: Move the collection to the correct location - Rename the directory
42+
working-directory: /home/runner/
43+
run: mv /home/runner/.ansible/collections/ansible_collections/community/community.sap_infrastructure /home/runner/.ansible/collections/ansible_collections/community/sap_infrastructure
44+
45+
46+
- name: Run sanity tests
47+
working-directory: /home/runner/.ansible/collections/ansible_collections/community/sap_infrastructure
48+
run: ansible-test sanity
49+
50+
51+
- name: Move the collection to its previous location
52+
working-directory: /home/runner/
53+
run: mv /home/runner/.ansible/collections/ansible_collections/community/sap_infrastructure /home/runner/work/community.sap_infrastructure/community.sap_infrastructure

.github/workflows/codespell.yml

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: CodeSpell
2+
3+
on:
4+
push:
5+
branches:
6+
- dev
7+
pull_request:
8+
branches:
9+
- dev
10+
11+
jobs:
12+
codespell:
13+
name: Check for spelling errors
14+
runs-on: ubuntu-latest
15+
16+
steps:
17+
- uses: actions/checkout@v4
18+
- uses: codespell-project/actions-codespell@v2
19+
with:
20+
# lowercase only
21+
ignore_words_list: aas,hsa,te,chage,addopt,sybsystem,uptodate

0 commit comments

Comments
 (0)