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

    Steve Handy

    12/28/2022, 10:14 PM
    message has been deleted
  • s

    Steve Handy

    12/28/2022, 10:18 PM
    Good Day Everyone, I am looking for a way to pass an array from a Puppet class into a powershell script. I am thinking through a EPP template. I have this code in a epp file: <%- | Array $e2epackage | -%> $E2ESOFTWARETOCHECK = '<%= $e2epackage %>' This apparently is not working. Can someone assist? Thanks Steve
  • s

    Steve Handy

    12/28/2022, 10:18 PM
    Good Day Everyone, I am looking for a way to pass an array from a Puppet class into a powershell script. I am thinking through a EPP template. I have this code in a epp file: <%- | Array $e2epackage | -%> $E2ESOFTWARETOCHECK = '<%= $e2epackage %>' This apparently is not working. Can someone assist? Thanks Steve
  • s

    Slackbot

    12/29/2022, 11:20 AM
    This message was deleted.
    b
    v
    +3
    • 6
    • 40
  • v

    vchepkov

    12/29/2022, 1:28 PM
    I understand, https://github.com/voxpupuli/puppetboard
  • l

    Lena Schneider

    12/29/2022, 3:01 PM
    for this use-case i can live with the fact being 1 puppet run behind, but even if i couldn't, we currently have less than 200 nodes and the puppetserver should be fine with the extra resubmitting facts load
  • d

    Dr Bunsen Honeydew

    12/29/2022, 9:45 PM
    kermit typing 🧑‍🏫PE Console is about to start up in #CFD8Z9A4T
  • s

    Slackbot

    12/29/2022, 10:41 PM
    This message was deleted.
    y
    h
    • 3
    • 2
  • m

    Michael Phillips

    12/30/2022, 3:29 PM
    This is working, now my problems are the HTTPS and the port
  • m

    Michael Phillips

    12/30/2022, 3:29 PM
    I need to use the server name and have a SSL valid certificate
  • m

    Michael Phillips

    12/30/2022, 3:30 PM
    As you mentioned early now I need to review why I am only able to query from the localhost
  • s

    Slackbot

    12/30/2022, 8:53 PM
    This message was deleted.
    k
    c
    • 3
    • 2
  • c

    Chad Gorshing

    12/30/2022, 8:53 PM
    PuppetDB (https://github.com/puppetlabs/puppetdb) shows a tag/release of 7.12.0 on Dec 2nd (https://github.com/puppetlabs/puppetdb/releases/tag/7.12.0) On Docker Hub, the latest is 7.10.0 on April 4th. I'd like to get puppetdb-7.12.0 as a container image. Is there a process to get this done? Should I look at building 7.12.0 myself? Or maybe it is published somewhere else besides Docker Hub?
  • s

    Slackbot

    01/02/2023, 8:59 PM
    This message was deleted.
    m
    s
    +2
    • 5
    • 4
  • s

    sheikh

    01/02/2023, 8:59 PM
    Hello Community out there, I am new to Puppet. Output of the script:
    Copy code
    ./puppet-agent.sh
    Enter short message why are you disabling agent: for testing
    The entered comment is : for testing
    Enter date(yyyy-mm-dd) till agent will be disabled: 2023-01-03
    Disabling reason is going to set as : root:2023-01-03:for testing
    puppet agent is disabled
    cat /opt/puppetlabs/puppet/cache/state/agent_disabled.lock
    {"disabled_message":"root:2023-01-03:for testing"}[
    The above script working as expected, user needs to enter comment and dateExpiry, if user didn't enter date then dateDefault set which is next day. I would need two improvements or other script which checks, after dateExpiry (after next day) puppet agent enable automatically and other one liner command to set these two variables like comment and DateExpiry while executing script something like bash puppet-agent.sh comment="" DateExpiry="" FYI: Puppet Agent is not running as service. Or any other way or suggestion.
  • m

    Moe

    01/03/2023, 1:15 PM
    I am looking at pdk-templates/object_templates/class.erb on GitHub and wondering how I can tell
    pdk new class
    to add
    params
    . At least that's how I interpret the template. Anyone got any ideas? /edit: Meh I found the issue where they say it got removed https://github.com/puppetlabs/pdk/issues/557
  • m

    Moe

    01/03/2023, 1:15 PM
    I am looking at pdk-templates/object_templates/class.erb on GitHub and wondering how I can tell
    pdk new class
    to add
    params
    . At least that's how I interpret the template. Anyone got any ideas?
  • m

    Moe

    01/03/2023, 2:07 PM
    I am looking at pdk-templates/object_templates/class.erb on GitHub and wondering how I can tell
    pdk new class
    to add
    params
    . At least that's how I interpret the template. Anyone got any ideas? /edit: Meh I found the issue where they say it got removed https://github.com/puppetlabs/pdk/issues/557
  • m

    Moe

    01/03/2023, 2:07 PM
    I am looking at pdk-templates/object_templates/class.erb on GitHub and wondering how I can tell
    pdk new class
    to add
    params
    . At least that's how I interpret the template. Anyone got any ideas? /edit: Meh I found the issue where they say it got removed https://github.com/puppetlabs/pdk/issues/557
  • s

    Slackbot

    01/03/2023, 2:41 PM
    This message was deleted.
    w
    m
    +2
    • 5
    • 7
  • s

    sheikh

    01/03/2023, 3:18 PM
    This message was deleted.
  • d

    Dr Bunsen Honeydew

    01/03/2023, 5:45 PM
    ☕ 🧑‍🏫Puppet Core Team is about to start up in #CFD8Z9A4T
  • j

    josh

    01/03/2023, 6:21 PM
    The "Returned to Puppet" message comes from the dsc_base_provider (in puppet-pwsh) https://github.com/puppetlabs/ruby-pwsh/blob/998c9ea16ab21d0bd2d5546ea7ad7b867252d1e3/lib/puppet/provider/dsc_base_provider/dsc_base_provider.rb#L365
  • j

    josh

    01/03/2023, 6:22 PM
    As does https://github.com/puppetlabs/ruby-pwsh/blob/main/lib/puppet/provider/dsc_base_provider/dsc_base_provider.rb#L106
  • j

    josh

    01/03/2023, 6:23 PM
    While "Current State" comes from the resource-api: https://github.com/puppetlabs/puppet-resource_api/blob/ab1a564095e28604eb679fb4dea4a4a7d5a454cd/lib/puppet/resource_api.rb#L279
  • j

    josh

    01/03/2023, 6:26 PM
    yeah, my guess it's the
    canonicalize
    method in the `dsc_base_provider`: https://github.com/puppetlabs/ruby-pwsh/blob/998c9ea16ab21d0bd2d5546ea7ad7b867252d1e3/lib/puppet/provider/dsc_base_provider/dsc_base_provider.rb#L49
  • s

    Slackbot

    01/04/2023, 2:55 PM
    This message was deleted.
    b
    v
    +2
    • 5
    • 15
  • s

    Slackbot

    01/04/2023, 4:14 PM
    This message was deleted.
    b
    b
    • 3
    • 25
  • b

    BAlcorn

    01/04/2023, 4:22 PM
    Hi, all! Hopefully a quick question. I'm creating a custom fact based on a couple things. One of which is :operatingsystemmajrelease and or os.release.major (I have no reason to stick with the legacy fact - just need to know ruby syntax). Here's what I have right now, but it's not setting the authorization fact: gaig_users.rb
    Copy code
    Facter.add(:authorization) do
      confine :osfamily => 'Redhat'
      setcode do
        if ! system("/bin/grep idm /etc/krb5.conf > /dev/null")
          if :operatingsystemrelease =~ /^8.*/ || :operatingsystemrelease =~ /^7.*/
            'gaig_users'
          else
            'gaig_users_9'
          end
        else
          'idm'
        end
      end
    end
    Anyone have any ideas? I've tried a bunch of things this morning, and just can't seem to get it to work
  • j

    Joel Wilson

    01/04/2023, 4:26 PM
    Does someone know definitively if a notify of a class will pass a notify to a Service contained within that class? At one time I was sure the answer was 'No'.
1...258259260...428Latest