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:0b665557-a8d7-4dcb-b8d0-4cc6d4c8d898

View File

@@ -0,0 +1 @@
1668592532

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 @@
0b665557-a8d7-4dcb-b8d0-4cc6d4c8d898

View File

@@ -0,0 +1 @@
1b7596442739425c96631b8d4a849804

View File

@@ -0,0 +1,27 @@
-----BEGIN RSA PRIVATE KEY-----
MIIEpAIBAAKCAQEAsMKPsxYOjDh123AVtUH130UVfJYlkphUxozsJGijvs6wjsuq
y+5ADJihGd1gpGTefjY4HcNHV/Cfo3IgNgljXNV1dCBLlRRKwxYh37pBJPIYRFry
66mh8jKJEZCxElUbh+CrO9zmW5lQEE7oOhUm5jEKUGaH8TeWaBtfjv+MbNcEclGk
0a531p4T1yj8kBr4D0o55WFDEcsvjiQTdLuzAd+z0o5UOeeuAr6p0GLyahjkp/Ri
ovLeWw61+7J7m2g/6rcqrjnKW6zRfQKidjZ1n1SMrPJagaKkhyUVSTt9f/mVFAhs
Qib+J6GhKxVVZE0NkvMqCbECrH6+d9uHF6ufBwIDAQABAoIBADgDb8YwlyuYOMDx
I+/slx3JpqV0bzOlUjgZMDvZbQpqNUkLAXTeay2SsHqhzJ5L2LXmOKI138XeWrhQ
0iRNlU811aKXGVyEsaxgtxtOypYKoeYHbDOB7e/yU71dPL+yeKb2a0ztE5KzYsvI
NY8yZMFNiRcxZqLqGp+jDQUjtjxG4B9veFSjsXMlOrknMiDs+TSqi8dNQU3DZQd5
PiBJe+3nPfcFzOLI4tzMVNgWXNCFIZb1fX08JVAW9mTgAFkBS5nyOsekqk47VyDp
v7B0OKyOqbsIlPtzUEvZNR48HxW68qUyI9mJ67lYEWpVZ2zBAmsglmQijmoTVUWs
DVGTIQECgYEA21ycPkLdhw8K2zmmfZdpYXOy8UCtp21MuI0wucmtygIsxnDZVa1F
fjHeM0gmH9Pznu8aDhT9oigfDV4UrLDFuwPjFkTZ21v3vrN6XbCMG3C5wdas2GSJ
bN45Na811Ymo/lpIIr5gJVCKplAt4kCZovJnFMn4rDYtxajI/HUC7VUCgYEAzkhm
nIwaoNGNIibBeCpn5d9j/9gQ/L1JYGLL1gApkYlS7cwptElO4zjTOoVWmU5Uxyae
6QhRHH3tm0FuzdHDmK7XxM7BiWQ5Jilfoe87ZgGL7D74ZHrgRXndRErrQsMcBfWm
JErORtoy2nr3zEJdPR2NP2Wsq4Ig20+l1TdcuusCgYEAoTw6D72ALOSOm0KNsKSZ
LasoLRHYUkcRbFlDJlwqJGBi3t1VshbxDGfFJjZy51QYLosawJ0HLKiG4oFzetdY
DzU1NkoXQ5geyooLeE/rO8QolWSgmVGUfXP94wrM7A8KKyLbAMajzumbb9FhWHsZ
Ml8wC2TFJneQP0fnq0CqjR0CgYEAzTGZ2KlJJ6WrFUil9MmB9lijmXCtXStRHS7J
goNA1kNama8X4P13GnGBNFpEjVUs4blaI4YhYQ0m2ORauyOoxG1PtrbQL8HhU0Oe
nG9jj5GERSlSXmkYRCP35SH9Kbj5XDhB3yIGVNZh9ZCSg72UD+IgieqyuxxDYMS2
ugRLGqcCgYBL0t0GRRfLsiNO25Udv5wMgIezgU+K2umqaKplwbiNuPtiLavmo27N
h2p+vuu7MvaalhsYEDEELQJRSoFM80TAPnIC7cW+FXo53ULOPFpSku3FxMxPknlQ
5kMsKIGYGpy4HV9jymaNHONBHdvoolnvulVmLqRwvI9v7YfrLKrU1g==
-----END RSA PRIVATE KEY-----

View File

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

View File

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

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/ELK/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 = "elk"
# 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