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
860a2344
Commit
860a2344
authored
Aug 16, 2017
by
Nadeem Shahzad
Committed by
GitHub
Aug 16, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #4034 from edx/nadeem-OPS-2118
Add configuration_internal to build-ami script
parents
6cdd3405
02f8dc9b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
8 deletions
+15
-8
util/jenkins/build-ami.sh
+12
-8
util/vpc-tools/abbey.py
+3
-0
No files found.
util/jenkins/build-ami.sh
View file @
860a2344
...
...
@@ -88,14 +88,6 @@ if [[ ! -z "$configurationprivaterepo" ]]; then
fi
fi
configurationinternal_params
=
""
if
[[
!
-z
"
$configurationinternalrepo
"
]]
;
then
configurationinternal_params
=
"--configuration-internal-repo
$configurationinternalrepo
"
if
[[
!
-z
"
$configurationinternalversion
"
]]
;
then
configurationinternal_params
=
"
$configurationinternal_params
--configuration-internal-version
$configurationinternalversion
"
fi
fi
hipchat_params
=
""
if
[[
!
-z
"
$hipchat_room_id
"
]]
&&
[[
!
-z
"
$hipchat_api_token
"
]]
;
then
hipchat_params
=
"--hipchat-room-id
$hipchat_room_id
--hipchat-api-token
$hipchat_api_token
"
...
...
@@ -135,4 +127,16 @@ cd util/vpc-tools/
echo
"
$vars
"
>
/var/tmp/
$BUILD_ID
-extra-vars
.yml
cat
/var/tmp/
$BUILD_ID
-extra-vars
.yml
configuration_internal_var
=
"configuration_internal_version"
configurationinternalversion
=
$(
grep
"
$configuration_internal_var
"
"/var/tmp/
$BUILD_ID
-extra-vars.yml"
| awk
-F
:
'{print $2}'
)
configurationinternal_params
=
""
if
[[
!
-z
"
$configurationinternalrepo
"
]]
;
then
configurationinternal_params
=
"--configuration-internal-repo
$configurationinternalrepo
"
if
[[
!
-z
"
$configurationinternalversion
"
]]
;
then
configurationinternal_params
=
"
$configurationinternal_params
--configuration-internal-version
$configurationinternalversion
"
fi
fi
python
-u
abbey.py
-p
$play
-t
m3.large
-d
$deployment
-e
$environment
$base_params
$blessed_params
$playbookdir_params
--vars
/var/tmp/
$BUILD_ID
-extra-vars
.yml
-c
$BUILD_NUMBER
--configuration-version
$configuration
--configuration-secure-version
$configuration_secure
-k
$jenkins_admin_ec2_key
--configuration-secure-repo
$jenkins_admin_configuration_secure_repo
$configurationprivate_params
$configurationinternal_params
$hipchat_params
$cleanup_params
$notification_params
$datadog_params
$region_params
$identity_params
util/vpc-tools/abbey.py
View file @
860a2344
...
...
@@ -717,6 +717,9 @@ def create_ami(instance_id, name, description):
conf_secure_tag
=
"{} {}"
.
format
(
args
.
configuration_secure_repo
,
args
.
configuration_secure_version
)
img
.
add_tag
(
"version:configuration_secure"
,
conf_secure_tag
)
time
.
sleep
(
AWS_API_WAIT_TIME
)
conf_internal_tag
=
"{} {}"
.
format
(
args
.
configuration_internal_repo
,
args
.
configuration_internal_version
)
img
.
add_tag
(
"version:configuration_internal"
,
conf_internal_tag
)
time
.
sleep
(
AWS_API_WAIT_TIME
)
img
.
add_tag
(
"cache_id"
,
args
.
cache_id
)
time
.
sleep
(
AWS_API_WAIT_TIME
)
...
...
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