Skip to content

Commit ab9db39

Browse files
authored
(PE-38653) Moving workflows install password to secrets (#481)
Co-authored-by: Neil Anderson <[email protected]>
1 parent 4a27e2d commit ab9db39

16 files changed

+35
-17
lines changed

.github/workflows/test-add-compiler.yaml

+2-1
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,8 @@ jobs:
9797
--inventoryfile spec/fixtures/litmus_inventory.yaml \
9898
--modulepath spec/fixtures/modules \
9999
architecture=${{ matrix.architecture }} \
100-
version=${{ matrix.version }}
100+
version=${{ matrix.version }} \
101+
console_password=${{ secrets.CONSOLE_PASSWORD }}
101102
102103
- name: 'Run add_compiler plan'
103104
timeout-minutes: 30

.github/workflows/test-add-replica.yaml

+2-1
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,8 @@ jobs:
9797
--inventoryfile spec/fixtures/litmus_inventory.yaml \
9898
--modulepath spec/fixtures/modules \
9999
architecture=${{ matrix.architecture }} \
100-
version=${{ matrix.version }}
100+
version=${{ matrix.version }} \
101+
console_password=${{ secrets.CONSOLE_PASSWORD }}
101102
102103
- name: 'Run add_replica plan'
103104
timeout-minutes: 30

.github/workflows/test-backup-restore-migration.yaml

+4-2
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,8 @@ jobs:
9494
--inventoryfile spec/fixtures/litmus_inventory.yaml \
9595
--modulepath spec/fixtures/modules \
9696
architecture=${{ inputs.architecture }} \
97-
version=${{ inputs.version }}
97+
version=${{ inputs.version }} \
98+
console_password=${{ secrets.CONSOLE_PASSWORD }}
9899
99100
- name: "Start SSH session"
100101
if: github.event.inputs.ssh-debugging == 'true'
@@ -216,7 +217,8 @@ jobs:
216217
--inventoryfile spec/fixtures/litmus_inventory.yaml \
217218
--modulepath spec/fixtures/modules \
218219
architecture=${{ inputs.architecture }} \
219-
version=${{ inputs.version }}
220+
version=${{ inputs.version }} \
221+
console_password=${{ secrets.CONSOLE_PASSWORD }}
220222
221223
- name: Wait for backup to finish
222224
uses: lewagon/[email protected]

.github/workflows/test-backup-restore.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@ jobs:
100100
--modulepath spec/fixtures/modules \
101101
architecture=${{ github.event.inputs.architecture || 'extra-large' }} \
102102
version=${{ github.event.inputs.version || '2023.5.0' }} \
103+
console_password=${{ secrets.CONSOLE_PASSWORD }} \
103104
--stream
104105
105106
- name: Perform peadm backup of cluster

.github/workflows/test-failover.yaml

+2-1
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,8 @@ jobs:
100100
--inventoryfile spec/fixtures/litmus_inventory.yaml \
101101
--modulepath spec/fixtures/modules \
102102
architecture=${{ matrix.architecture }} \
103-
version=${{ matrix.version }}
103+
version=${{ matrix.version }} \
104+
console_password=${{ secrets.CONSOLE_PASSWORD }}
104105
105106
- name: 'Perform failover'
106107
run: |

.github/workflows/test-fips-install-matrix.yaml

+2-1
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,8 @@ jobs:
102102
--modulepath spec/fixtures/modules \
103103
architecture=${{ matrix.architecture }} \
104104
version=${{ matrix.version }} \
105-
fips=${{ matrix.fips }}
105+
fips=${{ matrix.fips }} \
106+
console_password=${{ secrets.CONSOLE_PASSWORD }}
106107
107108
- name: "Tear down test cluster"
108109
if: ${{ always() }}

.github/workflows/test-install-latest-dev.yaml

+2-1
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,8 @@ jobs:
111111
permit_unsafe_versions=true \
112112
download_mode="bolthost" \
113113
architecture=${{ matrix.architecture }} \
114-
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"
114+
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" \
115+
console_password=${{ secrets.CONSOLE_PASSWORD }}
115116
116117
- name: "Wait as long as the file ${HOME}/pause file is present"
117118
if: ${{ always() && github.event.inputs.ssh-debugging == 'true' }}

.github/workflows/test-install-latest-xlarge-dev-nightly.yaml

+2-1
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,8 @@ jobs:
9797
permit_unsafe_versions=true \
9898
download_mode="bolthost" \
9999
architecture=${{ matrix.architecture }} \
100-
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"
100+
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" \
101+
console_password=${{ secrets.CONSOLE_PASSWORD }}
101102
102103
- name: "Wait as long as the file ${HOME}/pause file is present"
103104
if: ${{ always() && github.event.inputs.ssh-debugging == 'true' }}

.github/workflows/test-install-matrix.yaml

+2-1
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,8 @@ jobs:
9999
--inventoryfile spec/fixtures/litmus_inventory.yaml \
100100
--modulepath spec/fixtures/modules \
101101
architecture=${{ matrix.architecture }} \
102-
version=${{ matrix.version }}
102+
version=${{ matrix.version }} \
103+
console_password=${{ secrets.CONSOLE_PASSWORD }}
103104
104105
- name: "Tear down test cluster"
105106
if: ${{ always() }}

.github/workflows/test-install-rhel-9.yaml

+2-1
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,8 @@ jobs:
9898
--inventoryfile spec/fixtures/litmus_inventory.yaml \
9999
--modulepath spec/fixtures/modules \
100100
architecture=${{ matrix.architecture }} \
101-
version=${{ matrix.version }}
101+
version=${{ matrix.version }} \
102+
console_password=${{ secrets.CONSOLE_PASSWORD }}
102103
103104
- name: "Tear down test cluster"
104105
if: ${{ always() }}

.github/workflows/test-install.yaml

+2-1
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,8 @@ jobs:
9797
--inventoryfile spec/fixtures/litmus_inventory.yaml \
9898
--modulepath spec/fixtures/modules \
9999
architecture=${{ matrix.architecture }} \
100-
version=${{ matrix.version }}
100+
version=${{ matrix.version }} \
101+
console_password=${{ secrets.CONSOLE_PASSWORD }}
101102
102103
- name: 'Wait as long as the file ${HOME}/pause file is present'
103104
if: ${{ always() && github.event.inputs.ssh-debugging == 'true' }}

.github/workflows/test-upgrade-latest-dev.yaml

+2-1
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,8 @@ jobs:
106106
--inventoryfile spec/fixtures/litmus_inventory.yaml \
107107
--modulepath spec/fixtures/modules \
108108
architecture=${{ matrix.architecture }} \
109-
version=${{ matrix.version }}
109+
version=${{ matrix.version }} \
110+
console_password=${{ secrets.CONSOLE_PASSWORD }}
110111
111112
- name: "Wait as long as the file ${HOME}/pause file is present"
112113
if: ${{ always() && github.event.inputs.ssh-debugging == 'true' }}

.github/workflows/test-upgrade-latest-xlarge-dev-nightly.yaml

+2-1
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,8 @@ jobs:
7474
--inventoryfile spec/fixtures/litmus_inventory.yaml \
7575
--modulepath spec/fixtures/modules \
7676
architecture=${{ matrix.architecture }} \
77-
version=${{ matrix.version }}
77+
version=${{ matrix.version }} \
78+
console_password=${{ secrets.CONSOLE_PASSWORD }}
7879
7980
- name: "Activate twingate to obtain unreleased build"
8081
uses: twingate/github-action@main

.github/workflows/test-upgrade-matrix.yaml

+2-1
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,8 @@ jobs:
115115
--inventoryfile spec/fixtures/litmus_inventory.yaml \
116116
--modulepath spec/fixtures/modules \
117117
architecture=${{ matrix.architecture }} \
118-
version=${{ matrix.version }}
118+
version=${{ matrix.version }} \
119+
console_password=${{ secrets.CONSOLE_PASSWORD }}
119120
120121
- name: 'Wait as long as the file ${HOME}/pause file is present'
121122
if: ${{ always() && github.event.inputs.ssh-debugging == 'true' }}

.github/workflows/test-upgrade.yaml

+2-1
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,8 @@ jobs:
113113
--inventoryfile spec/fixtures/litmus_inventory.yaml \
114114
--modulepath spec/fixtures/modules \
115115
architecture=${{ matrix.architecture }} \
116-
version=${{ matrix.version }}
116+
version=${{ matrix.version }} \
117+
console_password=${{ secrets.CONSOLE_PASSWORD }}
117118
118119
- name: 'Wait as long as the file ${HOME}/pause file is present'
119120
if: ${{ always() && github.event.inputs.ssh-debugging == 'true' }}

spec/acceptance/peadm_spec/plans/install_test_cluster.pp

+4-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@
55
Optional[String[1]] $version = undef,
66
Optional[String[1]] $pe_installer_source = undef,
77
Boolean $permit_unsafe_versions = false,
8-
Enum['enable', 'disable'] $fips = 'disable'
8+
Enum['enable', 'disable'] $fips = 'disable',
9+
String[1] $console_password
10+
911
) {
1012
$t = get_targets('*')
1113
wait_until_available($t)
@@ -25,7 +27,7 @@
2527
}
2628

2729
$common_params = {
28-
console_password => 'puppetLabs123!',
30+
console_password => $console_password,
2931
download_mode => $download_mode,
3032
code_manager_auto_configure => $code_manager_auto_configure,
3133
version => $version,

0 commit comments

Comments
 (0)