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
7b643f43
Commit
7b643f43
authored
Oct 09, 2013
by
John Jarvis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
use jenkins user instead of entering git username
parent
5e43b314
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
5 deletions
+4
-5
util/jenkins/ansible-provision.sh
+4
-5
No files found.
util/jenkins/ansible-provision.sh
View file @
7b643f43
...
@@ -20,9 +20,8 @@
...
@@ -20,9 +20,8 @@
export
BOTO_CONFIG
=
/var/lib/jenkins/
${
aws_account
}
.boto
export
BOTO_CONFIG
=
/var/lib/jenkins/
${
aws_account
}
.boto
if
[[
$github_username
==
"PUT_YOUR_GITHUB_USERNAME_HERE"
]]
;
then
if
[[
-z
$github_username
]]
;
then
echo
"You need to specify a git username to create an ec2 instance"
github_username
=
$BUILD_USER
exit
1
fi
fi
if
[[
!
-f
$BOTO_CONFIG
]]
;
then
if
[[
!
-f
$BOTO_CONFIG
]]
;
then
...
@@ -70,7 +69,7 @@ instance_type: $instance_type
...
@@ -70,7 +69,7 @@ instance_type: $instance_type
security_group:
$security_group
security_group:
$security_group
ami:
$ami
ami:
$ami
region:
$region
region:
$region
instance_tags: '{"environment": "
$environment
", "github_username": "
$github_username
", "Name": "
$name_tag
", "source": "jenkins"}'
instance_tags: '{"environment": "
$environment
", "github_username": "
$github_username
", "Name": "
$name_tag
", "source": "jenkins"
, "owner": "
$BUILD_USER
"
}'
root_ebs_size:
$root_ebs_size
root_ebs_size:
$root_ebs_size
gh_users:
gh_users:
- user: jarv
- user: jarv
...
@@ -97,7 +96,7 @@ cd playbooks/edx-east
...
@@ -97,7 +96,7 @@ cd playbooks/edx-east
ansible-playbook
-vvvv
edx_provision.yml
-i
inventory.ini
-e
"@
${
extra_vars
}
"
--user
ubuntu
ansible-playbook
-vvvv
edx_provision.yml
-i
inventory.ini
-e
"@
${
extra_vars
}
"
--user
ubuntu
# run tasks to update application config files that
# run tasks to update application config files that
# for the hostnames
# for the hostnames
if
[[
$server_type
==
"full_edx_
stack
"
]]
;
then
if
[[
$server_type
==
"full_edx_
installation
"
]]
;
then
ansible-playbook
-vvvv
edx_continuous_integration.yml
-i
"
${
dns_name
}
.
${
dns_zone
}
,"
-e
"@
${
extra_vars
}
"
--user
ubuntu
ansible-playbook
-vvvv
edx_continuous_integration.yml
-i
"
${
dns_name
}
.
${
dns_zone
}
,"
-e
"@
${
extra_vars
}
"
--user
ubuntu
fi
fi
rm
-f
"
$extra_vars
"
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