module Chef::Knife::Cloud::OpenstackServiceOptions

Public Class Methods

included(includer) click to toggle source
# File lib/chef/knife/cloud/openstack_service_options.rb, line 23
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"

    option :openstack_password,
      short: "-K SECRET",
      long: "--openstack-password SECRET",
      description: "Your OpenStack Password"

    option :openstack_tenant,
      short: "-T NAME",
      long: "--openstack-tenant NAME",
      description: "Your OpenStack Tenant NAME"

    option :openstack_auth_url,
      long: "--openstack-api-endpoint ENDPOINT",
      description: "Your OpenStack API endpoint"

    option :openstack_endpoint_type,
      long: "--openstack-endpoint-type ENDPOINT_TYPE",
      description: "OpenStack endpoint type to use (publicURL, internalURL, adminURL)"

    option :openstack_insecure,
      long: "--insecure",
      description: "Ignore SSL certificate on the Auth URL",
      boolean: true,
      default: false
  end
end