Skip to content

Commit

Permalink
Merge pull request #3 from eGT-Labs/subnet_pref_localvpc
Browse files Browse the repository at this point in the history
BEES
  • Loading branch information
jstange committed Apr 17, 2015
2 parents 36278e8 + 6e13710 commit 6902543
Show file tree
Hide file tree
Showing 9 changed files with 216 additions and 138 deletions.
1 change: 0 additions & 1 deletion demo/tiered_apps/bastion.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
assign_ip: true
vpc:
vpc_name: vpc
subnet_name: TieredSubnet<%= Random.rand($azs.size-1).floor %>Public
ingress_rules:
- proto: icmp
hosts:
Expand Down
10 changes: 3 additions & 7 deletions demo/tiered_apps/database.yaml
Original file line number Diff line number Diff line change
@@ -1,14 +1,10 @@
- name: drupaldb
engine: mysql
vpc:
<% if !$vpc_deploy_id then %>
vpc_name: vpc
subnets:
<% (0..$azs.size-1).each do |i| %>
- subnet_name: TieredSubnet<%= i %>Private
<% end %>
<% else %>
<% if $vpc_deploy_id then %>
deploy_id: <%= $vpc_deploy_id %>
<% else %>
vpc_name: vpc
<% end %>
<% if $environment == 'dev' then %>
size: db.t2.medium
Expand Down
5 changes: 1 addition & 4 deletions demo/tiered_apps/lnxapps_lb.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,8 @@
private: true
vpc:
<% if !$vpc_deploy_id then %>
subnet_pref: all_private
vpc_name: vpc
subnets:
<% (1..$azs.size).each do |i| %>
- subnet_name: TieredSubnet<%= i-1 %>Private
<% end %>
<% else %>
deploy_id: <%= $vpc_deploy_id %>
subnet_pref: all_private
Expand Down
6 changes: 1 addition & 5 deletions demo/tiered_apps/lnxapps_pool.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,9 @@
name: drupaldb
vpc:
<% if !$vpc_deploy_id then %>
vpc_name: vpc
nat_host_name: bastion
nat_ssh_user: root
subnets:
<% (1..$azs.size).each do |i| %>
- subnet_name: TieredSubnet<%= i-1 %>Private
<% end %>
vpc_name: vpc
<% else %>
deploy_id: <%= $vpc_deploy_id %>
<% end %>
Expand Down
10 changes: 3 additions & 7 deletions demo/tiered_apps/proxy_lb.yaml
Original file line number Diff line number Diff line change
@@ -1,13 +1,9 @@
- name: proxylb
vpc:
<% if !$vpc_deploy_id then %>
vpc_name: vpc
subnets:
<% (1..$azs.size).each do |i| %>
- subnet_name: TieredSubnet<%= i-1 %>Public
<% end %>
<% else %>
<% if $vpc_deploy_id then %>
deploy_id: <%= $vpc_deploy_id %>
<% else %>
vpc_name: vpc
<% end %>
cross_zone_unstickiness: true
add_firewall_rules:
Expand Down
6 changes: 1 addition & 5 deletions demo/tiered_apps/proxy_pool.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,9 @@
my_domain: "<%= $my_domain %>"
vpc:
<% if !$vpc_deploy_id then %>
vpc_name: vpc
nat_host_name: bastion
nat_ssh_user: root
subnets:
<% (1..$azs.size).each do |i| %>
- subnet_name: TieredSubnet<%= i-1 %>Private
<% end %>
vpc_name: vpc
<% else %>
deploy_id: <%= $vpc_deploy_id %>
subnet_pref: all_private
Expand Down
5 changes: 1 addition & 4 deletions demo/tiered_apps/winapps_lb.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,8 @@
private: true
vpc:
<% if !$vpc_deploy_id then %>
subnet_pref: all_private
vpc_name: vpc
subnets:
<% (1..$azs.size).each do |i| %>
- subnet_name: TieredSubnet<%= i-1 %>Private
<% end %>
<% else %>
deploy_id: <%= $vpc_deploy_id %>
subnet_pref: all_private
Expand Down
4 changes: 0 additions & 4 deletions demo/tiered_apps/winapps_pool.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,6 @@
vpc_name: vpc
nat_host_name: bastion
nat_ssh_user: root
subnets:
<% (1..$azs.size).each do |i| %>
- subnet_name: TieredSubnet<%= i-1 %>Private
<% end %>
<% else %>
deploy_id: <%= $vpc_deploy_id %>
<% end %>
Expand Down
Loading

0 comments on commit 6902543

Please sign in to comment.