vagrant-aws-mscottford 0.8.0 → 0.8.1
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/README.md +4 -1
- data/lib/vagrant-aws/cap/winrm_info.rb +7 -1
- data/lib/vagrant-aws/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 03221fd2f9345b1e75df7700b40f97db339c900b0a5c9f0429022aa0b711e07e
|
4
|
+
data.tar.gz: 925bfd3e58cb25a48c8934d6614a18bf6db4768fa9be1954a9546e9b9c50bab4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f143c79faf61903b14dcbdb80c79bd149857334446965f17e54093c18f190c5b6f94c512044de9bd420818801f328053f3778c2751a021949416a934103bc2b6
|
7
|
+
data.tar.gz: f28fdcdda500f58df0a0ef741b04dd2a18bd958e72dc77049a56c7dddc7788217c30970c9f43e3f2c7a69348db5fa50227ff275868cff61eaf6b176b6bff6f17
|
data/README.md
CHANGED
@@ -35,7 +35,10 @@ installing, `vagrant up` and specify the `aws` provider. An example is
|
|
35
35
|
shown below.
|
36
36
|
|
37
37
|
```
|
38
|
-
|
38
|
+
# Uninstall the original plugin
|
39
|
+
$ vagrant plugin uninstall vagrant-aws
|
40
|
+
# Install the mscottford fork
|
41
|
+
$ vagrant plugin install vagrant-aws-mscottford --entry-point vagrant-aws
|
39
42
|
...
|
40
43
|
$ vagrant up --provider=aws
|
41
44
|
...
|
@@ -13,6 +13,8 @@ module VagrantPlugins
|
|
13
13
|
info[:host] = CommunicatorWinRM::Helper.winrm_address(machine)
|
14
14
|
info[:port] = CommunicatorWinRM::Helper.winrm_port(machine, info[:host] == "127.0.0.1")
|
15
15
|
|
16
|
+
LOGGER.debug("WinRM password: #{machine.config.winrm.password.inspect}")
|
17
|
+
|
16
18
|
if machine.config.winrm.password == :query_ec2 || machine.config.winrm.password == :query_ec2_retry
|
17
19
|
machine.ui.info("Looking up Windows password for instance #{machine.id}...") if machine.config.winrm.password != :query_ec2_retry
|
18
20
|
|
@@ -24,11 +26,15 @@ module VagrantPlugins
|
|
24
26
|
command += " --profile #{aws_profile}"
|
25
27
|
end
|
26
28
|
|
29
|
+
LOGGER.debug("Executing: #{command}")
|
27
30
|
response = JSON.parse(`#{command}`)
|
31
|
+
LOGGER.debug("Response: #{response.inspect}")
|
32
|
+
|
28
33
|
machine.config.winrm.password = response["PasswordData"]
|
34
|
+
LOGGER.debug("Windows password from response: #{machine.config.winrm.password.inspect}")
|
29
35
|
|
30
36
|
if machine.config.winrm.password.nil? || machine.config.winrm.password.empty?
|
31
|
-
|
37
|
+
LOGGER.debug("Windows password not available yet. Retrying after 30 seconds...")
|
32
38
|
sleep(30)
|
33
39
|
machine.config.winrm.password = :query_ec2_retry
|
34
40
|
raise Errors::WinRMNotReady
|
data/lib/vagrant-aws/version.rb
CHANGED