stack-kicker 0.0.7 → 0.0.8
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/stack-kicker/version.rb +1 -1
- data/lib/stack.rb +9 -4
- metadata +1 -1
data/lib/stack-kicker/version.rb
CHANGED
data/lib/stack.rb
CHANGED
@@ -597,10 +597,15 @@ cookbook_path [ '<%=config[:stackhome]%>/cookbooks' ]
|
|
597
597
|
sg_json.write(secgroup_ips.to_json)
|
598
598
|
sg_json.close
|
599
599
|
|
600
|
-
|
601
|
-
|
602
|
-
|
603
|
-
|
600
|
+
if File.exists?('secgroups.json')
|
601
|
+
Logger.info "Found secgroups.json, syncing secgroups across AZ"
|
602
|
+
# run the secgroup-sync tool, across each AZ/REGION
|
603
|
+
config[:azs].each do |az|
|
604
|
+
Logger.info "Syncing security groups in #{az}"
|
605
|
+
system("stackhelper --os-region-name #{az} secgroup-sync --secgroup-json secgroups.json --additional-group-json #{sg_json.path}")
|
606
|
+
end
|
607
|
+
else
|
608
|
+
Logger.info "No secgroups.json found, skipping secgroup sync"
|
604
609
|
end
|
605
610
|
end
|
606
611
|
|