ridley 0.10.0.rc2 → 0.10.0.rc3
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.
- data/README.md +35 -0
- data/lib/ridley.rb +7 -2
- data/lib/ridley/version.rb +1 -1
- metadata +1 -1
data/README.md
CHANGED
@@ -348,6 +348,41 @@ And the same goes for setting an environment level override attribute
|
|
348
348
|
|
349
349
|
conn.node.bootstrap("33.33.33.10", "33.33.33.11")
|
350
350
|
|
351
|
+
## Bootstrapping Windows Nodes
|
352
|
+
|
353
|
+
Windows Nodes are bootstrapped using a combination of WinRM, Batch, and PowerShell. You will probably need to tweak some settings on your Windows servers to ensure the commands are successful.
|
354
|
+
|
355
|
+
## WinRM Settings
|
356
|
+
|
357
|
+
1. Enable WinRM: `winrm quickconfig` and say Yes.
|
358
|
+
2. Set some WinRM settings to ensure that you don't get 401 Unauthorized responses and 500 Responses because of timeouts.
|
359
|
+
|
360
|
+
```
|
361
|
+
winrm set winrm/config/service/auth @{Basic="true"}
|
362
|
+
winrm set winrm/config/service @{AllowUnencrypted="true"}
|
363
|
+
winrm set winrm/config/service @{EnumerationTimeoutms="600000"}
|
364
|
+
winrm set winrm/config @{MaxTimeoutms="600000"}
|
365
|
+
winrm set winrm/config/client @{TrustedHosts="*"}
|
366
|
+
```
|
367
|
+
|
368
|
+
## PowerShell Settings
|
369
|
+
|
370
|
+
1. You should also configure your PowerShell profile, so that PowerShell commands have a more lenient timeout period.
|
371
|
+
|
372
|
+
```
|
373
|
+
mkdir C:\Users\my_user\Documents\WindowsPowerShell
|
374
|
+
echo "$PSSessionOption = New-PSSessionOption -OpenTimeout 0 -CancelTimeout 0 -IdleTimeout 0 -OperationTimeout 0" > C:\Users\my_user\Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1
|
375
|
+
```
|
376
|
+
|
377
|
+
Verify the PowerShell settings by opening up the PowerShell Console and entering `$PSSessionOption` and ensure those values are set, and that there are no errors output.
|
378
|
+
|
379
|
+
The following links offer some information about configuring a machine's PowerShell settings:
|
380
|
+
* [PowerShell Profiles](http://technet.microsoft.com/en-us/library/ee692764.aspx)
|
381
|
+
* [The $PSSessionOptions Preference Variable](http://technet.microsoft.com/library/hh847796.aspx)
|
382
|
+
* [Creating a new PSSessionOption](http://technet.microsoft.com/en-us/library/hh849703.aspx)
|
383
|
+
|
384
|
+
You may also want to tweak your Windows boxes a bit more ex: turning UAC off, turning off the Windows Firewall.
|
385
|
+
|
351
386
|
# Authors and Contributors
|
352
387
|
|
353
388
|
* Jamie Winsor (<reset@riotgames.com>)
|
data/lib/ridley.rb
CHANGED
@@ -1,5 +1,10 @@
|
|
1
|
-
|
2
|
-
|
1
|
+
require 'active_support/core_ext/kernel/reporting'
|
2
|
+
# Silencing warnings because not all versions of GSSAPI support all of the GSSAPI methods
|
3
|
+
# the gssapi gem attempts to attach to and these warnings are dumped to STDERR.
|
4
|
+
silence_warnings do
|
5
|
+
# Requiring winrm before all other gems because of https://github.com/WinRb/WinRM/issues/39
|
6
|
+
require 'winrm'
|
7
|
+
end
|
3
8
|
require 'chozo'
|
4
9
|
require 'celluloid'
|
5
10
|
require 'faraday'
|
data/lib/ridley/version.rb
CHANGED