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
e6749580
Commit
e6749580
authored
Sep 30, 2016
by
Brian Beggs
Committed by
GitHub
Sep 30, 2016
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #3401 from edx/bbeggs/TE-1717
Reduce SHA1s tagged on images to 7 characters. TE-1717
parents
357721a6
3e0f06be
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
playbooks/continuous_delivery/create_ami.yml
+8
-8
No files found.
playbooks/continuous_delivery/create_ami.yml
View file @
e6749580
...
...
@@ -21,8 +21,8 @@
# - ami_wait - (yes/no) should ansible pause while
# - no_reboot - (yes/no) should the instance not be rebooted during AMI creation
# - artifact_path - the path to where this ansible run stores the artifacts for the pipeline
# - edx
_app_theme_repo
- the edx_app_theme repository
# - edx
_app_theme_version
- the edx_app_theme repository version (git hash)
# - edx
app_theme_source_repo
- the edx_app_theme repository
# - edx
app_theme_version
- the edx_app_theme repository version (git hash)
# - hipchat_token - API token to send messages to hipchat
# - 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)
...
...
@@ -65,7 +65,7 @@
-
name
:
Create AMI
ec2_ami_2_0_0_1
:
instance_id
:
"
{{
instance_id
}}"
name
:
"
{{
edx_environment
}}
--
{{
deployment
}}
--
{{
play
}}
--
{{
app_version
}}
--
{{
extra_name_identifier
}}"
name
:
"
{{
edx_environment
}}
--
{{
deployment
}}
--
{{
play
}}
--
{{
app_version
[:7]
}}
--
{{
extra_name_identifier
}}"
region
:
"
{{
ec2_region
}}"
wait
:
"
{{
ami_wait
}}"
wait_timeout
:
"
{{
ami_creation_timeout
}}"
...
...
@@ -73,9 +73,9 @@
description
:
"
AMI
built
via
edX
continuous
delivery
pipeline
-
Ansible
version:
{{
ansible_version
}}"
# used a JSON object here as there is a string interpolation in the keys.
tags
:
"
{
'version:{{
play
}}':'{{
app_repo
}}
{{
app_version
}}',
'version:configuration':'{{
configuration_repo
}}
{{
configuration_version
}}',
'version:configuration_secure':'{{
configuration_secure_repo
}}
{{
configuration_secure_version
}}',
'version:{{
play
}}':'{{
app_repo
}}
{{
app_version
[:7]
}}',
'version:configuration':'{{
configuration_repo
}}
{{
configuration_version
[:7]
}}',
'version:configuration_secure':'{{
configuration_secure_repo
}}
{{
configuration_secure_version
[:7]
}}',
'play':'{{
play
}}',
'cache_id':'{{
cache_id
}}',
'environment':'{{
edx_environment
}}',
...
...
@@ -94,8 +94,8 @@
region
:
"
{{
ec2_region
}}"
resource
:
"
{{
ami_register.image_id
}}"
tags
:
version:edxapp_theme
:
"
{{
edx
_app_theme_repo
}}
{{
edx_app_theme_version
}}"
when
:
edx
_app_theme_version is defined and edx_app_them
e_repo is defined
version:edxapp_theme
:
"
{{
edx
app_theme_source_repo
}}
{{
edxapp_theme_version[:7]
}}"
when
:
edx
app_theme_version is defined and edxapp_theme_sourc
e_repo is defined
-
name
:
Ensure artifact directory exists
file
:
...
...
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