diff --git a/puppet/modules/web/manifests/init.pp b/puppet/modules/web/manifests/init.pp index 321e075de..c82817009 100644 --- a/puppet/modules/web/manifests/init.pp +++ b/puppet/modules/web/manifests/init.pp @@ -33,6 +33,7 @@ 'stagingdeb.theforeman.org', 'www.theforeman.org', 'yum.theforeman.org', + 'docs.theforeman.org', ], webroot_paths => [ '/var/www/vhosts/web/htdocs', @@ -42,6 +43,7 @@ '/var/www/vhosts/stagingdeb/htdocs', '/var/www/vhosts/web/htdocs', '/var/www/vhosts/yum/htdocs', + '/var/www/vhosts/docs/htdocs', ], } @@ -129,6 +131,24 @@ max_connections => $max_rsync_connections, } + # DOCS + $docs_directory = '/var/www/vhosts/docs/htdocs' + $docs_directory_config = [ + { + path => $docs_directory, + options => ['Indexes', 'FollowSymLinks', 'MultiViews'], + expires_active => 'on', + expires_default => 'access plus 4 hours', + }, + ] + + $docs_attrs = { + servername => 'docs.theforeman.org', + docroot => $docs_directory, + docroot_mode => '2575', + directories => $docs_directory_config, + } + if $::osfamily == 'RedHat' { package { 'createrepo': ensure => present, @@ -226,6 +246,7 @@ 'downloads' => $downloads_attrs, 'web' => $web_attrs, 'yum' => $yum_attrs, + 'docs' => $docs_attrs, }, { 'port' => '80', @@ -240,6 +261,7 @@ 'downloads-https' => $downloads_attrs, 'web-https' => $web_attrs, 'yum-https' => $yum_attrs, + 'docs-https' => $docs_attrs, }, { 'port' => '443',