Module: VagrantPlugins::Openstack

Defined in:
lib/vagrant-openstack-illuin-provider.rb,
lib/vagrant-openstack-illuin-provider/utils.rb,
lib/vagrant-openstack-illuin-provider/action.rb,
lib/vagrant-openstack-illuin-provider/config.rb,
lib/vagrant-openstack-illuin-provider/errors.rb,
lib/vagrant-openstack-illuin-provider/plugin.rb,
lib/vagrant-openstack-illuin-provider/logging.rb,
lib/vagrant-openstack-illuin-provider/version.rb,
lib/vagrant-openstack-illuin-provider/provider.rb,
lib/vagrant-openstack-illuin-provider/client/heat.rb,
lib/vagrant-openstack-illuin-provider/client/nova.rb,
lib/vagrant-openstack-illuin-provider/config/http.rb,
lib/vagrant-openstack-illuin-provider/command/main.rb,
lib/vagrant-openstack-illuin-provider/action/resume.rb,
lib/vagrant-openstack-illuin-provider/client/cinder.rb,
lib/vagrant-openstack-illuin-provider/client/domain.rb,
lib/vagrant-openstack-illuin-provider/client/glance.rb,
lib/vagrant-openstack-illuin-provider/command/reset.rb,
lib/vagrant-openstack-illuin-provider/command/utils.rb,
lib/vagrant-openstack-illuin-provider/action/message.rb,
lib/vagrant-openstack-illuin-provider/action/suspend.rb,
lib/vagrant-openstack-illuin-provider/client/neutron.rb,
lib/vagrant-openstack-illuin-provider/client/keystone.rb,
lib/vagrant-openstack-illuin-provider/config_resolver.rb,
lib/vagrant-openstack-illuin-provider/version_checker.rb,
lib/vagrant-openstack-illuin-provider/action/provision.rb,
lib/vagrant-openstack-illuin-provider/action/wait_stop.rb,
lib/vagrant-openstack-illuin-provider/client/openstack.rb,
lib/vagrant-openstack-illuin-provider/action/read_state.rb,
lib/vagrant-openstack-illuin-provider/cap/snapshot_list.rb,
lib/vagrant-openstack-illuin-provider/client/http_utils.rb,
lib/vagrant-openstack-illuin-provider/client/rest_utils.rb,
lib/vagrant-openstack-illuin-provider/action/stop_server.rb,
lib/vagrant-openstack-illuin-provider/action/wait_active.rb,
lib/vagrant-openstack-illuin-provider/command/image_list.rb,
lib/vagrant-openstack-illuin-provider/action/create_stack.rb,
lib/vagrant-openstack-illuin-provider/action/delete_stack.rb,
lib/vagrant-openstack-illuin-provider/action/start_server.rb,
lib/vagrant-openstack-illuin-provider/action/sync_folders.rb,
lib/vagrant-openstack-illuin-provider/command/flavor_list.rb,
lib/vagrant-openstack-illuin-provider/command/subnet_list.rb,
lib/vagrant-openstack-illuin-provider/command/volume_list.rb,
lib/vagrant-openstack-illuin-provider/action/create_server.rb,
lib/vagrant-openstack-illuin-provider/action/delete_server.rb,
lib/vagrant-openstack-illuin-provider/action/read_ssh_info.rb,
lib/vagrant-openstack-illuin-provider/action/snapshot_list.rb,
lib/vagrant-openstack-illuin-provider/action/snapshot_save.rb,
lib/vagrant-openstack-illuin-provider/command/network_list.rb,
lib/vagrant-openstack-illuin-provider/client/request_logger.rb,
lib/vagrant-openstack-illuin-provider/action/abstract_action.rb,
lib/vagrant-openstack-illuin-provider/action/snapshot_delete.rb,
lib/vagrant-openstack-illuin-provider/action/snapshot_cleanup.rb,
lib/vagrant-openstack-illuin-provider/action/snapshot_restore.rb,
lib/vagrant-openstack-illuin-provider/command/floatingip_list.rb,
lib/vagrant-openstack-illuin-provider/action/connect_openstack.rb,
lib/vagrant-openstack-illuin-provider/command/abstract_command.rb,
lib/vagrant-openstack-illuin-provider/catalog/openstack_catalog.rb,
lib/vagrant-openstack-illuin-provider/command/openstack_command.rb

Defined Under Namespace

Modules: Action, Cap, Catalog, Command, Domain, Errors, HttpUtils, Logging, RestUtils Classes: CinderClient, Config, ConfigResolver, GlanceClient, HeatClient, HttpConfig, KeystoneClient, NeutronClient, NovaClient, Plugin, Provider, Session, Utils, VersionChecker

Constant Summary collapse

VERSION =

Stable versions must respect the pattern given by VagrantPlugins::Openstack::VERSION_PATTERN

'0.12.0'
VERSION_PATTERN =

Stable version must respect the naming convention ‘x.y.z’ where x, y and z are integers inside the range [0, 999]

/^[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}$/

Class Method Summary collapse

Class Method Details

.check_versionObject

rubocop:disable Lint/HandleExceptions



67
68
69
70
71
72
73
# File 'lib/vagrant-openstack-illuin-provider/version_checker.rb', line 67

def self.check_version
  Timeout.timeout(3, Errors::Timeout) do
    VersionChecker.instance.check
  end
rescue
  # Do nothing whatever the failure cause
end

.cinderObject



51
52
53
# File 'lib/vagrant-openstack-illuin-provider/client/openstack.rb', line 51

def self.cinder
  Openstack::CinderClient.instance
end

.glanceObject



55
56
57
# File 'lib/vagrant-openstack-illuin-provider/client/openstack.rb', line 55

def self.glance
  Openstack::GlanceClient.instance
end

.heatObject



43
44
45
# File 'lib/vagrant-openstack-illuin-provider/client/openstack.rb', line 43

def self.heat
  Openstack::HeatClient.instance
end

.init_i18nObject

This initializes the i18n load path so that the plugin-specific translations work.



13
14
15
16
# File 'lib/vagrant-openstack-illuin-provider.rb', line 13

def self.init_i18n
  I18n.load_path << File.expand_path('locales/en.yml', source_root)
  I18n.reload!
end

.init_loggingObject



18
19
20
# File 'lib/vagrant-openstack-illuin-provider.rb', line 18

def self.init_logging
  Logging.init
end

.keystoneObject



35
36
37
# File 'lib/vagrant-openstack-illuin-provider/client/openstack.rb', line 35

def self.keystone
  Openstack::KeystoneClient.instance
end

.neutronObject



47
48
49
# File 'lib/vagrant-openstack-illuin-provider/client/openstack.rb', line 47

def self.neutron
  Openstack::NeutronClient.instance
end

.novaObject



39
40
41
# File 'lib/vagrant-openstack-illuin-provider/client/openstack.rb', line 39

def self.nova
  Openstack::NovaClient.instance
end

.sessionObject



31
32
33
# File 'lib/vagrant-openstack-illuin-provider/client/openstack.rb', line 31

def self.session
  Session.instance
end

.source_rootPathname

This returns the path to the source of this plugin.

Returns:

  • (Pathname)


25
26
27
# File 'lib/vagrant-openstack-illuin-provider.rb', line 25

def self.source_root
  @source_root ||= Pathname.new(File.expand_path('../../', __FILE__))
end