diff --git a/README.md b/README.md index dc03fda..b84a6d2 100644 --- a/README.md +++ b/README.md @@ -4,5 +4,10 @@ korobeynikovnv Infra repository для chain подключения через bastion использовать: ssh -J appuser@84.201.138.71 appuser@10.130.0.12 +#Домашнее задание №5 VPN через pritunl bastion_IP=84.201.177.74 someinternalhost_IP=10.130.0.12 + +#Домашнее задание №6 тестовое приложение на руби +testapp_IP = 178.154.224.94 +testapp_port = 9292 diff --git a/cloud-bastion.ovpn b/VPN/cloud-bastion.ovpn similarity index 100% rename from cloud-bastion.ovpn rename to VPN/cloud-bastion.ovpn diff --git a/setupvpn.sh b/VPN/setupvpn.sh similarity index 100% rename from setupvpn.sh rename to VPN/setupvpn.sh diff --git a/deploy.sh b/deploy.sh new file mode 100755 index 0000000..017cc4f --- /dev/null +++ b/deploy.sh @@ -0,0 +1,7 @@ +#!/bin/bash +sudo apt-get update +sudo apt-get install -y git +git clone -b monolith https://github.com/express42/reddit.git +cd reddit +bundle install +puma -d diff --git a/install_mongodb.sh b/install_mongodb.sh new file mode 100755 index 0000000..22e12b9 --- /dev/null +++ b/install_mongodb.sh @@ -0,0 +1,9 @@ +#!/bin/bash +apt-get update +apt-get install apt-transport-https ca-certificates +wget -qO - https://www.mongodb.org/static/pgp/server-4.2.asc | sudo apt-key add - +echo "deb [ arch=amd64,arm64 ] https://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/4.2 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-4.2.list +sudo apt-get update +sudo apt-get install -y mongodb-org +sudo systemctl start mongod +sudo systemctl enable mongod diff --git a/install_ruby.sh b/install_ruby.sh new file mode 100755 index 0000000..7290649 --- /dev/null +++ b/install_ruby.sh @@ -0,0 +1,3 @@ +#!/bin/bash +apt update +apt install -y ruby-full ruby-bundler build-essential diff --git a/reddit b/reddit new file mode 160000 index 0000000..5c217c5 --- /dev/null +++ b/reddit @@ -0,0 +1 @@ +Subproject commit 5c217c565c1122c5343dc0514c116ae816c17ca2