Do these things in the taiga user's homedir.
This commit is contained in:
parent
0e8546c6d7
commit
65b00e3b84
1 changed files with 11 additions and 14 deletions
|
@ -23,6 +23,9 @@
|
||||||
- libxslt-devel
|
- libxslt-devel
|
||||||
tags: taiga
|
tags: taiga
|
||||||
|
|
||||||
|
- user: name=taiga comment="Taiga System Account"
|
||||||
|
tags: taiga
|
||||||
|
|
||||||
### FIRST, there is a lot of postgres db stuff to setup ###
|
### FIRST, there is a lot of postgres db stuff to setup ###
|
||||||
- name: Initialize postgres if necessary
|
- name: Initialize postgres if necessary
|
||||||
command: /usr/bin/postgresql-setup initdb
|
command: /usr/bin/postgresql-setup initdb
|
||||||
|
@ -75,36 +78,30 @@
|
||||||
### DONE with db stuff
|
### DONE with db stuff
|
||||||
|
|
||||||
### NEXT, setup taiga-back from git
|
### NEXT, setup taiga-back from git
|
||||||
- user: name=taiga comment="Taiga System Account"
|
- git: repo=https://github.com/taigaio/taiga-back.git dest=/home/taiga/taiga-back version=stable
|
||||||
tags: taiga
|
|
||||||
|
|
||||||
- file: dest=/srv state=directory
|
|
||||||
tags: taiga
|
|
||||||
|
|
||||||
- git: repo=https://github.com/taigaio/taiga-back.git dest=/srv/taiga-back version=stable
|
|
||||||
tags: taiga
|
tags: taiga
|
||||||
|
|
||||||
- command: pip3 install -r requirements.txt
|
- command: pip3 install -r requirements.txt
|
||||||
chdir=/srv/taiga-back
|
chdir=/home/taiga/taiga-back
|
||||||
creates=/usr/lib/python3.4/site-packages/django/
|
creates=/usr/lib/python3.4/site-packages/django/
|
||||||
tags: taiga
|
tags: taiga
|
||||||
|
|
||||||
## TODO -- make these idempotent with creates=...
|
## TODO -- make these idempotent with creates=...
|
||||||
- command: sudo -u taiga python3 manage.py migrate --noinput
|
- command: sudo -u taiga python3 manage.py migrate --noinput
|
||||||
chdir=/srv/taiga-back
|
chdir=/home/taiga/taiga-back
|
||||||
tags: taiga
|
tags: taiga
|
||||||
- command: sudo -u taiga python3 manage.py loaddata initial_user
|
- command: sudo -u taiga python3 manage.py loaddata initial_user
|
||||||
chdir=/srv/taiga-back
|
chdir=/home/taiga/taiga-back
|
||||||
tags: taiga
|
tags: taiga
|
||||||
- command: sudo -u taiga python3 manage.py loaddata initial_project_templates
|
- command: sudo -u taiga python3 manage.py loaddata initial_project_templates
|
||||||
chdir=/srv/taiga-back
|
chdir=/home/taiga/taiga-back
|
||||||
tags: taiga
|
tags: taiga
|
||||||
- command: sudo -u taiga python3 manage.py loaddata initial_role
|
- command: sudo -u taiga python3 manage.py loaddata initial_role
|
||||||
chdir=/srv/taiga-back
|
chdir=/home/taiga/taiga-back
|
||||||
tags: taiga
|
tags: taiga
|
||||||
- command: sudo -u taiga python3 manage.py compilemessages
|
- command: sudo -u taiga python3 manage.py compilemessages
|
||||||
chdir=/srv/taiga-back
|
chdir=/home/taiga/taiga-back
|
||||||
tags: taiga
|
tags: taiga
|
||||||
- command: sudo -u taiga python3 manage.py collectstatic --noinput
|
- command: sudo -u taiga python3 manage.py collectstatic --noinput
|
||||||
chdir=/srv/taiga-back
|
chdir=/home/taiga/taiga-back
|
||||||
tags: taiga
|
tags: taiga
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue