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

    Slackbot

    04/28/2022, 9:56 AM
    This message was deleted.
    t
    d
    • 3
    • 2
  • s

    Samy

    04/28/2022, 9:56 AM
    Hello Everyone, I want to make changes to the
    /_etc/ssh/sshd_config_
    file, with below lines: • AllowTcpForwarding yes • MaxStartups 100 And, it requires for only 2 servers
  • s

    Samy

    04/28/2022, 9:57 AM
    Hello Everyone, I want to make changes to the
    /_etc/ssh/sshd_config_
    file, with below lines: • AllowTcpForwarding yes • MaxStartups 100 And, it requires for only 3 puppet agent systems
  • s

    Slackbot

    04/28/2022, 12:11 PM
    This message was deleted.
    s
    h
    • 3
    • 6
  • d

    Dr Bunsen Honeydew

    04/28/2022, 12:11 PM
    See the
    herculesteam-augeasproviders_ssh
    module at https://forge.puppet.com/herculesteam/augeasproviders_ssh?src=slack&channel=puppet
  • s

    Slackbot

    04/28/2022, 3:40 PM
    This message was deleted.
    j
    c
    • 3
    • 7
  • n

    nwops

    04/28/2022, 3:55 PM
    When using eyaml can I just combine eyaml and yaml paths together into a single layer? Does this have a performance impact since it would be using eyaml as the lookup method even though only a few keys are encrypted?
  • n

    natemccurdy

    04/28/2022, 4:00 PM
    Yes, you can just use the
    eyaml
    backend and mix both yaml and eyaml in a single layer. That’s what I prefer to do, because it simplifies things (IMO).
  • n

    natemccurdy

    04/28/2022, 4:00 PM
    If there is a performance impact, I haven’t ever noticed it.
  • n

    natemccurdy

    04/28/2022, 4:00 PM
    If there is a performance impact, I haven’t ever noticed it.
  • h

    helindbe

    04/28/2022, 4:36 PM
    Marginally (insignificantly) slower I would expect
  • r

    Robert Emanuele

    04/28/2022, 4:59 PM
    Why does the former work and not the latter?
    Copy code
    # Silly, poor use
      class { "puppet": * => lookup('puppet') }
      class { "foreman": * => lookup('foreman') }
    
      # proper...
      include puppet
      include foreman
  • n

    natemccurdy

    04/28/2022, 5:00 PM
    Can you clarify what you mean by work? Those are two completely different things.
  • v

    vchepkov

    04/28/2022, 5:01 PM
    the former literally search for one key only
  • v

    vchepkov

    04/28/2022, 5:01 PM
    not puppet::argument
  • v

    vchepkov

    04/28/2022, 5:01 PM
    not puppet::argument
  • r

    Robert Emanuele

    04/28/2022, 5:01 PM
    Sure. By work, I mean
  • r

    Robert Emanuele

    04/28/2022, 5:02 PM
    @vchepkov oh, that’s probably it.
  • n

    natemccurdy

    04/28/2022, 5:03 PM
    Automatic parameter works by prefixing the key names in hiera with the class name. Not by puttting the class parameters in a key named after the class. e.g. You want your Hiera data to look like this:
    Copy code
    puppet::param_1: "foo"
    puppet::param_2: "bar"
    forman::param_1: "hi"
    forman::param_2: "earth"
    Not like this:
    Copy code
    puppet:
      param_1: "foo"
      param_2: "bar"
  • r

    Robert Emanuele

    04/28/2022, 5:04 PM
    @natemccurdy yessir. 🤦‍♂️
  • r

    Robert Emanuele

    04/28/2022, 5:05 PM
    I used my foreman-answers.yaml as a starting point and it doesn’t have the prefixing.
  • r

    Robert Emanuele

    04/28/2022, 5:05 PM
    Thanks @natemccurdy and @vchepkov
    👍 2
  • j

    Jonathon Anderson

    04/28/2022, 5:29 PM
    having a strange issue... I have created a script to generate self signed certs with OpenSSL. Using
    puppet agent -t --debug
    I can see that the powershell command being called is
    powershell -ExecutionPolicy ByPass -File C:\Installs\SelfSignedCertScript\Create-SelfSignedCert.ps1 -OutputPath "C:\Program Files\SonarQube\Certificates" -Domain "sonarqube.company.local"
    When I run that command in a
    cmd
    shell, I get the certificates that I expect. When it runs in Puppet, the certificates are not created. Attached is the output I'm getting from the
    cmd
    window. I don't see any obvious reason why the script would fail to create the certificate when run by puppet
  • j

    Jonathon Anderson

    04/28/2022, 5:31 PM
    the first lines are creation of the private key, which never materializes in the output folder when run by puppet. The "signature ok" line is the command to generate the CSR, and the the subject line is the command to create the cert from the key and CSR
  • d

    Dr Bunsen Honeydew

    04/28/2022, 5:45 PM
    meeting 🧑‍🏫Puppet Forge is about to start up in #CFD8Z9A4T
  • j

    Jonathon Anderson

    04/28/2022, 5:45 PM
    I figured out how to suppress all output, and my certificates are still not being created
  • n

    natemccurdy

    04/28/2022, 5:46 PM
    What does your Puppet code look like that’s running that script?
  • n

    natemccurdy

    04/28/2022, 5:48 PM
    (note that Puppet running an
    exec
    is usually very different in context than you running the script by hand. It’ll running as an administrator, for one thing, not your user.)
  • s

    Slackbot

    04/28/2022, 5:49 PM
    This message was deleted.
    n
    j
    • 3
    • 13
  • j

    Jonathon Anderson

    04/28/2022, 5:49 PM
    (not enough screen real estate on my laptop)
1...101112...428Latest