Sha256: 01cf9630a68804c356c264f642fb1d4a6480a4ef5464ed6a3357e3be7753fad3
Contents?: true
Size: 1.99 KB
Versions: 3
Compression:
Stored size: 1.99 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 { |key| Chef::Config[:knife][:openstack_username] = key } option :openstack_password, short: '-K SECRET', long: '--openstack-password SECRET', description: 'Your OpenStack Password', proc: proc { |key| Chef::Config[:knife][:openstack_password] = key } option :openstack_tenant, short: '-T NAME', long: '--openstack-tenant NAME', description: 'Your OpenStack Tenant NAME', proc: proc { |key| Chef::Config[:knife][:openstack_tenant] = key } option :openstack_auth_url, long: '--openstack-api-endpoint ENDPOINT', description: 'Your OpenStack API endpoint', proc: proc { |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 { |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 { |key| Chef::Config[:knife][:openstack_insecure] = key } end end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems