Skip to content

Commit

Permalink
(PE-38653) Moving workflows install password to secrets (#481)
Browse files Browse the repository at this point in the history
Co-authored-by: Neil Anderson <neil.anderson@perforce.com>
  • Loading branch information
ragingra and ragingra authored Aug 28, 2024
1 parent 4a27e2d commit ab9db39
Show file tree
Hide file tree
Showing 16 changed files with 35 additions and 17 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/test-add-compiler.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,8 @@ jobs:
--inventoryfile spec/fixtures/litmus_inventory.yaml \
--modulepath spec/fixtures/modules \
architecture=${{ matrix.architecture }} \
version=${{ matrix.version }}
version=${{ matrix.version }} \
console_password=${{ secrets.CONSOLE_PASSWORD }}
- name: 'Run add_compiler plan'
timeout-minutes: 30
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/test-add-replica.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,8 @@ jobs:
--inventoryfile spec/fixtures/litmus_inventory.yaml \
--modulepath spec/fixtures/modules \
architecture=${{ matrix.architecture }} \
version=${{ matrix.version }}
version=${{ matrix.version }} \
console_password=${{ secrets.CONSOLE_PASSWORD }}
- name: 'Run add_replica plan'
timeout-minutes: 30
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/test-backup-restore-migration.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,8 @@ jobs:
--inventoryfile spec/fixtures/litmus_inventory.yaml \
--modulepath spec/fixtures/modules \
architecture=${{ inputs.architecture }} \
version=${{ inputs.version }}
version=${{ inputs.version }} \
console_password=${{ secrets.CONSOLE_PASSWORD }}
- name: "Start SSH session"
if: github.event.inputs.ssh-debugging == 'true'
Expand Down Expand Up @@ -216,7 +217,8 @@ jobs:
--inventoryfile spec/fixtures/litmus_inventory.yaml \
--modulepath spec/fixtures/modules \
architecture=${{ inputs.architecture }} \
version=${{ inputs.version }}
version=${{ inputs.version }} \
console_password=${{ secrets.CONSOLE_PASSWORD }}
- name: Wait for backup to finish
uses: lewagon/wait-on-check-action@v1.3.4
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/test-backup-restore.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ jobs:
--modulepath spec/fixtures/modules \
architecture=${{ github.event.inputs.architecture || 'extra-large' }} \
version=${{ github.event.inputs.version || '2023.5.0' }} \
console_password=${{ secrets.CONSOLE_PASSWORD }} \
--stream
- name: Perform peadm backup of cluster
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/test-failover.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,8 @@ jobs:
--inventoryfile spec/fixtures/litmus_inventory.yaml \
--modulepath spec/fixtures/modules \
architecture=${{ matrix.architecture }} \
version=${{ matrix.version }}
version=${{ matrix.version }} \
console_password=${{ secrets.CONSOLE_PASSWORD }}
- name: 'Perform failover'
run: |
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/test-fips-install-matrix.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,8 @@ jobs:
--modulepath spec/fixtures/modules \
architecture=${{ matrix.architecture }} \
version=${{ matrix.version }} \
fips=${{ matrix.fips }}
fips=${{ matrix.fips }} \
console_password=${{ secrets.CONSOLE_PASSWORD }}
- name: "Tear down test cluster"
if: ${{ always() }}
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/test-install-latest-dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,8 @@ jobs:
permit_unsafe_versions=true \
download_mode="bolthost" \
architecture=${{ matrix.architecture }} \
pe_installer_source="https://artifactory.delivery.puppetlabs.net/artifactory/generic_enterprise__local/main/ci-ready/puppet-enterprise-${{ steps.latest.outputs.ver }}-el-8-x86_64.tar"
pe_installer_source="https://artifactory.delivery.puppetlabs.net/artifactory/generic_enterprise__local/main/ci-ready/puppet-enterprise-${{ steps.latest.outputs.ver }}-el-8-x86_64.tar" \
console_password=${{ secrets.CONSOLE_PASSWORD }}
- name: "Wait as long as the file ${HOME}/pause file is present"
if: ${{ always() && github.event.inputs.ssh-debugging == 'true' }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,8 @@ jobs:
permit_unsafe_versions=true \
download_mode="bolthost" \
architecture=${{ matrix.architecture }} \
pe_installer_source="https://artifactory.delivery.puppetlabs.net/artifactory/generic_enterprise__local/main/ci-ready/puppet-enterprise-${{ steps.latest.outputs.ver }}-el-8-x86_64.tar"
pe_installer_source="https://artifactory.delivery.puppetlabs.net/artifactory/generic_enterprise__local/main/ci-ready/puppet-enterprise-${{ steps.latest.outputs.ver }}-el-8-x86_64.tar" \
console_password=${{ secrets.CONSOLE_PASSWORD }}
- name: "Wait as long as the file ${HOME}/pause file is present"
if: ${{ always() && github.event.inputs.ssh-debugging == 'true' }}
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/test-install-matrix.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,8 @@ jobs:
--inventoryfile spec/fixtures/litmus_inventory.yaml \
--modulepath spec/fixtures/modules \
architecture=${{ matrix.architecture }} \
version=${{ matrix.version }}
version=${{ matrix.version }} \
console_password=${{ secrets.CONSOLE_PASSWORD }}
- name: "Tear down test cluster"
if: ${{ always() }}
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/test-install-rhel-9.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,8 @@ jobs:
--inventoryfile spec/fixtures/litmus_inventory.yaml \
--modulepath spec/fixtures/modules \
architecture=${{ matrix.architecture }} \
version=${{ matrix.version }}
version=${{ matrix.version }} \
console_password=${{ secrets.CONSOLE_PASSWORD }}
- name: "Tear down test cluster"
if: ${{ always() }}
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/test-install.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,8 @@ jobs:
--inventoryfile spec/fixtures/litmus_inventory.yaml \
--modulepath spec/fixtures/modules \
architecture=${{ matrix.architecture }} \
version=${{ matrix.version }}
version=${{ matrix.version }} \
console_password=${{ secrets.CONSOLE_PASSWORD }}
- name: 'Wait as long as the file ${HOME}/pause file is present'
if: ${{ always() && github.event.inputs.ssh-debugging == 'true' }}
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/test-upgrade-latest-dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,8 @@ jobs:
--inventoryfile spec/fixtures/litmus_inventory.yaml \
--modulepath spec/fixtures/modules \
architecture=${{ matrix.architecture }} \
version=${{ matrix.version }}
version=${{ matrix.version }} \
console_password=${{ secrets.CONSOLE_PASSWORD }}
- name: "Wait as long as the file ${HOME}/pause file is present"
if: ${{ always() && github.event.inputs.ssh-debugging == 'true' }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,8 @@ jobs:
--inventoryfile spec/fixtures/litmus_inventory.yaml \
--modulepath spec/fixtures/modules \
architecture=${{ matrix.architecture }} \
version=${{ matrix.version }}
version=${{ matrix.version }} \
console_password=${{ secrets.CONSOLE_PASSWORD }}
- name: "Activate twingate to obtain unreleased build"
uses: twingate/github-action@main
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/test-upgrade-matrix.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,8 @@ jobs:
--inventoryfile spec/fixtures/litmus_inventory.yaml \
--modulepath spec/fixtures/modules \
architecture=${{ matrix.architecture }} \
version=${{ matrix.version }}
version=${{ matrix.version }} \
console_password=${{ secrets.CONSOLE_PASSWORD }}
- name: 'Wait as long as the file ${HOME}/pause file is present'
if: ${{ always() && github.event.inputs.ssh-debugging == 'true' }}
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/test-upgrade.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,8 @@ jobs:
--inventoryfile spec/fixtures/litmus_inventory.yaml \
--modulepath spec/fixtures/modules \
architecture=${{ matrix.architecture }} \
version=${{ matrix.version }}
version=${{ matrix.version }} \
console_password=${{ secrets.CONSOLE_PASSWORD }}
- name: 'Wait as long as the file ${HOME}/pause file is present'
if: ${{ always() && github.event.inputs.ssh-debugging == 'true' }}
Expand Down
6 changes: 4 additions & 2 deletions spec/acceptance/peadm_spec/plans/install_test_cluster.pp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@
Optional[String[1]] $version = undef,
Optional[String[1]] $pe_installer_source = undef,
Boolean $permit_unsafe_versions = false,
Enum['enable', 'disable'] $fips = 'disable'
Enum['enable', 'disable'] $fips = 'disable',
String[1] $console_password

) {
$t = get_targets('*')
wait_until_available($t)
Expand All @@ -25,7 +27,7 @@
}

$common_params = {
console_password => 'puppetLabs123!',
console_password => $console_password,
download_mode => $download_mode,
code_manager_auto_configure => $code_manager_auto_configure,
version => $version,
Expand Down

0 comments on commit ab9db39

Please sign in to comment.