forked from PureStorage-OpenConnect/TestDriveNewStack
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstallAnsible.sh
More file actions
executable file
·36 lines (29 loc) · 987 Bytes
/
Copy pathinstallAnsible.sh
File metadata and controls
executable file
·36 lines (29 loc) · 987 Bytes
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
#!/usr/bin/env bash
# This is only to be used as a prep for the Pure Test Drive Environment
# It will install the most optimal Python3 version, as well as set up Ansible.
# Brian Kuebler 9/7/20
set -o errexit
set -o nounset
set -o pipefail
# Install the Pure Storage SDK. This is required for Pure Service Orchestrator.
function installSDK() {
echo " "
echo "###########################################"
echo "#### Installing the Pure Storage SDK ####"
echo "###########################################"
echo " "
pip3 install purestorage
pip3 install jmespath
}
# Install the Pure Storage collection
function installCollections() {
echo " "
echo "########################################################"
echo "#### Installing the Purestorage Ansible Collection ####"
echo "########################################################"
echo " "
ansible-galaxy collection install purestorage.flasharray
}
installSDK
installCollections
echo "Ansible Install complete"