https://www.puppet.com/community logo
Join Slack
Powered by
# puppet-enterprise
  • m

    Mike Langhorst

    02/09/2023, 10:31 PM
    hello all, having an issue calculating a value within a puppet class from $facts values. $facts['memory']['system']['total_bytes'] / 2048 / $facts['hugepage_size'] (hugepage_size is a custom fact). issue I'm having is I'm getting the entire fact set back. even with just going back to trying to use that total_bytes in a notify resource gets the full factset back
  • s

    Slackbot

    02/09/2023, 10:34 PM
    This message was deleted.
    d
    m
    • 3
    • 3
  • d

    davidcomeyne

    02/10/2023, 10:38 AM
    Hi all! I need to install a local gem on all my Puppet nodes. Is there an easy way to do that? Problem is that the gem (ipaddress) needs to download it from rubygems.org and our corporate firewall is currently blocking this. Instead of asking our networking team to open the firewall on all subnets I wanted to know if there is an easier way to distribute this. I have already installed it locally on the puppetserver, but how can I make sure that this is also on all nodes? This worked on our Puppet server, this has a bit less restrictions for downloading, but on all other nodes this does not work:
    $ puppetserver gem install ipaddress --no-document
    Fetching ipaddress-0.8.3.gem
    Successfully installed ipaddress-0.8.3
    1 gem installed
    On all other nodes:
    Error: Execution of '/opt/puppetlabs/puppet/bin/gem install --no-document ipaddress' returned 2: ERROR:  Could not find a valid gem 'ipaddress' (>= 0), here is why:
    Unable to download data from <https://rubygems.org/> - Errno::ECONNRESET: Connection reset by peer - SSL_connect (<https://rubygems.org/specs.4.8.gz>)
    Error: /Stage[main]/Network2023/Package[ipaddress]/ensure: change from 'absent' to 'present' failed: Execution of '/opt/puppetlabs/puppet/bin/gem install --no-document ipaddress' returned 2: ERROR:  Could not find a valid gem 'ipaddress' (>= 0), here is why:
    Unable to download data from <https://rubygems.org/> - Errno::ECONNRESET: Connection reset by peer - SSL_connect (<https://rubygems.org/specs.4.8.gz>)
  • d

    davidcomeyne

    02/10/2023, 10:40 AM
    Hi all! I need to install a local gem on all my Puppet nodes. Is there an easy way to do that? Problem is that the gem (ipaddress) needs to download it from rubygems.org and our corporate firewall is currently blocking this. Instead of asking our networking team to open the firewall on all subnets I wanted to know if there is an easier way to distribute this. I have already installed it locally on the puppetserver, but how can I make sure that this is also on all nodes? This worked on our Puppet server, this has a bit less restrictions for downloading, but on all other nodes this does not work:
    $ puppetserver gem install ipaddress --no-document
    Fetching ipaddress-0.8.3.gem
    Successfully installed ipaddress-0.8.3
    1 gem installed
    On all other nodes:
    Error: Execution of '/opt/puppetlabs/puppet/bin/gem install --no-document ipaddress' returned 2: ERROR:  Could not find a valid gem 'ipaddress' (>= 0), here is why:
    Unable to download data from <https://rubygems.org/> - Errno::ECONNRESET: Connection reset by peer - SSL_connect (<https://rubygems.org/specs.4.8.gz>)
    Error: /Stage[main]/Network2023/Package[ipaddress]/ensure: change from 'absent' to 'present' failed: Execution of '/opt/puppetlabs/puppet/bin/gem install --no-document ipaddress' returned 2: ERROR:  Could not find a valid gem 'ipaddress' (>= 0), here is why:
    Unable to download data from <https://rubygems.org/> - Errno::ECONNRESET: Connection reset by peer - SSL_connect (<https://rubygems.org/specs.4.8.gz>)
  • v

    vchepkov

    02/10/2023, 12:48 PM
    Puppet has at least 3 different providers, it's not clear, which you need. gem, puppet_gem, puppetserver_gem. I think all of them have
    source
    attribute, so you can install your package from a local source, like an artifactory. you might also need
    install_options => --clear-sources
    to prevent downloading from rubygems
  • d

    davidcomeyne

    02/10/2023, 1:01 PM
    Thanks @vchepkov, I was already looking into a local repository. I have found a rubygems proxy on our Nexus that I can set-up. And with
    gems sources --add <local repo>
    I can add that local repo...that should work! 👍
  • v

    vchepkov

    02/10/2023, 1:03 PM
    I think gem provider will add that source attribute to sources automatically
  • v

    vchepkov

    02/10/2023, 1:03 PM
    https://github.com/puppetlabs/puppet/blob/main/lib/puppet/provider/package/gem.rb#L8-L13
    👍 1
  • v

    vchepkov

    02/10/2023, 1:03 PM
    https://github.com/puppetlabs/puppet/blob/main/lib/puppet/provider/package/gem.rb#L8-L13
  • j

    Justin

    02/15/2023, 7:45 AM
    message has been deleted
  • j

    Justin

    02/15/2023, 7:46 AM
    Not sure if anyone actually use plan apply with proxy settings through PE, I think this is a possibly bug in all the last few puppet-agent rpms releases (6.27.1/6.28.0 & 7.21.0O) with
    apply_ruby_shim.rb
    The following error happens occurs due to the port never getting convert to a string,
    Copy code
    Exited 1:
    /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/settings.rb:347:in `block in parse_global_options': undefined method `start_with?' for 4004:Integer (NoMethodError)
      from /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/settings.rb:347:in `reject!'
      from /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/settings.rb:347:in `parse_global_options'
      from /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/settings.rb:308:in `initialize_global_settings'
      from /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet.rb:180:in `do_initialize_settings_for_run_mode'
      from /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet.rb:155:in `initialize_settings'
      from /opt/puppetlabs/puppet/bin/apply_ruby_shim.rb:81:in `<main>'
    In apply_ruby_shim.rb:
    val unless val.nil?
    should probably be
    <http://val.to|val.to>_s unless val.nil?
    Copy code
    # Proxy will always be a string (even if its empty)
    parsed_proxy = URI.parse(args['proxy'])
    proxy_flags.each do |uri_method, setting_flag|
      val = parsed_proxy.send(uri_method)
      cli_settings_pluginsync << setting_flag << val unless val.nil?
    end
  • j

    Justin

    02/15/2023, 7:46 AM
    Not sure if anyone actually use plan apply with proxy settings through PE, I think this is a possibly bug in all the last few puppet-agent rpms releases (6.27.1/6.28.0 & 7.21.0O) with
    apply_ruby_shim.rb
    The following error happens occurs due to the port never getting convert to a string,
    Copy code
    Exited 1:
    /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/settings.rb:347:in `block in parse_global_options': undefined method `start_with?' for 4004:Integer (NoMethodError)
      from /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/settings.rb:347:in `reject!'
      from /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/settings.rb:347:in `parse_global_options'
      from /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/settings.rb:308:in `initialize_global_settings'
      from /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet.rb:180:in `do_initialize_settings_for_run_mode'
      from /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet.rb:155:in `initialize_settings'
      from /opt/puppetlabs/puppet/bin/apply_ruby_shim.rb:81:in `<main>'
    In apply_ruby_shim.rb: val unless val.nil? should probably be val.to_s unless val.nil?
    Copy code
    # Proxy will always be a string (even if its empty)
    parsed_proxy = URI.parse(args['proxy'])
    proxy_flags.each do |uri_method, setting_flag|
      val = parsed_proxy.send(uri_method)
      cli_settings_pluginsync << setting_flag << val unless val.nil?
    end
  • j

    Justin

    02/15/2023, 7:46 AM
    Not sure if anyone actually use plan apply with proxy settings through PE, I think this is a possibly bug in all the last few puppet-agent rpms releases (6.27.1/6.28.0 & 7.21.0O) with
    apply_ruby_shim.rb
    The following error happens occurs due to the port never getting convert to a string,
    Copy code
    Exited 1:
    /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/settings.rb:347:in `block in parse_global_options': undefined method `start_with?' for 4004:Integer (NoMethodError)
      from /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/settings.rb:347:in `reject!'
      from /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/settings.rb:347:in `parse_global_options'
      from /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/settings.rb:308:in `initialize_global_settings'
      from /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet.rb:180:in `do_initialize_settings_for_run_mode'
      from /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet.rb:155:in `initialize_settings'
      from /opt/puppetlabs/puppet/bin/apply_ruby_shim.rb:81:in `<main>'
    In apply_ruby_shim.rb:
    val unless val.nil?
    should probably be
    <http://val.to|val.to>_s unless val.nil?
    Copy code
    # Proxy will always be a string (even if its empty)
    parsed_proxy = URI.parse(args['proxy'])
    proxy_flags.each do |uri_method, setting_flag|
      val = parsed_proxy.send(uri_method)
      cli_settings_pluginsync << setting_flag << val unless val.nil?
    end
  • s

    Slackbot

    02/15/2023, 2:45 PM
    This message was deleted.
    b
    • 2
    • 2
  • v

    vchepkov

    02/15/2023, 8:20 PM
    Started to use PE2021.7.2 and see these warnings with an exception stack periodically
    Copy code
    2023-02-15T15:18:33.932-05:00 WARN  [qtp1315451208-212001] [o.e.j.s.HttpChannel] /puppet/v3/environment_classes
    clojure.lang.ExceptionInfo: Output of manifest-info-from-jruby->manifest-info-for-json does not match schema: 
    
    	   {:classes [{:params [nil {:type (not (instance? java.lang.String nil))} nil]}]}  
    
    
    	at puppetlabs.services.master.master_core$fn__29665$manifest_info_from_jruby__GT_manifest_info_for_json__29670.invoke(master_core.clj:269)
    	at clojure.core$map$fn__5935.invoke(core.clj:2770)
    What could be the reason ?
  • s

    Slackbot

    02/15/2023, 8:22 PM
    This message was deleted.
    b
    v
    +2
    • 5
    • 38
  • b

    bastelfreak

    02/15/2023, 8:31 PM
    for the rugged stuff I raised a ticket a long time ago
  • v

    vchepkov

    02/15/2023, 8:37 PM
    btw, have you figured out how to insert code block in the ticket? No matter what I do, it inserts bunch of empty lines betweeb
  • v

    vchepkov

    02/15/2023, 8:37 PM
    btw, have you figured out how to insert code block in the ticket? No matter what I do, it inserts bunch of empty lines between
  • v

    vchepkov

    02/15/2023, 8:39 PM
    And no idea where they get picture for my gravatar, I wish I was 20 years younger, like on that picture 🙂
  • e

    eager2learn

    02/16/2023, 3:08 PM
    Puppet is new for me. During the executing of "puppet-enterprise-installer" I get the error below: Warning: Error connecting to ubuntu20.mailstreet.nl on 8081 at route https://ubuntu20.mailstreet.nl:8081/pdb/query/v4, error message received was 'Request to https://ubuntu20.mailstreet.nl:8081/pdb/query/v4 failed What kind of service should listen to port 8081 on the local system?
  • g

    Gareth McGrillan

    02/16/2023, 3:19 PM
    HI there - check out the port usage and requiremetns in https://www.puppet.com/docs/pe/2021.7/system_configuration.html#system_configuration 8081 is used for PuppetDB: https://www.puppet.com/docs/pe/2021.7/system_configuration.html#firewall
  • v

    vchepkov

    02/16/2023, 8:00 PM
    Does anybody have issues with hiera-eyaml-gpg on new LTS PE2021.7 ?
  • v

    vchepkov

    02/16/2023, 8:00 PM
    I opened a PE ticket, but wonder if anyone stepped on it?
  • v

    vchepkov

    02/16/2023, 8:02 PM
    random errors like this
    Copy code
    [puppetserver] Puppet Server Error: hiera-eyaml backend error decrypting ENC[GPG,
  • v

    vchepkov

    02/16/2023, 8:03 PM
    random secrets, random nodes
  • s

    Slackbot

    02/17/2023, 6:38 PM
    This message was deleted.
    n
    a
    • 3
    • 5
  • n

    NickB

    02/17/2023, 7:02 PM
    Could be. Not sure why, could be an issue with tune. We haven’t touched that in a while.
  • s

    Slackbot

    02/20/2023, 6:59 AM
    This message was deleted.
    t
    n
    • 3
    • 8
  • n

    n3snah

    02/20/2023, 8:11 AM
    I am looking to classify some machines or even find machines in the status window of PE console which have a particular element in an array fact.
1...373839...73Latest