-
Notifications
You must be signed in to change notification settings - Fork 4
/
demo_commands.sh
executable file
·35 lines (35 loc) · 1.89 KB
/
demo_commands.sh
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
#!/bin/bash
export SC_HOST="https://10.200.2.244" #https://ia01b-01.lab.local" #
export SC_USERNAME="admin"
export SC_PASSWORD="admin"
export SC_TIMEOUT=600
clear
read -p "View complete inventory run ansible-inventory --graph " -n1 -s
echo "run ansible-inventory --graph"
echo
ansible-inventory --graph
echo
read -p "Review Iventory - Press any key to run 'ansible-playbook -i ./inventory/cluster_inventory.yml Fleet_HyperCore_Config.yml -l region4' " -n1 -s
echo
ansible-playbook -i ./inventory/cluster_inventory.yml Fleet_HyperCore_Config.yml -l region4
echo
echo "Review summary - Fleet_HypercoreConfig complete - check pharmacy cloud-init"
echo
read -p "In-Guest deployment - Press any key to run 'ansible-inventory -i ./inventory/hypercore_vm_inventory.yml --graph' " -n1 -s
ansible-inventory -i ./inventory/hypercore_vm_inventory.yml --graph
echo
read -p "Deploy container into guests - Press any key to run 'ansible-playbook -i ./inventory/hypercore_vm_inventory.yml using_hypercore_inventory.yml ' " -n1 -s
echo
ansible-playbook -i ./inventory/hypercore_vm_inventory.yml using_hypercore_inventory.yml
echo
read -p "show idempotence for new container - Press any key to run 'ansible-playbook -i ./inventory/hypercore_vm_inventory.yml using_hypercore_inventory.yml ' " -n1 -s
echo
ansible-playbook -i ./inventory/hypercore_vm_inventory.yml using_hypercore_inventory.yml
echo
read -p "Register Linux VMs to Azure Arc - Press any key to run 'ansible-playbook -i ./inventory/hypercore_vm_inventory.yml AzureArcLinuxOnboard.yml " -n1 -s
echo
ansible-playbook -i ./inventory/hypercore_vm_inventory.yml AzureArcLinuxOnboard.yml
echo
#read -p "Fleet-Wide Day2 guest configuration - Press any key to run 'ansible-playbook -i ./inventory/cluster_inventory.yml -l staging Fleet_UseHyperCore_Inventory.yml -v' " -n1 -s
#echo
ansible-playbook -i ./inventory/cluster_inventory.yml -l region4 Fleet_UseHyperCore_Inventory.yml -v