Commits

Christian Theune  committed d29cfb9

Start a platform-specific nginx component.

  • Participants
  • Parent commits b18c686

Comments (0)

Files changed (1)

File components/nginx/component.py

-from batou.component import Component
+from batou.component import Component, platform
 from batou.lib.file import File
 from batou.utils import Address
 
         self.address = Address(self.server_name, 80)
         self.haproxy = self.require('haproxy')[0]
         self += File('sprintsite.conf', is_template=True)
+
+
+@platform('gocept.net', Nginx):
+class SystemwideNginx(Component):
+
+    def configure(self):
+        # copy all .conf files in workingdir to /etc/nginx/local
+        # trigger sudo /etc/init.d/nginx reload
+        pass