stack-kicker 0.0.7 → 0.0.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
1
  module Stack
2
2
  module Kicker
3
- VERSION = "0.0.7"
3
+ VERSION = "0.0.8"
4
4
  end
5
5
  end
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
- # run the secgroup-sync tool, across each AZ/REGION
601
- config[:azs].each do |az|
602
- Logger.info "Syncing security groups in #{az}"
603
- system("stackhelper --os-region-name #{az} secgroup-sync --secgroup-json secgroups.json --additional-group-json #{sg_json.path}")
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
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: stack-kicker
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.7
4
+ version: 0.0.8
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: