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
a13878db
Commit
a13878db
authored
Mar 17, 2017
by
Calen Pennington
Committed by
GitHub
Mar 17, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #3760 from cpennington/custom-version-tags
Allow custom version tags to be applied when creating an AMI
parents
6660466a
cee55975
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
0 deletions
+13
-0
playbooks/continuous_delivery/create_ami.yml
+13
-0
No files found.
playbooks/continuous_delivery/create_ami.yml
View file @
a13878db
...
...
@@ -27,6 +27,8 @@
# - hipchat_room - ID or name of the room to send the notification
# - hipchat_url - URL of the hipchat API (defaults to v1 of the api)
# - extra_name_identifier - Makes each AMI unique if desired - Default: 0
# - version_tags - A mapping of {app: [repo, version], ...}, used to generate
# a "version:app = repo version" tag on the AMI
#
# Example command line to run this playbook:
# ansible-playbook -vvvv -i "localhost," -c local \
...
...
@@ -51,6 +53,7 @@
artifact_path
:
/tmp/ansible-runtime
hipchat_url
:
https://api.hipchat.com/v2/
extra_name_identifier
:
0
version_tags
:
{}
gather_facts
:
False
connection
:
local
tasks
:
...
...
@@ -89,6 +92,16 @@
resource
:
"
{{
ami_register.image_id
}}"
tags
:
"
{{
instance_tags.tags
}}"
-
name
:
Add any version tags that were passed on the commandline
ec2_tag
:
region
:
"
{{
ec2_region
}}"
resource
:
"
{{
ami_register.image_id
}}"
tags
:
"
{
{%
for
name,
(repo,
version)
in
version_tags.items()
%}
'version:{{
name
}}':
'{{
repo
}}
{{
version
}}',
{%
endfor
%}
}"
-
name
:
add optional edx-theme tag
ec2_tag
:
region
:
"
{{
ec2_region
}}"
...
...
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