diff options
author | bnewbold <bnewbold@robocracy.org> | 2016-05-04 16:23:54 -0400 |
---|---|---|
committer | bnewbold <bnewbold@robocracy.org> | 2016-05-04 16:23:54 -0400 |
commit | 182c50ccbf5e835a4985dfeea7c4aa7a6a69ac0c (patch) | |
tree | 352eb2ad2734f6fafd5a04c04f4d0b004d5384e1 /roles/mediagoblin/tasks | |
parent | ee4c5f898843d5c3b2b02b97dd89e8d9931992e8 (diff) | |
download | infra-182c50ccbf5e835a4985dfeea7c4aa7a6a69ac0c.tar.gz infra-182c50ccbf5e835a4985dfeea7c4aa7a6a69ac0c.zip |
mediagoblin: fixes, systemd scripts
Diffstat (limited to 'roles/mediagoblin/tasks')
-rw-r--r-- | roles/mediagoblin/tasks/mediagoblin.yml | 27 |
1 files changed, 26 insertions, 1 deletions
diff --git a/roles/mediagoblin/tasks/mediagoblin.yml b/roles/mediagoblin/tasks/mediagoblin.yml index 29929c3..c99b65c 100644 --- a/roles/mediagoblin/tasks/mediagoblin.yml +++ b/roles/mediagoblin/tasks/mediagoblin.yml @@ -33,6 +33,16 @@ mode=0750 owner={{ mediagoblin_user }} +- name: Create mediagoblin PID directory + file: name=/run/mediagoblin + state=directory + owner={{ mediagoblin_user }} + +- name: Create mediagoblin logs directory + file: name=/var/log/mediagoblin + state=directory + owner={{ mediagoblin_user }} + - name: Checkout git git: repo={{ mediagoblin_git_uri }} dest={{ mediagoblin_basedir }}/src @@ -81,7 +91,22 @@ template: src=etc_nginx_sites-available_mediagoblin.j2 dest=/etc/nginx/sites-available/mediagoblin -# XXX: TODO: how to create a systemd unit? +- name: Copy generic mediagoblin celeryd systemd file + template: src=etc_systemd_system_mediagoblin-celeryd.service.j2 + dest=/etc/systemd/system/mediagoblin-celeryd.service + +- name: Copy generic mediagoblin paster systemd file + template: src=etc_systemd_system_mediagoblin-paster.service.j2 + dest=/etc/systemd/system/mediagoblin-paster.service + +- name: Have systemd detect new files + shell: systemctl daemon-reload + +- name: Start systemd paster service + shell: systemctl start mediagoblin-celeryd.service && systemctl start mediagoblin-paster.service + +- name: Enable systemd services + shell: systemctl enable mediagoblin-celeryd.service && systemctl enable mediagoblin-paster.service - name: Create nginx symlink for default file: state=link |