https://www.puppet.com/community logo
Join Slack
Powered by
# puppet
  • z

    zipkid

    10/06/2022, 9:05 AM
    You can override that warning in your puppet.conf
  • k

    KevinR

    10/06/2022, 11:43 AM
    When stdlib is installed, do all puppet runs always contain the default stages as described here? Asking in light of this request.
  • k

    KevinR

    10/06/2022, 11:43 AM
    When stdlib is installed, do all puppet runs always contain the default stages as described here? Asking in light of this request.
  • k

    KevinR

    10/06/2022, 11:43 AM
    Or does one need to have
    stdlib::stages
    declared in their puppet code for these stages to exist?
  • k

    KevinR

    10/06/2022, 11:44 AM
    Alternative question: is there any way to determine, in code, the last stage of a Puppet run?
  • s

    Slackbot

    10/06/2022, 12:33 PM
    This message was deleted.
    k
    d
    • 3
    • 2
  • d

    David Sandilands

    10/06/2022, 12:33 PM
    @KevinR only nodes that were classified to include stdlib or stldib::stages would get the stages in their run and they would all exist in that set order. So I guess you could do a defined function check defined(Class['stdlib'],Class['stlib::stages']) although defined can be a bit ropey on evaluation ordering
  • k

    KevinR

    10/06/2022, 12:46 PM
    So the Puppet code will require
    include stdlib
    or
    include stdlib::stages
    somewhere for the stages to exist, right? Having stdlib in the Puppetfile is not enough to create the stages?
  • s

    Slackbot

    10/06/2022, 1:05 PM
    This message was deleted.
    j
    r
    +4
    • 7
    • 14
  • s

    sameer

    10/06/2022, 2:59 PM
    message has been deleted
  • s

    Slackbot

    10/06/2022, 6:11 PM
    This message was deleted.
    b
    s
    c
    • 4
    • 8
  • a

    Andrew

    10/06/2022, 6:40 PM
    anyone have any guidance on configuring environment variables that will be available during a puppet run?
  • j

    jms1

    10/06/2022, 7:03 PM
    available to the server when it's compling the catalog? or available to the agent itself when it's applying the catalog? what is it you're trying to do that you need an environment variable to be set?
  • s

    Slackbot

    10/06/2022, 7:05 PM
    This message was deleted.
    c
    j
    a
    • 4
    • 6
  • e

    Elliott

    10/06/2022, 7:09 PM
    there used to be something called trapperkeeper that would reload the puppetserver if a CRL changed... did this get deprecated?
  • m

    Martin Merfort

    10/06/2022, 7:11 PM
    Copy code
    [root@i-009321b1d566fec1a production]# /opt/puppetlabs/puppet/bin/r10k deploy environment stage -mv debug2
    [2022-10-06 19:10:12 - DEBUG2] Reading configuration from "/etc/puppetlabs/r10k/r10k.yaml"
    [2022-10-06 19:10:12 - DEBUG1] Testing to see if feature pe_license is available.
    [2022-10-06 19:10:12 - DEBUG2] Attempting to load library 'pe_license' for feature pe_license
    [2022-10-06 19:10:12 - DEBUG2] Error while loading library pe_license for feature pe_license: cannot load such file -- pe_license
    [2022-10-06 19:10:12 - DEBUG1] Feature pe_license is not available.
    [2022-10-06 19:10:12 - DEBUG2] pe_license feature is not available, PE only Puppet modules will not be downloadable.
    [2022-10-06 19:10:12 - ERROR] no implicit conversion of nil into String
    What could cause this r10k error?
  • b

    bastelfreak

    10/06/2022, 7:12 PM
    A broken Puppetfile
  • b

    bastelfreak

    10/06/2022, 7:14 PM
    @Martin Merfort you can do a
    r10k puppetfile check /path/to/Puppetfile
  • b

    bastelfreak

    10/06/2022, 7:14 PM
    and which r10k version are you using
  • b

    bastelfreak

    10/06/2022, 7:15 PM
    and which r10k version are you using
  • m

    Martin Merfort

    10/06/2022, 7:15 PM
    Says
    Syntax OK
  • b

    binford2k

    10/06/2022, 7:15 PM
    and if that breaks, just do a ruby syntax check with
    ruby -c Puppetfile
  • m

    Martin Merfort

    10/06/2022, 7:15 PM
    r10k 3.15.2
  • b

    bastelfreak

    10/06/2022, 7:16 PM
    was there a recent change to the Puppetfile? does it work when you remove some of the modules from the file?
  • b

    bastelfreak

    10/06/2022, 7:17 PM
    and can you run the deploy with
    --trace
    ?
  • m

    Martin Merfort

    10/06/2022, 7:17 PM
    Same error even with an empty Puppetfile
  • b

    bastelfreak

    10/06/2022, 7:17 PM
    lol
  • m

    Martin Merfort

    10/06/2022, 7:18 PM
    Copy code
    [root@i-009321b1d566fec1a production]# /opt/puppetlabs/puppet/bin/r10k deploy environment production -mv --trace
    ERROR    -> no implicit conversion of nil into String
    /opt/puppetlabs/puppet/lib/ruby/gems/2.7.0/gems/r10k-3.15.2/lib/r10k/source/base.rb:44:in `initialize'
    /opt/puppetlabs/puppet/lib/ruby/gems/2.7.0/gems/r10k-3.15.2/lib/r10k/source/base.rb:44:in `new'
    /opt/puppetlabs/puppet/lib/ruby/gems/2.7.0/gems/r10k-3.15.2/lib/r10k/source/base.rb:44:in `initialize'
    /opt/puppetlabs/puppet/lib/ruby/gems/2.7.0/gems/r10k-3.15.2/lib/r10k/source/git.rb:59:in `initialize'
    /opt/puppetlabs/puppet/lib/ruby/gems/2.7.0/gems/r10k-3.15.2/lib/r10k/keyed_factory.rb:30:in `new'
    /opt/puppetlabs/puppet/lib/ruby/gems/2.7.0/gems/r10k-3.15.2/lib/r10k/keyed_factory.rb:30:in `generate'
    /opt/puppetlabs/puppet/lib/ruby/gems/2.7.0/gems/r10k-3.15.2/lib/r10k/source.rb:20:in `generate'
    /opt/puppetlabs/puppet/lib/ruby/gems/2.7.0/gems/r10k-3.15.2/lib/r10k/source.rb:31:in `from_hash'
    /opt/puppetlabs/puppet/lib/ruby/gems/2.7.0/gems/r10k-3.15.2/lib/r10k/deployment.rb:121:in `block in load_sources'
    /opt/puppetlabs/puppet/lib/ruby/gems/2.7.0/gems/r10k-3.15.2/lib/r10k/deployment.rb:120:in `each'
    /opt/puppetlabs/puppet/lib/ruby/gems/2.7.0/gems/r10k-3.15.2/lib/r10k/deployment.rb:120:in `map'
    /opt/puppetlabs/puppet/lib/ruby/gems/2.7.0/gems/r10k-3.15.2/lib/r10k/deployment.rb:120:in `load_sources'
    /opt/puppetlabs/puppet/lib/ruby/gems/2.7.0/gems/r10k-3.15.2/lib/r10k/deployment.rb:48:in `sources'
    /opt/puppetlabs/puppet/lib/ruby/gems/2.7.0/gems/r10k-3.15.2/lib/r10k/deployment.rb:36:in `preload!'
    /opt/puppetlabs/puppet/lib/ruby/gems/2.7.0/gems/r10k-3.15.2/lib/r10k/action/deploy/environment.rb:109:in `visit_deployment'
    /opt/puppetlabs/puppet/lib/ruby/gems/2.7.0/gems/r10k-3.15.2/lib/r10k/action/visitor.rb:27:in `visit'
    /opt/puppetlabs/puppet/lib/ruby/gems/2.7.0/gems/r10k-3.15.2/lib/r10k/deployment.rb:106:in `accept'
    /opt/puppetlabs/puppet/lib/ruby/gems/2.7.0/gems/r10k-3.15.2/lib/r10k/action/deploy/environment.rb:75:in `call'
    /opt/puppetlabs/puppet/lib/ruby/gems/2.7.0/gems/r10k-3.15.2/lib/r10k/action/runner.rb:33:in `call'
    /opt/puppetlabs/puppet/lib/ruby/gems/2.7.0/gems/r10k-3.15.2/lib/r10k/action/cri_runner.rb:67:in `call'
    /opt/puppetlabs/puppet/lib/ruby/gems/2.7.0/gems/cri-2.15.11/lib/cri/command_dsl.rb:294:in `block in runner'
    /opt/puppetlabs/puppet/lib/ruby/gems/2.7.0/gems/cri-2.15.11/lib/cri/command.rb:362:in `run_this'
    /opt/puppetlabs/puppet/lib/ruby/gems/2.7.0/gems/cri-2.15.11/lib/cri/command.rb:298:in `run'
    /opt/puppetlabs/puppet/lib/ruby/gems/2.7.0/gems/cri-2.15.11/lib/cri/command.rb:316:in `run'
    /opt/puppetlabs/puppet/lib/ruby/gems/2.7.0/gems/cri-2.15.11/lib/cri/command.rb:316:in `run'
    /opt/puppetlabs/puppet/lib/ruby/gems/2.7.0/gems/r10k-3.15.2/bin/r10k:7:in `<top (required)>'
    /opt/puppetlabs/puppet/bin/r10k:23:in `load'
    /opt/puppetlabs/puppet/bin/r10k:23:in `<main>'
  • b

    bastelfreak

    10/06/2022, 7:19 PM
    https://github.com/puppetlabs/r10k/blob/3.15.2/lib/r10k/source/base.rb#L44
  • b

    bastelfreak

    10/06/2022, 7:19 PM
    https://github.com/puppetlabs/r10k/blob/3.15.2/lib/r10k/source/base.rb#L44
1...186187188...428Latest