ajout Vagrant

This commit is contained in:
2022-11-18 08:43:52 +01:00
parent f66fc1b4e4
commit 2f0b8443fa
44 changed files with 540 additions and 0 deletions

View File

@@ -0,0 +1 @@
1.5:14362246-6ef2-477f-bfef-9e01b440b2b4

View File

@@ -0,0 +1 @@
{"name":"debian/bullseye64","version":"11.20220912.1","provider":"virtualbox","directory":"boxes/debian-VAGRANTSLASH-bullseye64/11.20220912.1/virtualbox"}

View File

@@ -0,0 +1 @@
14362246-6ef2-477f-bfef-9e01b440b2b4

View File

@@ -0,0 +1 @@
22d6baf60d4a438cb7e66187e7d5529c

View File

@@ -0,0 +1,27 @@
-----BEGIN RSA PRIVATE KEY-----
MIIEowIBAAKCAQEAtUVK0XL8hHuhxjz9r375ZTzqktx8BpUPFNRmt4T7HTLnfOvk
CSbKSlLe7T1xgTII//wH11xccgu8DYgEzoLNY/XDJhTzuCSjvGSKkBXsqnpMBmHC
7V9tIhgxlwfjv0o41Ek8Yome7e7bwTJb+YpIw65lBYN0akCSV9a5XU4yvB18fENq
WtXlu2z/qvhu0OQKp88c8l+eSRdy1IHzlVzyhK8/u+J0GuCcDBz2KE5Qccq4i2af
y3OPdAyCjBK749Cq9vFMTlxxa64TtEVZxrvGll1K3BYmMa1TwlVuIEXI7ZvGP+b6
oPyzEszzkhfHyrkxtkHvmshuujYJViEJqzSjVwIDAQABAoIBAE2paEqgBwwDo+W4
z79WmScEmENfb0uqpRF5hqBtuuBhpMfikIpTMivxoUznHDAL7csugXWFPp4l5OWv
Ns/7Pl/rNTall113ZScbtDnTCthnGRdK3yav0aPf1a8tVCfqdrqMvfBBofOyeDgn
iTw6QL6FgwZ/sWqsS4aSmkwdaqMpDdUjZAGQUctWGj2bxuGkeCxnLGOP3WDLGPfQ
pREYCY2hy4qaX/ek4EmVjicxPy0IUb66LZgc+pFTNYS5ovkHTEabus0LKVK7ZyV7
CKOS+9r8ERS+cK8rnRHiBTrfxnjcXV+OkMvusPzjYO4FmBadXlLi4vl4xDST9s8G
zS8O6VECgYEA50Vzgl1JAbFAG5ft3vgLkwmmpTePHjQxcV4lt4mm5Snk3kXEt/dJ
Jid16kaShv0jN/3hStk4SQPg+8DgizdKG6XNDBgDStQv5I+nX5N+tZYHjbQKdCGP
dRb2ZJbe0AFRl543pgtn/Pa9l1Fsqp+OWqGTtNjM6qqErvtxNAipz9MCgYEAyKcu
ylBCzuPwC3uQStVLsgQrj3cDxLGRizNZunPb4jtqCPIKme4egknploiD/BdsfKQY
qsHQB4Zh1zXXcA1satRqKzwvCwDY/sH7mCU80PqSye6E1dfp+JX4xARejcTSYGni
9+2bAyNCa3dLoolyYqqwLpLUUFELkRF1f8Sar+0CgYEAybeP+mL3LJy3d9naRiI/
pi5CxdRh5kxL27/sUdukUDlsQFrGLFdp2/eLJ54Ka+ca8tljye8Q4s6ZS7x9na/J
2beR0zyWkovkggyyRfDWEfgb+oLQo14qTEyM+EuHaBHeYspDa3aDauajkvoYN/IX
LgHEXXbDtOKp/B2gLWxpALUCgYAFi3EkkBE4jF3uw0xadQhxc+IMRdqpzcpa0WFy
YI878i5c7utSE51uNkKpMT6Mcc1CqHoyBccM3i7H9qnsY8KSNSp15WTbZfuZFp0w
OB81GyeBQwESs7O4ddR4/jHqsvypQ2PNPBijfo7wT0ycwjWR+muB7fbF/WdXa+cW
T8WChQKBgH/J+f27KpCjp1mVNOLu1mQ8kK+f5PhijQY7WBWqU6essqO+JQQiAZ/c
8HVG6YV4xxa8IcKGh26MmIZjZA9wOSqW8aVdur6MM0PTy94sJW4OQZz+yGGWXnKS
qbpcFYmfQni8mFeIKpl5eyH/Zam9rhIo8OYekkEL635+qjHMpSXW
-----END RSA PRIVATE KEY-----

