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

    vchepkov

    03/14/2023, 8:19 PM
    https://github.com/theforeman/puppet-puppet/blob/master/manifests/init.pp#L283
  • v

    vchepkov

    03/14/2023, 8:19 PM
    https://github.com/theforeman/puppet-puppet/blob/master/manifests/init.pp#L283
  • k

    Ken

    03/14/2023, 8:56 PM
    @Yorokobi THANKS!! YOU THE MAN! Remind me to buy you a beer sometime... 🙂
  • k

    Ken

    03/14/2023, 8:57 PM
    TWO nodes now. FTW!
  • k

    Ken

    03/14/2023, 8:57 PM
    now to see if I can repeat what I just did for a fresh clean install. LOL
  • r

    Reg

    03/14/2023, 9:01 PM
    Hello folks, I ran puppet parser validate successfully on a file but when I tested the code, I received a puppet-lint error
    Copy code
    WARNING: optional parameter listed before required parameter on line 1
  • n

    natemccurdy

    03/14/2023, 9:02 PM
    This is what's failing.
    Copy code
    class foo (
      $an_optional_param = 'foo',
      $a_required_param,
    ) {
    It should look like this, with the required parameter first:
    Copy code
    class foo (
      $a_required_param,
      $an_optional_param = 'foo',
    ) {
  • n

    natemccurdy

    03/14/2023, 9:02 PM
    This is what's failing.
    Copy code
    class foo (
      $an_optional_param = 'foo',
      $a_required_param,
    ) {
    It should look like this, with the required parameter first:
    Copy code
    class foo (
      $a_required_param,
      $an_optional_param = foo',
    ) {
  • n

    natemccurdy

    03/14/2023, 9:02 PM
    This is what's failing.
    Copy code
    class foo (
      $an_optional_param = 'foo',
      $a_required_param,
    ) {
    It should look like this, with the required parameter first:
    Copy code
    class foo (
      $a_required_param,
      $an_optional_param = 'foo',
    ) {
  • v

    vchepkov

    03/14/2023, 9:06 PM
    puppet parser validate - syntax correctness
  • v

    vchepkov

    03/14/2023, 9:07 PM
    puppet-lint - opinionated rules how that code should look like
    💯 1
  • b

    bastelfreak

    03/14/2023, 9:20 PM
    opinions <3
    👍 1
  • s

    Slackbot

    03/14/2023, 9:23 PM
    This message was deleted.
    r
    n
    +2
    • 5
    • 12
  • s

    Slackbot

    03/14/2023, 10:49 PM
    This message was deleted.
    c
    • 2
    • 1
  • k

    Ken

    03/14/2023, 11:58 PM
    I shutdown a puppet client node to test puppetDB (there's two clients and my server for a total of 3 nodes) Why after a couple hours does puppetDB still show 3? I have the clients set to check in hourly. Any thoughts?
  • v

    vchepkov

    03/15/2023, 12:00 AM
    one of the ttls
  • v

    vchepkov

    03/15/2023, 12:00 AM
    grep ttl /etc/puppetlabs/puppetdb/conf.d/database.ini
  • v

    vchepkov

    03/15/2023, 12:04 AM
    scratch that, ttl will remove them from puppetdb due to inactivity
  • v

    vchepkov

    03/15/2023, 12:05 AM
    Why did you expect it to change though? 3 seems valid
  • v

    vchepkov

    03/15/2023, 12:08 AM
    you can check node status
    Copy code
    puppet node status certname
  • v

    vchepkov

    03/15/2023, 12:09 AM
    it should say when was last report and last facts
  • v

    vchepkov

    03/15/2023, 12:09 AM
    I am not quite sure what time makes it 'inactive' though
  • k

    Ken

    03/15/2023, 12:31 AM
    3 is valid - until I shut one client node down, 3 hours ago. I expect it to show 2 active and 1 inactive
  • k

    Ken

    03/15/2023, 12:36 AM
    any I wonder why this doesn't work - both clients have signed certs puppet node status pupcli_two Error: Could not retrieve status for pupcli_two: Failed to find '/pdb/query/v4/nodes/pupcli_two' on any of the following 'server_urls': https://puppet.lan:8081
  • k

    Ken

    03/15/2023, 12:40 AM
    I think it has something to do with the fact I have to use 'localhost' with my curl queries
  • k

    Ken

    03/15/2023, 12:41 AM
    I plan on fixing that, but that's how it is now
  • s

    Slackbot

    03/15/2023, 9:42 AM
    This message was deleted.
    i
    • 2
    • 1
  • i

    Ian CB

    03/15/2023, 9:50 AM
    We have two puppet masters, and several servers running passenger. Generally the clients connect to the passenger hosts. We’re moving some clients around and changing their IP addresses - we have a simple module which updates the /etc/hosts file with the IP / FQDN of the host (using $::ipaddress) … Seemingly randomly the code uses the old IP address of the server. Checking facter on the client it reports ipaddress correctly. The yaml file for the host on the passenger servers shows the old IP for some passengers and new on others … Removing the yaml files does not improve the situation … Any ideas ? I assume its some sort of caching in the puppet masters / passenger servers but we dont know how to clear it (and its not practical to reboot the passenger servers for each host move - and we dont know if that would work anyway). Any suggestions ?
  • k

    Ken

    03/15/2023, 1:44 PM
    According to the doc https://www.puppet.com/docs/puppetdb/7/pdb_client_tools.html PDB client tools are available for 'puppet enterprise' - yet I can see them freely available for download. Can a opensource/community puppetserver use these, or would this be in violation of licensing, etc?
  • v

    vchepkov

    03/15/2023, 2:51 PM
    I think they are useless in OSS environment. they use specialized API
1...326327328...428Latest