Compare commits
8 Commits
e2cbe215fc
...
7db9d6e6a8
| Author | SHA1 | Date |
|---|---|---|
|
|
7db9d6e6a8 | |
|
|
6eae474e25 | |
|
|
deda29a665 | |
|
|
1468acbd3f | |
|
|
873c295200 | |
|
|
0e0813c1a2 | |
|
|
7813b190d6 | |
|
|
9d5d87dbf7 |
|
|
@ -0,0 +1,41 @@
|
||||||
|
---
|
||||||
|
|
||||||
|
name: Integration-Tests
|
||||||
|
|
||||||
|
on:
|
||||||
|
schedule:
|
||||||
|
- cron: "26 6 * * *"
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
test:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
timeout-minutes: 1
|
||||||
|
env:
|
||||||
|
CI_JOB: 'ansible-test-molecule-${{ github.event.repository.name }}'
|
||||||
|
CI_DOMAIN: 'ci.ansibleguy.net'
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
with:
|
||||||
|
ref: ${{ github.ref }}
|
||||||
|
|
||||||
|
- name: Install dependencies
|
||||||
|
run: sudo apt install curl jq
|
||||||
|
shell: bash
|
||||||
|
|
||||||
|
- name: Pulling logs
|
||||||
|
run: curl -f https://${{ env.CI_DOMAIN }}/api/job/${{ env.CI_JOB }}/logs?token=${{ secrets.CI_TOKEN_RW }} | jq > /tmp/test.log
|
||||||
|
shell: bash
|
||||||
|
|
||||||
|
- uses: actions/upload-artifact@v4
|
||||||
|
with:
|
||||||
|
name: test-logs
|
||||||
|
path: /tmp/test.log
|
||||||
|
retention-days: 14
|
||||||
|
|
||||||
|
- name: Checking job-state
|
||||||
|
run: >
|
||||||
|
curl https://${{ env.CI_DOMAIN }}/api/job/${{ env.CI_JOB }}/state?token=${{ secrets.CI_TOKEN_RW }} | jq -r '.state' | grep -q 'failed' && exit 1 || exit 0
|
||||||
|
shell: bash
|
||||||
|
|
@ -0,0 +1,34 @@
|
||||||
|
---
|
||||||
|
|
||||||
|
name: Integration-Tests Execution
|
||||||
|
|
||||||
|
on: workflow_dispatch
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
test:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
timeout-minutes: 1
|
||||||
|
env:
|
||||||
|
CI_JOB: 'ansible-test-molecule-${{ github.event.repository.name }}'
|
||||||
|
CI_DOMAIN: 'ci.ansibleguy.net'
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
with:
|
||||||
|
ref: ${{ github.ref }}
|
||||||
|
|
||||||
|
- name: Install dependencies
|
||||||
|
run: sudo apt install curl
|
||||||
|
shell: bash
|
||||||
|
|
||||||
|
- name: Starting Tests
|
||||||
|
run: curl -f -XPOST https://${{ env.CI_DOMAIN }}/api/job/${{ env.CI_JOB }}?token=${{ secrets.CI_TOKEN_RW }}
|
||||||
|
shell: bash
|
||||||
|
|
||||||
|
- name: You can pull the current logs at this URL
|
||||||
|
run: >
|
||||||
|
echo "You can pull the current logs at this URL:"
|
||||||
|
echo " > https://${{ env.CI_DOMAIN }}/api/job/${{ env.CI_JOB }}/tail?token=${CI_TOKEN_RO}"
|
||||||
|
env:
|
||||||
|
CI_TOKEN_RO: "2b7bba30-9a37-4b57-be8a-99e23016ce70"
|
||||||
|
|
@ -19,7 +19,7 @@ on:
|
||||||
- 'requirements_lint.txt'
|
- 'requirements_lint.txt'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
lint:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
timeout-minutes: 2
|
timeout-minutes: 2
|
||||||
steps:
|
steps:
|
||||||
|
|
|
||||||
|
|
@ -6,4 +6,4 @@ rules:
|
||||||
truthy:
|
truthy:
|
||||||
allowed-values: ['true', 'false', 'yes', 'no']
|
allowed-values: ['true', 'false', 'yes', 'no']
|
||||||
line-length:
|
line-length:
|
||||||
max: 160
|
max: 170
|
||||||
|
|
|
||||||
14
README.md
14
README.md
|
|
@ -2,13 +2,17 @@
|
||||||
|
|
||||||
Ansible Role to create certificates to use on a linux server.
|
Ansible Role to create certificates to use on a linux server.
|
||||||
|
|
||||||
[](https://github.com/ansibleguy/_meta_cicd/blob/latest/templates/usr/local/bin/cicd/molecule.sh.j2)
|
[](https://github.com/ansibleguy/infra_certs/actions/workflows/lint.yml)
|
||||||
[](https://github.com/ansibleguy/_meta_cicd/blob/latest/templates/usr/local/bin/cicd/yamllint.sh.j2)
|
|
||||||
[](https://github.com/ansibleguy/_meta_cicd/blob/latest/templates/usr/local/bin/cicd/pylint.sh.j2)
|
|
||||||
[](https://github.com/ansibleguy/_meta_cicd/blob/latest/templates/usr/local/bin/cicd/ansiblelint.sh.j2)
|
|
||||||
[](https://galaxy.ansible.com/ui/standalone/roles/ansibleguy/infra_certs)
|
[](https://galaxy.ansible.com/ui/standalone/roles/ansibleguy/infra_certs)
|
||||||
|
|
||||||
Molecule Logs: [Short](https://badges.ansibleguy.net/log/molecule_infra_certs_test_short.log), [Full](https://badges.ansibleguy.net/log/molecule_infra_certs_test.log)
|
**Molecule Integration-Tests**:
|
||||||
|
|
||||||
|
* Status: [](https://github.com/ansibleguy/_meta_cicd/blob/latest/templates/usr/local/bin/cicd/molecule.sh.j2) |
|
||||||
|
[](https://github.com/ansibleguy/infra_certs/actions/workflows/integration_test_result.yml)
|
||||||
|
* Logs: [API](https://ci.ansibleguy.net/api/job/ansible-test-molecule-infra_certs/logs?token=2b7bba30-9a37-4b57-be8a-99e23016ce70&lines=1000) | [Short](https://badges.ansibleguy.net/log/molecule_infra_certs_test_short.log) | [Full](https://badges.ansibleguy.net/log/molecule_infra_certs_test.log)
|
||||||
|
|
||||||
|
Internal CI: [Tester Role](https://github.com/ansibleguy/_meta_cicd) | [Jobs API](https://github.com/O-X-L/github-self-hosted-jobs-systemd)
|
||||||
|
|
||||||
|
|
||||||
**Tested:**
|
**Tested:**
|
||||||
* Debian 11
|
* Debian 11
|
||||||
|
|
|
||||||
|
|
@ -38,8 +38,16 @@ platforms:
|
||||||
|
|
||||||
provisioner:
|
provisioner:
|
||||||
name: ansible
|
name: ansible
|
||||||
|
config_options:
|
||||||
|
defaults:
|
||||||
|
remote_tmp: '/tmp'
|
||||||
|
no_target_syslog: true
|
||||||
verifier:
|
verifier:
|
||||||
name: ansible
|
name: ansible
|
||||||
|
config_options:
|
||||||
|
defaults:
|
||||||
|
remote_tmp: '/tmp'
|
||||||
|
no_target_syslog: true
|
||||||
scenario:
|
scenario:
|
||||||
name: default
|
name: default
|
||||||
test_sequence:
|
test_sequence:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue