vagrant-aws-mscottford 0.8.0 → 0.8.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 493ddeda755b1b606e3ee399b4682b7cf31568d2cd864897bd533c84ad2e6703
4
- data.tar.gz: 42f228de856369bf0b87d22b92804c44d8ec1e18965b4f65f75f5361deb7e0fd
3
+ metadata.gz: 410a16c151aed5c3dd735cc881ad74f97b3b99843435f08270a1d338248f759c
4
+ data.tar.gz: 6a54d2b3cc7d8ecb5e1aab16ab95e21309ac72ebe3988fb76dacd9ace57790be
5
5
  SHA512:
6
- metadata.gz: 77f709420c5026f351d70214074588561318750b1b38901af80bf19abc2717bbe4cbbcf5747235f3e46056d1fa31b9eb3a3c6a74bc4e36a0f955b68c8ed7e9b8
7
- data.tar.gz: 38848e8d41edd7462c4831e744db7c74747df519f253df2b6759abb25d32fae40ea85d39fab61072aeddb0c722da1860a9c60b74d735d0c02a826ba26f193332
6
+ metadata.gz: 2ce10a9b1914c98c830e9ffc03fc4efe238d6eda68c0086c7ae63d9ea88d9957cb80502e65a2e94c50d7e6e152a1906e3156eeb570479df2f18900d363c41947
7
+ data.tar.gz: 0b7d2a5ea866b6358631d5d9575761dd2d2ae921354fc681a14c0d7adb6d6647159b746668ffb6b36b493a2961a6171e337f3184d85cab6941100b6fa5a7e175
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
- $ vagrant plugin install vagrant-aws
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,8 +13,10 @@ 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
- machine.ui.info("Looking up Windows password for instance #{machine.id}...") if machine.config.winrm.password != :query_ec2_retry
19
+ machine.ui.info("Waiting for Windows Administrator password to be published...") if machine.config.winrm.password != :query_ec2_retry
18
20
 
19
21
  aws_profile = machine.provider_config.aws_profile
20
22
  keypair_path = machine.provider_config.keypair_path
@@ -24,16 +26,20 @@ 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
- machine.ui.debug("Windows password not available yet. Retrying after 30 seconds...")
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
35
41
  else
36
- machine.ui.info("Windows password found.")
42
+ LOGGER.debug("Windows password found.")
37
43
  end
38
44
  end
39
45
 
@@ -1,5 +1,5 @@
1
1
  module VagrantPlugins
2
2
  module AWS
3
- VERSION = '0.8.0'
3
+ VERSION = '0.8.2'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vagrant-aws-mscottford
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.0
4
+ version: 0.8.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mitchell Hashimoto