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

    Micah

    06/06/2022, 2:22 PM
    it was what I was doing, but the links are different in buster vs. bullseye for example
  • v

    vchepkov

    06/06/2022, 2:22 PM
    modern OS all complies
  • m

    Micah

    06/06/2022, 2:23 PM
    maybe
    unless  => "[ '$facts['timezone']' == 'UTC' ]",
  • v

    vchepkov

    06/06/2022, 2:25 PM
    Copy code
    unless $facts['timezone'] == 'UTC' {  
      exec { 'set UTC time':
        command => '/usr/bin/timedatectl set-timezone UTC',
      }
    }
  • v

    vchepkov

    06/06/2022, 2:25 PM
    Copy code
    unless $facts['timezone'] == 'UTC' {  
      exec { 'set UTC time':
        command => '/usr/bin/timedatectl set-timezone UTC',
      }
    }
  • m

    Micah

    06/06/2022, 2:25 PM
    Yeah!
  • v

    vchepkov

    06/06/2022, 2:26 PM
    or you can make timezone parameter to the class and use that
  • v

    vchepkov

    06/06/2022, 2:26 PM
    maybe you will need non-utc in the future
  • c

    CVQuesty

    06/06/2022, 2:26 PM
    Copy code
    Jeralds-MacBook-Pro:qualys jsheets$ facter timezone
    EDT
  • c

    CVQuesty

    06/06/2022, 2:27 PM
    so, like @vchepkov noted, the facts hash looking at the timezone would be a better, more style-compliant route.
  • b

    binford2k

    06/06/2022, 4:17 PM
    @nigel is going to be keynoting PlatformCon this Friday and it looks super interesting. @Jahyz Benchaar posted a bit more info in the #C0W1XGVNU channel if you wanna check it out, https://puppetcommunity.slack.com/archives/C0W1XGVNU/p1654526552641649
    🙌 1
  • g

    Gavin

    06/06/2022, 4:39 PM
    👋 I am currently looking at writing some custom facts , however these are based around our Antivirus product. The facts are password protected, what do you feel would be a reasonable approach to passing this password into the fact so it can be used as part of the lookup ?
  • v

    vchepkov

    06/06/2022, 4:42 PM
    ability to deploy parametrized lib/ objects in puppet has been limited. You can deploy secrets in a file and read that file from a custom fact, will require two runs though
  • w

    whatsaranjit

    06/06/2022, 4:42 PM
    Does the value change very often?
  • g

    Gavin

    06/06/2022, 4:42 PM
    Little change in password.
  • g

    Gavin

    06/06/2022, 4:42 PM
    Was thinking potentially eyaml
  • w

    whatsaranjit

    06/06/2022, 4:43 PM
    I mean is the end value of the fact expected to change often? Or basically an installed/not-installed value?
  • g

    Gavin

    06/06/2022, 4:43 PM
    End value is expected to change
  • s

    Slackbot

    06/06/2022, 4:45 PM
    This message was deleted.
    w
    g
    s
    • 4
    • 5
  • g

    Gavin

    06/06/2022, 4:45 PM
    For better context this is , list associated tags of an agent to then CRUD associated Tags in line with puppet config. Example use case would be. • HTTP Lookup expected values • Inspect agent for values • Apply diff. for doing dynamic group assignment in AV service
  • s

    sadhpuxguru

    06/06/2022, 5:20 PM
    message has been deleted
  • s

    sadhpuxguru

    06/06/2022, 5:24 PM
    my first install of puppet, and I'm wondering if the instructions are clear - to sudo or not sudo #agent config: puppet config set server myserver --section main shouldn't that be run as sudo/root ? Along with the puppet ssl bootstrap command? i ran it as my normal user, ubuntu. But obviously, it didn't update /etc/puppetlabs/puppet/puppet.conf
  • b

    bastelfreak

    06/06/2022, 5:26 PM
    yes, you are supposed to run it as root
  • s

    sadhpuxguru

    06/06/2022, 5:27 PM
    Thanks. I'll attempt to fix. Most likely be back with questions.
  • s

    Slackbot

    06/06/2022, 7:39 PM
    This message was deleted.
    t
    h
    j
    • 4
    • 4
  • d

    Dr Bunsen Honeydew

    06/06/2022, 7:39 PM
    See the
    puppet-python
    module at https://forge.puppet.com/puppet/python?src=slack&channel=puppet
  • t

    tkishel

    06/06/2022, 8:33 PM
    I don’t see anything in the source that allows you to pass an environment variable into the provider: https://github.com/puppetlabs/puppet/blob/main/lib/puppet/provider/package/pip.rb
  • s

    Slackbot

    06/07/2022, 6:35 AM
    This message was deleted.
    b
    g
    • 3
    • 11
  • b

    bastelfreak

    06/07/2022, 7:35 AM
    facts { name = "boardproductname"}
  • w

    Willem Basson

    06/07/2022, 10:11 AM
    users of https://github.com/voxpupuli/puppetboard - to add ssl and authentication, do you go through a reverse proxy or something?
1...585960...428Latest