Andrew Bogott has submitted this change and it was merged.

Change subject: dynamicproxy: Ensure that default site config is always enabled
......................................................................


dynamicproxy: Ensure that default site config is always enabled

It worked so far only because nginx package makes the symlink
by default.

Change-Id: Idfe67b7413ad57e3224abb7a53cd79fe87c893cd
---
M modules/dynamicproxy/manifests/init.pp
1 file changed, 6 insertions(+), 0 deletions(-)

Approvals:
  Andrew Bogott: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/modules/dynamicproxy/manifests/init.pp 
b/modules/dynamicproxy/manifests/init.pp
index 0ec8b6e..f8c2351 100644
--- a/modules/dynamicproxy/manifests/init.pp
+++ b/modules/dynamicproxy/manifests/init.pp
@@ -29,6 +29,12 @@
         notify  => Service['nginx']
     }
 
+    file { '/etc/nginx/sites-enabled/default':
+        ensure => 'link',
+        target => '/etc/nginx/sites-available/default',
+        require => File['/etc/nginx/sites-available/default']
+    }
+
     file { '/etc/nginx/lua':
         ensure  => 'directory',
         require => Package['nginx-extras']

-- 
To view, visit https://gerrit.wikimedia.org/r/97713
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: Idfe67b7413ad57e3224abb7a53cd79fe87c893cd
Gerrit-PatchSet: 3
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: Yuvipanda <[email protected]>
Gerrit-Reviewer: Andrew Bogott <[email protected]>
Gerrit-Reviewer: jenkins-bot

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to