View File

@@ -0,0 +1 @@
{"virtualbox":{"/vagrant":{"guestpath":"/vagrant","hostpath":"/home/mathis.laceppe/vagrant/hbelk","disabled":false,"__vagrantfile":true}}}

View File

@@ -0,0 +1 @@
/home/mathis.laceppe/vagrant/hbelk

View File

@@ -0,0 +1,9 @@
# This file loads the proper rgloader/loader.rb file that comes packaged
# with Vagrant so that encoded files can properly run with Vagrant.
if ENV["VAGRANT_INSTALLER_EMBEDDED_DIR"]
require File.expand_path(
"rgloader/loader", ENV["VAGRANT_INSTALLER_EMBEDDED_DIR"])
else
raise "Encoded files can't be read outside of the Vagrant installer."
end

81
sio2/sisr2/50-Vagrant/hbelk/Vagrantfile vendored Normal file
View File

@@ -0,0 +1,81 @@
# -*- mode: ruby -*-
# vi: set ft=ruby :
# All Vagrant configuration is done below. The "2" in Vagrant.configure
# configures the configuration version (we support older styles for
# backwards compatibility). Please don't change it unless you know what
# you're doing.
Vagrant.configure("2") do |config|
# The most common configuration options are documented and commented below.
# For a complete reference, please see the online documentation at
# https://docs.vagrantup.com.
# Every Vagrant development environment requires a box. You can search for
# boxes at https://vagrantcloud.com/search.
config.vm.box = "debian/bullseye64"
config.vm.hostname = "hbelk"
# Disable automatic box update checking. If you disable this, then
# boxes will only be checked for updates when the user runs
# `vagrant box outdated`. This is not recommended.
# config.vm.box_check_update = false
# Create a forwarded port mapping which allows access to a specific port
# within the machine from a port on the host machine. In the example below,
# accessing "localhost:8080" will access port 80 on the guest machine.
# NOTE: This will enable public access to the opened port
# config.vm.network "forwarded_port", guest: 80, host: 8080
# Create a forwarded port mapping which allows access to a specific port
# within the machine from a port on the host machine and only allow access
# via 127.0.0.1 to disable public access
# config.vm.network "forwarded_port", guest: 80, host: 8080, host_ip: "127.0.0.1"
# Create a private network, which allows host-only access to the machine
# using a specific IP.
# config.vm.network "private_network", ip: "192.168.33.10"
# Create a public network, which generally matched to bridged network.
# Bridged networks make the machine appear as another physical device on
# your network.
config.vm.network "public_network"
# Share an additional folder to the guest VM. The first argument is
# the path on the host to the actual folder. The second argument is
# the path on the guest to mount the folder. And the optional third
# argument is a set of non-required options.
# config.vm.synced_folder "../data", "/vagrant_data"
# Provider-specific configuration so you can fine-tune various
# backing providers for Vagrant. These expose provider-specific options.
# Example for VirtualBox:
#
config.vm.provider "virtualbox" do |vb|
# # Display the VirtualBox GUI when booting the machine
# vb.gui = true
#
# # Customize the amount of memory on the VM:
vb.memory = "4096"
end
#
# View the documentation for the provider you are using for more
# information on available options.
# Enable provisioning with a shell script. Additional provisioners such as
# Ansible, Chef, Docker, Puppet and Salt are also available. Please see the
# documentation for more information about their specific syntax and use.
config.vm.provision "shell", inline: <<-SHELL
apt-get update
apt install -y wget curl git vim
if ! which docker ; then
curl -s -o getdocker.sh https://get.docker.com
bash getdocker.sh
gpasswd -a vagrant docker
fi
mkdir -p docker && cd docker
git clone https://github.com/deviantony/docker-elk.git
cd docker-elk
docker compose up -d
ip -br a
SHELL
end