Skip to content

Commit d1765a6

Browse files
Merge pull request #610 from puppetlabs/MAINT-Fix_failing_GCP_installations
(MAINT) Address failing installations
2 parents 68c17a8 + 8cf0ee1 commit d1765a6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/puppet_litmus/rake_helper.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,9 +130,10 @@ def tear_down(node_name, inventory_hash)
130130
def install_agent(collection, targets, inventory_hash)
131131
include ::BoltSpec::Run
132132
puppet_version = ENV.fetch('PUPPET_VERSION', nil)
133+
# Skip forge token assignation when pointing to private collection endpoints as it is only accesible via VPN and it fails when credentials are passed.
133134
forge_token = ENV.fetch('PUPPET_FORGE_TOKEN', nil)
134135
params = {}
135-
params['password'] = forge_token if forge_token
136+
params['password'] = forge_token if forge_token && !collection.include?('puppetcore8-nightly')
136137
params['collection'] = collection if collection
137138
params['version'] = puppet_version if puppet_version
138139

0 commit comments

Comments
 (0)