mirror of
https://github.com/saltstack/salt-bootstrap.git
synced 2025-04-16 09:40:21 +00:00
feat(ps1): implement Vagrant grains_config option
bootstrap-salt.sh already does this.
This commit is contained in:
parent
0a2d8f5851
commit
bfd160cf4a
1 changed files with 7 additions and 0 deletions
|
@ -210,6 +210,13 @@ If (Test-Path C:\tmp\minion) {
|
|||
$ConfiguredAnything = $True
|
||||
}
|
||||
|
||||
# Check if grains config has been uploaded
|
||||
If (Test-Path C:\tmp\grains) {
|
||||
New-Item C:\salt\conf\ -ItemType Directory -Force | Out-Null
|
||||
Copy-Item -Path C:\tmp\grains -Destination C:\salt\conf\ -Force | Out-Null
|
||||
$ConfiguredAnything = $True
|
||||
}
|
||||
|
||||
If ($ConfigureOnly -and !$ConfiguredAnything) {
|
||||
Write-Output "No configuration or keys were copied over. No configuration was done!"
|
||||
exit 0
|
||||
|
|
Loading…
Add table
Reference in a new issue