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
2fdaedc8
Commit
2fdaedc8
authored
Mar 10, 2014
by
John Jarvis
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #853 from edx/jarv/provision-bare-ubuntu
Jarv/provision bare ubuntu
parents
90f720c2
c6266ed0
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
7 deletions
+16
-7
playbooks/roles/edx_ansible/meta/main.yml
+1
-0
playbooks/roles/nginx/tasks/main.yml
+8
-2
util/jenkins/ansible-provision.sh
+7
-5
No files found.
playbooks/roles/edx_ansible/meta/main.yml
View file @
2fdaedc8
...
@@ -11,3 +11,4 @@
...
@@ -11,3 +11,4 @@
# Role includes for role edx_ansible
# Role includes for role edx_ansible
dependencies
:
dependencies
:
-
common
-
common
-
aws
playbooks/roles/nginx/tasks/main.yml
View file @
2fdaedc8
...
@@ -78,10 +78,16 @@
...
@@ -78,10 +78,16 @@
# Check to see if the ssl cert/key exists before copying.
# Check to see if the ssl cert/key exists before copying.
# This extra check is done to prevent failures when
# This extra check is done to prevent failures when
# ansible-playbook is run locally
# ansible-playbook is run locally
-
stat
:
path={{ NGINX_SSL_CERTIFICATE }}
-
local_action
:
module
:
stat
path
:
"
{{
NGINX_SSL_CERTIFICATE
}}"
sudo
:
False
register
:
ssl_cert
register
:
ssl_cert
-
stat
:
path={{ NGINX_SSL_KEY }}
-
local_action
:
module
:
stat
path
:
"
{{
NGINX_SSL_KEY
}}"
sudo
:
False
register
:
ssl_key
register
:
ssl_key
-
name
:
copy ssl cert
-
name
:
copy ssl cert
...
...
util/jenkins/ansible-provision.sh
View file @
2fdaedc8
...
@@ -184,7 +184,7 @@ EOF
...
@@ -184,7 +184,7 @@ EOF
# run the tasks to launch an ec2 instance from AMI
# run the tasks to launch an ec2 instance from AMI
cat
$extra_vars
cat
$extra_vars
ansible-playbook edx_provision.yml
-i
inventory.ini
-e
"@
${
extra_vars
}
"
--user
ubuntu
ansible-playbook edx_provision.yml
-i
inventory.ini
-e
"@
${
extra_vars
}
"
--user
ubuntu
-v
if
[[
$server_type
==
"full_edx_installation"
]]
;
then
if
[[
$server_type
==
"full_edx_installation"
]]
;
then
# additional tasks that need to be run if the
# additional tasks that need to be run if the
...
@@ -202,18 +202,20 @@ done
...
@@ -202,18 +202,20 @@ done
# If reconfigure was selected or if starting from an ubuntu 12.04 AMI
# If reconfigure was selected or if starting from an ubuntu 12.04 AMI
# run non-deploy tasks for all roles
# run non-deploy tasks for all roles
if
[[
$reconfigure
==
"true"
||
$server_type
==
"ubuntu_12.04"
]]
;
then
if
[[
$reconfigure
==
"true"
]]
;
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
# Run deploy tasks for the roles selected
if
[[
$server_type
==
"full_edx_installation"
]]
;
then
for
i
in
$roles
;
do
# Run deploy tasks for the roles selected
for
i
in
$roles
;
do
if
[[
${
deploy
[
$i
]
}
==
"true"
]]
;
then
if
[[
${
deploy
[
$i
]
}
==
"true"
]]
;
then
cat
$extra_vars
cat
$extra_vars
ansible-playbook
${
i
}
.yml
-i
"
${
deploy_host
}
,"
-e
"@
${
extra_vars
}
"
--user
ubuntu
--tags
deploy
ansible-playbook
${
i
}
.yml
-i
"
${
deploy_host
}
,"
-e
"@
${
extra_vars
}
"
--user
ubuntu
--tags
deploy
fi
fi
done
done
fi
# deploy the edx_ansible role
# deploy the edx_ansible role
ansible-playbook edx_ansible.yml
-i
"
${
deploy_host
}
,"
-e
"@
${
extra_vars
}
"
--user
ubuntu
ansible-playbook edx_ansible.yml
-i
"
${
deploy_host
}
,"
-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