|
1 | 1 | #!/usr/bin/env bash |
2 | 2 | # c8k.in/stall.sh - Easiest Apache CloudStack Installer |
| 3 | +# Author: Rohit Yadav <rohit@apache.org> |
3 | 4 | # Install with this command (from your Ubuntu host): |
4 | 5 | # |
5 | 6 | # curl -sSfL https://c8k.in/stall.sh | bash |
6 | | -# Make sure you have `curl` installed |
7 | | -# |
8 | | -# Author: Rohit Yadav <rohit@apache.org> |
9 | 7 | # |
10 | 8 | # Licensed to the Apache Software Foundation (ASF) under one |
11 | 9 | # or more contributor license agreements. See the NOTICE file |
@@ -41,3 +39,47 @@ fatal() |
41 | 39 | echo '[ERROR] ' "$@" >&2 |
42 | 40 | exit 1 |
43 | 41 | } |
| 42 | + |
| 43 | +### Intro ### |
| 44 | +echo " |
| 45 | +░█████╗░░█████╗░██╗░░██╗░░░██╗███╗░░██╗ |
| 46 | +██╔══██╗██╔══██╗██║░██╔╝░░░██║████╗░██║ |
| 47 | +██║░░╚═╝╚█████╔╝█████═╝░░░░██║██╔██╗██║ |
| 48 | +██║░░██╗██╔══██╗██╔═██╗░░░░██║██║╚████║ |
| 49 | +╚█████╔╝╚█████╔╝██║░╚██╗██╗██║██║░╚███║ |
| 50 | +░╚════╝░░╚════╝░╚═╝░░╚═╝╚═╝╚═╝╚═╝░░╚══╝ |
| 51 | +CloudStack Installer By 🅁🄾🄷🄸🅃 🅈🄰🄳🄰🅅 |
| 52 | +" |
| 53 | +info "Installing Apache CloudStack All-In-One-Box" |
| 54 | +info "NOTE: this works only on Ubuntu!" |
| 55 | +warn "Work in progress, try again while this is being hacked" |
| 56 | + |
| 57 | +### Setup Prerequisites ### |
| 58 | +info "Installing dependencies" |
| 59 | +apt-get update |
| 60 | +apt-get install -y openssh-server sudo vim htop tar bridge-utils |
| 61 | + |
| 62 | +### Setup Bridge ### |
| 63 | + |
| 64 | +echo " network: |
| 65 | + version: 2 |
| 66 | + renderer: networkd |
| 67 | + ethernets: |
| 68 | + eno1: |
| 69 | + dhcp4: false |
| 70 | + dhcp6: false |
| 71 | + optional: true |
| 72 | + bridges: |
| 73 | + cloudbr0: |
| 74 | + addresses: [192.168.1.10/24] |
| 75 | + routes: |
| 76 | + - to: default |
| 77 | + via: 192.168.1.1 |
| 78 | + nameservers: |
| 79 | + addresses: [1.1.1.1,8.8.8.8] |
| 80 | + interfaces: [eno1] |
| 81 | + dhcp4: false |
| 82 | + dhcp6: false |
| 83 | + parameters: |
| 84 | + stp: false |
| 85 | + forward-delay: 0" |
0 commit comments