vagrant-norequiretty 0.0.2 → 0.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG +11 -0
- data/README.markdown +4 -3
- data/lib/vagrant-norequiretty/action.rb +5 -1
- data/lib/vagrant-norequiretty/plugin.rb +3 -0
- data/lib/vagrant-norequiretty/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 69d5478c850807408b38d24a8fa60b91c001f277
|
|
4
|
+
data.tar.gz: cd68e552dc9cc2ebd2bd2f0b57e4384675772451
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 474d10f1a07c90ea01bd4de8d4d921c4d94f36e33b5d2ab48a23bf966c25e04eac8cea38471a2de9213b8018692063d263edd164025bc33af9354e1ebe0d8d68
|
|
7
|
+
data.tar.gz: 731e6969d7c7d922db8b6f10c649a9daa1432b0b0fec29dcaffd244217b69b3c5cb1bb06d24bce6b48648107f918f0cb1468fa2286a9d1ea11e2a7ba4e16a5dd
|
data/CHANGELOG
CHANGED
data/README.markdown
CHANGED
|
@@ -45,8 +45,9 @@ clear. For many cases,
|
|
|
45
45
|
>
|
|
46
46
|
> I see no pros. Do you?
|
|
47
47
|
|
|
48
|
-
This Vagrant plugin hooks into startup actions for VirtualBox, vSphere
|
|
49
|
-
|
|
50
|
-
setting before provisioners, synced folders
|
|
48
|
+
This Vagrant plugin hooks into startup actions for VirtualBox, vSphere, VMware
|
|
49
|
+
Desktop, and OpenStack providers by running a `sed` command to purge the
|
|
50
|
+
`requiretty` setting from `/etc/sudoers` before provisioners, synced folders
|
|
51
|
+
and networking actions are executed.
|
|
51
52
|
|
|
52
53
|
Support for additional providers coming soon.
|
|
@@ -26,7 +26,11 @@ module VagrantNoRequireTTY
|
|
|
26
26
|
end
|
|
27
27
|
|
|
28
28
|
def supports_requiretty?(machine)
|
|
29
|
-
|
|
29
|
+
# Some versions of the OpenStack provider crash if
|
|
30
|
+
# machine.communicate.ready? is called before the machine is created.
|
|
31
|
+
(machine.state.id != :not_created) &&
|
|
32
|
+
machine.communicate.ready? &&
|
|
33
|
+
machine.guest.capability?(:norequiretty)
|
|
30
34
|
rescue Vagrant::Errors::VagrantError
|
|
31
35
|
# WinRM will raise an error if the VM isn't running instead of
|
|
32
36
|
# returning false.
|
|
@@ -16,6 +16,9 @@ class VagrantNoRequireTTY::Plugin < Vagrant.plugin(2)
|
|
|
16
16
|
|
|
17
17
|
# For RSync.
|
|
18
18
|
hook.after(Vagrant::Action::Builtin::SyncedFolders, action)
|
|
19
|
+
if defined? VagrantPlugins::Openstack::Action::SyncFolders
|
|
20
|
+
hook.after(VagrantPlugins::Openstack::Action::SyncFolders, action)
|
|
21
|
+
end
|
|
19
22
|
end
|
|
20
23
|
|
|
21
24
|
# For everything else.
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: vagrant-norequiretty
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Charlie Sharpsteen
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2016-04-
|
|
11
|
+
date: 2016-04-07 00:00:00.000000000 Z
|
|
12
12
|
dependencies: []
|
|
13
13
|
description: |
|
|
14
14
|
Ever get a "sorry, you must have a tty to run sudo" error? Maybe
|