Skip to content

Commit 41fd534

Browse files
committed
install.sh WIP script started
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
1 parent 60c0282 commit 41fd534

1 file changed

Lines changed: 45 additions & 3 deletions

File tree

install.sh

Lines changed: 45 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
11
#!/usr/bin/env bash
22
# c8k.in/stall.sh - Easiest Apache CloudStack Installer
3+
# Author: Rohit Yadav <rohit@apache.org>
34
# Install with this command (from your Ubuntu host):
45
#
56
# curl -sSfL https://c8k.in/stall.sh | bash
6-
# Make sure you have `curl` installed
7-
#
8-
# Author: Rohit Yadav <rohit@apache.org>
97
#
108
# Licensed to the Apache Software Foundation (ASF) under one
119
# or more contributor license agreements. See the NOTICE file
@@ -41,3 +39,47 @@ fatal()
4139
echo '[ERROR] ' "$@" >&2
4240
exit 1
4341
}
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

Comments
 (0)