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
643ed4f2
Commit
643ed4f2
authored
Nov 05, 2013
by
John Jarvis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
updating provision script to consolidate provisions and deploys
parent
508c4c23
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
7 deletions
+30
-7
util/jenkins/ansible-provision.sh
+30
-7
No files found.
util/jenkins/ansible-provision.sh
View file @
643ed4f2
...
...
@@ -48,7 +48,7 @@ fi
if
[[
-z
$ami
]]
;
then
if
[[
$server_type
==
"full_edx_installation"
]]
;
then
ami
=
"ami-
65db8b0c
"
ami
=
"ami-
27fda54e
"
elif
[[
$server_type
==
"ubuntu_12.04"
]]
;
then
ami
=
"ami-d0f89fb9"
fi
...
...
@@ -97,11 +97,34 @@ cat $extra_vars
cd
playbooks/edx-east
# run the tasks to launch an ec2 instance from AMI
ansible-playbook
-vvvv
edx_provision.yml
-i
inventory.ini
-e
"@
${
extra_vars
}
"
--user
ubuntu
# run tasks to update application config files for the sandbox hostname
if
[[
$server_type
==
"full_edx_installation"
]]
;
then
ansible-playbook
-vvvv
edx_continuous_integration.yml
-i
"
${
dns_name
}
.
${
dns_zone
}
,"
-e
"@
${
extra_vars
}
"
--user
ubuntu
--tags
"lms-env,cms-env,lms-preview-env"
if
[[
$recreate
==
"true"
]]
;
then
# run the tasks to launch an ec2 instance from AMI
ansible-playbook
-vvvv
edx_provision.yml
-i
inventory.ini
-e
"@
${
extra_vars
}
"
--user
ubuntu
fi
declare
-A
deploy
deploy[edxapp]
=
$edxapp
deploy[forum]
=
$forum
deploy[xqueue]
=
$xqueue
deploy[xserver]
=
$xserver
deploy[ora]
=
$ora
deploy[discern]
=
$discern
deploy[certs]
=
$certs
ssh-keygen
-f
"/var/lib/jenkins/.ssh/known_hosts"
-R
"
$deploy_host
"
cd
playbooks/edx-east
# If reconfigure was selected run non-deploy tasks for all roles
if
[[
$reconfigure
==
"true"
]]
;
then
ansible-playbook
-vvvv
edx_continuous_integration.yml
-i
"
${
deploy_host
}
,"
-e
"@
${
extra_vars
}
"
--user
ubuntu
--skip-tags
deploy
fi
rm
-f
"
$extra_vars
"
# Run deploy tasks for the roles selected
for
i
in
"
${
!deploy[@]
}
"
;
do
if
[[
${
deploy
[
$i
]
}
==
"true"
]]
;
then
ansible-playbook
-vvvv
deploy_
${
i
}
.yml
-i
"
${
deploy_host
}
,"
-e
"@
${
extra_vars
}
"
--user
ubuntu
--tags
deploy
fi
done
rm
-f
"
$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