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
fbf86e63
Commit
fbf86e63
authored
Jul 04, 2017
by
Nico van Niekerk
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
UPD: adding help; changed to only use 3rd and 4th cmd arguments
parent
0acbcba6
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletions
+7
-1
playbooks/roles/edx_ansible/templates/update.j2
+7
-1
No files found.
playbooks/roles/edx_ansible/templates/update.j2
View file @
fbf86e63
...
@@ -10,12 +10,16 @@ IFS=","
...
@@ -10,12 +10,16 @@ IFS=","
Usage:
$PROG
<repo> <version>
Usage:
$PROG
<repo> <version>
-v add verbosity to edx_ansible run
-v add verbosity to edx_ansible run
-e add extra_vars to ansible plays
-h this
-h this
<repo> - must be one of edx-platform, edx-workers, xqueue, cs_comments_service, credentials, xserver, configuration,
<repo> - must be one of edx-platform, edx-workers, xqueue, cs_comments_service, credentials, xserver, configuration,
read-only-certificate-code, edx-analytics-data-api, edx-ora2, insights, ecommerce, course_discovery,
read-only-certificate-code, edx-analytics-data-api, edx-ora2, insights, ecommerce, course_discovery,
notifier
notifier
<version> - can be a commit or tag
<version> - can be a commit or tag
<extra_vars> - specify extra_vars to any of the ansible plays with the -e switch and then ecaptulating your vars in "duoble quotes"
example: update <repo> <version> -e "-e 'hallo=bye' -e 'bye=hallo'"
you can also specify a file as -e "-e '@/path/to/file.yml'"
EO
EO
IFS
=
$SAVE_IFS
IFS
=
$SAVE_IFS
...
@@ -45,7 +49,9 @@ extra_args="$extra_args -e 'disable_edx_services=true' -e devstack=true"
...
@@ -45,7 +49,9 @@ extra_args="$extra_args -e 'disable_edx_services=true' -e devstack=true"
{
% endif %
}
{
% endif %
}
if
[[
"
$3
"
==
"-e"
]]
;
then
if
[[
"
$3
"
==
"-e"
]]
;
then
extra_args
=
"
$extra_args
-e
${
@
:3
}
"
opt
=
$4
sed
-e
's/^"//'
-e
's/"$//'
<<<
"
$opt
"
extra_args
=
"
$extra_args
$opt
"
fi
fi
declare
-A
repos_to_cmd
declare
-A
repos_to_cmd
...
...
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