mirror of
https://github.com/saltstack/salt-bootstrap.git
synced 2025-04-16 09:40:21 +00:00
refactor(ps1): use similar copy command for Vagrant minion key files
This commit is contained in:
parent
2bc74e06bc
commit
721ceacd4c
1 changed files with 2 additions and 3 deletions
|
@ -195,9 +195,8 @@ New-Item C:\tmp\ -ItemType directory -Force | Out-Null
|
||||||
# Check if minion keys have been uploaded, copy to correct location
|
# Check if minion keys have been uploaded, copy to correct location
|
||||||
If (Test-Path C:\tmp\minion.pem) {
|
If (Test-Path C:\tmp\minion.pem) {
|
||||||
New-Item C:\salt\conf\pki\minion\ -ItemType Directory -Force | Out-Null
|
New-Item C:\salt\conf\pki\minion\ -ItemType Directory -Force | Out-Null
|
||||||
# Copy minion keys & config to correct location
|
Copy-Item -Path C:\tmp\minion.pem -Destination C:\salt\conf\pki\minion\ -Force | Out-Null
|
||||||
cp C:\tmp\minion.pem C:\salt\conf\pki\minion\
|
Copy-Item -Path C:\tmp\minion.pub -Destination C:\salt\conf\pki\minion\ -Force | Out-Null
|
||||||
cp C:\tmp\minion.pub C:\salt\conf\pki\minion\
|
|
||||||
$ConfiguredAnything = $True
|
$ConfiguredAnything = $True
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue