-
Notifications
You must be signed in to change notification settings - Fork 145
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
71624df
commit e4e4747
Showing
8 changed files
with
151 additions
and
126 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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
--- | ||
controller_instances: | ||
- hostname: my-instance.prod.example.com | ||
capacity_adjustment: 0.4 | ||
# controller_instances: | ||
# - hostname: my-instance.prod.example.com | ||
# capacity_adjustment: 0.4 | ||
... |
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
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,27 @@ | ||
--- | ||
name: Test collection with AWX matrix | ||
on: | ||
push: | ||
branches: | ||
- '*_' | ||
- devel | ||
tags: | ||
- '*_' # ending underscore for trying things | ||
- 'v[0-9]+.[0-9]+.[0-9]+' # final version | ||
- 'v[0-9]+.[0-9]+.[0-9]+[abrc]+[0-9]+' # alpha, beta, release candidate (rc) | ||
- 'v[0-9]+.[0-9]+.[0-9]+.dev[0-9]+' # development versions | ||
pull_request: | ||
|
||
jobs: | ||
ci_standalone: | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
awx_version: | ||
- 21.11.0 | ||
- 21.12.0 | ||
- 21.13.0 | ||
# - devel Disabled for now | ||
uses: "./.github/workflows/ci_standalone_versioned.yml" | ||
with: | ||
awx_version: ${{ matrix.awx_version }} |
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,77 @@ | ||
--- | ||
name: Test collection with AWX | ||
|
||
on: | ||
workflow_call: | ||
inputs: | ||
awx_version: | ||
description: The version to pull of awx | ||
required: true | ||
type: string | ||
env: | ||
# Run docker-compose up in the background | ||
COMPOSE_UP_OPTS: -d | ||
|
||
jobs: | ||
integration: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: "Checkout galaxy_ng" | ||
uses: actions/checkout@v2 | ||
with: | ||
repository: ansible/awx | ||
path: awx | ||
ref: ${{ inputs.awx_version }} | ||
|
||
- uses: actions/setup-python@v2 | ||
with: | ||
python-version: "3.8" | ||
|
||
- name: Update apt | ||
run: sudo apt -y update | ||
|
||
- name: Install requirements | ||
run: sudo apt-get install -y libsasl2-dev python3-dev libldap2-dev libssl-dev build-essential | ||
|
||
- name: Install docker-compose | ||
run: pip3 install --upgrade docker-compose | ||
|
||
- name: collect system info | ||
run: whoami; id; pwd; ls -al; uname -a ; df -h .; mount ; cat /etc/issue; docker --version ; ps aux | fgrep -i docker; ls -al /var/run/containerd/containerd.sock | ||
|
||
- name: set the awx password in the inventory | ||
run: echo "admin_password='password'" >> awx/tools/docker-compose/inventory | ||
|
||
- name: build images | ||
working-directory: awx | ||
run: make docker-compose-build | ||
|
||
- name: build stack | ||
working-directory: awx | ||
run: make docker-compose up | ||
continue-on-error: true | ||
|
||
- name: give some time to spin up | ||
run: sleep 200 | ||
|
||
- name: Preload data | ||
working-directory: awx | ||
run: docker exec tools_awx_1 awx-manage create_preload_data | ||
|
||
- name: set the awx password in the inventory | ||
run: ls awx/tools/docker-compose/_sources/secrets | ||
|
||
- name: Display Versions | ||
run: which python && pip --version && ansible --version | ||
|
||
- name: "Install Galaxy dependencies" | ||
run: ansible-galaxy collection install -r .github/collections/requirements.yml | ||
|
||
- name: "Perform playbook tests" | ||
run: ansible-playbook .github/tests/configure_controller.yml -e controller_hostname=localhost:8043 -v | ||
|
||
- name: "Perform export model playbook tests" | ||
run: ansible-playbook .github/tests/configure_controller_export_model.yml -e controller_hostname=localhost:8043 -v | ||
... |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.