mirror of
https://github.com/trailofbits/algo.git
synced 2025-04-22 17:17:14 +02:00
35 lines
589 B
Bash
Executable file
35 lines
589 B
Bash
Executable file
#!/usr/bin/env bash
|
|
|
|
|
|
algo_provisioning () {
|
|
echo -n "
|
|
What provider would you like to use?
|
|
1. DigitalOcean
|
|
2. Amazon EC2
|
|
3. Google Compute Engine
|
|
4. Install to existing Ubuntu server
|
|
|
|
Enter the number of your desired provider
|
|
: "
|
|
|
|
read N
|
|
|
|
case "$N" in
|
|
1) CLOUD="digitalocean" ;;
|
|
2) CLOUD="ec2" ;;
|
|
3) CLOUD="gce" ;;
|
|
4) CLOUD="non-cloud" ;;
|
|
*) exit 1 ;;
|
|
esac
|
|
|
|
ansible-playbook "${CLOUD}.yml"
|
|
}
|
|
|
|
user_management () {
|
|
ansible-playbook users.yml
|
|
}
|
|
|
|
case "$1" in
|
|
update-users) user_management ;;
|
|
*) algo_provisioning ;;
|
|
esac
|