Skip to content

MAINT try docker for provisioning #565

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@ jobs:
needs: Spec
uses: puppetlabs/cat-github-actions/.github/workflows/module_acceptance.yml@main
with:
flags: --provision-service
flags: --docker
secrets: inherit
9 changes: 7 additions & 2 deletions .github/workflows/test-add-compiler-matrix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@ jobs:
matrix:
architecture: [standard, large, extra-large]
version: [2021.7.9, 2023.8.2, 2025.1.0]
image: [almalinux-cloud/almalinux-8]
image: ['litmusimage/ubuntu:24.04']
download_mode: [bolthost]
steps:
- name: Checkout Source
uses: actions/checkout@v4
Expand Down Expand Up @@ -65,10 +66,13 @@ jobs:
echo ::group::provision
bundle exec bolt plan run peadm_spec::provision_test_cluster \
--modulepath spec/fixtures/modules \
provider=provision_service \
provider=docker \
image=${{ matrix.image }} \
architecture=${{ matrix.architecture }}-with-extra-compiler
echo ::endgroup::
echo ::group::mv inventory.yaml to ./spec/fixtures/litmus_inventory.yaml
mv inventory.yaml spec/fixtures/litmus_inventory.yaml
echo ::endgroup::
echo ::group::info:request
cat request.json || true; echo
echo ::endgroup::
Expand All @@ -82,6 +86,7 @@ jobs:
--inventoryfile spec/fixtures/litmus_inventory.yaml \
--modulepath spec/fixtures/modules \
architecture=${{ matrix.architecture }} \
download_mode=${{ matrix.download_mode }} \
console_password=${{ secrets.CONSOLE_PASSWORD }} \
version=${{ matrix.version }}
- name: Run add_compilers plan
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/test-add-compiler.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ on:
workflow_dispatch:
inputs:
image:
description: GCP image for test cluster
description: Docker image for test cluster
required: true
default: almalinux-cloud/almalinux-8
default: litmusimage/ubuntu:24.04
architecture:
description: PE architecture to test
required: true
Expand Down Expand Up @@ -66,7 +66,7 @@ jobs:
echo ::group::provision
bundle exec bolt plan run peadm_spec::provision_test_cluster \
--modulepath spec/fixtures/modules \
provider=provision_service \
provider=docker \
image=${{ matrix.image }} \
architecture=${{ matrix.architecture }}-with-extra-compiler
echo ::endgroup::
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test-add-replica-matrix.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
matrix:
architecture: [standard, standard-with-dr, large, extra-large]
version: [2023.8.2, 2025.1.0]
image: [almalinux-cloud/almalinux-8]
image: [litmusimage/ubuntu:24.04]
steps:
- name: Checkout Source
uses: actions/checkout@v4
Expand Down Expand Up @@ -65,7 +65,7 @@ jobs:
echo ::group::provision
bundle exec bolt plan run peadm_spec::provision_test_cluster \
--modulepath spec/fixtures/modules \
provider=provision_service \
provider=docker \
image=${{ matrix.image }} \
architecture=${{ matrix.architecture }}-and-spare-replica
echo ::endgroup::
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/test-add-replica.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ on:
workflow_dispatch:
inputs:
image:
description: GCP image for test cluster
description: Docker image for test cluster
required: true
default: almalinux-cloud/almalinux-8
default: litmusimage/ubuntu:24.04
architecture:
description: PE architecture to test
required: true
Expand Down Expand Up @@ -66,7 +66,7 @@ jobs:
echo ::group::provision
bundle exec bolt plan run peadm_spec::provision_test_cluster \
--modulepath spec/fixtures/modules \
provider=provision_service \
provider=docker \
image=${{ matrix.image }} \
architecture=${{ matrix.architecture }}-and-spare-replica
echo ::endgroup::
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/test-backup-restore-migration.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ on:
workflow_dispatch:
inputs:
image:
description: GCP image for test cluster
description: Docker image for test cluster
required: true
default: almalinux-cloud/almalinux-8
default: litmusimage/ubuntu:24.04
architecture:
description: PE architecture to test
required: true
Expand Down Expand Up @@ -61,7 +61,7 @@ jobs:
echo ::group::provision
bundle exec bolt plan run peadm_spec::provision_test_cluster \
--modulepath spec/fixtures/modules \
provider=provision_service \
provider=docker \
image=${{ inputs.image }} \
architecture=${{ inputs.architecture }}
echo ::endgroup::
Expand Down Expand Up @@ -170,7 +170,7 @@ jobs:
echo ::group::provision
bundle exec bolt plan run peadm_spec::provision_test_cluster \
--modulepath spec/fixtures/modules \
provider=provision_service \
provider=docker \
image=${{ inputs.image }} \
architecture=${{ inputs.architecture }}
echo ::endgroup::
Expand Down
32 changes: 26 additions & 6 deletions .github/workflows/test-backup-restore.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,33 @@
name: Backup and restore test
on:
pull_request:
types: [ready_for_review]
paths:
- .github/workflows/**/*
- spec/**/*
- lib/**/*
- tasks/**/*
- functions/**/*
- types/**/*
- plans/**/*
- hiera/**/*
- manifests/**/*
- templates/**/*
- files/**/*
- metadata.json
- Rakefile
- Gemfile
- provision.yaml
- .rspec
- .rubocop.yml
- .puppet-lint.rc
- .fixtures.yml
branches: [main]
workflow_dispatch:
inputs:
image:
description: GCP image for test cluster
description: Docker image for test cluster
required: true
default: almalinux-cloud/almalinux-8
default: litmusimage/ubuntu:24.04
architecture:
description: PE architecture to test
required: true
Expand All @@ -32,7 +52,7 @@ on:
jobs:
backup-restore-test:
name: "Backup, break and restore cluster: PE ${{ github.event.inputs.version || '2025.1.0' }}\
\ ${{ github.event.inputs.architecture || 'extra-large' }} on ${{ github.event.inputs.image || 'almalinux-cloud/almalinux-8' }}"
\ ${{ github.event.inputs.architecture || 'extra-large' }} on ${{ github.event.inputs.image || 'litmusimage/ubuntu:24.04' }}"
runs-on: ubuntu-latest
env:
BOLT_GEM: true
Expand Down Expand Up @@ -71,8 +91,8 @@ jobs:
echo ::group::provision
bundle exec bolt plan run peadm_spec::provision_test_cluster \
--modulepath spec/fixtures/modules \
provider=provision_service \
image=${{ github.event.inputs.image || 'almalinux-cloud/almalinux-8' }} \
provider=docker \
image=${{ github.event.inputs.image || 'litmusimage/ubuntu:24.04' }} \
architecture=${{ github.event.inputs.architecture || 'extra-large' }}
echo ::endgroup::
echo ::group::info:request
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/test-failover.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ on:
workflow_dispatch:
inputs:
image:
description: GCP image for test cluster
description: Docker image for test cluster
required: true
default: almalinux-cloud/almalinux-8
default: litmusimage/ubuntu:24.04
version:
description: PE version to install
required: true
Expand Down Expand Up @@ -70,7 +70,7 @@ jobs:
echo ::group::provision
bundle exec bolt plan run peadm_spec::provision_test_cluster \
--modulepath spec/fixtures/modules \
provider=provision_service \
provider=docker \
image=${{ matrix.image }} \
architecture=${{ matrix.architecture }}-and-spare-replica
echo ::endgroup::
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/test-install-latest-dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ on:
workflow_dispatch:
inputs:
image:
description: GCP image for test cluster
description: Docker image for test cluster
required: true
default: almalinux-cloud/almalinux-8
default: litmusimage/ubuntu:24.04
architecture:
type: choice
required: true
Expand Down Expand Up @@ -69,7 +69,7 @@ jobs:
echo ::group::provision
bundle exec bolt plan run peadm_spec::provision_test_cluster \
--modulepath spec/fixtures/modules \
provider=provision_service \
provider=docker \
image=${{ matrix.image }} \
architecture=${{ matrix.architecture }}
echo ::endgroup::
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
fail-fast: false
matrix:
architecture: [extra-large-with-dr]
image: [almalinux-cloud/almalinux-8]
image: [litmusimage/ubuntu:24.04]
steps:
- name: Start SSH session
if: ${{ github.event.inputs.ssh-debugging == 'true' }}
Expand Down Expand Up @@ -55,7 +55,7 @@ jobs:
echo ::group::provision
bundle exec bolt plan run peadm_spec::provision_test_cluster \
--modulepath spec/fixtures/modules \
provider=provision_service \
provider=docker \
image=${{ matrix.image }} \
architecture=${{ matrix.architecture }}
echo ::endgroup::
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test-install-matrix.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
matrix:
architecture: [standard-with-dr, large, extra-large-with-dr]
version: [2019.8.12, 2021.7.9, 2023.8.2, 2025.1.0]
image: [almalinux-cloud/almalinux-8]
image: [litmusimage/ubuntu:24.04]
steps:
- name: Checkout Source
uses: actions/checkout@v4
Expand Down Expand Up @@ -65,7 +65,7 @@ jobs:
echo ::group::provision
bundle exec bolt plan run peadm_spec::provision_test_cluster \
--modulepath spec/fixtures/modules \
provider=provision_service \
provider=docker \
image=${{ matrix.image }} \
architecture=${{ matrix.architecture }} \
--log-level trace
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/test-install.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ on:
workflow_dispatch:
inputs:
image:
description: GCP image for test cluster
description: Docker image for test cluster
required: true
default: almalinux-cloud/almalinux-8
default: litmusimage/ubuntu:24.04
architecture:
description: PE architecture to test
required: true
Expand Down Expand Up @@ -66,7 +66,7 @@ jobs:
echo ::group::provision
bundle exec bolt plan run peadm_spec::provision_test_cluster \
--modulepath spec/fixtures/modules \
provider=provision_service \
provider=docker \
image=${{ matrix.image }} \
architecture=${{ matrix.architecture }}
echo ::endgroup::
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/test-migration.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,11 @@ jobs:
# - large-with-dr
# - extra-large-with-dr
version: [2021.7.9, 2023.8.2, 2025.1.0]
image: [almalinux-cloud/almalinux-8]
image: [litmusimage/ubuntu:24.04]
include:
- architecture: standard
version: 2023.8.0
image: almalinux-cloud/almalinux-8
image: litmusimage/ubuntu:22.04
new_pe_version: 2025.0.0
steps:
- name: Checkout Source
Expand Down Expand Up @@ -79,7 +79,7 @@ jobs:
echo ::group::provision
bundle exec bolt plan run peadm_spec::provision_test_cluster \
--modulepath spec/fixtures/modules \
provider=provision_service \
provider=docker \
image=${{ matrix.image }} \
architecture=${{ matrix.architecture }}-migration \
--log-level trace
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test-replace-failed-postgresql.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:
architecture: [extra-large-with-dr-and-spare-replica]
install_architecture: [extra-large-with-dr]
version: [2021.7.9, 2023.8.2, 2025.1.0]
image: [almalinux-cloud/almalinux-8]
image: [litmusimage/ubuntu:24.04]
steps:
- name: Checkout Source
uses: actions/checkout@v4
Expand Down Expand Up @@ -68,7 +68,7 @@ jobs:
echo ::group::provision
bundle exec bolt plan run peadm_spec::provision_test_cluster \
--modulepath spec/fixtures/modules \
provider=provision_service \
provider=docker \
image=${{ matrix.image }} \
architecture=${{ matrix.architecture }} \
--log-level trace
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/test-upgrade-latest-dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ on:
workflow_dispatch:
inputs:
image:
description: GCP image for test cluster
description: Docker image for test cluster
required: true
default: almalinux-cloud/almalinux-8
default: litmusimage/ubuntu:24.04
architecture:
type: choice
required: true
Expand Down Expand Up @@ -76,7 +76,7 @@ jobs:
echo ::group::provision
bundle exec bolt plan run peadm_spec::provision_test_cluster \
--modulepath spec/fixtures/modules \
provider=provision_service \
provider=docker \
image=${{ matrix.image }} \
architecture=${{ matrix.architecture }}
echo ::endgroup::
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
matrix:
architecture: [extra-large-with-dr]
version: [2023.8.2]
image: [almalinux-cloud/almalinux-8]
image: [litmusimage/ubuntu:24.04]
steps:
- name: Checkout Source
uses: actions/checkout@v4
Expand Down Expand Up @@ -45,7 +45,7 @@ jobs:
echo ::group::provision
bundle exec bolt plan run peadm_spec::provision_test_cluster \
--modulepath spec/fixtures/modules \
provider=provision_service \
provider=docker \
image=${{ matrix.image }} \
architecture=${{ matrix.architecture }}
echo ::endgroup::
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test-upgrade-matrix.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:
architecture: [standard, extra-large-with-dr]
version: [2019.8.12, 2021.7.9, 2023.8.2]
version_to_upgrade: [2021.7.9, 2023.8.2, 2025.1.0]
image: [almalinux-cloud/almalinux-8]
image: [litmusimage/ubuntu:24.04]
download_mode: [direct]
exclude:
- version: 2019.8.12
Expand Down Expand Up @@ -91,7 +91,7 @@ jobs:
echo ::group::provision
bundle exec bolt plan run peadm_spec::provision_test_cluster \
--modulepath spec/fixtures/modules \
provider=provision_service \
provider=docker \
image=${{ matrix.image }} \
architecture=${{ matrix.architecture }}
echo ::endgroup::
Expand Down
Loading