-
Notifications
You must be signed in to change notification settings - Fork 24
/
Copy pathprepare.bat
61 lines (54 loc) · 1.17 KB
/
prepare.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
@echo off
rem
rem This file is part of Cisco Modeling Labs
rem Copyright (c) 2019-2025, Cisco Systems, Inc.
rem All rights reserved.
rem
goto start
:ask_yes_no
set /p "answer=%~1 (yes/no): "
set "answer=%answer:~0,1%"
if /i "%answer%"=="y" (
exit /b 1
) else if /i "%answer%"=="n" (
exit /b 0
) else (
echo Please answer yes or no.
goto :ask_yes_no
)
:start
cd modules\deploy
call :ask_yes_no "Cloud - Enable AWS?"
if errorlevel 1 (
echo Enabling AWS.
copy aws-on.t-f aws.tf
) else (
echo Disabling AWS.
copy aws-off.t-f aws.tf
)
call :ask_yes_no "Cloud - Enable Azure?"
if errorlevel 1 (
echo Enabling Azure.
copy azure-on.t-f azure.tf
) else (
echo Disabling Azure.
copy azure-off.t-f azure.tf
)
cd ..\..
cd modules\secrets
call :ask_yes_no "External Secrets Manager - Enable Conjur?"
if errorlevel 1 (
echo Enabling Conjur.
copy conjur-on.t-f conjur.tf
) else (
echo Disabling Conjur.
copy conjur-off.t-f conjur.tf
)
call :ask_yes_no "External Secrets Manager - Enable Vault?"
if errorlevel 1 (
echo Enabling Vault.
copy vault-on.t-f vault.tf
) else (
echo Disabling Vault.
copy vault-off.t-f vault.tf
)