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

    bastelfreak

    02/22/2023, 4:32 PM
    benefit of all this is to have less files/simpler logic and the ability to autogenerate documentation, for example as markdown: https://github.com/voxpupuli/puppet-dbbackup/blob/master/REFERENCE.md
  • i

    Ian CB

    02/22/2023, 4:32 PM
    on a puppet server (the one thats serving the host, as I’ve disabled the other puppetserver to allow me to ‘fiddle’ with the code / hieradata) puppet lookup --node=<fqdn> --environment=<puppet-env> --facts /tmp/facts.yaml grafana::manage_package_repo The /tmp/facts.yaml just sets the role for the host. I’ve tried setting the hieradata in host/<fqdn>.yaml, role/<role-name>.yaml and in grafana/data/common.yaml - in each case the lookup returns false (and with --explain reports the file I’d expect it to find the key within)
  • m

    Martyn Smith

    02/22/2023, 4:42 PM
    message has been deleted
  • m

    Martyn Smith

    02/22/2023, 4:43 PM
    message has been deleted
  • s

    Slackbot

    02/22/2023, 4:46 PM
    This message was deleted.
    b
    y
    +2
    • 5
    • 14
  • m

    Martyn Smith

    02/22/2023, 4:48 PM
    Hi All I'm looking for a way to encrypt secrets that are needed for a hiera plugin to be used. So if I'm using hiera_aws_sm then the aws_access_key and aws_secret_key is in clear.
    Copy code
    - name: "environment secrets in secretsmanager"
        lookup_key: hiera_aws_sm
        options:
          continue_if_not_found: true
          aws_access_key: <redacted>
          aws_secret_key: <redacted>
          assume_role: true
          rolename_to_assume: AutomationAdminExecutionRole
          key_replacement_token: '-'
          confine_to_keys:
            - 'aws_sm[a-zA-z0-9-/_+=.@!:]*'
            - '[a-zA-z0-9-/_+=.@!:]*pass[a-zA-z0-9-/_+=.@!:]*'
            - '[a-zA-z0-9-/_+=.@!:]*user[a-zA-z0-9-/_+=.@!:]*'
            - '[a-zA-z0-9-/_+=.@!:]*cert[a-zA-z0-9-/_+=.@!:]*'
            - '[a-zA-z0-9-/_+=.@!:]*key[a-zA-z0-9-/_+=.@!:]*'
          accountid_to_assume: "%{facts.ec2_tags.accountid}"
          region: "%{facts.ec2_metadata.placement.region}"
    Is there any way to encrypt those with hiera_eyaml even though they are config for a different plugin? Thanks Martyn
  • s

    Slackbot

    02/22/2023, 5:53 PM
    This message was deleted.
    n
    c
    l
    • 4
    • 6
  • n

    natemccurdy

    02/22/2023, 6:40 PM
    When using the
    file()
    function, your
    file
    resource should use the
    content
    parameter, not the
    source
    parameter. e.g.
    Copy code
    file { 'C:/ssh_test/gitlab':
        ensure  => file,
        content => file('/var/tmp/gitlab'),
      }
  • s

    Slackbot

    02/23/2023, 5:54 AM
    This message was deleted.
    z
    o
    +4
    • 7
    • 16
  • y

    Yury Bushmelev

    02/23/2023, 6:36 AM
    https://github.com/sonatype-nexus-community/nexus-repository-puppet this one I guess
  • y

    Yury Bushmelev

    02/23/2023, 6:39 AM
    Just found https://github.com/kindredgroup/puppet-forge-server while googling.. though issues there doesn’t seems good..
  • b

    bastelfreak

    02/23/2023, 7:06 AM
    @Yury Bushmelev a few of my customers use it. also check out https://github.com/kindredgroup/puppet-forge-server/issues/86 :)
  • o

    Owen Beckles

    02/23/2023, 8:59 AM
    Hey everyone, we are aware of the current Forge outage. This is something we are actively investigating, and will post updates in this thread as they come in. We are sorry for any inconvenience and we’re actively working to make sure outages don’t keep occurring in the future!
    👍 4
  • s

    Slackbot

    02/23/2023, 9:55 AM
    This message was deleted.
    k
    y
    • 3
    • 5
  • c

    Craig Gumbley

    02/23/2023, 10:44 AM
    Hey all - The Forge is coming back up now 🎉
    👍 3
    🎉 5
  • c

    Chughesvf

    02/23/2023, 3:14 PM
    Hey folks! Wondering if there is any way to configure puppet agent in MSFT systems to use the windows certificate store vs. cert files on disk? If so could you point me towards a doc, I have come up dry.
  • s

    Slackbot

    02/23/2023, 4:29 PM
    This message was deleted.
    y
    l
    +2
    • 5
    • 22
  • l

    Les Shiner

    02/23/2023, 4:29 PM
    i can't seem to find the right words for google
  • y

    Yury Bushmelev

    02/23/2023, 4:39 PM
    I’d recommend to limit list of users to contain just those users you really need.. large factsets are hard for PuppetDB
  • i

    Ian CB

    02/23/2023, 4:41 PM
    Been working through setting up some sensitive data in hiera …. and came across something I wasnt really expecting .. it sort of makes sense though in hiera-file.yaml lookups_options: XXX: convert_to: “Sensitive” XXX: ENC[value] YYY: “%{lookup(‘XXX’)}” When YYY is used its value is “Value [Redacted]” - rather than a decrypted version of XXX as I’d originally expected - clearly you need to be careful about the order that variables are listed. I guess it also means that you need a third value ZZZ if you want to make XXX and YYY sensitive and don’t want to duplicate the ENC string …
  • r

    ramindk

    02/23/2023, 4:43 PM
    this assumes it's the same file for all users
  • y

    Yury Bushmelev

    02/23/2023, 4:46 PM
    Use
    alias
    instead of
    lookup
    this 1
  • s

    Slackbot

    02/23/2023, 4:57 PM
    This message was deleted.
    ❤️ 2
    i
    n
    d
    • 4
    • 3
  • n

    natemccurdy

    02/23/2023, 4:57 PM
    lookup()
    (the Hiera interpolation function) converts everything to a String.
    alias()
    (the Hiera interpolation function) looks up and retains the data type of the thing that was looked up.
  • s

    Slackbot

    02/23/2023, 5:25 PM
    This message was deleted.
    y
    b
    • 3
    • 3
  • r

    ramnad

    02/23/2023, 6:11 PM
    message has been deleted
  • s

    Slackbot

    02/23/2023, 6:14 PM
    This message was deleted.
    n
    r
    • 3
    • 2
  • d

    Dr Bunsen Honeydew

    02/23/2023, 6:45 PM
    meeting 🧑‍🏫Puppet Forge is about to start up in #CFD8Z9A4T
  • s

    Slackbot

    02/23/2023, 9:03 PM
    This message was deleted.
    🎊 1
    🍻 1
    n
    • 2
    • 1
  • b

    Brian Schonecker

    02/23/2023, 9:04 PM
    Issue #4: "Resolve "Figure out how to cast the lookup() function to an integer for the puppetboard Stdlib::Port listen variable"
1...311312313...428Latest