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
cc4a23c2
Commit
cc4a23c2
authored
Feb 28, 2017
by
Calen Pennington
Committed by
GitHub
Feb 28, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #3721 from cpennington/cale/dont-truncate-git-shas
Don't truncate version shas when tagging AWS resources.
parents
30c9aa5d
5b8be008
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
12 additions
and
12 deletions
+12
-12
playbooks/continuous_delivery/create_ami.yml
+4
-4
playbooks/roles/alton/tasks/tag_ec2.yml
+1
-1
playbooks/roles/certs/tasks/tag_ec2.yml
+1
-1
playbooks/roles/edxapp/tasks/tag_ec2.yml
+2
-2
playbooks/roles/forum/tasks/tag_ec2.yml
+1
-1
playbooks/roles/xserver/tasks/ec2.yml
+2
-2
playbooks/roles/xsy/tasks/tag_ec2.yml
+1
-1
No files found.
playbooks/continuous_delivery/create_ami.yml
View file @
cc4a23c2
...
@@ -73,9 +73,9 @@
...
@@ -73,9 +73,9 @@
description
:
"
AMI
built
via
edX
continuous
delivery
pipeline
-
Ansible
version:
{{
ansible_version
}}"
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.
# used a JSON object here as there is a string interpolation in the keys.
tags
:
"
{
tags
:
"
{
'version:{{
play
}}':'{{
app_repo
}}
{{
app_version
[:7]
}}',
'version:{{
play
}}':'{{
app_repo
}}
{{
app_version
}}',
'version:configuration':'{{
configuration_repo
}}
{{
configuration_version
[:7]
}}',
'version:configuration':'{{
configuration_repo
}}
{{
configuration_version
}}',
'version:configuration_secure':'{{
configuration_secure_repo
}}
{{
configuration_secure_version
[:7]
}}',
'version:configuration_secure':'{{
configuration_secure_repo
}}
{{
configuration_secure_version
}}',
'play':'{{
play
}}',
'play':'{{
play
}}',
'cache_id':'{{
cache_id
}}',
'cache_id':'{{
cache_id
}}',
'environment':'{{
edx_environment
}}',
'environment':'{{
edx_environment
}}',
...
@@ -94,7 +94,7 @@
...
@@ -94,7 +94,7 @@
region
:
"
{{
ec2_region
}}"
region
:
"
{{
ec2_region
}}"
resource
:
"
{{
ami_register.image_id
}}"
resource
:
"
{{
ami_register.image_id
}}"
tags
:
tags
:
version:edxapp_theme
:
"
{{
edxapp_theme_source_repo
}}
{{
edxapp_theme_version
[:7]
}}"
version:edxapp_theme
:
"
{{
edxapp_theme_source_repo
}}
{{
edxapp_theme_version
}}"
when
:
edxapp_theme_version is defined and edxapp_theme_source_repo is defined
when
:
edxapp_theme_version is defined and edxapp_theme_source_repo is defined
-
name
:
Fetch tags on the AMI
-
name
:
Fetch tags on the AMI
...
...
playbooks/roles/alton/tasks/tag_ec2.yml
View file @
cc4a23c2
...
@@ -10,7 +10,7 @@
...
@@ -10,7 +10,7 @@
resource
:
"
{{
ansible_ec2_instance_id
}}"
resource
:
"
{{
ansible_ec2_instance_id
}}"
region
:
"
{{
ansible_ec2_placement_region
}}"
region
:
"
{{
ansible_ec2_placement_region
}}"
tags
:
tags
:
"
version:alton"
:
"
{{
alton_source_repo
}}
{{
alton_checkout.after
|truncate(7,True,'')
}}"
"
version:alton"
:
"
{{
alton_source_repo
}}
{{
alton_checkout.after
}}"
when
:
alton_checkout.after is defined
when
:
alton_checkout.after is defined
tags
:
tags
:
-
deploy
-
deploy
playbooks/roles/certs/tasks/tag_ec2.yml
View file @
cc4a23c2
...
@@ -8,5 +8,5 @@
...
@@ -8,5 +8,5 @@
resource
:
"
{{
ansible_ec2_instance_id
}}"
resource
:
"
{{
ansible_ec2_instance_id
}}"
region
:
"
{{
ansible_ec2_placement_region
}}"
region
:
"
{{
ansible_ec2_placement_region
}}"
tags
:
tags
:
"
version:certs"
:
"
{{
CERT_REPO
}}
{{
certs_checkout.after
|truncate(7,True,'')
}}"
"
version:certs"
:
"
{{
CERT_REPO
}}
{{
certs_checkout.after
}}"
when
:
certs_checkout.after is defined
when
:
certs_checkout.after is defined
playbooks/roles/edxapp/tasks/tag_ec2.yml
View file @
cc4a23c2
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
resource
:
"
{{
ansible_ec2_instance_id
}}"
resource
:
"
{{
ansible_ec2_instance_id
}}"
region
:
"
{{
ansible_ec2_placement_region
}}"
region
:
"
{{
ansible_ec2_placement_region
}}"
tags
:
tags
:
"
version:edx_platform"
:
"
{{
edx_platform_repo
}}
{{
edxapp_platform_checkout.after
|truncate(7,True,'')
}}"
"
version:edx_platform"
:
"
{{
edx_platform_repo
}}
{{
edxapp_platform_checkout.after
}}"
when
:
edxapp_platform_checkout.after is defined
when
:
edxapp_platform_checkout.after is defined
-
name
:
tag instance with edxapp theme version
-
name
:
tag instance with edxapp theme version
...
@@ -15,5 +15,5 @@
...
@@ -15,5 +15,5 @@
resource
:
"
{{
ansible_ec2_instance_id
}}"
resource
:
"
{{
ansible_ec2_instance_id
}}"
region
:
"
{{
ansible_ec2_placement_region
}}"
region
:
"
{{
ansible_ec2_placement_region
}}"
tags
:
tags
:
"
version:edxapp_theme"
:
"
{{
edxapp_theme_source_repo
}}
{{
edxapp_theme_checkout.after
|truncate(7,True,'')
}}"
"
version:edxapp_theme"
:
"
{{
edxapp_theme_source_repo
}}
{{
edxapp_theme_checkout.after
}}"
when
:
edxapp_theme_checkout.after is defined
when
:
edxapp_theme_checkout.after is defined
playbooks/roles/forum/tasks/tag_ec2.yml
View file @
cc4a23c2
...
@@ -7,5 +7,5 @@
...
@@ -7,5 +7,5 @@
resource
:
"
{{
ansible_ec2_instance_id
}}"
resource
:
"
{{
ansible_ec2_instance_id
}}"
region
:
"
{{
ansible_ec2_placement_region
}}"
region
:
"
{{
ansible_ec2_placement_region
}}"
tags
:
tags
:
"
version:forum"
:
"
{{
forum_source_repo
}}
{{
forum_checkout.after
|truncate(7,True,'')
}}"
"
version:forum"
:
"
{{
forum_source_repo
}}
{{
forum_checkout.after
}}"
when
:
forum_checkout.after is defined
when
:
forum_checkout.after is defined
playbooks/roles/xserver/tasks/ec2.yml
View file @
cc4a23c2
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
resource
:
"
{{
ansible_ec2_instance_id
}}"
resource
:
"
{{
ansible_ec2_instance_id
}}"
region
:
"
{{
ansible_ec2_placement_region
}}"
region
:
"
{{
ansible_ec2_placement_region
}}"
tags
:
tags
:
"
version:xserver"
:
"
{{
xserver_source_repo
}}
{{
xserver_checkout.after
|truncate(7,True,'')
}}"
"
version:xserver"
:
"
{{
xserver_source_repo
}}
{{
xserver_checkout.after
}}"
when
:
xserver_checkout.after is defined
when
:
xserver_checkout.after is defined
-
name
:
Tag instance for xserver grader
-
name
:
Tag instance for xserver grader
...
@@ -15,5 +15,5 @@
...
@@ -15,5 +15,5 @@
resource
:
"
{{
ansible_ec2_instance_id
}}"
resource
:
"
{{
ansible_ec2_instance_id
}}"
region
:
"
{{
ansible_ec2_placement_region
}}"
region
:
"
{{
ansible_ec2_placement_region
}}"
tags
:
tags
:
"
version:xserver_grader"
:
"
{{
XSERVER_GRADER_SOURCE
}}
{{
xserver_grader_checkout.after
|truncate(7,True,'')
}}"
"
version:xserver_grader"
:
"
{{
XSERVER_GRADER_SOURCE
}}
{{
xserver_grader_checkout.after
}}"
when
:
xserver_grader_checkout.after is defined
when
:
xserver_grader_checkout.after is defined
playbooks/roles/xsy/tasks/tag_ec2.yml
View file @
cc4a23c2
...
@@ -10,7 +10,7 @@
...
@@ -10,7 +10,7 @@
resource
:
"
{{
ansible_ec2_instance_id
}}"
resource
:
"
{{
ansible_ec2_instance_id
}}"
region
:
"
{{
ansible_ec2_placement_region
}}"
region
:
"
{{
ansible_ec2_placement_region
}}"
tags
:
tags
:
"
version:xsy"
:
"
{{
xsy_source_repo
}}
{{
xsy_checkout.after
|truncate(7,True,'')
}}"
"
version:xsy"
:
"
{{
xsy_source_repo
}}
{{
xsy_checkout.after
}}"
when
:
xsy_checkout.after is defined
when
:
xsy_checkout.after is defined
tags
:
tags
:
-
deploy
-
deploy
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