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
bc5ec38b
Commit
bc5ec38b
authored
May 15, 2015
by
Feanil Patel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Don't setup the option group but output db subnets so services can use them.
parent
50dc6a97
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
17 deletions
+5
-17
playbooks/roles/edx_vpc/tasks/main.yml
+0
-17
playbooks/roles/edx_vpc/templates/vpc_config.yml.j2
+5
-0
No files found.
playbooks/roles/edx_vpc/tasks/main.yml
View file @
bc5ec38b
...
@@ -165,23 +165,6 @@
...
@@ -165,23 +165,6 @@
with_items
:
vpc_db_subnets
with_items
:
vpc_db_subnets
register
:
created_db_subnets
register
:
created_db_subnets
-
name
:
extract the subnet ids
util_map
:
function
:
'
zip_to_list'
input
:
"
{{
created_db_subnets.results
}}"
args
:
-
"
subnet_id"
register
:
db_subnet_ids
-
name
:
create db subnet group
rds_subnet_group
:
profile
:
"
{{
vpc_aws_profile
}}"
region
:
"
{{
vpc_aws_region
}}"
state
:
"
present"
name
:
"
{{
vpc_db_subnet_group.name
}}"
description
:
"
{{
vpc_db_subnet_group.description
}}"
subnets
:
"
{{
db_subnet_ids.function_output
}}"
-
name
:
output a vpc_config for using to build services
-
name
:
output a vpc_config for using to build services
local_action
:
local_action
:
module
:
template
module
:
template
...
...
playbooks/roles/edx_vpc/templates/vpc_config.yml.j2
View file @
bc5ec38b
...
@@ -41,6 +41,11 @@ elb_subnets:
...
@@ -41,6 +41,11 @@ elb_subnets:
- "{{ subnet.subnet_id }}"
- "{{ subnet.subnet_id }}"
{% endfor %}
{% endfor %}
db_subnets:
{% for subnet in created_db_subnets %}
- "{{ subnet.subnet_id }}"
{% endfor %}
#
#
# Do not use vars in policies :(
# Do not use vars in policies :(
# Should be specific to the service right?
# Should be specific to the service right?
...
...
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