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

    Joel Wilson

    10/20/2022, 8:57 PM
    I like that roles could be reduced to chunks of YAML. Seems pretty clean.
  • v

    vchepkov

    10/20/2022, 8:59 PM
    matter of preference, one can argue that role class with bunch of includes is just as good
  • b

    bastelfreak

    10/20/2022, 9:00 PM
    having the role as puppet code enables people to declare resources in it (which I dont want)
    😁 1
  • h

    helindbe

    10/20/2022, 9:01 PM
    @vchepkov you can also do like below - if someone (like me) likes to read from left to right
    Copy code
    lookup('classes', Array[String], 'unique', []).contain
    šŸ‘ 2
  • k

    kenyon

    10/20/2022, 9:02 PM
    it’s occasionally been very useful to provide class parameters to profiles in roles… really only because we don’t have a role level in hiera (yet)
  • j

    Joel Wilson

    10/20/2022, 9:02 PM
    I think you can still do that in the hiera, like I was showing with telegraf.
  • j

    Joel Wilson

    10/20/2022, 9:03 PM
    Haven’t quite figured that part out yet, though.
  • j

    Joel Wilson

    10/20/2022, 9:03 PM
    I just saw it in the telegraf module’s readme and frankly @bastelfreak’s example reminds me of what our bare-bones ENC is doing.
  • b

    bastelfreak

    10/20/2022, 9:04 PM
    there is a possibility that your ENC has some code I wrote :D
  • s

    Slackbot

    10/20/2022, 9:05 PM
    This message was deleted.
    j
    c
    • 3
    • 4
  • w

    William Myers

    10/20/2022, 9:15 PM
    For Hiera, which is correct?
    Copy code
    apache:
     mpm_module: false
     mod::ssl:
       ssl_protocol:  ['all','-SSLv3','-TLSv1','-TLSv1.1']
    
    
    OR
    
    apache:
     mpm_module: false
    apache::mod::ssl:
      ssl_protocol:  ['all','-SSLv3','-TLSv1','-TLSv1.1']
  • v

    vchepkov

    10/20/2022, 9:16 PM
    neither
  • v

    vchepkov

    10/20/2022, 9:17 PM
    Copy code
    apache::mod::ssl::ssl_protocol: ['all','-SSLv3','-TLSv1','-TLSv1.1']
  • v

    vchepkov

    10/20/2022, 9:19 PM
    neither
  • j

    Joel Wilson

    10/20/2022, 9:29 PM
    They say that about the profiles within them, too, but I have a harder time agreeing with that
  • w

    William Myers

    10/20/2022, 9:33 PM
    so this is not syntactically correct?
    Copy code
    apache:
     mpm_module: false
     purge_configs: false
     default_vhost: false
     default_mods: false
     purge_vhost_dir: true
     log_level: 'info'
     mservername: $fqdn
     trace_enable: 'Off'
     server_tokens: 'ProductOnly'
     server_signature: 'Off',
     root_directory_options: ['None']
     root_directory_secured: true
     mlimitreqfields: '100'
     limitreqfieldsize: '1024'
     
     apache::mod::ssl:
      ssl_protocol: ['all','-SSLv3','-TLSv1','-TLSv1.1']
      ssl_cipher: 'HIGH:!aNULL:!NULL:!MD5:!IDEA:!DES:!3DES:!RC4'
      ssl_honorcipherorder: true
      ssl_compression: false
  • w

    William Myers

    10/20/2022, 9:33 PM
    so this is not syntactically correct?
    Copy code
    apache:
     mpm_module: false
     purge_configs: false
     default_vhost: false
     default_mods: false
     purge_vhost_dir: true
     log_level: 'info'
     mservername: $fqdn
     trace_enable: 'Off'
     server_tokens: 'ProductOnly'
     server_signature: 'Off',
     root_directory_options: ['None']
     root_directory_secured: true
     mlimitreqfields: '100'
     limitreqfieldsize: '1024'
     
     apache::mod::ssl:
      ssl_protocol: ['all','-SSLv3','-TLSv1','-TLSv1.1']
      ssl_cipher: 'HIGH:!aNULL:!NULL:!MD5:!IDEA:!DES:!3DES:!RC4'
      ssl_honorcipherorder: true
      ssl_compression: false
  • k

    kenyon

    10/20/2022, 9:49 PM
    it's valid YAML, but it won't do anything in puppet
  • w

    William Myers

    10/20/2022, 9:50 PM
    Does each entry need to be fully qualified then?
  • k

    kenyon

    10/20/2022, 9:51 PM
    for automatic parameter lookup, yes. https://puppet.com/docs/puppet/7/hiera_automatic.html
  • w

    William Myers

    10/20/2022, 9:51 PM
    This had worked during some of my tests which I'm guessing is a fluke?
    Copy code
    ---
    
    ### ssh configuration overrides
    # allow more sessions as well as TCP forwarding to accomodate VSCODE
    ssh::server_options:
      AllowTcpForwarding: 'yes'
      MaxSessions: '10'
  • d

    Dr Bunsen Honeydew

    10/20/2022, 9:51 PM
    ```- took a dive. (Karma: -80)
  • w

    William Myers

    10/20/2022, 9:52 PM
    This had worked during some of my tests which I'm guessing is a fluke?
    Copy code
    ---
    
    ### ssh configuration overrides
    # allow more sessions as well as TCP forwarding to accomodate VSCODE
    ssh::server_options:
      AllowTcpForwarding: 'yes'
      MaxSessions: '10'
  • k

    kenyon

    10/20/2022, 9:52 PM
    no, that's still fully qualified
  • w

    William Myers

    10/20/2022, 9:53 PM
    what's the difference between
    Copy code
    apache::mod::ssl:
      ssl_protocol: ['all','-SSLv3','-TLSv1','-TLSv1.1']
      ssl_cipher: 'HIGH:!aNULL:!NULL:!MD5:!IDEA:!DES:!3DES:!RC4'
    and
    Copy code
    ssh::server_options:
      AllowTcpForwarding: 'yes'
  • w

    William Myers

    10/20/2022, 9:53 PM
    what's the difference between
    Copy code
    apache::mod::ssl:
      ssl_protocol: ['all','-SSLv3','-TLSv1','-TLSv1.1']
      ssl_cipher: 'HIGH:!aNULL:!NULL:!MD5:!IDEA:!DES:!3DES:!RC4'
    and
    Copy code
    ssh::server_options:
      AllowTcpForwarding: 'yes'
  • k

    kenyon

    10/20/2022, 9:55 PM
    the apache one is meaningless, there is no "mod" manifest that takes an "ssl" parameter. https://github.com/puppetlabs/puppetlabs-apache/tree/main/manifests/mod
  • k

    kenyon

    10/20/2022, 9:56 PM
    actually there is a mod class, but it doesn't take ssl. https://github.com/puppetlabs/puppetlabs-apache/blob/main/manifests/mod.pp
  • k

    kenyon

    10/20/2022, 9:56 PM
    actually there is a mod class, but it doesn't take ssl. https://github.com/puppetlabs/puppetlabs-apache/blob/main/manifests/mod.pp
  • k

    kenyon

    10/20/2022, 9:56 PM
    aaaand it's a defined type, not a class.
1...208209210...428Latest