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

    Lumiere

    08/24/2022, 7:40 PM
    I tweaked it to return a datetime which I return here for posterity)
    Copy code
    # With thanks to vchepkov from the puppet slack (2022-08-24)
    
    Facter.add(:puppet_cert_expires) do
        setcode do
            begin
                #TODO: remove after migraton to puppet 6
                if Puppet::Util::Package.versioncmp(Facter.value(:puppetversion), '6') < 0
                  time = Puppet::SSL::Host.localhost.certificate.expiration
                else
                  time = Puppet.lookup(:ssl_context).client_cert.not_after
                end
                time.strftime('%Y-%m-%d %H:%M:%S')
            rescue
                nil # Agent doesn't have a certificate issued
            end
        end
    end
  • b

    Baron Roberts

    08/24/2022, 7:41 PM
    Understood but what I do not understand is why the module owner does not at least add a comment to the open issue asking for OS support to just say what you said.
  • b

    Baron Roberts

    08/24/2022, 7:43 PM
    I have crickets for https://github.com/ghoneycutt/puppet-module-ssh/issues/380
  • b

    Baron Roberts

    08/24/2022, 7:43 PM
    In fact I have crickets for https://github.com/puppetlabs/pdk/issues/1182
  • b

    Baron Roberts

    08/24/2022, 7:49 PM
    @ghoneycutt Are you still supporting puppet-module-ssh? If so, can you merge the PR to support Ubuntu 22.04 (https://github.com/ghoneycutt/puppet-module-ssh/issues/380).
  • b

    Baron Roberts

    08/24/2022, 7:49 PM
    @ghoneycutt Are you still supporting puppet-module-ssh? If so, can you merge the PR to support Ubuntu 22.04 (https://github.com/ghoneycutt/puppet-module-ssh/issues/380).
  • b

    bastelfreak

    08/24/2022, 7:51 PM
    I usually recommend and use https://forge.puppet.com/modules/saz/ssh, I think it already works on ubuntu 22.04 (while not being listed in the metadata.json yet)
    💯 1
  • b

    Baron Roberts

    08/24/2022, 7:52 PM
    Thanks for the pointer @bastelfreak. Was put off by it missing in metadata.json but will try it now.
  • v

    vchepkov

    08/24/2022, 8:04 PM
    speaking of ssh, no
    puppet/augeasproviders_ssh
    yet?
  • b

    bastelfreak

    08/24/2022, 8:06 PM
    thats blocked by https://github.com/voxpupuli/puppet-augeasproviders_ssh/pull/71
  • b

    bastelfreak

    08/24/2022, 8:06 PM
    thats blocked by https://github.com/voxpupuli/puppet-augeasproviders_ssh/pull/71
  • b

    bastelfreak

    08/24/2022, 8:07 PM
    and I am really bad at rspec/mocha. so if someone wants to help out, feel free :)
  • v

    vchepkov

    08/24/2022, 8:08 PM
    I am useless with tests. wow 48 changed files to change the owner 🤯
  • v

    vchepkov

    08/24/2022, 8:08 PM
    I am useless with tests. wow 48 changed files to change the owner 🤯
  • h

    hbui

    08/24/2022, 8:24 PM
    unit tests on types/providers are beyond me
  • a

    Allahshukur Ahmadzada

    08/25/2022, 4:07 AM
    message has been deleted
  • a

    Andy Fry

    08/25/2022, 5:14 AM
    Anyone know which section in the config I should place: number_of_facts_soft_limit top_level_facts_soft_limit
  • k

    kenyon

    08/25/2022, 5:28 AM
    [main]
    would work. reference: https://puppet.com/docs/puppet/7/config_file_main.html#puppet-conf-config-sections
  • s

    Slackbot

    08/25/2022, 7:10 AM
    This message was deleted.
    c
    z
    • 3
    • 2
  • s

    Slackbot

    08/25/2022, 8:07 AM
    This message was deleted.
    t
    n
    • 3
    • 3
  • b

    B S

    08/25/2022, 8:15 AM
    I deployed (along with puppetserver and puppetdb) a puppetboard using the official puppetserver-helmchart. I have never used puppetdb, puppetboard or the official puppetserver-helmchart. If I try to open / on that host, I get a 404 and according to the logs of the puppetboard container, it's from that container: 10.42.0.2 - - [22/Aug/20220947:05 +0000] "GET / HTTP/1.1" 404 232 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:101.0) Gecko/20100101 Firefox/101.0" Do I have to use a prefix or something? Do I maybe need content in my puppetdb first?
  • t

    TomK

    08/25/2022, 9:14 AM
    message has been deleted
  • b

    Brian Schonecker

    08/25/2022, 1:20 PM
    @tvaughan I submitted a very hackish PR: https://github.com/simp/pupmod-simp-incron/pull/56
  • s

    Slackbot

    08/25/2022, 1:47 PM
    This message was deleted.
    t
    a
    • 3
    • 5
  • s

    Slackbot

    08/25/2022, 2:41 PM
    This message was deleted.
    y
    b
    +10
    • 13
    • 36
  • b

    bastelfreak

    08/25/2022, 3:43 PM
    https://github.com/bastelfreak/scripts/blob/master/vimrc
  • c

    cdenneen

    08/25/2022, 5:04 PM
    I need help overriding something
  • c

    cdenneen

    08/25/2022, 5:04 PM
    nodejs::npm (define type)... does an exec to run npm install under the covers
  • c

    cdenneen

    08/25/2022, 5:04 PM
    issue is the exec is taking like 800 seconds but Exec has a default timeout of 300
  • c

    cdenneen

    08/25/2022, 5:05 PM
    I need to override the timeout to be 0 or 900 for this particular install. Is there a way to do this without some sort of global Exec <| |> override?
1...144145146...428Latest