]> git.immae.eu Git - perso/Immae/Projets/Puppet.git/blobdiff - modules/profile/manifests/apache.pp
Add http2 module
[perso/Immae/Projets/Puppet.git] / modules / profile / manifests / apache.pp
index 382633bb3f8c60d802356b43ce973d019066db91..3c25e2b6e2a996b700e82bbab79bbd0c08f07393 100644 (file)
@@ -4,6 +4,8 @@ class profile::apache {
     root_directory_options => ["All"],
     default_mods           => false,
     default_vhost          => false,
+    user                   => "http",
+    group                  => "http",
     log_formats            => {
       combined => '%v %h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %p',
       common   => '%h %l %u %t \"%r\" %>s %b',
@@ -20,6 +22,11 @@ class profile::apache {
     filename => 'protocols.conf'
   }
 
+  ::apache::custom_config { 'protocols.load':
+    content  => 'LoadModule http2_module /etc/httpd/modules/mod_http2.so',
+    filename => 'protocols.load'
+  }
+
   ::apache::custom_config { 'document_root.conf':
     source   => "puppet:///modules/profile/apache/document_root.conf",
     filename => "document_root.conf"