Skip to content

Commit

Permalink
Merge pull request #60 from paulrossman/master
Browse files Browse the repository at this point in the history
server create support for additional Linux-based operating systems
  • Loading branch information
paulrossman committed Mar 27, 2015
2 parents aa1a830 + 06ad53f commit 114817f
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 5 deletions.
19 changes: 15 additions & 4 deletions lib/chef/knife/google_server_create.rb
Expand Up @@ -419,14 +419,25 @@ def run
image = client.images.get(:project=>project, :name=>config[:image]).self_link
else
case config[:image].downcase
when /debian/
project = 'debian-cloud'
ui.info("Looking for Image '#{config[:image]}' in Project '#{project}'")
when /centos/
project = 'centos-cloud'
ui.info("Looking for Image '#{config[:image]}' in Project '#{project}'")
when /container-vm/
project = 'google-containers'
when /coreos/
project = 'coreos-cloud'
when /debian/
project = 'debian-cloud'
when /opensuse-cloud/
project = 'opensuse-cloud'
when /rhel/
project = 'rhel-cloud'
when /sles/
project = 'suse-cloud'
when /ubuntu/
project = 'ubuntu-os-cloud'
end
checked_all = true
ui.info("Looking for Image '#{config[:image]}' in Project '#{project}'")
image = client.images.get(:project=>project, :name=>config[:image]).self_link
end
else
Expand Down
2 changes: 1 addition & 1 deletion lib/knife-google/version.rb
Expand Up @@ -14,6 +14,6 @@
#
module Knife
module Google
VERSION = "1.4.1"
VERSION = "1.4.2"
end
end

0 comments on commit 114817f

Please sign in to comment.