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

    sameer

    11/02/2022, 2:02 PM
    message has been deleted
  • s

    Slackbot

    11/02/2022, 5:01 PM
    This message was deleted.
    n
    s
    +2
    • 5
    • 6
  • d

    Dr Bunsen Honeydew

    11/02/2022, 5:01 PM
    See the
    puppet-r10k
    module at https://forge.puppet.com/puppet/r10k?src=slack&channel=puppet
  • s

    Suraj Bora

    11/02/2022, 5:04 PM
    Hi Team, when I am trying to upgrade puppet-r10k module from v8.3.0 to v10.x , I am getting below error
    Copy code
    Error: Could not upgrade module 'puppet-r10k' (v8.3.0 -> v10.x)
    The requested version cannot satisfy all dependencies
    I have verified all dependent modules, and those are present with required version. Is there any way to find which exact dependency is failing ?
  • j

    Joel Wilson

    11/02/2022, 5:36 PM
    Discovered a little thing that I’m trying to understand. I’m setting
    runinterval
    in the
    agent
    section of
    puppet.conf
    , but when I run
    puppet config print runinterval
    , it shows the default value rather than what I’m setting. What will the agent actually use? This seems to be true of the value of
    splay
    , too.
  • g

    Greg Bristol

    11/02/2022, 5:39 PM
    are you running it with
    sudo
    , as the root user, or just as your normal user?
  • n

    natemccurdy

    11/02/2022, 5:42 PM
    @Joel Wilson
    puppet config print runinterval --section agent
    By default,
    puppet config print
    shows values from the
    [main]
    section. You need to specify which section you want to print via the
    --section
    flag.
  • n

    natemccurdy

    11/02/2022, 5:43 PM
    @Joel Wilson
    puppet config print runinterval --section agent
    By default,
    puppet config print
    shows values from the
    [main]
    section. You need to specify which section you want to print via the
    --section
    flag.
  • j

    Joel Wilson

    11/02/2022, 5:44 PM
    Ok. I get that. When agent specifies a different value, is that the actual interval it will honor?
  • j

    Joel Wilson

    11/02/2022, 5:44 PM
    And for splay, as well?
  • j

    Joel Wilson

    11/02/2022, 5:44 PM
    As root.
  • n

    natemccurdy

    11/02/2022, 5:45 PM
    When Puppet is running in the context of an agent (meaning you just ran
    sudo puppet agent ....
    ) then Puppet will use all the values from the
    [agent]
    section. If a setting isn’t specified in the
    [agent]
    section, then it defaults up to the
    [main]
    section. If the setting isn’t set in the
    [main]
    section, then the default value is used for that setting.
  • n

    natemccurdy

    11/02/2022, 5:45 PM
    When Puppet is running in the context of an agent (meaning you just ran
    sudo puppet agent ....
    )then Puppet will use all the values from the
    [agent]
    section. If a setting isn’t specified in the
    [agent]
    section, then it defaults up to the
    [main]
    section. If setting isn’t set in the
    [main]
    section, then they default value is used for that setting.
  • n

    natemccurdy

    11/02/2022, 5:45 PM
    When Puppet is running in the context of an agent (meaning you just ran
    sudo puppet agent ....
    ) then Puppet will use all the values from the
    [agent]
    section. If a setting isn’t specified in the
    [agent]
    section, then it defaults up to the
    [main]
    section. If setting isn’t set in the
    [main]
    section, then they default value is used for that setting.
  • n

    natemccurdy

    11/02/2022, 5:46 PM
    When Puppet is running in the context of an agent (meaning you just ran
    sudo puppet agent ....
    ) then Puppet will use all the values from the
    [agent]
    section. If a setting isn’t specified in the
    [agent]
    section, then it defaults up to the
    [main]
    section. If the setting isn’t set in the
    [main]
    section, then they default value is used for that setting.
  • n

    natemccurdy

    11/02/2022, 5:46 PM
    When Puppet is running in the context of an agent (meaning you just ran
    sudo puppet agent ....
    ) then Puppet will use all the values from the
    [agent]
    section. If a setting isn’t specified in the
    [agent]
    section, then it defaults up to the
    [main]
    section. If the setting isn’t set in the
    [main]
    section, then the default value is used for that setting.
  • j

    Joel Wilson

    11/02/2022, 5:46 PM
    Ok.
  • n

    natemccurdy

    11/02/2022, 5:48 PM
    puppet.conf
    is parsed hierarchically, and depending on what Puppet command you’re running. e.g. •
    puppet agent
    parses configs as
    [agent]
    =>
    [main]
    => defaults •
    puppet apply
    parses configs as
    [apply]
    [user]
    =>
    [main]
    => defaults
  • j

    Joel Wilson

    11/02/2022, 5:50 PM
    And
    [user]
    as some of my reading shows
  • n

    natemccurdy

    11/02/2022, 5:51 PM
    Ahh, woops. I was wrong. https://puppet.com/docs/puppet/7/config_print.html#config_print-settings-config-sections
    puppet apply
    uses the `[user]`block.
  • n

    natemccurdy

    11/02/2022, 5:52 PM
    puppet.conf
    is parsed hierarchically, and depending on what Puppet command you’re running. e.g. •
    puppet agent
    parses configs as
    [agent]
    =>
    [main]
    => defaults •
    puppet apply
    parses configs as
    [apply]
    [user]
    =>
    [main]
    => defaults
  • j

    Joel Wilson

    11/02/2022, 6:02 PM
    I’ve got version 6 agent software mostly, but I think it still applies
  • s

    Slackbot

    11/02/2022, 8:20 PM
    This message was deleted.
    b
    n
    +3
    • 6
    • 94
  • n

    nmaludy

    11/02/2022, 8:20 PM
    trying to start
    puppetserver
    and getting this in
    /var/log/puppetlabs/puppetserver/puppetserver.log
    Copy code
    Caused by: org.jruby.exceptions.NameError: (NameError) Java class org.jruby.ext.psych.PsychLibrary not found
            at org.jruby.ext.jruby.JRubyUtilLibrary.load_ext(org/jruby/ext/jruby/JRubyUtilLibrary.java:216)      
            at RUBY.<main>(uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/psych.rb:7)                 
            at org.jruby.RubyKernel.require(org/jruby/RubyKernel.java:1017)                                      
            at uri_3a_classloader_3a_.META_minus_INF.jruby_dot_home.lib.ruby.stdlib.rubygems.core_ext.kernel_requ
    ire.require(uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/rubygems/core_ext/kernel_require.rb:85)     
            at RUBY.<main>(uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/yaml.rb:4)                       
            at org.jruby.RubyKernel.require(org/jruby/RubyKernel.java:1017)                                      
            at uri_3a_classloader_3a_.META_minus_INF.jruby_dot_home.lib.ruby.stdlib.rubygems.core_ext.kernel_requ
    ire.require(uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/rubygems/core_ext/kernel_require.rb:85)     
            at RUBY.<main>(/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/network/format_handler.rb:1)       
            at org.jruby.RubyKernel.require(org/jruby/RubyKernel.java:1017)                                      
            at org.jruby.RubyKernel.require_relative(org/jruby/RubyKernel.java:1045)                             
            at RUBY.<main>(/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/network/format_support.rb:1)      
            at org.jruby.RubyKernel.require(org/jruby/RubyKernel.java:1017)
    any ideas?
  • n

    nmaludy

    11/02/2022, 8:25 PM
    trying to start
    puppetserver
    and getting this in
    /var/log/puppetlabs/puppetserver/puppetserver.log
    Copy code
    2022-11-02T20:22:46.752Z INFO  [main] [o.e.j.u.log] Logging initialized @4006ms to org.eclipse.jetty.util.log.Slf4jLog                             
    2022-11-02T20:22:47.429Z INFO  [async-dispatch-2] [p.t.s.s.scheduler-service] Initializing Scheduler Service      
    2022-11-02T20:22:47.453Z INFO  [async-dispatch-2] [o.q.i.StdSchedulerFactory] Using default implementation for ThreadExecutor                      
    2022-11-02T20:22:47.466Z INFO  [async-dispatch-2] [o.q.c.SchedulerSignalerImpl] Initialized Scheduler Signaller of type: class org.quartz.core.Sche
    dulerSignalerImpl                                                                                                                                  
    2022-11-02T20:22:47.469Z INFO  [async-dispatch-2] [o.q.c.QuartzScheduler] Quartz Scheduler v.2.3.2 created.                                        
    2022-11-02T20:22:47.470Z INFO  [async-dispatch-2] [o.q.s.RAMJobStore] RAMJobStore initialized.                                                     
    2022-11-02T20:22:47.470Z INFO  [async-dispatch-2] [o.q.c.QuartzScheduler] Scheduler meta-data: Quartz Scheduler (v2.3.2) 'a99ffbeb-379c-4711-ac04-0
    90bba71e1d9' with instanceId 'NON_CLUSTERED'                                                                                                       
      Scheduler class: 'org.quartz.core.QuartzScheduler' - running locally.                                                                            
      NOT STARTED.                                                                                                                                     
      Currently in standby mode.                                                                                                                       
      Number of jobs executed: 0                                                                                                                       
      Using thread pool 'org.quartz.simpl.SimpleThreadPool' - with 10 threads.                                                                        
      Using job-store 'org.quartz.simpl.RAMJobStore' - which does not support persistence. and is not clustered.                                       
                                                                                                                                                       
    2022-11-02T20:22:47.470Z INFO  [async-dispatch-2] [o.q.i.StdSchedulerFactory] Quartz scheduler 'a99ffbeb-379c-4711-ac04-090bba71e1d9' initialized f
    rom an externally provided properties instance.                                                                                                    
    2022-11-02T20:22:47.470Z INFO  [async-dispatch-2] [o.q.i.StdSchedulerFactory] Quartz scheduler version: 2.3.2                                   
    2022-11-02T20:22:47.471Z INFO  [async-dispatch-2] [o.q.c.QuartzScheduler] Scheduler a99ffbeb-379c-4711-ac04-090bba71e1d9_$_NON_CLUSTERED started.
    2022-11-02T20:22:47.475Z INFO  [async-dispatch-2] [p.t.s.w.jetty9-service] Initializing web server(s).                       
    2022-11-02T20:22:47.517Z INFO  [async-dispatch-2] [p.t.s.s.status-service] Registering status callback function for service 'puppet-profiler', vers
    ion 7.9.2                                                                                                                        
    2022-11-02T20:22:47.520Z INFO  [async-dispatch-2] [p.s.j.jruby-puppet-service] Initializing the JRuby service                                      2022-11-02T20:22:47.533Z INFO  [async-dispatch-2] [p.s.j.jruby-pool-manager-service] Initializing the JRuby service               
    2022-11-02T20:22:47.538Z INFO  [async-dispatch-2] [p.s.j.jruby-puppet-service] JRuby version info: jruby 9.3.4.0 (2.6.8) 2022-03-23 eff48c1ebf Open
    JDK 64-Bit Server VM 25.345-b01 on 1.8.0_345-b01 +jit [x86_64-linux]                                                                   
    2022-11-02T20:22:47.558Z INFO  [clojure-agent-send-pool-0] [p.s.j.i.jruby-internal] Creating JRubyInstance with id 1.                              
    2022-11-02T20:22:47.560Z INFO  [async-dispatch-2] [p.t.s.s.status-service] Registering status callback function for service 'jruby-metrics', versio
    n 7.9.2                                                                                                                                            
    2022-11-02T20:22:47.571Z INFO  [async-dispatch-2] [p.s.v.versioned-code-service] No code-id-command set for versioned-code-service. Code-id will be
     nil.                                                                                                                                             
    2022-11-02T20:22:47.571Z INFO  [async-dispatch-2] [p.s.v.versioned-code-service] No code-content-command set for versioned-code-service. Attempting
     to fetch code content will fail.                                                                                                                  
    2022-11-02T20:22:47.580Z INFO  [async-dispatch-2] [p.t.s.m.jolokia] Metrics access control using trapperkeeper-authorization is enabled.           
    2022-11-02T20:22:50.923Z ERROR [async-dispatch-2] [p.t.internal] Error during service init!!!                                                      
    java.lang.IllegalStateException: Unable to borrow JRubyInstance from pool                                           
            at puppetlabs.services.jruby_pool_manager.impl.jruby_internal$fn__34345$borrow_from_pool_BANG__STAR___34350$fn__34351.invoke(jruby_internal
    .clj:313)                                                                                                                              
            at puppetlabs.services.jruby_pool_manager.impl.jruby_internal$fn__34345$borrow_from_pool_BANG__STAR___34350.invoke(jruby_internal.clj:300)
            at puppetlabs.services.jruby_pool_manager.impl.jruby_internal$fn__34392$borrow_from_pool_with_timeout__34397$fn__34398.invoke(jruby_interna
    l.clj:348)                                                                                                                                         
            at puppetlabs.services.jruby_pool_manager.impl.jruby_internal$fn__34392$borrow_from_pool_with_timeout__34397.invoke(jruby_internal.clj:337$
            at puppetlabs.services.jruby_pool_manager.impl.instance_pool$fn__35156.invokeStatic(instance_pool.clj:48)   
            at puppetlabs.services.jruby_pool_manager.impl.instance_pool$fn__35156.invoke(instance_pool.clj:10)                                     
            at puppetlabs.services.protocols.jruby_pool$fn__34946$G__34894__34953.invoke(jruby_pool.clj:3)
    then further down in that call stack it looks like it is caused by:
    Copy code
    Caused by: org.jruby.exceptions.NameError: (NameError) Java class org.jruby.ext.psych.PsychLibrary not found
            at org.jruby.ext.jruby.JRubyUtilLibrary.load_ext(org/jruby/ext/jruby/JRubyUtilLibrary.java:216)      
            at RUBY.<main>(uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/psych.rb:7)                 
            at org.jruby.RubyKernel.require(org/jruby/RubyKernel.java:1017)                                      
            at uri_3a_classloader_3a_.META_minus_INF.jruby_dot_home.lib.ruby.stdlib.rubygems.core_ext.kernel_requ
    ire.require(uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/rubygems/core_ext/kernel_require.rb:85)     
            at RUBY.<main>(uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/yaml.rb:4)                       
            at org.jruby.RubyKernel.require(org/jruby/RubyKernel.java:1017)                                      
            at uri_3a_classloader_3a_.META_minus_INF.jruby_dot_home.lib.ruby.stdlib.rubygems.core_ext.kernel_requ
    ire.require(uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/rubygems/core_ext/kernel_require.rb:85)     
            at RUBY.<main>(/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/network/format_handler.rb:1)       
            at org.jruby.RubyKernel.require(org/jruby/RubyKernel.java:1017)                                      
            at org.jruby.RubyKernel.require_relative(org/jruby/RubyKernel.java:1045)                             
            at RUBY.<main>(/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/network/format_support.rb:1)      
            at org.jruby.RubyKernel.require(org/jruby/RubyKernel.java:1017)
    any ideas?
  • g

    Ganaparthi Nikhil

    11/03/2022, 8:14 AM
    Error: Failed to initialize SSL: The CA certificates are missing any idea on this
  • s

    sameer

    11/03/2022, 9:40 AM
    message has been deleted
  • s

    Slackbot

    11/03/2022, 9:41 AM
    This message was deleted.
    p
    s
    • 3
    • 8
  • s

    Slackbot

    11/03/2022, 9:41 AM
    This message was deleted.
    p
    d
    l
    • 4
    • 3
  • s

    Slackbot

    11/03/2022, 10:21 AM
    This message was deleted.
    p
    h
    d
    • 4
    • 10
1...224225226...428Latest