-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathprep.sh
executable file
·43 lines (40 loc) · 1.36 KB
/
prep.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
36
37
38
39
40
41
42
43
#!/bin/bash
echo -e '\0033\0143'
printf "\n\n"
echo "Ok, quick setup... then lab prep with ansible..."
echo "PIP, Python Package Manager."
echo "Ansible version 2.5"
echo "Some PIP / Ansible Dependencies like:"
echo "f5-sdk bigsuds netaddr objectpath isoparser lxml deepdiff"
printf "\n\n\n"
sleep 3
echo "Ready?"
sleep 1
echo "Set..."
sleep 1
echo "Go!!!"
sleep 1
sudo apt-get update
sudo apt-get -y install python-pip
sudo -H pip install --upgrade pip
sudo -H pip install --upgrade setuptools
sudo -H pip install --upgrade git+https://github.com/ansible/[email protected]
sudo -H pip install f5-sdk bigsuds netaddr objectpath isoparser lxml deepdiff
echo "Done with PIP, Ansible, and Dependencies"
echo ""
echo "Setup bigip host entry in /etc/hosts..."
echo "10.1.1.4 bigip-a bigip-a.ansible.lab" | sudo tee -a /etc/hosts
echo ""
# echo "Now running lab cleanup playbook..."
# echo ""
# sleep 2
# ansible-playbook ./playbooks/lab-cleanup.yml
# prinf "\n\n\n"
# echo "That stuff just above here is ansible playbook output... cleaned up the lab."
echo ""
echo "I think were setup! Copy and Paste these commands to use:"
echo "ansible-playbook playbooks/f5-virtual-server.yml"
echo "ansible-playbook playbooks/f5-virtual-server.yml -e \"state=absent\""
echo "ansible-playbook playbooks/lab-cleanup.yml"
echo "ansible-playbook site.yml"
echo "ansible-playbook --check-syntax f5-ucs.yml"