You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by ro...@apache.org on 2024/12/31 16:12:46 UTC
(cloudstack-installer) 08/33: install.sh WIP script started
This is an automated email from the ASF dual-hosted git repository.
rohit pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/cloudstack-installer.git
commit 41fd53425a9eacad1f65a0c0dd4f755dcf06b8e2
Author: Rohit Yadav <ro...@shapeblue.com>
AuthorDate: Mon May 13 11:54:33 2024 +0000
install.sh WIP script started
Signed-off-by: Rohit Yadav <ro...@shapeblue.com>
---
install.sh | 48 +++++++++++++++++++++++++++++++++++++++++++++---
1 file changed, 45 insertions(+), 3 deletions(-)
diff --git a/install.sh b/install.sh
index 497995b..969e696 100644
--- a/install.sh
+++ b/install.sh
@@ -1,11 +1,9 @@
#!/usr/bin/env bash
# c8k.in/stall.sh - Easiest Apache CloudStack Installer
+# Author: Rohit Yadav <ro...@apache.org>
# Install with this command (from your Ubuntu host):
#
# curl -sSfL https://c8k.in/stall.sh | bash
-# Make sure you have `curl` installed
-#
-# Author: Rohit Yadav <ro...@apache.org>
#
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
@@ -41,3 +39,47 @@ fatal()
echo '[ERROR] ' "$@" >&2
exit 1
}
+
+### Intro ###
+echo "
+░█████╗░░█████╗░██╗░░██╗░░░██╗███╗░░██╗
+██╔══██╗██╔══██╗██║░██╔╝░░░██║████╗░██║
+██║░░╚═╝╚█████╔╝█████═╝░░░░██║██╔██╗██║
+██║░░██╗██╔══██╗██╔═██╗░░░░██║██║╚████║
+╚█████╔╝╚█████╔╝██║░╚██╗██╗██║██║░╚███║
+░╚════╝░░╚════╝░╚═╝░░╚═╝╚═╝╚═╝╚═╝░░╚══╝
+CloudStack Installer By 🅁🄾🄷🄸🅃 🅈🄰🄳🄰🅅
+"
+info "Installing Apache CloudStack All-In-One-Box"
+info "NOTE: this works only on Ubuntu!"
+warn "Work in progress, try again while this is being hacked"
+
+### Setup Prerequisites ###
+info "Installing dependencies"
+apt-get update
+apt-get install -y openssh-server sudo vim htop tar bridge-utils
+
+### Setup Bridge ###
+
+echo " network:
+ version: 2
+ renderer: networkd
+ ethernets:
+ eno1:
+ dhcp4: false
+ dhcp6: false
+ optional: true
+ bridges:
+ cloudbr0:
+ addresses: [192.168.1.10/24]
+ routes:
+ - to: default
+ via: 192.168.1.1
+ nameservers:
+ addresses: [1.1.1.1,8.8.8.8]
+ interfaces: [eno1]
+ dhcp4: false
+ dhcp6: false
+ parameters:
+ stp: false
+ forward-delay: 0"