-
Notifications
You must be signed in to change notification settings - Fork 66
Expand file tree
/
Copy pathinstall.sh
More file actions
16 lines (14 loc) · 730 Bytes
/
install.sh
File metadata and controls
16 lines (14 loc) · 730 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# This is an auto install script for Oracle Autonomous Linux 7.8
# It will configure to automatically run the autoscale script using Instance Principal permission
# So ensure you have configured a dynamic group for this instance and that that dynamic group
# has a policy to manage all resources in your tenancy.
# Set to your time zone for correct time
sudo timedatectl set-timezone Europe/Amsterdam
# Install needed components and configure crontab with correct schedule
sudo yum -y update
sudo yum -y install git
sudo pip3 install oci oci-cli
git clone https://github.com/AnykeyNL/OCI-AutoScale.git
cd OCI-AutoScale/
sed -i 's/UseInstancePrinciple = False/UseInstancePrinciple = True/g' AutoScaleALL.py
crontab schedule.cron