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

    Slackbot

    03/22/2023, 1:18 PM
    This message was deleted.
    👍 1
    n
    r
    • 3
    • 19
  • s

    Slackbot

    03/22/2023, 2:01 PM
    This message was deleted.
    y
    t
    +2
    • 5
    • 7
  • e

    Elliott

    03/22/2023, 2:47 PM
    Is there a way to have puppetserver log show line numbers that caused catalog compile errors? this warning is great, but where in my ~10k lines is it coming from?
    2023-03-22T14:45:55.068Z WARN [qtp2079691424-21539] [puppetserver] Puppet This method is deprecated, please use the stdlib validate_legacy function,
  • b

    Brian Schonecker

    03/22/2023, 3:14 PM
    I think I foobar'd my ruby gems on my puppet server somehow. When running 'puppet agent -t', I get the following output: /usr/share/rubygems/rubygems/dependency.rb296in `to_specs': Could not find 'puppet' (>= 0.a) among 11 total gem(s) (Gem::LoadError) from /usr/share/rubygems/rubygems/dependency.rb307in `to_spec' from /usr/share/rubygems/rubygems/core_ext/kernel_gem.rb47in `gem' from /opt/puppetlabs/puppet/bin/puppet25in `<main>' I looked over this page but I've not found a way [yet] to check the appropriate gems are installed and correct. I'm using the open source puppet server v7. Is this truly a gem issue? If so, is there a way to reinstall or verify the gems are correct?
  • b

    bastelfreak

    03/22/2023, 3:19 PM
    how did you manage to do that?
  • b

    Brian Schonecker

    03/22/2023, 3:19 PM
    I have no idea.
  • b

    bastelfreak

    03/22/2023, 3:19 PM
    😄
  • b

    bastelfreak

    03/22/2023, 3:19 PM
    are you root or another user?
  • b

    Brian Schonecker

    03/22/2023, 3:20 PM
    Possible that it's been broken for a while. I tried to do some 'bundle install' stuff as non-root on the system but I don't think I could have done so much damage.
  • b

    bastelfreak

    03/22/2023, 3:20 PM
    mhm possible
  • b

    bastelfreak

    03/22/2023, 3:20 PM
    if you used the Puppet Agent Ruby
  • b

    Brian Schonecker

    03/22/2023, 3:20 PM
    Reinstalling puppet-agent and puppetserver is an option but not a good one. This is my dev puppet server and I'd like to try to keep it around.
  • b

    Brian Schonecker

    03/22/2023, 3:22 PM
    Oh, geez: sudo /opt/puppetlabs/puppet/bin/gem install json -v '2.6.3' --source 'https://rubygems.org/' (among others)
  • b

    bastelfreak

    03/22/2023, 3:22 PM
    why did you do that? 😄
  • b

    Brian Schonecker

    03/22/2023, 3:22 PM
    Looks like I got desperate to get ruby rspec stuff installed.
  • b

    bastelfreak

    03/22/2023, 3:22 PM
    (don't do that)
  • b

    Brian Schonecker

    03/22/2023, 3:22 PM
    😉
  • y

    Yury Bushmelev

    03/22/2023, 3:23 PM
    It should be easy and safe to reinstall the agent.. though I’m not sure it’ll help much because you should wipe the /opt/puppetlabs ideally
  • y

    Yury Bushmelev

    03/22/2023, 3:23 PM
    That will affect the server too
  • y

    Yury Bushmelev

    03/22/2023, 3:23 PM
    (That’s why I prefer to have puppetserver in a container)
  • b

    bastelfreak

    03/22/2023, 3:23 PM
    I would start with restoring a backup or reinstalling the agent
  • h

    hbui

    03/22/2023, 3:50 PM
    how have folks worked with dnf modules on the more recent rpm based distros?
  • b

    bastelfreak

    03/22/2023, 3:55 PM
    I start screaming
  • h

    hbui

    03/22/2023, 3:58 PM
    it looks like the package resource has some dnf and dnfmodule providers, anyone have experience with those?
  • h

    hbui

    03/22/2023, 3:58 PM
    my need is driven by needing nvidia legacy drivers and they decided to move to modules for rhel8 flavor
  • b

    bastelfreak

    03/22/2023, 4:05 PM
    the dnfmodule provider works fine
  • t

    tutelacool

    03/22/2023, 4:49 PM
    just for record. if anyone experiences the same issue - This is how I solved it.
    Copy code
    exec { remove_loopback_ip:
          command => "/sbin/ip addr del ${appfoo_ipv4_addresses[0][0]}/32 dev lo",
          onlyif  => "/sbin/ip addr show dev lo | /bin/grep -q ${appfoo_ipv4_addresses[0][0]}",
        }
  • b

    binford2k

    03/22/2023, 6:37 PM
    https://fosstodon.org/@puppet/110068381266505184
  • s

    Slackbot

    03/22/2023, 6:41 PM
    This message was deleted.
    b
    r
    • 3
    • 2
  • n

    Neeloj

    03/22/2023, 6:43 PM
    That’s good to know thanks @rusty… so I can have 2 puppet servers, and agents can connect both or only one of them ? But I cannot understand how should the puppetserver look like ?
1...335336337...428Latest