Commit 466f7392 by e0d

cr comments

parent 6f6123ec
...@@ -50,6 +50,8 @@ as_source_repo: "git@github.com:edx/analytics-server.git" ...@@ -50,6 +50,8 @@ as_source_repo: "git@github.com:edx/analytics-server.git"
as_code_dir: "{{ as_home }}/src" as_code_dir: "{{ as_home }}/src"
as_version: "master" as_version: "master"
as_git_identity_path: "{{ secure_dir }}/files/git-identity" as_git_identity_path: "{{ secure_dir }}/files/git-identity"
as_git_identity_dest: "/etc/{{ as_role_name }}.git-identity"
as_git_ssh: "/tmp/{{ as_role_name }}.git_ssh.sh"
as_requirements_file: "{{ as_code_dir }}/requirements.txt" as_requirements_file: "{{ as_code_dir }}/requirements.txt"
as_rsyslog_enabled: "yes" as_rsyslog_enabled: "yes"
as_web_user: "www-data" as_web_user: "www-data"
......
...@@ -2,8 +2,8 @@ ...@@ -2,8 +2,8 @@
# TODO: Needed while this repo is private # TODO: Needed while this repo is private
# #
- name: analytics-server | upload ssh script - name: analytics-server | upload ssh script
copy: template:
src=git_ssh.sh dest={{ as_git_ssh }} src=tmp/{{ as_role_name }}.git_ssh.sh.j2 dest={{ as_git_ssh }}
force=yes owner=root group=adm mode=750 force=yes owner=root group=adm mode=750
tags: tags:
- analytics-server - analytics-server
...@@ -29,7 +29,7 @@ ...@@ -29,7 +29,7 @@
dest={{ as_code_dir }} repo={{ as_source_repo }} dest={{ as_code_dir }} repo={{ as_source_repo }}
version={{ as_version }} force=true version={{ as_version }} force=true
environment: environment:
GIT_SSH: /tmp/git_ssh.sh GIT_SSH: $as_git_ssh
notify: analytics-server | restart the analytics service notify: analytics-server | restart the analytics service
notify: analytics-server | start the analytics service notify: analytics-server | start the analytics service
tags: tags:
...@@ -55,7 +55,7 @@ ...@@ -55,7 +55,7 @@
# TODO: Needed while this repo is private # TODO: Needed while this repo is private
# #
- name: analytics-server | remove read-only ssh key for the content repo - name: analytics-server | remove read-only ssh key for the content repo
file: {{ as_git_identity_dest }} state=absent file: path={{ as_git_identity_dest }} state=absent
tags: tags:
- analytics-server - analytics-server
- deploy - deploy
......
...@@ -70,9 +70,18 @@ ...@@ -70,9 +70,18 @@
owner={{ as_user }} owner={{ as_user }}
group={{ as_user }} group={{ as_user }}
# Awaiting next ansible release.
#- name: analytics-server | ensure .bashrc exists
# file: path={{ as_home }}/.bashrc state=touch
# sudo: true
# sudo_user: "{{ as_user }}"
# tags:
# - analytics-server
# - install
# - update
- name: analytics-server | ensure .bashrc exists - name: analytics-server | ensure .bashrc exists
file: path={{ as_home }}/.bashrc state=touch shell: touch {{ as_home }}/.bashrc
sudo: true sudo: true
sudo_user: "{{ as_user }}" sudo_user: "{{ as_user }}"
tags: tags:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment