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
edx
configuration
Commits
b531c2e3
Commit
b531c2e3
authored
Oct 28, 2015
by
Feanil Patel
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2417 from edx/feanil/edx_service_dns
Create DNS along with the infrastructure.
parents
67137e97
dca9d236
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
20 deletions
+21
-20
playbooks/edx-east/edx_service.yml
+21
-20
No files found.
playbooks/edx-east/edx_service.yml
View file @
b531c2e3
...
...
@@ -27,6 +27,8 @@
rules
:
"
{{
elb_security_group.rules
}}"
tags
:
"
{{
elb_security_group.tags
}}"
register
:
elb_sec_group
tags
:
-
elb
-
debug
:
msg="{{ service_security_group.rules }}"
...
...
@@ -61,26 +63,6 @@
-
"
id"
register
:
acl_data
# - name: Manage ELB Subnets
# ec2_subnet:
# state: "{{ state }}"
# region: "{{ aws_region }}"
# name: "{{ item.name }}"
# vpc_id: "{{ vpc_id }}"
# cidr_block: "{{ item.cidr }}"
# az: "{{ item.az }}"
# route_table_id: "{{ item.route_table_id }}"
# tags: "{{ item.tags }}"
# register: created_elb_subnets
# with_items: elb_subnets
#
# Hack alert, this registers a list in the global namespace
# of just the subnet ids that were created above
#
# - debug: msg="{{ created_elb_subnets.results|map(attribute='subnet_id')| list }}"
# register: elb_sn_list
-
name
:
Manage Service Subnets
ec2_subnet
:
profile
:
"
{{
profile
}}"
...
...
@@ -122,6 +104,8 @@
register
:
created_elb_private_subnets
with_items
:
elb_private_subnets
when
:
private_elb_subnet_1 is defined and private_elb_subnet_2 is defined
tags
:
-
elb
-
name
:
Check that internal ELBs have subnets
fail
:
msg="If you set an elb scheme to 'internal' you must also define private_elb_subnet_1 and private_elb_subnet_2"
...
...
@@ -143,6 +127,23 @@
register
:
created_elbs
with_items
:
elbs
when
:
elbs is defined
tags
:
-
elb
-
name
:
Setup ELB DNS
route53
:
command
:
"
create"
zone
:
"
{{
dns_zone_name
}}"
record
:
"
{{
item.elb.name
}}.{{
dns_zone_name
}}"
type
:
"
A"
value
:
"
{{
item.elb.dns_name
}}"
alias
:
true
alias_hosted_zone_id
:
"
{{
item.elb.hosted_zone_id
}}"
overwrite
:
true
with_items
:
created_elbs.results
when
:
elbs is defined
tags
:
-
elb
#
# Service related components
...
...
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