Am 07.03.2020 um 19:00 schrieb Becca Robinson:
I just ran through some testing and try putting single quotes around your --mpm_event in Hiera.

host.yaml:
profiles:
  webserver:
    apache:
      server:
        modules:
          enable:
            - headers
            - include
            - mpm_prefork
            - ssl
            -‘--mpm_event'


puppet lookup --node $(hostname -f) --merge deep --knock-out-prefix '--' profiles
---
webserver:
   apache:
     server:
       modules:
         enable:
         - status
         - headers
         - include
         - mpm_prefork
         - ssl

Not for me. But:

        modules:
          enable:
            - headers
            - include
            - --blablabla
            - mpm_prefork
            - ssl

This knocks out the next item, here 'mpm_prefork':

helmut@puppet:~$ sudo puppet lookup --node h2786452 --merge deep --knock-out-prefix '--' profiles.webserver.apache.server.modules
Warning: Undefined variable 'session'; \n   (file & line not available)
---
enable:
- mpm_event
- status
- headers
- include
- ssl
helmut@puppet:~$

        modules:
          enable:
            - headers
            - '--funny'
            - include
            - --blablabla
            - mpm_prefork
            - ssl

helmut@puppet:~$ sudo puppet lookup --node h2786452 --merge deep --knock-out-prefix '--' profiles.webserver.apache.server.modules
Warning: Undefined variable 'session'; \n   (file & line not available)
---
enable:
- mpm_event
- status
- headers
- ssl
helmut@puppet:~$

        modules:
          enable:
            - --'abc'
            - headers
            - '--def'
            - include
            - --geh
            - mpm_prefork
            - --ijk
            - ssl

helmut@puppet:~$ sudo puppet lookup --node h2786452 --merge deep --knock-out-prefix '--' profiles.webserver.apache.server.modules
Warning: Undefined variable 'session'; \n   (file & line not available)
---
enable:
- mpm_event
- status
helmut@puppet:~$

--
You received this message because you are subscribed to the Google Groups "Puppet 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/2a4a50cd-a883-a8a3-5808-6f6fbc56ccda%40gmx.de.

Reply via email to