vagrant-norequiretty 0.0.1 → 0.0.2
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 +20 -0
- data/README.markdown +1 -1
- data/lib/vagrant-norequiretty/plugin.rb +25 -2
- data/lib/vagrant-norequiretty/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 38f0ef4f13060fcbaa6fe92d181463695c003f32
|
4
|
+
data.tar.gz: 8d31c3986baa3f8fb92106c94b402b9b54e64a70
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 29e8ca5232e89325ee63c797262c9e103c4e06ae2cc565d53f295e7605e8fefc77b26cc3be5145f5827e18a1d5a3a6720841067ad33dd9116c0d0e6b90ee186c
|
7
|
+
data.tar.gz: b46c3b4e12a52587e26e74e5a302bcd20e5d69a58d817608c691f539dafe370c730ff91132deaa73d33f2dfd8d62b0ea1ed50b5ea43cc25323515c560daff234
|
data/CHANGELOG
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
CHANGELOG
|
2
|
+
=========
|
3
|
+
|
4
|
+
0.0.2
|
5
|
+
-----
|
6
|
+
|
7
|
+
2016-04-03
|
8
|
+
|
9
|
+
This is a backwards compatible feature release.
|
10
|
+
|
11
|
+
* (GH-1) Ensure requiretty is disabled before halt, reload and destroy
|
12
|
+
actions are run.
|
13
|
+
|
14
|
+
|
15
|
+
0.0.1
|
16
|
+
-----
|
17
|
+
|
18
|
+
2016-03-29
|
19
|
+
|
20
|
+
Initial release.
|
data/README.markdown
CHANGED
@@ -27,7 +27,7 @@ Synopsis
|
|
27
27
|
========
|
28
28
|
|
29
29
|
This error is caused by many VM templates and default installations requiring
|
30
|
-
a TTY to use `sudo` due to concerns about
|
30
|
+
a TTY to use `sudo` due to concerns about echoing plaintext passwords in the
|
31
31
|
clear. For many cases,
|
32
32
|
[this requirement is questionable](https://bugzilla.redhat.com/show_bug.cgi?id=1020147):
|
33
33
|
|
@@ -16,10 +16,33 @@ class VagrantNoRequireTTY::Plugin < Vagrant.plugin(2)
|
|
16
16
|
|
17
17
|
# For RSync.
|
18
18
|
hook.after(Vagrant::Action::Builtin::SyncedFolders, action)
|
19
|
-
# For everything else.
|
20
|
-
# For great justice.
|
21
19
|
end
|
22
20
|
|
21
|
+
# For everything else.
|
22
|
+
action_hook('Disable requiretty on shutdown', :machine_action_halt) do |hook|
|
23
|
+
require_relative 'action'
|
24
|
+
action = VagrantNoRequireTTY::Action
|
25
|
+
|
26
|
+
hook.prepend(action)
|
27
|
+
end
|
28
|
+
|
29
|
+
action_hook('Disable requiretty on reload', :machine_action_reload) do |hook|
|
30
|
+
require_relative 'action'
|
31
|
+
action = VagrantNoRequireTTY::Action
|
32
|
+
|
33
|
+
hook.prepend(action)
|
34
|
+
end
|
35
|
+
|
36
|
+
action_hook('Disable requiretty on destroy', :machine_action_destroy) do |hook|
|
37
|
+
require_relative 'action'
|
38
|
+
action = VagrantNoRequireTTY::Action
|
39
|
+
|
40
|
+
hook.prepend(action)
|
41
|
+
end
|
42
|
+
|
43
|
+
# For great justice.
|
44
|
+
|
45
|
+
|
23
46
|
[:linux].each do |os|
|
24
47
|
guest_capability(os, :norequiretty) do
|
25
48
|
require_relative 'cap'
|
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.2
|
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-03
|
11
|
+
date: 2016-04-03 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
|
@@ -20,6 +20,7 @@ extensions: []
|
|
20
20
|
extra_rdoc_files: []
|
21
21
|
files:
|
22
22
|
- ".gitignore"
|
23
|
+
- CHANGELOG
|
23
24
|
- README.markdown
|
24
25
|
- lib/vagrant-norequiretty.rb
|
25
26
|
- lib/vagrant-norequiretty/action.rb
|