Salt bootstrap ps1 should be idempotent

- WinRM communicator error detection was tightened up thus exposing an issue in the salt bootstrap script creating directories that already exist.
This commit is contained in:
Shawn Neal 2015-04-14 05:57:16 -07:00
parent 1b99272b13
commit 9de3c481de
1 changed files with 2 additions and 2 deletions

View File

@ -2,10 +2,10 @@
$version = '2014.1.10'
# Create C:\tmp\ - if Vagrant doesn't upload keys and/or config it might not exist
New-Item C:\tmp\ -ItemType directory | out-null
New-Item C:\tmp\ -ItemType directory -force | out-null
# Copy minion keys & config to correct location
New-Item C:\salt\conf\pki\minion\ -ItemType directory | out-null
New-Item C:\salt\conf\pki\minion\ -ItemType directory -force | out-null
# Check if minion keys have been uploaded
if (Test-Path C:\tmp\minion.pem) {