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
38bf8e8b
Commit
38bf8e8b
authored
Jan 22, 2014
by
John Jarvis
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin' into jarv/ansible-1.4
parents
aac82523
a9153e12
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
50 additions
and
56 deletions
+50
-56
util/jenkins/ansible-provision.sh
+50
-9
util/jenkins/create-var-file.sh
+0
-47
No files found.
util/jenkins/ansible-provision.sh
View file @
38bf8e8b
...
@@ -78,15 +78,55 @@ fi
...
@@ -78,15 +78,55 @@ fi
deploy_host
=
"
${
dns_name
}
.
${
dns_zone
}
"
deploy_host
=
"
${
dns_name
}
.
${
dns_zone
}
"
ssh-keygen
-f
"/var/lib/jenkins/.ssh/known_hosts"
-R
"
$deploy_host
"
ssh-keygen
-f
"/var/lib/jenkins/.ssh/known_hosts"
-R
"
$deploy_host
"
if
[[
-z
$WORKSPACE
]]
;
then
dir
=
$(
dirname
$0
)
source
"
$dir
/create-var-file.sh"
else
source
"
$WORKSPACE
/util/jenkins/create-var-file.sh"
fi
cd
playbooks/edx-east
cd
playbooks/edx-east
cat
<<
EOF
>
$extra_vars
---
start_services:
$start_services
ansible_ssh_private_key_file: /var/lib/jenkins/
${
keypair
}
.pem
NGINX_ENABLE_SSL: True
NGINX_SSL_CERTIFICATE: '/var/lib/jenkins/star.sandbox.edx.org.crt'
NGINX_SSL_KEY: '/var/lib/jenkins/star.sandbox.edx.org.key'
EDXAPP_LMS_SSL_NGINX_PORT: 443
EDXAPP_CMS_SSL_NGINX_PORT: 443
EDXAPP_PREVIEW_LMS_BASE: preview.
${
deploy_host
}
EDXAPP_LMS_BASE:
${
deploy_host
}
EDXAPP_CMS_BASE: studio.
${
deploy_host
}
EDXAPP_LMS_NGINX_PORT: 80
EDXAPP_LMS_PREVIEW_NGINX_PORT: 80
EDXAPP_CMS_NGINX_PORT: 80
EDXAPP_SITE_NAME:
${
deploy_host
}
COMMON_PYPI_MIRROR_URL: 'https://pypi.edx.org/root/pypi/+simple/'
XSERVER_GRADER_DIR: "/edx/var/xserver/data/content-mit-600x~2012_Fall"
XSERVER_GRADER_SOURCE: "git@github.com:/MITx/6.00x.git"
XSERVER_LOCAL_GIT_IDENTITY: /var/lib/jenkins/git-identity-edx-pull
CERTS_LOCAL_GIT_IDENTITY: /var/lib/jenkins/git-identity-edx-pull
CERTS_AWS_KEY:
$(
cat
/var/lib/jenkins/certs-aws-key
)
CERTS_AWS_ID:
$(
cat
/var/lib/jenkins/certs-aws-id
)
CERTS_BUCKET: "verify-test.edx.org"
migrate_db: "yes"
openid_workaround: True
edx_platform_version:
$edxapp_version
forum_version:
$forum_version
xqueue_version:
$xqueue_version
xserver_version:
$xserver_version
ora_version:
$ora_version
ease_version:
$ease_version
certs_version:
$certs_version
discern_version:
$discern_version
rabbitmq_ip: "127.0.0.1"
rabbitmq_refresh: True
COMMON_HOSTNAME: edx-server
EDXAPP_STATIC_URL_BASE:
$static_url_base
# Settings for Grade downloads
EDXAPP_GRADE_STORAGE_TYPE: 's3'
EDXAPP_GRADE_BUCKET: 'edx-grades'
EDXAPP_GRADE_ROOT_PATH: 'sandbox'
EOF
if
[[
$basic_auth
==
"true"
]]
;
then
if
[[
$basic_auth
==
"true"
]]
;
then
# vars specific to provisioning added to $extra-vars
# vars specific to provisioning added to $extra-vars
cat
<<
EOF_AUTH
>>
$extra_vars
cat
<<
EOF_AUTH
>>
$extra_vars
...
@@ -140,8 +180,9 @@ deploy[discern]=$discern
...
@@ -140,8 +180,9 @@ deploy[discern]=$discern
deploy[certs]
=
$certs
deploy[certs]
=
$certs
# If reconfigure was selected run non-deploy tasks for all roles
# If reconfigure was selected or if starting from an ubuntu 12.04 AMI
if
[[
$reconfigure
==
"true"
]]
;
then
# run non-deploy tasks for all roles
if
[[
$reconfigure
==
"true"
||
$server_type
==
"ubuntu_12.04"
]]
;
then
cat
$extra_vars
cat
$extra_vars
ansible-playbook edx_continuous_integration.yml
-i
"
${
deploy_host
}
,"
-e
"@
${
extra_vars
}
"
--user
ubuntu
--skip-tags
deploy
ansible-playbook edx_continuous_integration.yml
-i
"
${
deploy_host
}
,"
-e
"@
${
extra_vars
}
"
--user
ubuntu
--skip-tags
deploy
fi
fi
...
...
util/jenkins/create-var-file.sh
deleted
100644 → 0
View file @
aac82523
# creates a var file with common values for
# both deployment and provisioning
cat
<<
EOF
>
$extra_vars
---
ansible_ssh_private_key_file: /var/lib/jenkins/
${
keypair
}
.pem
NGINX_ENABLE_SSL: True
NGINX_SSL_CERTIFICATE: '/var/lib/jenkins/star.sandbox.edx.org.crt'
NGINX_SSL_KEY: '/var/lib/jenkins/star.sandbox.edx.org.key'
EDXAPP_LMS_SSL_NGINX_PORT: 443
EDXAPP_CMS_SSL_NGINX_PORT: 443
EDXAPP_PREVIEW_LMS_BASE: preview.
${
deploy_host
}
EDXAPP_LMS_BASE:
${
deploy_host
}
EDXAPP_CMS_BASE: studio.
${
deploy_host
}
EDXAPP_LMS_NGINX_PORT: 80
EDXAPP_LMS_PREVIEW_NGINX_PORT: 80
EDXAPP_CMS_NGINX_PORT: 80
EDXAPP_SITE_NAME:
${
deploy_host
}
COMMON_PYPI_MIRROR_URL: 'https://pypi.edx.org/root/pypi/+simple/'
XSERVER_GRADER_DIR: "/edx/var/xserver/data/content-mit-600x~2012_Fall"
XSERVER_GRADER_SOURCE: "git@github.com:/MITx/6.00x.git"
XSERVER_LOCAL_GIT_IDENTITY: /var/lib/jenkins/git-identity-edx-pull
CERTS_LOCAL_GIT_IDENTITY: /var/lib/jenkins/git-identity-edx-pull
CERTS_AWS_KEY:
$(
cat
/var/lib/jenkins/certs-aws-key
)
CERTS_AWS_ID:
$(
cat
/var/lib/jenkins/certs-aws-id
)
CERTS_BUCKET: "verify-test.edx.org"
migrate_db: "yes"
openid_workaround: True
edx_platform_version:
$edxapp_version
forum_version:
$forum_version
xqueue_version:
$xqueue_version
xserver_version:
$xserver_version
ora_version:
$ora_version
ease_version:
$ease_version
certs_version:
$certs_version
discern_version:
$discern_version
rabbitmq_ip: "127.0.0.1"
rabbitmq_refresh: True
COMMON_HOSTNAME: edx-server
EDXAPP_STATIC_URL_BASE:
$static_url_base
# Settings for Grade downloads
EDXAPP_GRADE_STORAGE_TYPE: 's3'
EDXAPP_GRADE_BUCKET: 'edx-grades'
EDXAPP_GRADE_ROOT_PATH: 'sandbox'
EOF
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