Merge pull request #5593 from mitchellh/make-salt-bootstrap-idempotent
Salt bootstrap ps1 should be idempotent
This commit is contained in:
commit
27599ee897
|
@ -2,10 +2,10 @@
|
||||||
$version = '2014.1.10'
|
$version = '2014.1.10'
|
||||||
|
|
||||||
# Create C:\tmp\ - if Vagrant doesn't upload keys and/or config it might not exist
|
# 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
|
# 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
|
# Check if minion keys have been uploaded
|
||||||
if (Test-Path C:\tmp\minion.pem) {
|
if (Test-Path C:\tmp\minion.pem) {
|
||||||
|
|
Loading…
Reference in New Issue