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
OpenEdx
configuration
Commits
25f94f56
Commit
25f94f56
authored
May 28, 2014
by
John Jarvis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
renaming params and setting migrate option
parent
980ca9d0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
9 deletions
+12
-9
util/jenkins/run-ansible.sh
+12
-9
No files found.
util/jenkins/run-ansible.sh
View file @
25f94f56
...
...
@@ -5,13 +5,13 @@
# that are tagged with Name: <environment>-<deployment>-<play>
if
[[
-z
$WORKSPACE
||
-z
$environment
||
-z
$deployment
||
-z
$play
||
-z
$ansible_play
||
-z
$elb_pre_post
||
-z
$first_in
||
-z
$WORKSPACE
||
-z
$environment
_tag
||
-z
$deployment
_tag
||
-z
$play
_tag
||
-z
$ansible_play
||
-z
$elb_pre_post
||
-z
$first_in
||
-z
$serial_count
]]
;
then
echo
"Environment incorrect for this wrapper script"
...
...
@@ -27,11 +27,14 @@ if [ ! -z "$extra_vars" ]; then
ansible_extra_vars+
=
" -e
$extra_vars
"
fi
if
[[
$run_migrations
==
"true"
]]
;
then
ansible_extra_vars+
=
" -e migrate_db=yes"
fi
if
[[
$first_in
==
"true"
]]
;
then
$ansible_limit
+
=
"first_in_"
fi
ansible_limit
=
"tag_Name_
${
environment
}
-
${
deployment
}
-
${
play
}
"
ansible_limit
=
"tag_Name_
${
environment_tag
}
-
${
deployment_tag
}
-
${
play_tag
}
"
export
PYTHONUNBUFFERED
=
1
env
ansible-playbook
-v
-u
ubuntu
$ansible_play
-i
./ec2.py
--limit
$ansible_limit
-e
@
"
$WORKSPACE
/configuration-secure/ansible/vars/
${
deployment
}
.yml"
-e
@
"
$WORKSPACE
/configuration-secure/ansible/vars/
${
environment
}
-
${
deployment
}
.yml"
$ansible_extra_vars
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