vagrant-openstack-provider 0.1.2 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +13 -5
- data/.rubocop.yml +28 -0
- data/Appraisals +3 -3
- data/CHANGELOG.md +4 -0
- data/Gemfile +3 -0
- data/Rakefile +6 -2
- data/Vagrantfile +4 -15
- data/gemfiles/latest_stable.gemfile +2 -0
- data/gemfiles/oldest_current.gemfile +2 -0
- data/gemfiles/previous_release.gemfile +2 -0
- data/lib/vagrant-openstack-provider.rb +18 -13
- data/lib/vagrant-openstack-provider/action.rb +112 -46
- data/lib/vagrant-openstack-provider/action/connect_openstack.rb +9 -10
- data/lib/vagrant-openstack-provider/action/create_server.rb +86 -57
- data/lib/vagrant-openstack-provider/action/delete_server.rb +5 -6
- data/lib/vagrant-openstack-provider/action/{is_created.rb → message.rb} +4 -3
- data/lib/vagrant-openstack-provider/action/read_ssh_info.rb +7 -27
- data/lib/vagrant-openstack-provider/action/read_state.rb +7 -9
- data/lib/vagrant-openstack-provider/action/resume.rb +20 -0
- data/lib/vagrant-openstack-provider/action/start_server.rb +22 -0
- data/lib/vagrant-openstack-provider/action/stop_server.rb +22 -0
- data/lib/vagrant-openstack-provider/action/suspend.rb +20 -0
- data/lib/vagrant-openstack-provider/action/sync_folders.rb +27 -38
- data/lib/vagrant-openstack-provider/action/wait_stop.rb +29 -0
- data/lib/vagrant-openstack-provider/client/keystone.rb +76 -0
- data/lib/vagrant-openstack-provider/client/neutron.rb +32 -0
- data/lib/vagrant-openstack-provider/client/nova.rb +166 -0
- data/lib/vagrant-openstack-provider/client/openstack.rb +41 -0
- data/lib/vagrant-openstack-provider/client/utils.rb +38 -0
- data/lib/vagrant-openstack-provider/config.rb +38 -110
- data/lib/vagrant-openstack-provider/errors.rb +7 -3
- data/lib/vagrant-openstack-provider/plugin.rb +8 -8
- data/lib/vagrant-openstack-provider/provider.rb +6 -6
- data/lib/vagrant-openstack-provider/version.rb +1 -1
- data/locales/en.yml +83 -5
- data/numergyrc +22 -0
- data/spec/vagrant-openstack-provider/action/create_server_spec.rb +89 -0
- data/spec/vagrant-openstack-provider/client/keystone_spec.rb +140 -0
- data/spec/vagrant-openstack-provider/client/neutron_spec.rb +53 -0
- data/spec/vagrant-openstack-provider/client/nova_spec.rb +373 -0
- data/spec/vagrant-openstack-provider/client/utils_spec.rb +125 -0
- data/spec/vagrant-openstack-provider/config_spec.rb +117 -0
- data/spec/vagrant-openstack-provider/provider_spec.rb +13 -0
- data/spec/vagrant-openstack-provider/spec_helper.rb +23 -0
- data/vagrant-openstack-provider.gemspec +13 -14
- metadata +40 -30
- data/features/provision.feature +0 -35
- data/features/steps/sdk_steps.rb +0 -13
- data/features/steps/server_steps.rb +0 -25
- data/features/support/env.rb +0 -37
- data/features/support/fog_mock.rb +0 -19
- data/features/vagrant-openstack-provider.feature +0 -70
- data/lib/vagrant-openstack-provider/action/message_already_created.rb +0 -16
- data/lib/vagrant-openstack-provider/action/message_not_created.rb +0 -16
- data/lib/vagrant-openstack-provider/openstack_client.rb +0 -98
- data/spec/vagrant-openstack/config_spec.rb +0 -184
- data/stackrc +0 -31
data/stackrc
DELETED
@@ -1,31 +0,0 @@
|
|
1
|
-
#!/bin/bash
|
2
|
-
|
3
|
-
# With the addition of Keystone, to use an openstack cloud you should
|
4
|
-
# authenticate against keystone, which returns a **Token** and **Service
|
5
|
-
# Catalog**. The catalog contains the endpoint for all services the
|
6
|
-
# user/tenant has access to - including nova, glance, keystone, swift.
|
7
|
-
#
|
8
|
-
# *NOTE*: Using the 2.0 *auth api* does not mean that compute api is 2.0. We
|
9
|
-
# will use the 1.1 *compute api*
|
10
|
-
export OS_AUTH_URL=https://cloud.numergy.com:5000/v2.0/tokens
|
11
|
-
export OS_COMPUTE_URL=https://cloud.numergy.com:8774/v2/7f264bf82ce7420e8d7939f31dd1daac
|
12
|
-
|
13
|
-
# With the addition of Keystone we have standardized on the term **tenant**
|
14
|
-
# as the entity that owns the resources.
|
15
|
-
export OS_TENANT_ID=7f264bf82ce7420e8d7939f31dd1daac
|
16
|
-
export OS_TENANT_NAME="PaaS"
|
17
|
-
|
18
|
-
# In addition to the owning entity (tenant), openstack stores the entity
|
19
|
-
# performing the action as the **user**.
|
20
|
-
if [ -z "$OS_USERNAME" ]; then
|
21
|
-
echo "Please enter your OpenStack username: "
|
22
|
-
read -sr OS_USERNAME_INPUT
|
23
|
-
export OS_USERNAME=$OS_USERNAME_INPUT
|
24
|
-
fi
|
25
|
-
|
26
|
-
# With Keystone you pass the keystone password.
|
27
|
-
if [ -z "$OS_PASSWORD" ]; then
|
28
|
-
echo "Please enter your OpenStack Password: "
|
29
|
-
read -sr OS_PASSWORD_INPUT
|
30
|
-
export OS_PASSWORD=$OS_PASSWORD_INPUT
|
31
|
-
fi
|