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
af50d606
Commit
af50d606
authored
Feb 18, 2014
by
John Jarvis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dumping vars in the aws role
parent
e9ba5325
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
44 additions
and
27 deletions
+44
-27
playbooks/edx-east/edx_continuous_integration.yml
+1
-0
playbooks/roles/aws/defaults/main.yml
+3
-1
playbooks/roles/aws/tasks/main.yml
+40
-3
playbooks/roles/aws/templates/dumpall.yml.j2
+0
-0
playbooks/roles/edx_ansible/tasks/deploy.yml
+0
-23
No files found.
playbooks/edx-east/edx_continuous_integration.yml
View file @
af50d606
...
...
@@ -7,6 +7,7 @@
migrate_db
:
"
yes"
openid_workaround
:
True
roles
:
-
aws
-
role
:
nginx
nginx_sites
:
-
cms
...
...
playbooks/roles/aws/defaults/main.yml
View file @
af50d606
...
...
@@ -9,12 +9,14 @@
#
##
# Defaults for role aws
#
#
#
# vars are namespace with the module name.
#
aws_role_name
:
aws
aws_data_dir
:
"
{{
COMMON_DATA_DIR
}}/aws"
aws_var_file
:
"
{{
aws_data_dir
}}/server-vars.yml"
#
# OS packages
...
...
playbooks/roles/aws/tasks/main.yml
View file @
af50d606
...
...
@@ -10,13 +10,13 @@
#
#
# Tasks for role aws
#
#
# Overview:
#
#
#
# Dependencies:
#
#
#
# Example play:
#
#
...
...
@@ -33,3 +33,40 @@
extra_args="-i {{ COMMON_PYPI_MIRROR_URL }}"
with_items
:
aws_pip_pkgs
-
name
:
create data directory
file
:
>
path={{ aws_data_dir }}
state=directory
owner=root
group=root
mode=0700
-
name
:
dump all vars to yaml
template
:
src=dumpall.yml.j2 dest={{ aws_var_file }} mode=0600
-
name
:
clean up var file, removing all version vars and internal ansible vars
shell
:
sed -i -e "/{{item}}/d" {{ edx_ansible_var_file }}
with_items
:
# deploy versions
-
"
^edx_platform_version:"
-
"
^edx_platform_commit:"
-
"
^xqueue_version:"
-
"
^forum_version:"
-
"
^xserver_version:"
-
"
^discern_ease_version:"
-
"
^ora_ease_version:"
-
"
^discern_version:"
-
"
^ora_version:"
-
"
^configuration_version:"
-
"
^ease_version:"
-
"
^certs_version:"
# other misc vars
-
"
^tags:"
-
"
^_original_file:"
-
"
^register:"
-
"
^item:"
-
"
^failed_when:"
-
"
^changed_when:"
-
"
^delegate_to:"
-
"
^ansible_ssh_private_key_file:"
-
"
^always_run:"
playbooks/roles/
edx_ansible
/templates/dumpall.yml.j2
→
playbooks/roles/
aws
/templates/dumpall.yml.j2
View file @
af50d606
File moved
playbooks/roles/edx_ansible/tasks/deploy.yml
View file @
af50d606
...
...
@@ -18,29 +18,6 @@
dest={{ COMMON_BIN_DIR }}/update
state=link
-
name
:
dump all vars to yaml
template
:
src=dumpall.yml.j2 dest={{ edx_ansible_var_file }} mode=0600
-
name
:
clean up var file, removing all version vars
shell
:
sed -i -e "/{{item}}/d" {{ edx_ansible_var_file }}
with_items
:
# deploy versions
-
"
^edx_platform_version:"
-
"
^edx_platform_commit:"
-
"
^xqueue_version:"
-
"
^forum_version:"
-
"
^xserver_version:"
-
"
^discern_ease_version:"
-
"
^ora_ease_version:"
-
"
^discern_version:"
-
"
^ora_version:"
-
"
^configuration_version:"
-
"
^ease_version:"
-
"
^certs_version:"
# other misc vars
-
"
^tags:"
-
"
^_original_file:"
-
name
:
create a symlink for var file
file
:
>
src={{ edx_ansible_var_file }}
...
...
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