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

    RyChannel

    04/11/2023, 2:12 PM
    I like that my question got read in to a lot, I was just asking a general question. lol I had been assuming that the agent's '30 minutes' restarted at the end of a run, I was clearly wrong when looking at the console. We had a bunch of VMs patch at the same time and reboot, so Puppet was running at very similar times on a lot of servers. Another engineer was complaining about CPU usage in a cluster and with my previous incorrect assumption I figured the issue was going to sort it self out after a few agent runs since the Puppet run times vary a lot on those servers.
  • r

    RyChannel

    04/11/2023, 2:27 PM
    I had been assuming that the agent's '30 minutes' restarted at the end of a run, I was clearly wrong when looking at the console. We had a bunch of VMs patch at the same time and reboot, so Puppet was running at very similar times on a lot of servers. Another engineer was complaining about CPU usage in a cluster and with my previous incorrect assumption I figured the issue was going to sort it self out after a few agent runs since the Puppet run times vary a lot on those servers.
  • d

    Dr Bunsen Honeydew

    04/11/2023, 2:45 PM
    allthethings _🩊Vox Pupuli monthly sync; see calendar event for info_ is about to start up in #CFD8Z9A4T
  • d

    Dr Bunsen Honeydew

    04/11/2023, 4:45 PM
    kermit typing đŸ§‘â€đŸ«Puppet Core Team is about to start up in #CFD8Z9A4T
  • s

    Slackbot

    04/11/2023, 5:26 PM
    This message was deleted.
    p
    c
    +2
    • 5
    • 19
  • s

    smortex

    04/11/2023, 7:04 PM
    When using PupetDB, you can query your infra, but nothing prevent you from filtering for resource from the node itself. You will not get the info from the current run, but the info from the previous one which may be an issue for you. I use this pattern for monitoring setup: each node check its own certificates and some nodes check all certificates of the fleet:
    Copy code
    $query = $monitor_dehydrated ? {
        'all'      => 'resources [title, parameters] { type = "Dehydrated::Certificate" }',
        'self'     => "resources [title, parameters] { type = 'Dehydrated::Certificate' and certname = '${trusted['certname']}' }",
      }
    
      $endpoints = puppetdb_query($query).map |$value| { [] + $value.dig('title') + $value.dig('parameters', 'domains') }.flatten.unique.sort
    
      tls_checker::watch { 'dehydrated':
        endpoints =>  $endpoints,
      }
  • y

    Yuan Liu

    04/11/2023, 7:43 PM
    Question about user resource type. Is there a way to signal impossible password hash like it is common across *nix platforms? In /etc/shadow (or /etc/passwd if shadow is not used), all I have to do is to enter an impossible string, such as “X” and “!!” in the password hash field.
  • v

    vchepkov

    04/11/2023, 7:55 PM
    Copy code
    password         => '!!',
    👍 1
  • v

    vchepkov

    04/11/2023, 7:55 PM
    this works
  • c

    CVQuesty

    04/11/2023, 7:55 PM
    if you’re directly editing /etc/passwd or /etc/shadow, I would use an augeas lens to do so. (or a perl one-liner
.I’m old.) If you want to just set the pw to specific string, do what @vchepkov did right there 👆
  • c

    CVQuesty

    04/11/2023, 7:56 PM
    honestly, you can still set the password as normal, but use a stupid long or complex password with a shell of something like /bin/false and nobody could login.
  • y

    Yuan Liu

    04/11/2023, 7:59 PM
    actually, i need to allow a shell of sorts, just not with password
  • y

    Yuan Liu

    04/11/2023, 8:01 PM
    i’m afraid
    Copy code
    password => '!!',
    is going to hash the string “!!“, instead of entering this string into hash field
  • s

    Slackbot

    04/11/2023, 8:13 PM
    This message was deleted.
    y
    • 2
    • 2
  • c

    CVQuesty

    04/11/2023, 8:34 PM
    you have to manually create the password hash if you’re going to use it in the
    password => '',
    attribute
    👍 1
  • l

    Luke Tidd

    04/11/2023, 8:41 PM
    Hey folks, does anyone know how difficult it might be to get a puppet 7 agent running on a linux-arm64 machine? There is not a package for that platform that I'm aware of.
  • v

    vchepkov

    04/11/2023, 8:55 PM
    I am running it on arm64?
  • v

    vchepkov

    04/11/2023, 8:56 PM
    https://yum.puppet.com/puppet7/el/7/aarch64/index.html
  • l

    Luke Tidd

    04/11/2023, 8:56 PM
    ohh. lemme see if that's in the debian repo too, must have missed it
  • l

    Luke Tidd

    04/11/2023, 8:58 PM
    https://apt.puppetlabs.com/pool/jammy/puppet7/p/puppet-agent/index.html
  • l

    Luke Tidd

    04/11/2023, 9:00 PM
    this is where I was looking.. maybe I can try the older focal client and see if it works
  • l

    Luke Tidd

    04/11/2023, 9:02 PM
    yeah, the older client seems to work. Could a jammy version be made if it's not too much trouble?
  • y

    Yuan Liu

    04/11/2023, 10:21 PM
    @vchepkov password => ’!!’, gives me another blank password hash, as if there’s no code change. (existing code doesn’t specify password) Agent output looks all normal
    Copy code
    
/User[myuser]/password: changed password
    
/Exec[unlock-myuser]/returns: executed successfully
  • y

    Yuan Liu

    04/11/2023, 10:29 PM
    OK that output helped me identify the problem. If password is not specified, puppet actually uses ‘!!’ in the hash field. We have some code (“unlock”) to strip it. Also, the user resource doesn’t automatically hash. It simply enters the string into the hash field :=) The user is responsible to specify a hash algo and call explicitly.
  • s

    Slackbot

    04/12/2023, 3:10 AM
    This message was deleted.
    b
    f
    • 3
    • 13
  • s

    Slackbot

    04/12/2023, 7:38 AM
    This message was deleted.
    b
    d
    y
    • 4
    • 18
  • f

    Febu

    04/12/2023, 8:09 AM
    This was always the primary
 not sure if setting up replication did some thing wacky

  • s

    Slackbot

    04/12/2023, 10:22 AM
    This message was deleted.
    m
    • 2
    • 1
  • m

    Massimiliano (Max)

    04/12/2023, 12:18 PM
    how can I catch the error thrown by:
    Facter::Util::Resolution.exec
    without pushing the fact and running puppet? If it's ruby I can try from
    pry
    I have this line, and on all the servers (apart from the nomad servers) the file doesn't exist:
    Facter::Util::Resolution.exec('cat /var/lib/nomad/server/node-id')
    _rescue_ XXXXXX
  • s

    Slackbot

    04/12/2023, 12:20 PM
    This message was deleted.
    b
    m
    +2
    • 5
    • 24
1...345346347...428Latest