Skip to content

Commit

Permalink
ability to add include statements for static config files fro ghosts
Browse files Browse the repository at this point in the history
  • Loading branch information
Arne Hingst authored and Arne Hingst committed May 13, 2013
1 parent 3c0c836 commit 921d7f7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions manifests/resource/vhost.pp
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
# duplicate content (SEO);
# [*try_files*] - Specifies the locations for files to be checked as an array. Cannot be used in conjuction with $proxy.
# [*rewrite_to_https*] - Adds a server directive and rewrite rule to rewrite to ssl
# [*include_files*] - Adds include files to vhost
#
# Actions:
#
Expand Down Expand Up @@ -77,6 +78,7 @@
group => 'root',
mode => '0644',
}
$include_files = undef,

# Add IPv6 Logic Check - Nginx service will not start if ipv6 is enabled
# and support does not exist for it in the kernel.
Expand Down
3 changes: 3 additions & 0 deletions templates/vhost/vhost_footer.erb
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
<% if @include_files %><% @include_files.each do |file| -%>
include <%= file %>;
<% end -%><% end -%>
}

<% if rewrite_www_to_non_www %>
Expand Down

0 comments on commit 921d7f7

Please sign in to comment.