Skip to content

Commit aa3c9f4

Browse files
Squashed 'vendor/github.com/performancecopilot/ansible-pcp/' changes from 77c4a18..bc5795e
bc5795e refactor: handle INJECT_FACTS_AS_VARS=false by using ansible_facts instead git-subtree-dir: vendor/github.com/performancecopilot/ansible-pcp git-subtree-split: bc5795e627aba149e324d90a36aeb77e2ef725b0
1 parent 253028b commit aa3c9f4

File tree

421 files changed

+440
-6064
lines changed

Some content is hidden

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

421 files changed

+440
-6064
lines changed

.README.html

Lines changed: 0 additions & 380 deletions
This file was deleted.

.ansible-lint

Lines changed: 10 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,16 @@
11
---
2-
profile: production
2+
skip_list:
3+
- fqcn-builtins
4+
- galaxy[no-changelog]
5+
exclude_paths:
6+
- tests/roles/
7+
- .github/
8+
- examples/roles/
9+
- .markdownlint.yaml
10+
# downloaded, not ours
11+
- .ansible/collections
312
kinds:
413
- yaml: "**/meta/collection-requirements.yml"
5-
- playbook: "**/tests/get_coverage.yml"
614
- yaml: "**/tests/collection-requirements.yml"
715
- playbook: "**/tests/tests_*.yml"
816
- playbook: "**/tests/setup-snapshot.yml"
@@ -12,25 +20,3 @@ kinds:
1220
- tasks: "**/tests/tasks/*/*.yml"
1321
- vars: "**/tests/vars/*.yml"
1422
- playbook: "**/examples/*.yml"
15-
skip_list:
16-
- fqcn-builtins
17-
- var-naming[no-role-prefix]
18-
- galaxy[no-changelog]
19-
exclude_paths:
20-
- tests/roles/
21-
- .github/
22-
- .markdownlint.yaml
23-
- examples/roles/
24-
mock_roles:
25-
- linux-system-roles.metrics
26-
- performancecopilot.metrics.bpftrace
27-
- performancecopilot.metrics.elasticsearch
28-
- performancecopilot.metrics.grafana
29-
- performancecopilot.metrics.mssql
30-
- performancecopilot.metrics.pcp
31-
- performancecopilot.metrics.postfix
32-
- performancecopilot.metrics.keyserver
33-
- performancecopilot.metrics.repository
34-
- performancecopilot.metrics.spark
35-
supported_ansible_also:
36-
- "2.14.0"

.codespell_ignores

Lines changed: 0 additions & 1 deletion
This file was deleted.

.codespellrc

Lines changed: 0 additions & 10 deletions
This file was deleted.

.fmf/version

Lines changed: 0 additions & 1 deletion
This file was deleted.

.github/CODEOWNERS

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
# https://help.github.com/en/articles/about-code-owners
22
# Default reviewers for everything
3-
* @richm @sradco @natoscott @portante
3+
* @pcp-ansible-maintainers

vendor/github.com/performancecopilot/ansible-pcp/.github/FUNDING.yml renamed to .github/FUNDING.yml

File renamed without changes.

.github/workflows/ansible-lint.yml

Lines changed: 2 additions & 63 deletions
Original file line numberDiff line numberDiff line change
@@ -1,84 +1,23 @@
11
---
22
name: Ansible Lint
33
on: # yamllint disable-line rule:truthy
4-
pull_request:
54
merge_group:
65
branches:
76
- main
87
types:
98
- checks_requested
9+
pull_request:
1010
push:
1111
branches:
1212
- main
1313
workflow_dispatch:
14-
env:
15-
LSR_ROLE2COLL_NAMESPACE: fedora
16-
LSR_ROLE2COLL_NAME: linux_system_roles
1714
permissions:
1815
contents: read
1916
jobs:
2017
ansible_lint:
2118
runs-on: ubuntu-latest
2219
steps:
23-
- name: Update pip, git
24-
run: |
25-
set -euxo pipefail
26-
sudo apt update
27-
sudo apt install -y git
28-
2920
- name: Checkout repo
3021
uses: actions/checkout@v4
31-
32-
- name: Install tox, tox-lsr
33-
run: |
34-
set -euxo pipefail
35-
pip3 install "git+https://github.com/linux-system-roles/tox-lsr@3.11.0"
36-
37-
- name: Convert role to collection format
38-
id: collection
39-
run: |
40-
set -euxo pipefail
41-
TOXENV=collection lsr_ci_runtox
42-
coll_dir=".tox/ansible_collections/$LSR_ROLE2COLL_NAMESPACE/$LSR_ROLE2COLL_NAME"
43-
# cleanup after collection conversion
44-
rm -rf "$coll_dir/.ansible" .tox/ansible-plugin-scan
45-
# ansible-lint action requires a .git directory???
46-
# https://github.com/ansible/ansible-lint/blob/main/action.yml#L45
47-
mkdir -p "$coll_dir/.git"
48-
meta_req_file="${{ github.workspace }}/meta/collection-requirements.yml"
49-
test_req_file="${{ github.workspace }}/tests/collection-requirements.yml"
50-
if [ -f "$meta_req_file" ] && [ -f "$test_req_file" ]; then
51-
coll_req_file="${{ github.workspace }}/req.yml"
52-
python -c 'import sys; import yaml
53-
hsh1 = yaml.safe_load(open(sys.argv[1]))
54-
hsh2 = yaml.safe_load(open(sys.argv[2]))
55-
coll = {}
56-
for item in hsh1["collections"] + hsh2["collections"]:
57-
if isinstance(item, dict):
58-
name = item["name"]
59-
rec = item
60-
else:
61-
name = item # assume string
62-
rec = {"name": name}
63-
if name not in coll:
64-
coll[name] = rec
65-
hsh1["collections"] = list(coll.values())
66-
yaml.safe_dump(hsh1, open(sys.argv[3], "w"))' "$meta_req_file" "$test_req_file" "$coll_req_file"
67-
echo merged "$coll_req_file"
68-
cat "$coll_req_file"
69-
elif [ -f "$meta_req_file" ]; then
70-
coll_req_file="$meta_req_file"
71-
elif [ -f "$test_req_file" ]; then
72-
coll_req_file="$test_req_file"
73-
else
74-
coll_req_file=""
75-
fi
76-
echo "coll_req_file=$coll_req_file" >> $GITHUB_OUTPUT
77-
7822
- name: Run ansible-lint
79-
uses: ansible/ansible-lint@v25
80-
with:
81-
working_directory: ${{ github.workspace }}/.tox/ansible_collections/${{ env.LSR_ROLE2COLL_NAMESPACE }}/${{ env.LSR_ROLE2COLL_NAME }}
82-
requirements_file: ${{ steps.collection.outputs.coll_req_file }}
83-
env:
84-
ANSIBLE_COLLECTIONS_PATH: ${{ github.workspace }}/.tox
23+
uses: ansible/ansible-lint@v24

.github/workflows/ansible-managed-var-comment.yml

Lines changed: 0 additions & 38 deletions
This file was deleted.

.github/workflows/ansible-test.yml

Lines changed: 0 additions & 48 deletions
This file was deleted.

0 commit comments

Comments
 (0)