Update Ansible scripts
[csit.git] / resources / tools / testbed-setup / README.md
index 7c46783..ad9b400 100644 (file)
@@ -86,7 +86,17 @@ Optional: If RAID is not created on Haswells. Execute while Ubuntu install is ru
   - Set the next boot from HDD (without restart)
   - `./cimc.py -u admin -p Cisco1234 $CIMC_ADDRESS -d -hdd`
 
-Optional: If installing Skylake machine, connect to IPMI and boot from PXE via F12
+Optional: If installing Skylake machine
+
+    - Get MAC address of LAN0
+    - `ipmitool -U ADMIN -H $HOST_ADDRESS raw 0x30 0x21 | tail -c 18`
+    - Reboot into PXE for next boot only
+    - `ipmitool -I lanplus -H $HOST_ADDRESS -U ADMIN chassis bootdev pxe`
+    - `ipmitool -I lanplus -H $HOST_ADDRESS -U ADMIN power reset`
+    - For live watching SOL (Serial-over-LAN console)
+    - `ipmitool -I lanplus -H $HOST_ADDRESS -U ADMIN sol activate`
+    - `ipmitool -I lanplus -H $HOST_ADDRESS -U ADMIN sol deactivate`
+
 
 When installation is finished:
 
@@ -94,7 +104,7 @@ When installation is finished:
   - Clone CSIT actual repo: `git clone https://gerrit.fd.io/r/csit`
   - Go to ansible directory: `cd csit/resources/tools/testbed-setup/ansible`
   - Edit production file and uncomment servers that are supposed to be installed: `ansible-playbook --ask-become-pass --inventory production site.yaml --list-hosts`
-  - Run ansible on selected hosts: `ansible-playbook --ask-become-pass --inventory production site.yaml`
+  - Run ansible on selected hosts: `ansible-playbook --vault-id vault_pass --extra-vars '@vault.yml' --inventory production site.yaml`
 
 For non-VIRL hosts, stop here.