Skip to content

Commit a40d2c5

Browse files
committed
(maint) incorporate review comments
1 parent e57034d commit a40d2c5

File tree

6 files changed

+8
-7
lines changed

6 files changed

+8
-7
lines changed

.fixtures.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ fixtures:
1414
facts: 'git://github.com/puppetlabs/puppetlabs-facts.git'
1515
puppet_agent: 'git://github.com/puppetlabs/puppetlabs-puppet_agent.git'
1616
provision: 'git://github.com/puppetlabs/provision.git'
17-
rook: 'git://github.com/puppetlabs/puppetlabs-rook.git'
1817
yumrepo_core:
1918
repo: https://github.com/puppetlabs/puppetlabs-yumrepo_core.git
2019
puppet_version: ">= 6.0.0"

.github/workflows/integration_test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,15 +116,15 @@ jobs:
116116
echo STEP_START=$(date +%s) >> $GITHUB_ENV
117117
- name: Provision test environment
118118
run: |
119-
buildevents cmd $TRACE_ID $STEP_ID 'rake litmus:provision' -- bundle exec bolt --modulepath spec/fixtures/modules plan run kubernetes::provision_gcp gcp_image=${{ matrix.platform }}
119+
buildevents cmd $TRACE_ID $STEP_ID 'rake litmus:provision' -- bundle exec bolt --modulepath spec/fixtures/modules plan run kubernetes::provision_cluster gcp_image=${{ matrix.platform }}
120120
echo ::group::=== REQUEST ===
121121
cat request.json || true
122122
echo
123123
echo ::endgroup::
124124
echo ::group::=== INVENTORY ===
125125
sed -e 's/password: .*/password: "[redacted]"/' < inventory.yaml || true
126126
echo ::endgroup::
127-
- name: Install module
127+
- name: Puppet server setup
128128
run: |
129129
buildevents cmd $TRACE_ID $STEP_ID 'rake kubernetes::puppetserver_setup' -- bundle exec bolt --modulepath spec/fixtures/modules plan run kubernetes::puppetserver_setup -i ./inventory.yaml
130130
- name: Install agent

.github/workflows/nightly.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ jobs:
118118
echo STEP_START=$(date +%s) >> $GITHUB_ENV
119119
- name: Provision test environment
120120
run: |
121-
buildevents cmd $TRACE_ID $STEP_ID 'rake litmus:provision' -- bundle exec bolt --modulepath spec/fixtures/modules plan run kubernetes::provision_gcp gcp_image=${{ matrix.platform }}
121+
buildevents cmd $TRACE_ID $STEP_ID 'rake litmus:provision' -- bundle exec bolt --modulepath spec/fixtures/modules plan run kubernetes::provision_cluster gcp_image=${{ matrix.platform }}
122122
echo ::group::=== REQUEST ===
123123
cat request.json || true
124124
echo

plans/provision_gcp.pp renamed to plans/provision_cluster.pp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
#
55
# @example
66
# kubernetes::provision_integration
7-
plan kubernetes::provision_gcp(
7+
plan kubernetes::provision_cluster(
88
Optional[String] $gcp_image = 'centos-7',
99
) {
1010
#provision server machine, set role

spec/acceptance/kubernetes_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,8 @@ class {'kubernetes':
5858
end
5959

6060
it 'can access the deployed service' do
61-
sleep(180)
62-
run_shell('curl -s 10.96.188.5', expect_failures: true) do |r|
61+
run_shell('sleep 60')
62+
run_shell('curl --retry 10 --retry-delay 15 -s 10.96.188.5') do |r|
6363
expect(r.stdout).to match (/Welcome to nginx!/)
6464
end
6565
end

spec/spec_helper_acceptance_local.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ def configure_puppet_server(controller, worker1, worker2)
7070
execute_agent('controller')
7171
# Configure the puppet agents
7272
configure_puppet_agent('worker1')
73+
puppet_cert_sign
7374
configure_puppet_agent('worker2')
7475
puppet_cert_sign
7576
# Create site.pp
@@ -309,5 +310,6 @@ def execute_agent(role)
309310
execute_agent('controller')
310311
execute_agent('worker1')
311312
execute_agent('worker2')
313+
puppet_cert_sign
312314
end
313315
end

0 commit comments

Comments
 (0)