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
9984a995
Commit
9984a995
authored
Apr 22, 2014
by
John Jarvis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
use edx_internal var
parent
2382ea4c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
16 deletions
+8
-16
playbooks/edx-east/edx_continuous_integration.yml
+2
-2
util/jenkins/ansible-provision.sh
+6
-14
No files found.
playbooks/edx-east/edx_continuous_integration.yml
View file @
9984a995
...
@@ -9,7 +9,7 @@
...
@@ -9,7 +9,7 @@
ENABLE_DATADOG
:
True
ENABLE_DATADOG
:
True
ENABLE_SPLUNKFORWARDER
:
False
ENABLE_SPLUNKFORWARDER
:
False
ENABLE_NEWRELIC
:
False
ENABLE_NEWRELIC
:
False
public_ami
:
Tru
e
edx_internal
:
Fals
e
roles
:
roles
:
-
aws
-
aws
-
role
:
nginx
-
role
:
nginx
...
@@ -33,7 +33,7 @@
...
@@ -33,7 +33,7 @@
-
elasticsearch
-
elasticsearch
-
forum
-
forum
-
{
role
:
"
xqueue"
,
update_users
:
True
}
-
{
role
:
"
xqueue"
,
update_users
:
True
}
-
{
role
:
xserver
,
when
:
not public_ami
}
-
{
role
:
xserver
,
when
:
edx_internal
}
-
ora
-
ora
-
discern
-
discern
-
certs
-
certs
...
...
util/jenkins/ansible-provision.sh
View file @
9984a995
...
@@ -43,11 +43,11 @@ fi
...
@@ -43,11 +43,11 @@ fi
extra_vars_file
=
"/var/tmp/extra-vars-
$$
.yml"
extra_vars_file
=
"/var/tmp/extra-vars-
$$
.yml"
if
[[
$public_ami
==
"true"
]]
;
then
if
[[
$edx_internal
==
"true"
]]
;
then
# if this is a public server do not include
# the secret var file
extra_var_arg
=
"-e@
${
extra_vars_file
}
-e@
${
WORKSPACE
}
/configuration-secure/ansible/vars/developer-sandbox.yml"
extra_var_arg
=
"-e@
${
extra_vars_file
}
-e@
${
WORKSPACE
}
/configuration-secure/ansible/vars/developer-sandbox.yml"
else
else
# if this is a public server do not include
# the secret var file
extra_var_arg
=
"-e@
${
extra_vars_file
}
"
extra_var_arg
=
"-e@
${
extra_vars_file
}
"
fi
fi
...
@@ -113,18 +113,10 @@ EOF
...
@@ -113,18 +113,10 @@ EOF
if
[[
$basic_auth
==
"true"
]]
;
then
if
[[
$basic_auth
==
"true"
]]
;
then
if
[[
$public_ami
==
"true"
]]
;
then
cat
<<
EOF_AUTH
>>
$extra_vars_file
cat
<<
EOF_AUTH
>>
$extra_vars_file
NGINX_HTPASSWD_USER: edx
NGINX_HTPASSWD_PASS: edx
EOF_AUTH
else
# vars specific to provisioning added to $extra-vars
cat
<<
EOF_AUTH
>>
$extra_vars_file
NGINX_HTPASSWD_USER:
$auth_user
NGINX_HTPASSWD_USER:
$auth_user
NGINX_HTPASSWD_PASS:
$auth_pass
NGINX_HTPASSWD_PASS:
$auth_pass
EOF_AUTH
EOF_AUTH
fi
fi
fi
...
@@ -152,11 +144,11 @@ rabbitmq_refresh: True
...
@@ -152,11 +144,11 @@ rabbitmq_refresh: True
elb:
$elb
elb:
$elb
EOF
EOF
if
[[
$
public_ami
!
=
"true"
]]
;
then
if
[[
$
edx_internal
=
=
"true"
]]
;
then
# if this isn't a public server add the github
# if this isn't a public server add the github
# user and set public_ami to false
# user and set public_ami to false
cat
<<
EOF
>>
$extra_vars_file
cat
<<
EOF
>>
$extra_vars_file
public_ami
: False
edx_internal
: False
COMMON_USER_INFO:
COMMON_USER_INFO:
- name:
${
github_username
}
- name:
${
github_username
}
github: true
github: true
...
...
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