How to update Puppetfile to v3 API URL?

I use a stroller with a puppet. My Puppetfile looks like this:

forge "http://forge.puppetlabs.com"
mod 'willdurand/nodejs'
# ...

I am using librarian-puppet v1.1.2 to download the necessary dependencies for Puppet. The recenlty tool began to display warnings at the time of provision:

Replacing Puppet Forge API URL to use v3 https://forgeapi.puppetlabs.com. 
You should update your Puppetfile

Replacing the first line of Puppetfile with forge "https://forgeapi.puppetlabs.com"does not solve the problem. How much should I upgrade my Puppetfile to get rid of these warnings?


After I updated the forge.rbscript, as @AndreiFecioru suggested:

if uri =~ %r{^http(s)?://forge\.puppetlabs\.com}
  puts "---------------> #{uri}"
  uri = "https://forgeapi.puppetlabs.com"
  warn { "Replacing Puppet Forge API URL to use v3 #{uri}. You should update your Puppetfile" }
end

The output is as follows:

$sudo librarian-puppet update
---------------> http://forge.puppetlabs.com
Replacing Puppet Forge API URL to use v3 https://forgeapi.puppetlabs.com. You should update your Puppetfile
...

I have no idea why the URL is different from mine Puppetfile. I tried uninstalling Puppetfile.lockand restarting librarian-puppet install- warnings are still displayed.

+4
2

? , "v3" ( " https://forgeapi.puppetlabs.com" ), ( ).

Google , ​​ 1.1.0 gem (. : https://github.com/rodjek/librarian-puppet/issues/210). 1.1.2 -, .

+2

, forge "http://forge.puppetlabs.com".

.

+1

Source: https://habr.com/ru/post/1546363/


All Articles