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
287913d5
Commit
287913d5
authored
Nov 12, 2015
by
Fred Smith
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2462 from edx/derf/edx_service_updates
make edx_service work with no service port
parents
4f336c65
3251937b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
50 additions
and
9 deletions
+50
-9
playbooks/edx-east/edx_service.yml
+50
-9
No files found.
playbooks/edx-east/edx_service.yml
View file @
287913d5
...
...
@@ -30,7 +30,15 @@
tags
:
-
elb
-
debug
:
msg="{{ service_security_group.rules }}"
-
name
:
Set Base Security Rules
set_fact
:
service_security_group_rules
:
"
{{
service_security_group.rules
}}"
when
:
service_port is not defined
-
name
:
Merge Base and Service Port Security Rules
set_fact
:
service_security_group_rules
:
"
{{
service_security_group.rules
+
service_port_rules
}}"
when
:
service_port is defined
-
name
:
Manage service security group
ec2_group_local
:
...
...
@@ -39,25 +47,58 @@
name
:
"
{{
service_security_group.name
}}"
vpc_id
:
"
{{
vpc_id
}}"
region
:
"
{{
aws_region
}}"
rules
:
"
{{
service_security_group
.
rules
}}"
rules
:
"
{{
service_security_group
_
rules
}}"
tags
:
"
{{
service_security_group.tags
}}"
register
:
service_sec_group
-
name
:
Manage ACLs
-
name
:
Set public Base ACLs
set_fact
:
service_public_acl_rules
:
"
{{
public_acls.rules
}}"
when
:
service_port is not defined
-
name
:
Merge public Base and Service Port ACLs
set_fact
:
service_public_acl_rules
:
"
{{
public_acls.rules
+
service_port_public_acls
}}"
when
:
service_port is defined
-
name
:
Manage Public ACLs
ec2_acl
:
profile
:
"
{{
profile
}}"
name
:
"
{{
item.name
}}"
name
:
"
{{
public_acls.name
}}"
vpc_id
:
"
{{
vpc_id
}}"
state
:
"
{{
state
}}"
region
:
"
{{
aws_region
}}"
rules
:
"
{{
service_public_acl_rules
}}"
register
:
created_public_acls
-
name
:
Set private Base ACLs
set_fact
:
service_private_acl_rules
:
"
{{
private_acls.rules
}}"
when
:
service_port is not defined
-
name
:
Merge private Base and Service Port ACLs
set_fact
:
service_private_acl_rules
:
"
{{
private_acls.rules
+
service_port_private_acls
}}"
when
:
service_port is defined
-
name
:
Manage Private ACLs
ec2_acl
:
profile
:
"
{{
profile
}}"
name
:
"
{{
private_acls.name
}}"
vpc_id
:
"
{{
vpc_id
}}"
state
:
"
{{
state
}}"
region
:
"
{{
aws_region
}}"
rules
:
"
{{
item.rules
}}"
with_items
:
acls
register
:
created_acls
rules
:
"
{{
service_private_acl_rules
}}"
register
:
created_private_acls
-
name
:
Merge created ACLs
set_fact
:
created_acls
:
"
{{
created_public_acls.results
|
default([])
+
created_private_acls.results
|
default([])
}}"
-
name
:
Apply function to acl_data
util_map
:
function
:
'
zip_to_dict'
input
:
"
{{
created_acls
.results
}}"
input
:
"
{{
created_acls
}}"
args
:
-
"
name"
-
"
id"
...
...
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