make sure C:\tmp\ exists before downloading salt installer

This commit is contained in:
Marno van der Molen 2014-05-28 15:24:47 +02:00
parent d93a2c0e55
commit 127ef683e7
1 changed files with 4 additions and 1 deletions

View File

@ -1,8 +1,11 @@
# Salt version to install
$version = '2014.1.4'
# Create C:\tmp\ - if Vagrant doesn't upload keys and/or config it might not exist
New-Item C:\tmp\ -ItemType directory | 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 | out-null
# Check if minion keys have been uploaded
if (Test-Path C:\tmp\minion.pem) {