vagrant - How to update Puppetfile to API URL v3? -


i use vagrant puppet. puppetfile looks this:

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

i use librarian-puppet v1.1.2 download necessary dependencies puppet. recenlty tool started display warnings during provision:

replacing puppet forge api url use v3 https://forgeapi.puppetlabs.com.  should update puppetfile 

replacing first puppetfile line forge "https://forgeapi.puppetlabs.com" not solve problem. how exacly supposed update puppetfile rid of these warnings?


after have updated forge.rb script, @andreifecioru suggested:

if uri =~ %r{^http(s)?://forge\.puppetlabs\.com}   puts "---------------> #{uri}"   uri = "https://forgeapi.puppetlabs.com"   warn { "replacing puppet forge api url use v3 #{uri}. should update puppetfile" } end 

the output follows:

$sudo librarian-puppet update ---------------> http://forge.puppetlabs.com replacing puppet forge api url use v3 https://forgeapi.puppetlabs.com. should update puppetfile ... 

i have no idea why url there different in puppetfile. tried remove puppetfile.lock , run librarian-puppet install again - warnings still displayed.

what version of librarian-puppet gem using? got same warning message, switched "v3" form (forge "https://forgeapi.puppetlabs.com") , worked fine (no more warning messages).

after quick google search noticed issue got fixed in version 1.1.0 of gem (see thread here: https://github.com/rodjek/librarian-puppet/issues/210). using version 1.1.2 of librarian-puppet gem , seems ok.


Comments

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

jsf - How to ajax update an item in the footer of a PrimeFaces dataTable? -

jquery - Keeping Kendo Datepicker in min/max range -