def task_install(self): """ Install t-web, a Twisted Web based server. """ # Bootstrap a new service environment self.bootstrap() # Add to www-data group. Mailman depends on this. sudo('/usr/sbin/usermod -a -g www-data -G t-web {}'.format(self.serviceUser)) # Setup authbind authbind.allow(self.serviceUser, 80) authbind.allow(self.serviceUser, 443) # Install httpd equiv, so apt doesn't try to install apache ever equivs.installEquiv(self.serviceName, 'httpd') with settings(user=self.serviceUser): run('/bin/ln -nsf {}/start {}/start'.format(self.configDir, self.binDir)) run('/bin/ln -nsf {}/start-maintenance {}/start-maintenance'.format(self.configDir, self.binDir)) self.update() cron.install(self.serviceUser, '{}/crontab'.format(self.configDir)) run('/bin/mkdir -p ~/data') if env.get('installPrivateData'): self.task_installSSLKeys() run('/usr/bin/touch {}/production'.format(self.configDir)) else: run('/bin/rm -f {}/production'.format(self.configDir))
def task_install(self): """ Install t-names, a Twisted Names based DNS server. """ # Bootstrap a new service environment self.bootstrap() # Setup authbind authbind.allow(self.serviceUser, 53) with settings(user=self.serviceUser): run('/bin/ln -nsf {}/start {}/start'.format(self.configDir, self.binDir)) execute(self.update) cron.install(self.serviceUser, '{}/crontab'.format(self.configDir))
def task_install(self): """ Install t-names, a Twisted Names based DNS server. """ # Bootstrap a new service environment self.bootstrap() # Setup authbind authbind.allow(self.serviceUser, 53) with settings(user=self.serviceUser): run('/bin/ln -nsf {}/start {}/start'.format( self.configDir, self.binDir)) execute(self.update) cron.install(self.serviceUser, '{}/crontab'.format(self.configDir))
def task_install(self): """ Install t-names, a Twisted Names based DNS server. """ # Bootstrap a new service environment self.bootstrap() # Setup authbind # Fix authbid, for now I just went with the generic setcap. authbind.allow(self.serviceUser, 53) #sudo('setcap cap_net_bind_service=+ep /srv/t-names/virtualenv/bin/pypy') with settings(user=self.serviceUser): run('/bin/ln -nsf {}/start {}/start'.format( self.configDir, self.binDir)) execute(self.update) cron.install(self.serviceUser, '{}/crontab'.format(self.configDir))
def task_install(self): """ Install buildbot. """ self.bootstrap() # Setup authbind to be used by HTTP to HTTPS redirection and by # the HTTPS proxy. authbind.allow(self.serviceUser, 80) authbind.allow(self.serviceUser, 443) with settings(user=self.serviceUser): self.update(_installDeps=True) run('/bin/ln -nsf {}/start {}/start'.format(self.configDir, self.binDir)) run('/bin/mkdir -p ~/data') run('/bin/mkdir -p ~/data/build_products') run('/bin/ln -nsf ~/data/build_products {}/public_html/builds'.format(self.configDir)) cron.install(self.serviceUser, '{}/crontab'.format(self.configDir))
def task_install(self): """ Install buildbot. """ self.bootstrap() # Setup authbind to be used by HTTP to HTTPS redirection and by # the HTTPS proxy. authbind.allow(self.serviceUser, 80) authbind.allow(self.serviceUser, 443) with settings(user=self.serviceUser): self.update(_installDeps=True) run('/bin/ln -nsf {}/start {}/start'.format( self.configDir, self.binDir)) run('/bin/mkdir -p ~/data') run('/bin/mkdir -p ~/data/build_products') run('/bin/ln -nsf ~/data/build_products {}/public_html/builds'. format(self.configDir)) cron.install(self.serviceUser, '{}/crontab'.format(self.configDir))