Sha256: 3d0547cbf9de43eafdd29ae922f7bcb1c5c0f8df7f06c056843f055d2507b9ca
Contents?: true
Size: 1.97 KB
Versions: 9
Compression:
Stored size: 1.97 KB
Contents
require 'chef/knife/cloud/fog/options' class Chef class Knife class Cloud module OpenstackServiceOptions def self.included(includer) includer.class_eval do include FogOptions # Openstack Connection params. option :openstack_username, :short => "-A USERNAME", :long => "--openstack-username KEY", :description => "Your OpenStack Username", :proc => Proc.new { |key| Chef::Config[:knife][:openstack_username] = key } option :openstack_password, :short => "-K SECRET", :long => "--openstack-password SECRET", :description => "Your OpenStack Password", :proc => Proc.new { |key| Chef::Config[:knife][:openstack_password] = key } option :openstack_tenant, :short => "-T NAME", :long => "--openstack-tenant NAME", :description => "Your OpenStack Tenant NAME", :proc => Proc.new { |key| Chef::Config[:knife][:openstack_tenant] = key } option :openstack_auth_url, :long => "--openstack-api-endpoint ENDPOINT", :description => "Your OpenStack API endpoint", :proc => Proc.new { |endpoint| Chef::Config[:knife][:openstack_auth_url] = endpoint } option :openstack_endpoint_type, :long => "--openstack-endpoint-type ENDPOINT_TYPE", :description => "OpenStack endpoint type to use (publicURL, internalURL, adminURL)", :proc => Proc.new { |type| Chef::Config[:knife][:openstack_endpoint_type] = type } option :openstack_insecure, :long => "--insecure", :description => "Ignore SSL certificate on the Auth URL", :boolean => true, :default => false, :proc => Proc.new { |key| Chef::Config[:knife][:openstack_insecure] = key } end end end end end end
Version data entries
9 entries across 9 versions & 1 rubygems