vagrant-ovirt3 1.4.0 → 1.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +0 -0
- data/Gemfile +0 -0
- data/LICENSE +0 -0
- data/README.md +0 -0
- data/Rakefile +0 -0
- data/example_box/README.md +0 -0
- data/example_box/Vagrantfile +0 -0
- data/example_box/dummy.box +0 -0
- data/example_box/metadata.json +0 -0
- data/lib/vagrant-ovirt3/action/connect_ovirt.rb +0 -0
- data/lib/vagrant-ovirt3/action/create_network_interfaces.rb +0 -0
- data/lib/vagrant-ovirt3/action/create_vm.rb +0 -0
- data/lib/vagrant-ovirt3/action/destroy_vm.rb +0 -0
- data/lib/vagrant-ovirt3/action/halt_vm.rb +0 -0
- data/lib/vagrant-ovirt3/action/is_created.rb +0 -0
- data/lib/vagrant-ovirt3/action/message_already_created.rb +0 -0
- data/lib/vagrant-ovirt3/action/message_already_up.rb +0 -0
- data/lib/vagrant-ovirt3/action/message_not_created.rb +0 -0
- data/lib/vagrant-ovirt3/action/message_not_suspended.rb +0 -0
- data/lib/vagrant-ovirt3/action/message_not_up.rb +0 -0
- data/lib/vagrant-ovirt3/action/message_saving_state.rb +0 -0
- data/lib/vagrant-ovirt3/action/read_ssh_info.rb +0 -0
- data/lib/vagrant-ovirt3/action/read_state.rb +0 -0
- data/lib/vagrant-ovirt3/action/resize_disk.rb +0 -0
- data/lib/vagrant-ovirt3/action/set_name_of_domain.rb +5 -3
- data/lib/vagrant-ovirt3/action/start_vm.rb +0 -0
- data/lib/vagrant-ovirt3/action/suspend_vm.rb +0 -0
- data/lib/vagrant-ovirt3/action/sync_folders.rb +0 -0
- data/lib/vagrant-ovirt3/action/wait_till_up.rb +0 -0
- data/lib/vagrant-ovirt3/action.rb +0 -0
- data/lib/vagrant-ovirt3/cap/nic_mac_addresses.rb +0 -0
- data/lib/vagrant-ovirt3/config.rb +0 -0
- data/lib/vagrant-ovirt3/errors.rb +0 -0
- data/lib/vagrant-ovirt3/plugin.rb +0 -0
- data/lib/vagrant-ovirt3/provider.rb +0 -0
- data/lib/vagrant-ovirt3/util/collection.rb +0 -0
- data/lib/vagrant-ovirt3/util/timer.rb +0 -0
- data/lib/vagrant-ovirt3/util.rb +0 -0
- data/lib/vagrant-ovirt3/version.rb +1 -1
- data/lib/vagrant-ovirt3.rb +0 -0
- data/locales/en.yml +0 -0
- data/tools/prepare_redhat_for_box.sh +1 -1
- data/vagrant-ovirt3.gemspec +0 -0
- metadata +14 -14
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 04923cda3ffdd819d799a79f36f4eb95b32eca7f
|
4
|
+
data.tar.gz: 44f15f42bbcef3924ec8c8dc9be86b4425d33025
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9aefea98057b34f65620423bb35593caddf0c786f58667cd75b644230086a96c070ce4ec3a87a3bebab70f65ed0e414c8b5570bb0988dced6bf6f4465bbcbc08
|
7
|
+
data.tar.gz: a6d6e45f7ef43f96217f9376769bd165c5bd59a9e93de0d4fa0dc9074c15587978db9d7df17cd35faa0809c8424415e05ee26fd52e24daa2441a9bb1313ebc5e
|
data/.gitignore
CHANGED
File without changes
|
data/Gemfile
CHANGED
File without changes
|
data/LICENSE
CHANGED
File without changes
|
data/README.md
CHANGED
File without changes
|
data/Rakefile
CHANGED
File without changes
|
data/example_box/README.md
CHANGED
File without changes
|
data/example_box/Vagrantfile
CHANGED
File without changes
|
data/example_box/dummy.box
CHANGED
File without changes
|
data/example_box/metadata.json
CHANGED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
@@ -4,14 +4,16 @@ module VagrantPlugins
|
|
4
4
|
|
5
5
|
# Setup name for domain and domain volumes.
|
6
6
|
class SetNameOfDomain
|
7
|
+
@@MAX_NAME_LENGTH = 64
|
7
8
|
def initialize(app, env)
|
8
9
|
@app = app
|
9
10
|
end
|
10
11
|
|
11
12
|
def call(env)
|
12
|
-
|
13
|
-
|
14
|
-
|
13
|
+
dir_name = env[:root_path].basename.to_s.dup.gsub(/[^-a-z0-9_]/i, "")
|
14
|
+
timestamp = "_#{Time.now.to_f}"
|
15
|
+
max_dir_name_length = dir_name.length-[(dir_name + timestamp).length-(@@MAX_NAME_LENGTH-1), 0].max
|
16
|
+
env[:domain_name] = dir_name[0..max_dir_name_length] << timestamp
|
15
17
|
|
16
18
|
# Check if the domain name is not already taken
|
17
19
|
domain = OVirtProvider::Util::Collection.find_matching(
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
data/lib/vagrant-ovirt3/util.rb
CHANGED
File without changes
|
data/lib/vagrant-ovirt3.rb
CHANGED
File without changes
|
data/locales/en.yml
CHANGED
File without changes
|
@@ -80,7 +80,7 @@ sed -i 's/.*UseDNS.*/UseDNS no/' /etc/ssh/sshd_config
|
|
80
80
|
vagrant_home=/home/vagrant
|
81
81
|
[ -d $vagrant_home/.ssh ] || mkdir $vagrant_home/.ssh
|
82
82
|
chmod 700 $vagrant_home/.ssh
|
83
|
-
curl https://
|
83
|
+
curl -k -L --silent https://raw.githubusercontent.com/mitchellh/vagrant/master/keys/vagrant.pub > $vagrant_home/.ssh/authorized_keys
|
84
84
|
chmod 600 $vagrant_home/.ssh/authorized_keys
|
85
85
|
chown -R vagrant:vagrant $vagrant_home/.ssh
|
86
86
|
|
data/vagrant-ovirt3.gemspec
CHANGED
File without changes
|
metadata
CHANGED
@@ -1,61 +1,61 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vagrant-ovirt3
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Marcus Young
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-04-
|
11
|
+
date: 2015-04-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: fog
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- -
|
17
|
+
- - ~>
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: '1.27'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- -
|
24
|
+
- - ~>
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '1.27'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rbovirt
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- -
|
31
|
+
- - ~>
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: '0.0'
|
34
|
-
- -
|
34
|
+
- - '>='
|
35
35
|
- !ruby/object:Gem::Version
|
36
36
|
version: 0.0.31
|
37
37
|
type: :runtime
|
38
38
|
prerelease: false
|
39
39
|
version_requirements: !ruby/object:Gem::Requirement
|
40
40
|
requirements:
|
41
|
-
- -
|
41
|
+
- - ~>
|
42
42
|
- !ruby/object:Gem::Version
|
43
43
|
version: '0.0'
|
44
|
-
- -
|
44
|
+
- - '>='
|
45
45
|
- !ruby/object:Gem::Version
|
46
46
|
version: 0.0.31
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
48
|
name: rake
|
49
49
|
requirement: !ruby/object:Gem::Requirement
|
50
50
|
requirements:
|
51
|
-
- -
|
51
|
+
- - ~>
|
52
52
|
- !ruby/object:Gem::Version
|
53
53
|
version: '0'
|
54
54
|
type: :development
|
55
55
|
prerelease: false
|
56
56
|
version_requirements: !ruby/object:Gem::Requirement
|
57
57
|
requirements:
|
58
|
-
- -
|
58
|
+
- - ~>
|
59
59
|
- !ruby/object:Gem::Version
|
60
60
|
version: '0'
|
61
61
|
description: Vagrant provider for oVirt and RHEV v3
|
@@ -65,7 +65,7 @@ executables: []
|
|
65
65
|
extensions: []
|
66
66
|
extra_rdoc_files: []
|
67
67
|
files:
|
68
|
-
-
|
68
|
+
- .gitignore
|
69
69
|
- Gemfile
|
70
70
|
- LICENSE
|
71
71
|
- README.md
|
@@ -118,17 +118,17 @@ require_paths:
|
|
118
118
|
- lib
|
119
119
|
required_ruby_version: !ruby/object:Gem::Requirement
|
120
120
|
requirements:
|
121
|
-
- -
|
121
|
+
- - '>='
|
122
122
|
- !ruby/object:Gem::Version
|
123
123
|
version: '0'
|
124
124
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
125
125
|
requirements:
|
126
|
-
- -
|
126
|
+
- - '>='
|
127
127
|
- !ruby/object:Gem::Version
|
128
128
|
version: '0'
|
129
129
|
requirements: []
|
130
130
|
rubyforge_project:
|
131
|
-
rubygems_version: 2.
|
131
|
+
rubygems_version: 2.4.1
|
132
132
|
signing_key:
|
133
133
|
specification_version: 4
|
134
134
|
summary: This vagrant plugin provides the ability to create, control, and destroy
|