comparison manifests/templates.pp @ 410:575764c36e16

Setup CSP Nonce on the server
author IBBoard <dev@ibboard.co.uk>
date Sat, 08 Oct 2022 12:08:50 +0100
parents 621e78abf82c
children 83f2e944a43f
comparison
equal deleted inserted replaced
409:621e78abf82c 410:575764c36e16
577 file { "/etc/localtime": 577 file { "/etc/localtime":
578 ensure => 'link', 578 ensure => 'link',
579 target => '/usr/share/zoneinfo/Europe/London', 579 target => '/usr/share/zoneinfo/Europe/London',
580 } 580 }
581 581
582 package { 'mod_cspnonce':
583 ensure => "installed",
584 }
585
582 # Common modules used by multiple sites (mod_auth_basic is safe because we HTTPS all the things) 586 # Common modules used by multiple sites (mod_auth_basic is safe because we HTTPS all the things)
583 $mods = [ 587 $mods = [
584 'auth_basic', 588 'auth_basic',
585 'authn_core', 589 'authn_core',
586 'authn_file', 590 'authn_file',
587 'authz_user', 591 'authz_user',
588 'deflate', 592 'deflate',
589 'xsendfile' 593 'xsendfile',
594 'cspnonce'
590 ] 595 ]
591 apache::mod { 596 apache::mod {
592 $mods:; 597 $mods:;
593 } 598 }
594 599