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
6f8cf187
Commit
6f8cf187
authored
Nov 26, 2013
by
John Jarvis
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #498 from edx/jarv/basic-auth-provision
adding option to enable basic auth when we provision
parents
872672aa
6c527c24
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
1 deletions
+12
-1
playbooks/edx-east/edx_provision.yml
+2
-1
util/jenkins/ansible-provision.sh
+10
-0
No files found.
playbooks/edx-east/edx_provision.yml
View file @
6f8cf187
...
...
@@ -28,8 +28,9 @@
timeout=15
search_regex="final-message"
roles
:
# rerun common to set the hostname
# rerun common to set the hostname
, nginx to set basic auth
-
common
-
nginx
# gh_users hash must be passed
# in as a -e variable
-
gh_users
...
...
util/jenkins/ansible-provision.sh
View file @
6f8cf187
...
...
@@ -92,6 +92,15 @@ fi
cd
playbooks/edx-east
if
[[
$basic_auth
==
"true"
]]
;
then
# vars specific to provisioning added to $extra-vars
cat
<<
EOF_AUTH
>>
$extra_vars
NGINX_HTPASSWD_USER:
$auth_user
NGINX_HTPASSWD_PASS:
$auth_pass
EOF_AUTH
fi
if
[[
$recreate
==
"true"
]]
;
then
# vars specific to provisioning added to $extra-vars
cat
<<
EOF
>>
$extra_vars
...
...
@@ -112,6 +121,7 @@ rabbitmq_refresh: True
GH_USERS_PROMPT: '[
$name_tag
] '
elb:
$elb
EOF
cat
$extra_vars
# run the tasks to launch an ec2 instance from AMI
ansible-playbook edx_provision.yml
-i
inventory.ini
-e
"@
${
extra_vars
}
"
--user
ubuntu
...
...
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