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
5cc9dfec
Commit
5cc9dfec
authored
Nov 06, 2013
by
John Jarvis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
removing ansible-deploy, replaced by ansible-provision
parent
830671e3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
80 deletions
+0
-80
util/jenkins/ansible-deploy.sh
+0
-80
No files found.
util/jenkins/ansible-deploy.sh
deleted
100644 → 0
View file @
830671e3
#!/usr/bin/env bash
# Ansible deployment wrapper script that
# assumes the following parameters set
# as environment variables
#
# {edxapp,forum,xqueue,xserver,ora} - true/false
# {edxapp,forum,xqueue,xserver,ora}_version - commit or tag
export
BOTO_CONFIG
=
/var/lib/jenkins/
${
aws_account
}
.boto
if
[[
-z
$WORKSPACE
]]
;
then
dir
=
$(
dirname
$0
)
source
"
$dir
/ascii-convert.sh"
else
source
"
$WORKSPACE
/util/jenkins/ascii-convert.sh"
fi
if
[[
-z
$github_username
]]
;
then
github_username
=
$BUILD_USER_ID
fi
if
[[
!
-f
$BOTO_CONFIG
]]
;
then
echo
"AWS credentials not found for
$aws_account
"
exit
1
fi
extra_vars
=
"/var/tmp/extra-vars-
$$
.yml"
if
[[
-z
$deploy_host
]]
;
then
deploy_host
=
"
${
github_username
}
.m.sandbox.edx.org"
fi
if
[[
-z
$WORKSPACE
]]
;
then
dir
=
$(
dirname
$0
)
source
"
$dir
/ascii-convert.sh"
else
source
"
$WORKSPACE
/util/jenkins/create-var-file.sh"
fi
# vars specific to deploy added to $extra-vars
cat
<<
EOF
>>
$extra_vars
edx_platform_commit:
$edxapp_version
forum_version:
$forum_version
xqueue_version:
$xqueue_version
xserver_version:
$xserver_version
ora_version:
$ora_version
ease_version:
$ease_version
EOF
cat
$extra_vars
echo
"Deploying to
$deploy_host
"
declare
-A
deploy
deploy[edxapp]
=
$edxapp
deploy[forum]
=
$forum
deploy[xqueue]
=
$xqueue
deploy[xserver]
=
$xserver
deploy[ora]
=
$ora
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
# 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