def task_install(self): """ Install trac. """ self.bootstrap(python='system') # FIXME: Make these idempotent. postgres.createUser('trac') postgres.createDb('trac', 'trac') with settings(user=self.serviceUser): pip.install('psycopg2 pygments', python='system') self.update(_installDeps=True) # Note that this has to be after trac is installed, to get the right version pip.install('TracAccountManager==0.4.3', python='system') run('/bin/mkdir -p ~/svn') run('/bin/ln -nsf ~/svn {}/trac-env/svn-repo'.format(self.configDir)) run('/bin/mkdir -p ~/attachments') run('/bin/ln -nsf ~/attachments {}/trac-env/files/attachments'.format( self.configDir)) run('/bin/ln -nsf ~/website/trac-files {}/trac-env/htdocs'.format( self.configDir)) run('/bin/ln -nsf {} {}/trac-env/log'.format(self.logDir, self.configDir)) run('/bin/ln -nsf {}/start {}/start'.format(self.configDir, self.binDir)) cron.install(self.serviceUser, '{}/crontab'.format(self.configDir))
def task_install(self): """ Install trac. """ self.bootstrap(python='system') with settings(user=self.serviceUser): pip.install('psycopg2', python='system') self.update(_installDeps=True) run('/bin/mkdir -p ~/svn') run('/bin/ln -nsf ~/svn {}/trac-env/svn-repo'.format(self.configDir)) run('/bin/mkdir -p ~/attachments') run('/bin/ln -nsf ~/attachments {}/trac-env/files/attachments'.format( self.configDir)) run('/bin/ln -nsf {} {}/trac-env/log'.format(self.logDir, self.configDir)) run('/bin/ln -nsf {}/start {}/start'.format(self.configDir, self.binDir)) cron.install(self.serviceUser, '{}/crontab'.format(self.configDir)) # Create an empty password file if not present. run('/usr/bin/touch config/htpasswd') # FIXME: Make these idempotent. postgres.createUser('trac') postgres.createDb('trac', 'trac')
def task_install(self): """ Install trac. """ self.bootstrap() with settings(user=self.serviceUser): self.update() run('/bin/mkdir -p ~/attachments') run('/bin/ln -nsf ~/attachments {}/trac-env/files/attachments'. format(self.configDir)) run('/bin/ln -nsf {} {}/trac-env/log'.format( self.logDir, self.configDir)) run('/bin/ln -nsf {}/start {}/start'.format( self.configDir, self.binDir)) cron.install(self.serviceUser, '{}/crontab'.format(self.configDir)) # FIXME: Make these idempotent. postgres.createUser('trac') postgres.createDb('trac', 'trac')
def task_install(self): """ Install trac. """ self.bootstrap(python='system') # FIXME: Make these idempotent. postgres.createUser('trac') postgres.createDb('trac', 'trac') with settings(user=self.serviceUser): pip.install('psycopg2 pygments', python='system') self.update(_installDeps=True) # Note that this has to be after trac is installed, to get the right version pip.install('TracAccountManager==0.4.3', python='system') run('/bin/mkdir -p ~/svn') run('/bin/ln -nsf ~/svn {}/trac-env/svn-repo'.format(self.configDir)) run('/bin/mkdir -p ~/attachments') run('/bin/ln -nsf ~/attachments {}/trac-env/attachments'.format( self.configDir)) run('/bin/ln -nsf ~/website/trac-files {}/trac-env/htdocs'.format( self.configDir)) run('/bin/ln -nsf {} {}/trac-env/log'.format(self.logDir, self.configDir)) run('/bin/ln -nsf {}/start {}/start'.format(self.configDir, self.binDir)) cron.install(self.serviceUser, '{}/crontab'.format(self.configDir))
def task_install(self): """ Install amptrac. """ # Bootstrap a new service environment self.bootstrap() postgres.createUser('amptrac') postgres.grantRead('trac', 'amptrac') with settings(user=self.serviceUser): run('/bin/ln -nsf {}/start {}/start'.format(self.configDir, self.binDir)) self.update() cron.install(self.serviceUser, '{}/crontab'.format(self.configDir))
def task_install(self): """ Install trac. """ self.bootstrap() with settings(user=self.serviceUser): self.update() run('/bin/mkdir -p ~/attachments') run('/bin/ln -nsf ~/attachments {}/trac-env/files/attachments'.format( self.configDir)) run('/bin/ln -nsf {} {}/trac-env/log'.format(self.logDir, self.configDir)) run('/bin/ln -nsf {}/start {}/start'.format(self.configDir, self.binDir)) cron.install(self.serviceUser, '{}/crontab'.format(self.configDir)) # FIXME: Make these idempotent. postgres.createUser('trac') postgres.createDb('trac', 'trac') # We don't have a braid rule for highscore, # so I am just hacking this here to have a functional restore. postgres.createUser('highscore') postgres.grantRead('trac', 'highscore') # amptrack has a dedicated braid, but is better to have it here # so that dump and restore don't depend on it. postgres.createUser('amptrac') postgres.grantRead('trac', 'amptrac')
def task_install(self): """ Install trac. """ self.bootstrap() with settings(user=self.serviceUser): self.update() run('/bin/mkdir -p ~/attachments') run('/bin/ln -nsf ~/attachments {}/trac-env/files/attachments'.format( self.configDir)) run('/bin/ln -nsf {} {}/trac-env/log'.format(self.logDir, self.configDir)) run('/bin/ln -nsf {}/start {}/start'.format(self.configDir, self.binDir)) cron.install(self.serviceUser, '{}/crontab'.format(self.configDir)) # FIXME: Make these idempotent. postgres.createUser('trac') postgres.createDb('trac', 'trac')