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

    bastelfreak

    04/14/2023, 8:29 AM
    Copy code
    exec { 'before_user':
      command => 'test 1 = 2',
    }
    $alluser.each |$user| {
      exec { "test_${user}":
        command     => "test",
        refreshonly => true,
        subscribe   => Exec['before_user'],
      }
    }
  • b

    bastelfreak

    04/14/2023, 8:49 AM
    Copy code
    $alluser.each |$user| {
      exec { "test_${user}":
        command     => "test",
        notify          => Exec['after_user'],
      }
    }
    exec { 'after_user':
      command => 'test 1 = 2',
    }
  • b

    bastelfreak

    04/14/2023, 8:49 AM
    Copy code
    $alluser.each |$user| {
      exec { "test_${user}":
        command     => "test",
        notify      => Exec['after_user'],
      }
    }
    exec { 'after_user':
      command => 'test 1 = 2',
    }
  • s

    Slackbot

    04/14/2023, 1:13 PM
    This message was deleted.
    w
    b
    • 3
    • 4
  • y

    Yorokobi

    04/14/2023, 1:17 PM
    Switching to ALIAS instead of CNAME might help that as it requires fewer requests ...
  • b

    bastelfreak

    04/14/2023, 1:22 PM
    oh it actually is an ALIAS I think
  • b

    bastelfreak

    04/14/2023, 1:22 PM
    Copy code
    $ host <http://forgeapi.puppet.com|forgeapi.puppet.com>
    <http://forgeapi.puppet.com|forgeapi.puppet.com> is an alias for <http://d3e1bbc2322vk3.cloudfront.net|d3e1bbc2322vk3.cloudfront.net>.
    <http://d3e1bbc2322vk3.cloudfront.net|d3e1bbc2322vk3.cloudfront.net> has address 18.154.63.32
    <http://d3e1bbc2322vk3.cloudfront.net|d3e1bbc2322vk3.cloudfront.net> has address 18.154.63.9
    <http://d3e1bbc2322vk3.cloudfront.net|d3e1bbc2322vk3.cloudfront.net> has address 18.154.63.87
    <http://d3e1bbc2322vk3.cloudfront.net|d3e1bbc2322vk3.cloudfront.net> has address 18.154.63.41
    <http://d3e1bbc2322vk3.cloudfront.net|d3e1bbc2322vk3.cloudfront.net> has IPv6 address 2600:9000:243d:2a00:1b:3556:90c0:93a1
    <http://d3e1bbc2322vk3.cloudfront.net|d3e1bbc2322vk3.cloudfront.net> has IPv6 address 2600:9000:243d:7600:1b:3556:90c0:93a1
    <http://d3e1bbc2322vk3.cloudfront.net|d3e1bbc2322vk3.cloudfront.net> has IPv6 address 2600:9000:243d:7000:1b:3556:90c0:93a1
    <http://d3e1bbc2322vk3.cloudfront.net|d3e1bbc2322vk3.cloudfront.net> has IPv6 address 2600:9000:243d:600:1b:3556:90c0:93a1
    <http://d3e1bbc2322vk3.cloudfront.net|d3e1bbc2322vk3.cloudfront.net> has IPv6 address 2600:9000:243d:c400:1b:3556:90c0:93a1
    <http://d3e1bbc2322vk3.cloudfront.net|d3e1bbc2322vk3.cloudfront.net> has IPv6 address 2600:9000:243d:2400:1b:3556:90c0:93a1
    <http://d3e1bbc2322vk3.cloudfront.net|d3e1bbc2322vk3.cloudfront.net> has IPv6 address 2600:9000:243d:bc00:1b:3556:90c0:93a1
    <http://d3e1bbc2322vk3.cloudfront.net|d3e1bbc2322vk3.cloudfront.net> has IPv6 address 2600:9000:243d:a400:1b:3556:90c0:93a1
  • y

    Yorokobi

    04/14/2023, 1:22 PM
    dig reports a CNAME ... ¯\_(ツ)_/¯
  • b

    bastelfreak

    04/14/2023, 1:23 PM
    🤔
  • v

    vchepkov

    04/14/2023, 1:26 PM
    It is a cname to cloudfront. if it was an alias, it would be multiple A record instead
  • y

    Yorokobi

    04/14/2023, 1:27 PM
    Self fix: install unbound and proxy the requests
    😄 1
  • b

    bastelfreak

    04/14/2023, 1:30 PM
    there is an unbound already
  • b

    bastelfreak

    04/14/2023, 1:30 PM
    fix is to review 10 year old rate limits :D
  • b

    bastelfreak

    04/14/2023, 1:30 PM
    fix is to review 10 year old rate limits :D
  • s

    Slackbot

    04/14/2023, 2:26 PM
    This message was deleted.
    Untitled
    n
    d
    j
    • 4
    • 7
  • s

    Slackbot

    04/14/2023, 4:15 PM
    This message was deleted.
    d
    c
    • 3
    • 2
  • j

    John O'Connor

    04/14/2023, 5:17 PM
    @John O'Connor has left the channel
  • j

    Joel Wilson

    04/14/2023, 5:26 PM
    Found an augeas lens in https://github.com/camptocamp/puppetfile-updater that I'm going to use with a python script in my pipeline
  • m

    Massimiliano (Max)

    04/14/2023, 5:56 PM
    how do I access a custom fact from a ruby function? I added:
    Copy code
    require 'facter'
    Facter.value('blahblah')
    but it doesn't work. I could pass the fact as function parameter, and that's that. But I'd like to get it working. It works with the default facts
  • m

    Massimiliano (Max)

    04/14/2023, 5:56 PM
    how do I access a custom fact from a ruby function? I added:
    Copy code
    require 'facter'
    Facter.value('blahblah')
    but it doesn't work. I could pass the fact as function parameter, and that's that. But I'd like to get it working
  • m

    Massimiliano (Max)

    04/14/2023, 5:57 PM
    how do I access a custom fact from a ruby function? I added:
    Copy code
    require 'facter'
    Facter.value('blahblah')
    but it doesn't work. I could pass the fact as function parameter, and that's that. But I'd like to get it working. It works with the default facts
  • m

    Massimiliano (Max)

    04/14/2023, 6:03 PM
    I try to add Facter.puppet_facts and it throws a different error.
  • m

    Massimiliano (Max)

    04/14/2023, 6:03 PM
    I try to add Facter.puppet_facts and it throws a different error.
  • s

    Slackbot

    04/14/2023, 6:15 PM
    This message was deleted.
    m
    d
    h
    • 4
    • 9
  • h

    helindbe

    04/14/2023, 6:16 PM
    If you were to run facter you would get the facts for the server doing the compilation.
    👍 1
  • s

    Slackbot

    04/14/2023, 6:22 PM
    This message was deleted.
    h
    v
    d
    • 4
    • 5
  • b

    binford2k

    04/14/2023, 6:35 PM
    https://fosstodon.org/@puppet/110198605815370791
    ❤️ 4
  • h

    helindbe

    04/14/2023, 8:52 PM
    https://github.com/puppetlabs/puppet-specifications/blob/master/language/func-api.md
  • z

    ziggy

    04/14/2023, 10:59 PM
    Hey all. I am adding a yaml file to a host and configuring it an an epp like:
    Copy code
    signers:
      user:
        key: |
          <%= $user_ca %>
    The contents of user_ca is a private key; however, when I do this, the outcome is:
    Copy code
    signers:
      user:
        key: |
          -----BEGIN OPENSSH PRIVATE KEY-----
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
    XXXXXXXXXXXXXXXXXXXXXXXX
    -----END OPENSSH PRIVATE KEY-----
    The first line is correct, but the ones at the bottom are not inline with the top. Is there a way to ensure they are all aligned with the top line?
  • z

    ziggy

    04/14/2023, 11:00 PM
    Hey all. I am adding a yaml file to a host and configuring it an an epp like:
    Copy code
    signers:
      user:
        key: |
          <%= $user_ca -%>
    The contents of user_ca is a private key; however, when I do this, the outcome is:
    Copy code
    signers:
      user:
        key: |
          -----BEGIN OPENSSH PRIVATE KEY-----
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
    XXXXXXXXXXXXXXXXXXXXXXXX
    -----END OPENSSH PRIVATE KEY-----
    The first line is correct, but the ones at the bottom are not inline with the top. Is there a way to ensure they are all aligned with the top line?
1...347348349...428Latest