This repository has been archived by the owner on Jan 30, 2024. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ansible-pulp CI should test the calling roles from dynamic
"include_role" with the source dirs of the branch Implementation includes: 1. new source-dynamic scenario, using vars from example-source 2. "dynamic" now uses same vars as in example-use (which facilitates documentation for users.) fixes: #6071 https://pulp.plan.io/issues/6071
- Loading branch information
1 parent
cd78e2f
commit 7e65186
Showing
14 changed files
with
103 additions
and
59 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 |
---|---|---|
@@ -0,0 +1 @@ | ||
../../example-use/group_vars |
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
../../.ansible-lint |
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
../scenario_resources/Dockerfile.j2 |
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
../scenario_resources/debian-redis-server.service |
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
../../example-source/group_vars |
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 |
---|---|---|
@@ -0,0 +1,57 @@ | ||
--- | ||
dependency: | ||
name: galaxy | ||
role-file: requirements.yml | ||
driver: | ||
name: docker | ||
lint: | ||
name: yamllint | ||
# This is ignored by molecule, but can be reused in yaml | ||
.platform_base: &platform_base | ||
privileged: False | ||
volumes: | ||
- /sys/fs/cgroup:/sys/fs/cgroup:ro | ||
tmpfs: | ||
- /tmp | ||
- /run | ||
- /run/lock | ||
capabilities: | ||
- NET_ADMIN | ||
- NET_RAW | ||
platforms: | ||
- <<: *platform_base | ||
name: debian-10 | ||
image: debian:buster | ||
command: /sbin/init | ||
- <<: *platform_base | ||
name: fedora-31 | ||
image: fedora:31 | ||
command: /usr/sbin/init | ||
provisioner: | ||
name: ansible | ||
inventory: | ||
links: | ||
host_vars: ../scenario_resources/host_vars/ | ||
group_vars: ../scenario_resources/group_vars/ | ||
lint: | ||
name: ansible-lint | ||
scenario: | ||
name: source-dynamic | ||
test_sequence: | ||
- lint | ||
- dependency | ||
- syntax | ||
- create | ||
- prepare | ||
- converge | ||
- idempotence | ||
- side_effect | ||
- verify | ||
playbooks: | ||
prepare: prepare.yml | ||
|
||
verifier: | ||
name: inspec | ||
lint: | ||
name: rubocop | ||
enabled: false |
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 |
---|---|---|
@@ -0,0 +1,25 @@ | ||
--- | ||
- hosts: all | ||
pre_tasks: | ||
# The version string below is the highest of all those in roles' metadata: | ||
# "min_ansible_version". It needs to be kept manually up-to-date. | ||
- name: Verify Ansible meets min required version | ||
assert: | ||
that: "ansible_version.full is version_compare('2.8', '>=')" | ||
msg: > | ||
"You must update Ansible to at least 2.8 to use this version of Pulp 3 Installer." | ||
tasks: | ||
- name: Dynamically include prereq roles | ||
include_role: | ||
name: "{{ roleinputvar }}" | ||
loop: | ||
- pulp-database | ||
- pulp-workers | ||
- pulp-resource-manager | ||
- pulp-webserver | ||
- pulp-content | ||
- pulp-devel | ||
loop_control: | ||
loop_var: roleinputvar | ||
environment: | ||
DJANGO_SETTINGS_MODULE: pulpcore.app.settings |
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
../source/prepare.yml |
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
../../requirements.yml |
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
../../roles |
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
../source/prepare.yml |
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