Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
configuration
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
configuration
Commits
c3486e03
Commit
c3486e03
authored
Mar 24, 2015
by
Feanil Patel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
A play to do what fabric currently does for the certs servers.
parent
2c200f1c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
34 additions
and
0 deletions
+34
-0
playbooks/edx-east/legacy_certificates.yml
+34
-0
No files found.
playbooks/edx-east/legacy_certificates.yml
0 → 100644
View file @
c3486e03
# ansible-playbook -i ec2.py --limit="tag_cluster_certificates:&tag_environment_loadtest" legacy_certificates.yml
-
name
:
Deploy legacy_certs
hosts
:
all
sudo
:
True
gather_facts
:
True
vars
:
serial_count
:
1
repo_url
:
"
git@github.com/edx/certificates.git"
repo_path
:
"
/opt/wwc/certificates"
certificates_version
:
"
master"
git_ssh_script
:
"
/tmp/git.sh"
serial
:
"
{{
serial_count
}}"
tasks
:
-
name
:
stop certs service
service
:
name="certificates" state="stopped"
-
name
:
checkout code
git
:
>
repo="{{ repo_url }}"
dest="{{ repo_path }}"
version="{{ certificates_version }}"
accept_hostkey=yes
environment
:
GIT_SSH
:
"
{{
git_ssh_script
}}"
# Need to do this because the www-data user is not properly setup
# and can't run ssh.
-
name
:
change owner to www-data
file
:
>
path="{{ repo_path }}"
owner="www-data"
group="www-data"
recurse=yes
state="directory"
-
name
:
stop certs service
service
:
name="certificates" state="started"
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment