Skip to content

Commit

Permalink
Add OpenStack Package Compiler
Browse files Browse the repository at this point in the history
Change-Id: Ibcd280db27b2d9ff5efc98a0542908345db73005
  • Loading branch information
frodenas committed Jul 28, 2012
1 parent 72c1099 commit ef53d6a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package_compiler/bin/package_compiler
Expand Up @@ -10,7 +10,7 @@ $:.unshift(File.expand_path(File.join(File.dirname(__FILE__), "..", "lib")))
require "trollop"
require "package_compiler"

CPIS = %w[aws vsphere]
CPIS = %w[aws openstack vsphere]
COMMANDS = %w[apply compile]

def usage(msg=nil)
Expand Down
2 changes: 2 additions & 0 deletions package_compiler/lib/package_compiler/compiler.rb
Expand Up @@ -108,6 +108,8 @@ def prep_spec(deployment)
spec["networks"] = {"local" => {"ip" => "127.0.0.1"}}
when "aws"
spec["networks"] = {"type" => "dynamic"}
when "openstack"
spec["networks"] = {"type" => "dynamic"}
else
puts "WARNING: no CPI specified"
end
Expand Down

0 comments on commit ef53d6a

Please sign in to comment.