Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

You need to make an array in YAML. Array elements each start with a - on a new line.

Try this as your Hiera data:

apache::mod::expires:
  expires_active: true
  expires_default: 'access plus 5 seconds'
  expires_by_type:
    - 'image/x-icon': 'access plus 2592000 seconds'
    - 'image/jpeg': 'access plus 2592000 seconds'
    - 'image/png': 'access plus 2592000 seconds'
    - 'image/gif': 'access plus 2592000 seconds'
    - 'text/css': 'access plus 604800 seconds'