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
edd775a4
Commit
edd775a4
authored
Nov 05, 2013
by
John Jarvis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
changing reconfigure logic
parent
82659e6e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
20 deletions
+17
-20
util/jenkins/ansible-provision.sh
+17
-20
No files found.
util/jenkins/ansible-provision.sh
View file @
edd775a4
...
...
@@ -72,8 +72,11 @@ else
source
"
$WORKSPACE
/util/jenkins/create-var-file.sh"
fi
# vars specific to provisioning added to $extra-vars
cat
<<
EOF
>>
$extra_vars
cd
playbooks/edx-east
if
[[
$recreate
==
"true"
]]
;
then
# vars specific to provisioning added to $extra-vars
cat
<<
EOF
>>
$extra_vars
dns_name:
$dns_name
keypair:
$keypair
instance_type:
$instance_type
...
...
@@ -89,17 +92,15 @@ gh_users:
- e0d
-
${
github_username
}
dns_zone:
$dns_zone
rabbitmq_refresh: True
EOF
cat
$extra_vars
cat
$extra_vars
cd
playbooks/edx-east
if
[[
$recreate
==
"true"
]]
;
then
cat
$extra_vars
# run the tasks to launch an ec2 instance from AMI
ansible-playbook
-vvvv
edx_provision.yml
-i
inventory.ini
-e
"@
${
extra_vars
}
"
--user
ubuntu
if
[[
$server_type
==
"full_edx_installation"
]]
;
then
ansible-playbook
-vvvv
deploy_rabbitmq.yml
-i
"
${
deploy_host
}
,"
-e
"@
${
extra_vars
}
"
--user
ubuntu
fi
fi
declare
-A
deploy
...
...
@@ -119,16 +120,12 @@ if [[ $reconfigure == "true" ]]; then
ansible-playbook
-vvvv
edx_continuous_integration.yml
-i
"
${
deploy_host
}
,"
-e
"@
${
extra_vars
}
"
--user
ubuntu
--skip-tags
deploy
fi
if
[[
$server_type
==
"full_edx_installation"
]]
;
then
ansible-playbook
-vvvv
deploy_rabbitmq.yml
-i
"
${
deploy_host
}
,"
-e
"@
${
extra_vars
}
"
--user
ubuntu
# 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
# 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
fi
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