Ajout des vagrantfiles au dépôt.
This commit is contained in:
parent
996e230d44
commit
4a4ba1214f
@ -0,0 +1 @@
|
|||||||
|
1.5:06f76826-1fc2-4258-8dfe-96c459866722
|
@ -0,0 +1 @@
|
|||||||
|
1731948159
|
@ -0,0 +1 @@
|
|||||||
|
{"name":"debian/bookworm64","version":"12.20240905.1","provider":"virtualbox","directory":"boxes/debian-VAGRANTSLASH-bookworm64/12.20240905.1/virtualbox"}
|
@ -0,0 +1 @@
|
|||||||
|
1010
|
@ -0,0 +1 @@
|
|||||||
|
06f76826-1fc2-4258-8dfe-96c459866722
|
@ -0,0 +1 @@
|
|||||||
|
6f46c026f2c54b15bed0f349a03b0596
|
@ -0,0 +1,8 @@
|
|||||||
|
-----BEGIN OPENSSH PRIVATE KEY-----
|
||||||
|
b3BlbnNzaC1rZXktdjEAAAAABG5vbmUAAAAEbm9uZQAAAAAAAAABAAAAMwAA
|
||||||
|
AAtzc2gtZWQyNTUxOQAAACA56T1u5azsHtRFnK2l9RCAYtph5jlMFPRm2zCD
|
||||||
|
9DZ5RQAAAJAnXU8FJ11PBQAAAAtzc2gtZWQyNTUxOQAAACA56T1u5azsHtRF
|
||||||
|
nK2l9RCAYtph5jlMFPRm2zCD9DZ5RQAAAEDGU1kahUM5db/ZjlAPbZIZB/BJ
|
||||||
|
+IA7KgrlC/pypyAe5DnpPW7lrOwe1EWcraX1EIBi2mHmOUwU9GbbMIP0NnlF
|
||||||
|
AAAAB3ZhZ3JhbnQBAgMEBQY=
|
||||||
|
-----END OPENSSH PRIVATE KEY-----
|
@ -0,0 +1 @@
|
|||||||
|
{"virtualbox":{"/vagrant":{"guestpath":"/vagrant","hostpath":"/home/guillaume.emorine/vagrant/ELK-apache","disabled":false,"__vagrantfile":true}}}
|
@ -0,0 +1 @@
|
|||||||
|
/home/guillaume.emorine/vagrant/ELK-apache
|
@ -0,0 +1,12 @@
|
|||||||
|
# Copyright (c) HashiCorp, Inc.
|
||||||
|
# SPDX-License-Identifier: BUSL-1.1
|
||||||
|
|
||||||
|
# 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
|
49
bts_annee_2/vagrantfiles/ELK-apache/Vagrantfile
vendored
Normal file
49
bts_annee_2/vagrantfiles/ELK-apache/Vagrantfile
vendored
Normal file
@ -0,0 +1,49 @@
|
|||||||
|
# -*- 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/bookworm64"
|
||||||
|
config.vm.hostname = "elk-apache"
|
||||||
|
|
||||||
|
# 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 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"
|
||||||
|
|
||||||
|
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 = "1024"
|
||||||
|
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
|
||||||
|
timedatectl set-timezone Europe/Paris
|
||||||
|
apt-get update
|
||||||
|
apt-get install -y vim curl wget git
|
||||||
|
curl -L -O https://artifacts.elastic.co/downloads/beats/filebeat/filebeat-8.16.0-amd64.deb
|
||||||
|
sudo dpkg -i filebeat-8.16.0-amd64.deb
|
||||||
|
SHELL
|
||||||
|
end
|
@ -0,0 +1 @@
|
|||||||
|
1.5:3fa2b880-a2c9-40fb-a746-93070feb6be9
|
@ -0,0 +1 @@
|
|||||||
|
1732176780
|
@ -0,0 +1 @@
|
|||||||
|
{"name":"debian/bookworm64","version":"12.20240905.1","provider":"virtualbox","directory":"boxes/debian-VAGRANTSLASH-bookworm64/12.20240905.1/virtualbox"}
|
@ -0,0 +1 @@
|
|||||||
|
1010
|
@ -0,0 +1 @@
|
|||||||
|
3fa2b880-a2c9-40fb-a746-93070feb6be9
|
@ -0,0 +1 @@
|
|||||||
|
964b49aa565f4ecca1c96de472a76304
|
@ -0,0 +1,8 @@
|
|||||||
|
-----BEGIN OPENSSH PRIVATE KEY-----
|
||||||
|
b3BlbnNzaC1rZXktdjEAAAAABG5vbmUAAAAEbm9uZQAAAAAAAAABAAAAMwAA
|
||||||
|
AAtzc2gtZWQyNTUxOQAAACA0CChkxi/CkQIH42AhnodwCuwzYgi1y/mjnu5X
|
||||||
|
bHm7hgAAAJBVfnocVX56HAAAAAtzc2gtZWQyNTUxOQAAACA0CChkxi/CkQIH
|
||||||
|
42AhnodwCuwzYgi1y/mjnu5XbHm7hgAAAEAYF/eC87pVaFYPq980N8iPNlsl
|
||||||
|
JpRgAvnEgSmOiW6s2jQIKGTGL8KRAgfjYCGeh3AK7DNiCLXL+aOe7ldsebuG
|
||||||
|
AAAAB3ZhZ3JhbnQBAgMEBQY=
|
||||||
|
-----END OPENSSH PRIVATE KEY-----
|
@ -0,0 +1 @@
|
|||||||
|
{"virtualbox":{"/vagrant":{"guestpath":"/vagrant","hostpath":"/home/guillaume.emorine/vagrant/ELK-gwsio","disabled":false,"__vagrantfile":true}}}
|
@ -0,0 +1 @@
|
|||||||
|
/home/guillaume.emorine/vagrant/ELK-gwsio
|
@ -0,0 +1,12 @@
|
|||||||
|
# Copyright (c) HashiCorp, Inc.
|
||||||
|
# SPDX-License-Identifier: BUSL-1.1
|
||||||
|
|
||||||
|
# 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
|
51
bts_annee_2/vagrantfiles/ELK-gwsio/Vagrantfile
vendored
Normal file
51
bts_annee_2/vagrantfiles/ELK-gwsio/Vagrantfile
vendored
Normal file
@ -0,0 +1,51 @@
|
|||||||
|
# -*- 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/bookworm64"
|
||||||
|
config.vm.hostname = "elk-cli"
|
||||||
|
|
||||||
|
# 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 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"
|
||||||
|
|
||||||
|
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 = "1024"
|
||||||
|
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
|
||||||
|
timedatectl set-timezone Europe/Paris
|
||||||
|
apt-get update
|
||||||
|
apt-get install -y vim curl wget git
|
||||||
|
curl -L -O https://artifacts.elastic.co/downloads/beats/auditbeat/auditbeat-8.16.0-amd64.deb
|
||||||
|
sudo dpkg -i auditbeat-8.16.0-amd64.deb
|
||||||
|
curl -L -O https://artifacts.elastic.co/downloads/beats/heartbeat/heartbeat-8.16.0-amd64.deb
|
||||||
|
sudo dpkg -i heartbeat-8.16.0-amd64.deb
|
||||||
|
SHELL
|
||||||
|
end
|
@ -0,0 +1 @@
|
|||||||
|
1.5:da9d05b5-c1ba-4981-b9d0-d15e9c71cc2f
|
@ -0,0 +1 @@
|
|||||||
|
1731946979
|
@ -0,0 +1 @@
|
|||||||
|
{"name":"debian/bookworm64","version":"12.20240905.1","provider":"virtualbox","directory":"boxes/debian-VAGRANTSLASH-bookworm64/12.20240905.1/virtualbox"}
|
@ -0,0 +1 @@
|
|||||||
|
1010
|
@ -0,0 +1 @@
|
|||||||
|
da9d05b5-c1ba-4981-b9d0-d15e9c71cc2f
|
@ -0,0 +1 @@
|
|||||||
|
5bc5bb7bcf2e4160a2a26dd9411f1e09
|
@ -0,0 +1,8 @@
|
|||||||
|
-----BEGIN OPENSSH PRIVATE KEY-----
|
||||||
|
b3BlbnNzaC1rZXktdjEAAAAABG5vbmUAAAAEbm9uZQAAAAAAAAABAAAAMwAA
|
||||||
|
AAtzc2gtZWQyNTUxOQAAACDX7e5ukFya9Yx4i9kHfXcx+754EBXmDu+6YGoy
|
||||||
|
vy+jigAAAJAWItrYFiLa2AAAAAtzc2gtZWQyNTUxOQAAACDX7e5ukFya9Yx4
|
||||||
|
i9kHfXcx+754EBXmDu+6YGoyvy+jigAAAEDGMKSYhm0i7YbEvkaysKBm4F3q
|
||||||
|
YzL2BqTBfk/sn620bNft7m6QXJr1jHiL2Qd9dzH7vngQFeYO77pgajK/L6OK
|
||||||
|
AAAAB3ZhZ3JhbnQBAgMEBQY=
|
||||||
|
-----END OPENSSH PRIVATE KEY-----
|
@ -0,0 +1 @@
|
|||||||
|
{"virtualbox":{"/vagrant":{"guestpath":"/vagrant","hostpath":"/home/guillaume.emorine/vagrant/ELK","disabled":false,"__vagrantfile":true}}}
|
@ -0,0 +1 @@
|
|||||||
|
/home/guillaume.emorine/vagrant/ELK
|
12
bts_annee_2/vagrantfiles/ELK/.vagrant/rgloader/loader.rb
Normal file
12
bts_annee_2/vagrantfiles/ELK/.vagrant/rgloader/loader.rb
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
# Copyright (c) HashiCorp, Inc.
|
||||||
|
# SPDX-License-Identifier: BUSL-1.1
|
||||||
|
|
||||||
|
# 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
|
50
bts_annee_2/vagrantfiles/ELK/Vagrantfile
vendored
Normal file
50
bts_annee_2/vagrantfiles/ELK/Vagrantfile
vendored
Normal file
@ -0,0 +1,50 @@
|
|||||||
|
# -*- 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/bookworm64"
|
||||||
|
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 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"
|
||||||
|
|
||||||
|
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
|
||||||
|
timedatectl set-timezone Europe/Paris
|
||||||
|
apt-get update
|
||||||
|
apt-get install -y vim curl wget git
|
||||||
|
curl -fsSL get.docker.com -o get-docker.sh && sh get-docker.sh
|
||||||
|
git clone https://github.com/deviantony/docker-elk.git
|
||||||
|
ip -br a
|
||||||
|
SHELL
|
||||||
|
end
|
1
bts_annee_2/vagrantfiles/README.md
Normal file
1
bts_annee_2/vagrantfiles/README.md
Normal file
@ -0,0 +1 @@
|
|||||||
|
Ce répertoire contient les vagrantfiles et répertoires de celles-ci utilisés lors de TPs et des séances, que ce soit en SISR ou en Cyber.
|
@ -0,0 +1 @@
|
|||||||
|
1.5:5dcd482c-250c-4730-bc1d-091de6611d5f
|
@ -0,0 +1 @@
|
|||||||
|
1728551491
|
@ -0,0 +1 @@
|
|||||||
|
{"name":"debian/bookworm64","version":"12.20240905.1","provider":"virtualbox","directory":"boxes/debian-VAGRANTSLASH-bookworm64/12.20240905.1/virtualbox"}
|
@ -0,0 +1 @@
|
|||||||
|
1010
|
@ -0,0 +1 @@
|
|||||||
|
5dcd482c-250c-4730-bc1d-091de6611d5f
|
@ -0,0 +1 @@
|
|||||||
|
10538b64d9204dedbe2d3cfb6d1f23b5
|
@ -0,0 +1,8 @@
|
|||||||
|
-----BEGIN OPENSSH PRIVATE KEY-----
|
||||||
|
b3BlbnNzaC1rZXktdjEAAAAABG5vbmUAAAAEbm9uZQAAAAAAAAABAAAAMwAA
|
||||||
|
AAtzc2gtZWQyNTUxOQAAACAX/r/n1n8QVb+OH4Jh7HAcAwYITlLoegFgqZTb
|
||||||
|
jpwglwAAAJDgQ8t24EPLdgAAAAtzc2gtZWQyNTUxOQAAACAX/r/n1n8QVb+O
|
||||||
|
H4Jh7HAcAwYITlLoegFgqZTbjpwglwAAAED4I26sTfRw0kziaX3fldTtyYVX
|
||||||
|
50vuRjlGUKAtjDJ+mhf+v+fWfxBVv44fgmHscBwDBghOUuh6AWCplNuOnCCX
|
||||||
|
AAAAB3ZhZ3JhbnQBAgMEBQY=
|
||||||
|
-----END OPENSSH PRIVATE KEY-----
|
@ -0,0 +1 @@
|
|||||||
|
{"virtualbox":{"/vagrant":{"guestpath":"/vagrant","hostpath":"/home/guillaume.emorine/vagrant/ansible","disabled":false,"__vagrantfile":true}}}
|
@ -0,0 +1 @@
|
|||||||
|
/home/guillaume.emorine/vagrant/ansible
|
@ -0,0 +1 @@
|
|||||||
|
1.5:910c1832-0419-4dcf-8dc4-d3bd9f63a17b
|
@ -0,0 +1 @@
|
|||||||
|
1728551590
|
@ -0,0 +1 @@
|
|||||||
|
{"name":"debian/bookworm64","version":"12.20240905.1","provider":"virtualbox","directory":"boxes/debian-VAGRANTSLASH-bookworm64/12.20240905.1/virtualbox"}
|
@ -0,0 +1 @@
|
|||||||
|
1010
|
@ -0,0 +1 @@
|
|||||||
|
910c1832-0419-4dcf-8dc4-d3bd9f63a17b
|
@ -0,0 +1 @@
|
|||||||
|
a8aeea2a287e4d2eb848c4a6092cd98c
|
@ -0,0 +1,8 @@
|
|||||||
|
-----BEGIN OPENSSH PRIVATE KEY-----
|
||||||
|
b3BlbnNzaC1rZXktdjEAAAAABG5vbmUAAAAEbm9uZQAAAAAAAAABAAAAMwAA
|
||||||
|
AAtzc2gtZWQyNTUxOQAAACAsEDZQmbtkZProyiZ58INyJEJAWDpDWHSI6uq/
|
||||||
|
40MOlgAAAJDQBA/70AQP+wAAAAtzc2gtZWQyNTUxOQAAACAsEDZQmbtkZPro
|
||||||
|
yiZ58INyJEJAWDpDWHSI6uq/40MOlgAAAEBI3EikWq2VHqW/sWyA5J/MmQnB
|
||||||
|
JH5MpvOee5YAmwEesCwQNlCZu2Rk+ujKJnnwg3IkQkBYOkNYdIjq6r/jQw6W
|
||||||
|
AAAAB3ZhZ3JhbnQBAgMEBQY=
|
||||||
|
-----END OPENSSH PRIVATE KEY-----
|
@ -0,0 +1 @@
|
|||||||
|
{"virtualbox":{"/vagrant":{"guestpath":"/vagrant","hostpath":"/home/guillaume.emorine/vagrant/ansible","disabled":false,"__vagrantfile":true}}}
|
@ -0,0 +1 @@
|
|||||||
|
/home/guillaume.emorine/vagrant/ansible
|
@ -0,0 +1 @@
|
|||||||
|
1.5:4146cb5a-0500-4fe1-a61e-7b74ebb8714d
|
@ -0,0 +1 @@
|
|||||||
|
1728551647
|
@ -0,0 +1 @@
|
|||||||
|
{"name":"debian/bookworm64","version":"12.20240905.1","provider":"virtualbox","directory":"boxes/debian-VAGRANTSLASH-bookworm64/12.20240905.1/virtualbox"}
|
@ -0,0 +1 @@
|
|||||||
|
1010
|
@ -0,0 +1 @@
|
|||||||
|
4146cb5a-0500-4fe1-a61e-7b74ebb8714d
|
@ -0,0 +1 @@
|
|||||||
|
838deb9d392d46c6ae0b110c774f56d1
|
@ -0,0 +1,8 @@
|
|||||||
|
-----BEGIN OPENSSH PRIVATE KEY-----
|
||||||
|
b3BlbnNzaC1rZXktdjEAAAAABG5vbmUAAAAEbm9uZQAAAAAAAAABAAAAMwAA
|
||||||
|
AAtzc2gtZWQyNTUxOQAAACAt90F4W4AJe8C2xM3+ak4whS4/VznITfRECIQe
|
||||||
|
Zt6S0QAAAJDr1EOs69RDrAAAAAtzc2gtZWQyNTUxOQAAACAt90F4W4AJe8C2
|
||||||
|
xM3+ak4whS4/VznITfRECIQeZt6S0QAAAED0S4PV6qbBELqEiz4oOpousWRv
|
||||||
|
r7E5VkBE4SReJzCPXi33QXhbgAl7wLbEzf5qTjCFLj9XOchN9EQIhB5m3pLR
|
||||||
|
AAAAB3ZhZ3JhbnQBAgMEBQY=
|
||||||
|
-----END OPENSSH PRIVATE KEY-----
|
@ -0,0 +1 @@
|
|||||||
|
{"virtualbox":{"/vagrant":{"guestpath":"/vagrant","hostpath":"/home/guillaume.emorine/vagrant/ansible","disabled":false,"__vagrantfile":true}}}
|
@ -0,0 +1 @@
|
|||||||
|
/home/guillaume.emorine/vagrant/ansible
|
12
bts_annee_2/vagrantfiles/ansible/.vagrant/rgloader/loader.rb
Normal file
12
bts_annee_2/vagrantfiles/ansible/.vagrant/rgloader/loader.rb
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
# Copyright (c) HashiCorp, Inc.
|
||||||
|
# SPDX-License-Identifier: BUSL-1.1
|
||||||
|
|
||||||
|
# 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
|
24
bts_annee_2/vagrantfiles/ansible/vagrantfile
Normal file
24
bts_annee_2/vagrantfiles/ansible/vagrantfile
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
# -*- mode: ruby -*-
|
||||||
|
# vi: set ft=ruby :
|
||||||
|
Vagrant.configure("2") do |config|
|
||||||
|
config.vm.provision "shell", inline: "apt-get update" # execute pour chacune des machines
|
||||||
|
|
||||||
|
|
||||||
|
config.vm.define "infra" do |infra|#VM No'1
|
||||||
|
infra.vm.box = "debian/bookworm64" #Setting machine type
|
||||||
|
infra.vm.hostname = "infra" #Setting machine type
|
||||||
|
infra.vm.network "public_network"
|
||||||
|
end
|
||||||
|
|
||||||
|
config.vm.define "web1" do |srv1|#VM No'1
|
||||||
|
srv1.vm.box = "debian/bookworm64" #Setting machine type
|
||||||
|
srv1.vm.hostname = "web1" #Setting machine type
|
||||||
|
srv1.vm.network "public_network"
|
||||||
|
end
|
||||||
|
|
||||||
|
config.vm.define "web2" do |srv2|# VM No2
|
||||||
|
srv2.vm.box = "debian/bookworm64" #Setting machine type
|
||||||
|
srv2.vm.hostname = "web2" #Setting machine type
|
||||||
|
srv2.vm.network "public_network" #Set static IP
|
||||||
|
end
|
||||||
|
end
|
@ -0,0 +1,12 @@
|
|||||||
|
# Copyright (c) HashiCorp, Inc.
|
||||||
|
# SPDX-License-Identifier: BUSL-1.1
|
||||||
|
|
||||||
|
# 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
|
79
bts_annee_2/vagrantfiles/bookworm/Vagrantfile
vendored
Normal file
79
bts_annee_2/vagrantfiles/bookworm/Vagrantfile
vendored
Normal file
@ -0,0 +1,79 @@
|
|||||||
|
# -*- 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/bookworm64"
|
||||||
|
config.vm.hostname = "bookworm"
|
||||||
|
|
||||||
|
# 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"
|
||||||
|
|
||||||
|
# Disable the default share of the current code directory. Doing this
|
||||||
|
# provides improved isolation between the vagrant box and your host
|
||||||
|
# by making sure your Vagrantfile isn't accessable to the vagrant box.
|
||||||
|
# If you use this you may want to enable additional shared subfolders as
|
||||||
|
# shown above.
|
||||||
|
# config.vm.synced_folder ".", "/vagrant", disabled: true
|
||||||
|
|
||||||
|
# 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 = "1024"
|
||||||
|
# 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
|
||||||
|
timedatectl set-timezone Europe/Paris
|
||||||
|
apt-get update
|
||||||
|
apt-get install -y vim wget curl neovim mc
|
||||||
|
SHELL
|
||||||
|
end
|
@ -0,0 +1 @@
|
|||||||
|
1.5:5f464cc4-d07b-471f-9c71-3c207baab7d2
|
@ -0,0 +1 @@
|
|||||||
|
1731944082
|
@ -0,0 +1 @@
|
|||||||
|
{"name":"debian/bookworm64","version":"12.20240905.1","provider":"virtualbox","directory":"boxes/debian-VAGRANTSLASH-bookworm64/12.20240905.1/virtualbox"}
|
@ -0,0 +1 @@
|
|||||||
|
1010
|
@ -0,0 +1 @@
|
|||||||
|
5f464cc4-d07b-471f-9c71-3c207baab7d2
|
@ -0,0 +1 @@
|
|||||||
|
e8843b26487e45d89aa81480e0387dce
|
@ -0,0 +1,8 @@
|
|||||||
|
-----BEGIN OPENSSH PRIVATE KEY-----
|
||||||
|
b3BlbnNzaC1rZXktdjEAAAAABG5vbmUAAAAEbm9uZQAAAAAAAAABAAAAMwAA
|
||||||
|
AAtzc2gtZWQyNTUxOQAAACBy0aVpKhSmr5AmG+yb6M54OqmeQUYJbTWYsO7y
|
||||||
|
biEX1QAAAJDRHilo0R4paAAAAAtzc2gtZWQyNTUxOQAAACBy0aVpKhSmr5Am
|
||||||
|
G+yb6M54OqmeQUYJbTWYsO7ybiEX1QAAAEA3mnAHQoI7J9XyZyDGX9k9D1FO
|
||||||
|
URvh0/2puPo98/zTnXLRpWkqFKavkCYb7Jvozng6qZ5BRgltNZiw7vJuIRfV
|
||||||
|
AAAAB3ZhZ3JhbnQBAgMEBQY=
|
||||||
|
-----END OPENSSH PRIVATE KEY-----
|
@ -0,0 +1 @@
|
|||||||
|
{"virtualbox":{"/vagrant":{"guestpath":"/vagrant","hostpath":"/home/guillaume.emorine/vagrant/docker-traefik-nextcloud","disabled":false,"__vagrantfile":true}}}
|
@ -0,0 +1 @@
|
|||||||
|
/home/guillaume.emorine/vagrant/docker-traefik-nextcloud
|
@ -0,0 +1,12 @@
|
|||||||
|
# Copyright (c) HashiCorp, Inc.
|
||||||
|
# SPDX-License-Identifier: BUSL-1.1
|
||||||
|
|
||||||
|
# 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
|
71
bts_annee_2/vagrantfiles/docker-traefik-nextcloud/Vagrantfile
vendored
Normal file
71
bts_annee_2/vagrantfiles/docker-traefik-nextcloud/Vagrantfile
vendored
Normal file
@ -0,0 +1,71 @@
|
|||||||
|
# -*- 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/bookworm64"
|
||||||
|
config.vm.hostname = "nextcloud-traefik"
|
||||||
|
|
||||||
|
# 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 = "1024"
|
||||||
|
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: "sudo apt-get update ; sudo apt-get install -y vim curl wget"
|
||||||
|
config.vm.provision "shell", path: "provision/setup.sh"
|
||||||
|
end
|
||||||
|
|
@ -0,0 +1,82 @@
|
|||||||
|
version: '3'
|
||||||
|
volumes:
|
||||||
|
nextcloud:
|
||||||
|
db:
|
||||||
|
|
||||||
|
networks:
|
||||||
|
proxy:
|
||||||
|
external: true
|
||||||
|
nxc:
|
||||||
|
external: false
|
||||||
|
|
||||||
|
services:
|
||||||
|
reverse-proxy:
|
||||||
|
# The official v2 Traefik docker image
|
||||||
|
image: traefik:latest
|
||||||
|
container_name: traefik
|
||||||
|
# Enables the web UI and tells Traefik to listen to docker
|
||||||
|
command: --api.insecure=true --providers.docker
|
||||||
|
ports:
|
||||||
|
# The HTTP port
|
||||||
|
- "80:80"
|
||||||
|
- "443:443"
|
||||||
|
# The Web UI (enabled by --api.insecure=true)
|
||||||
|
- "8080:8080"
|
||||||
|
volumes:
|
||||||
|
# So that Traefik can listen to the Docker events
|
||||||
|
- /var/run/docker.sock:/var/run/docker.sock:ro
|
||||||
|
# Map the static configuration into the container
|
||||||
|
- ./config/static.yml:/etc/traefik/traefik.yml:ro
|
||||||
|
# Map the dynamic configuration into the container
|
||||||
|
- ./config/dynamic.yml:/etc/traefik/dynamic.yml:ro
|
||||||
|
# Map the certificats into the container
|
||||||
|
- ./certs:/etc/certs:ro
|
||||||
|
networks:
|
||||||
|
- proxy
|
||||||
|
|
||||||
|
db:
|
||||||
|
image: mariadb:10.5
|
||||||
|
container_name: db
|
||||||
|
restart: always
|
||||||
|
command: --transaction-isolation=READ-COMMITTED --binlog-format=ROW
|
||||||
|
volumes:
|
||||||
|
- db:/var/lib/mysql
|
||||||
|
networks:
|
||||||
|
- nxc
|
||||||
|
environment:
|
||||||
|
- MYSQL_ROOT_PASSWORD=Azerty1+
|
||||||
|
- MYSQL_PASSWORD=Azerty1+
|
||||||
|
- MYSQL_DATABASE=nextcloud
|
||||||
|
- MYSQL_USER=nextcloud
|
||||||
|
|
||||||
|
app:
|
||||||
|
image: nextcloud
|
||||||
|
container_name: app
|
||||||
|
restart: always
|
||||||
|
ports:
|
||||||
|
- 8081:80
|
||||||
|
#links:
|
||||||
|
depends_on:
|
||||||
|
- db
|
||||||
|
volumes:
|
||||||
|
- nextcloud:/var/www/html
|
||||||
|
networks:
|
||||||
|
- proxy
|
||||||
|
- nxc
|
||||||
|
labels:
|
||||||
|
# - "traefik.enable=true"
|
||||||
|
- "traefik.http.routers.app.rule=Host(`mon.nxc`)"
|
||||||
|
- "traefik.http.routers.app.tls=true"
|
||||||
|
- "traefik.enable=true"
|
||||||
|
- "traefik.docker.network=proxy"
|
||||||
|
# - "traefik.http.routers.app.entrypoints=websecure"
|
||||||
|
# - "traefik.http.routers.app.rule=Host(`mon.nxc`)"
|
||||||
|
- "traefik.http.routers.app.service=app-service"
|
||||||
|
- "traefik.http.services.app-service.loadbalancer.server.port=80"
|
||||||
|
environment:
|
||||||
|
- MYSQL_PASSWORD=Azerty1+
|
||||||
|
- MYSQL_DATABASE=nextcloud
|
||||||
|
- MYSQL_USER=nextcloud
|
||||||
|
- MYSQL_HOST=db
|
||||||
|
|
||||||
|
|
@ -0,0 +1,161 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
apt-get update
|
||||||
|
apt-get 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 nextcloud && cd nextcloud
|
||||||
|
wget -O mkcert https://github.com/FiloSottile/mkcert/releases/download/v1.4.4/mkcert-v1.4.4-linux-amd64
|
||||||
|
chmod +x mkcert
|
||||||
|
mv mkcert /usr/local/bin
|
||||||
|
sudo apt-get install -y libnss3-tools
|
||||||
|
mkdir certs config
|
||||||
|
mkcert -install
|
||||||
|
mkcert -cert-file certs/local-cert.pem -key-file certs/local-key.pem "mon.nxc" "*.mon.nxc"
|
||||||
|
cat > traefik.yml <<EOT
|
||||||
|
version: '3'
|
||||||
|
|
||||||
|
networks:
|
||||||
|
proxy:
|
||||||
|
external: true
|
||||||
|
|
||||||
|
services:
|
||||||
|
reverse-proxy:
|
||||||
|
# The official v2 Traefik docker image
|
||||||
|
image: traefik:latest
|
||||||
|
container_name: traefik
|
||||||
|
# Enables the web UI and tells Traefik to listen to docker
|
||||||
|
command: --api.insecure=true --providers.docker
|
||||||
|
ports:
|
||||||
|
# The HTTP port
|
||||||
|
- "80:80"
|
||||||
|
- "443:443"
|
||||||
|
# The Web UI (enabled by --api.insecure=true)
|
||||||
|
- "8080:8080"
|
||||||
|
volumes:
|
||||||
|
# So that Traefik can listen to the Docker events
|
||||||
|
- /var/run/docker.sock:/var/run/docker.sock:ro
|
||||||
|
# Map the static configuration into the container
|
||||||
|
- ./config/static.yml:/etc/traefik/traefik.yml:ro
|
||||||
|
# Map the dynamic configuration into the container
|
||||||
|
- ./config/dynamic.yml:/etc/traefik/dynamic.yml:ro
|
||||||
|
# Map the certificats into the container
|
||||||
|
- ./certs:/etc/certs:ro
|
||||||
|
networks:
|
||||||
|
- proxy
|
||||||
|
EOT
|
||||||
|
|
||||||
|
cat > ./config/static.yml <<EOT
|
||||||
|
global:
|
||||||
|
sendAnonymousUsage: false
|
||||||
|
api:
|
||||||
|
dashboard: true
|
||||||
|
insecure: true
|
||||||
|
providers:
|
||||||
|
docker:
|
||||||
|
endpoint: "unix:///var/run/docker.sock"
|
||||||
|
watch: true
|
||||||
|
exposedByDefault: false
|
||||||
|
file:
|
||||||
|
filename: /etc/traefik/dynamic.yml
|
||||||
|
watch: true
|
||||||
|
|
||||||
|
log:
|
||||||
|
level: INFO
|
||||||
|
format: common
|
||||||
|
|
||||||
|
entryPoints:
|
||||||
|
http:
|
||||||
|
address: ":80"
|
||||||
|
http:
|
||||||
|
redirections:
|
||||||
|
entryPoint:
|
||||||
|
to: https
|
||||||
|
scheme: https
|
||||||
|
https:
|
||||||
|
address: ":443"
|
||||||
|
EOT
|
||||||
|
|
||||||
|
cat > ./config/dynamic.yml <<EOT
|
||||||
|
http:
|
||||||
|
routers:
|
||||||
|
traefik:
|
||||||
|
rule: "Host(\`traefik.docker.localhost\`)"
|
||||||
|
service: "api@internal"
|
||||||
|
tls:
|
||||||
|
domains:
|
||||||
|
- main: "docker.localhost"
|
||||||
|
sans:
|
||||||
|
- "*.docker.localhost"
|
||||||
|
- main: "mon.nxc"
|
||||||
|
sans:
|
||||||
|
- "*.mon.nxc"
|
||||||
|
|
||||||
|
tls:
|
||||||
|
certificates:
|
||||||
|
- certFile: "/etc/certs/local-cert.pem"
|
||||||
|
keyFile: "/etc/certs/local-key.pem"
|
||||||
|
EOT
|
||||||
|
|
||||||
|
|
||||||
|
cat > nextcloud.yml <<EOT
|
||||||
|
version: '2'
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
nextcloud:
|
||||||
|
db:
|
||||||
|
|
||||||
|
networks:
|
||||||
|
proxy:
|
||||||
|
external: true
|
||||||
|
nxc:
|
||||||
|
external: false
|
||||||
|
|
||||||
|
services:
|
||||||
|
db:
|
||||||
|
image: mariadb:10.5
|
||||||
|
container_name: db
|
||||||
|
restart: always
|
||||||
|
command: --transaction-isolation=READ-COMMITTED --binlog-format=ROW
|
||||||
|
volumes:
|
||||||
|
- db:/var/lib/mysql
|
||||||
|
networks:
|
||||||
|
- nxc
|
||||||
|
environment:
|
||||||
|
- MYSQL_ROOT_PASSWORD=Azerty1+
|
||||||
|
- MYSQL_PASSWORD=Azerty1+
|
||||||
|
- MYSQL_DATABASE=nextcloud
|
||||||
|
- MYSQL_USER=nextcloud
|
||||||
|
|
||||||
|
app:
|
||||||
|
image: nextcloud
|
||||||
|
container_name: app
|
||||||
|
restart: always
|
||||||
|
# ports:
|
||||||
|
# - 8081:80
|
||||||
|
#links:
|
||||||
|
depends_on:
|
||||||
|
- db
|
||||||
|
volumes:
|
||||||
|
- nextcloud:/var/www/html
|
||||||
|
networks:
|
||||||
|
- proxy
|
||||||
|
- nxc
|
||||||
|
labels:
|
||||||
|
- "traefik.enable=true"
|
||||||
|
- "traefik.http.routers.app.rule=Host(\`mon.nxc\`)"
|
||||||
|
- "traefik.http.routers.app.tls=true"
|
||||||
|
environment:
|
||||||
|
- MYSQL_PASSWORD=Azerty1+
|
||||||
|
- MYSQL_DATABASE=nextcloud
|
||||||
|
- MYSQL_USER=nextcloud
|
||||||
|
- MYSQL_HOST=db
|
||||||
|
EOT
|
||||||
|
|
||||||
|
docker network create proxy
|
||||||
|
docker compose -f traefik.yml up -d
|
||||||
|
docker compose -f nextcloud.yml up -d
|
||||||
|
ip -br a
|
||||||
|
|
@ -0,0 +1 @@
|
|||||||
|
1.5:12e5ec88-350a-48d5-a0ed-41abe534d325
|
@ -0,0 +1 @@
|
|||||||
|
1730729908
|
@ -0,0 +1 @@
|
|||||||
|
{"name":"debian/bookworm64","version":"12.20240905.1","provider":"virtualbox","directory":"boxes/debian-VAGRANTSLASH-bookworm64/12.20240905.1/virtualbox"}
|
@ -0,0 +1 @@
|
|||||||
|
1010
|
@ -0,0 +1 @@
|
|||||||
|
12e5ec88-350a-48d5-a0ed-41abe534d325
|
@ -0,0 +1 @@
|
|||||||
|
d0a68c1f718e4b228b8f782df1cab255
|
@ -0,0 +1,8 @@
|
|||||||
|
-----BEGIN OPENSSH PRIVATE KEY-----
|
||||||
|
b3BlbnNzaC1rZXktdjEAAAAABG5vbmUAAAAEbm9uZQAAAAAAAAABAAAAMwAA
|
||||||
|
AAtzc2gtZWQyNTUxOQAAACDQNe2pXfzFdJ2JOwkNM/t6s/m2HqLw1Z8ZeSxz
|
||||||
|
8NVCrgAAAJAwIl+MMCJfjAAAAAtzc2gtZWQyNTUxOQAAACDQNe2pXfzFdJ2J
|
||||||
|
OwkNM/t6s/m2HqLw1Z8ZeSxz8NVCrgAAAEB4GqJ8STrxHPYyabk3jNzQFik6
|
||||||
|
TH7P6XX49ddsGUuoK9A17ald/MV0nYk7CQ0z+3qz+bYeovDVnxl5LHPw1UKu
|
||||||
|
AAAAB3ZhZ3JhbnQBAgMEBQY=
|
||||||
|
-----END OPENSSH PRIVATE KEY-----
|
@ -0,0 +1 @@
|
|||||||
|
{"virtualbox":{"/vagrant":{"guestpath":"/vagrant","hostpath":"/home/guillaume.emorine/vagrant/docker","disabled":false,"__vagrantfile":true}}}
|
@ -0,0 +1 @@
|
|||||||
|
/home/guillaume.emorine/vagrant/docker
|
12
bts_annee_2/vagrantfiles/docker/.vagrant/rgloader/loader.rb
Normal file
12
bts_annee_2/vagrantfiles/docker/.vagrant/rgloader/loader.rb
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
# Copyright (c) HashiCorp, Inc.
|
||||||
|
# SPDX-License-Identifier: BUSL-1.1
|
||||||
|
|
||||||
|
# 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
|
71
bts_annee_2/vagrantfiles/docker/Vagrantfile
vendored
Normal file
71
bts_annee_2/vagrantfiles/docker/Vagrantfile
vendored
Normal file
@ -0,0 +1,71 @@
|
|||||||
|
# -*- 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/bookworm64"
|
||||||
|
config.vm.hostname = "docker"
|
||||||
|
|
||||||
|
# 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.56.2"
|
||||||
|
|
||||||
|
# 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"
|
||||||
|
|
||||||
|
# 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
|
||||||
|
timedatectl set-timezone Europe/Paris
|
||||||
|
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 # on lance l'installation de docker
|
||||||
|
gpasswd -a vagrant docker
|
||||||
|
fi
|
||||||
|
SHELL
|
||||||
|
end
|
@ -0,0 +1 @@
|
|||||||
|
1.5:4208c9ac-b468-465b-bd53-c6085c14b89d
|
@ -0,0 +1 @@
|
|||||||
|
1731925630
|
@ -0,0 +1 @@
|
|||||||
|
{"name":"debian/bookworm64","version":"12.20240905.1","provider":"virtualbox","directory":"boxes/debian-VAGRANTSLASH-bookworm64/12.20240905.1/virtualbox"}
|
@ -0,0 +1 @@
|
|||||||
|
1010
|
@ -0,0 +1 @@
|
|||||||
|
4208c9ac-b468-465b-bd53-c6085c14b89d
|
@ -0,0 +1 @@
|
|||||||
|
7c4acc266a32409381f393fd41df9f02
|
@ -0,0 +1,8 @@
|
|||||||
|
-----BEGIN OPENSSH PRIVATE KEY-----
|
||||||
|
b3BlbnNzaC1rZXktdjEAAAAABG5vbmUAAAAEbm9uZQAAAAAAAAABAAAAMwAA
|
||||||
|
AAtzc2gtZWQyNTUxOQAAACCb3zUHypixUhbxW1vkFaAJebwEQ5NsZGr7vzxb
|
||||||
|
lY/9mAAAAJC8ezgxvHs4MQAAAAtzc2gtZWQyNTUxOQAAACCb3zUHypixUhbx
|
||||||
|
W1vkFaAJebwEQ5NsZGr7vzxblY/9mAAAAEDn58p+kipwzTI0jNBlrGUhgYHS
|
||||||
|
zrxIS8ttov08z4ffiJvfNQfKmLFSFvFbW+QVoAl5vARDk2xkavu/PFuVj/2Y
|
||||||
|
AAAAB3ZhZ3JhbnQBAgMEBQY=
|
||||||
|
-----END OPENSSH PRIVATE KEY-----
|
@ -0,0 +1 @@
|
|||||||
|
{"virtualbox":{"/vagrant":{"guestpath":"/vagrant","hostpath":"/home/guillaume.emorine/vagrant/kali-mitm","disabled":false,"__vagrantfile":true}}}
|
@ -0,0 +1 @@
|
|||||||
|
/home/guillaume.emorine/vagrant/kali-mitm
|
@ -0,0 +1,12 @@
|
|||||||
|
# Copyright (c) HashiCorp, Inc.
|
||||||
|
# SPDX-License-Identifier: BUSL-1.1
|
||||||
|
|
||||||
|
# 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
|
78
bts_annee_2/vagrantfiles/kali-mitm/Vagrantfile
vendored
Normal file
78
bts_annee_2/vagrantfiles/kali-mitm/Vagrantfile
vendored
Normal file
@ -0,0 +1,78 @@
|
|||||||
|
# -*- 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/bookworm64"
|
||||||
|
config.vm.hostname = "lab1"
|
||||||
|
|
||||||
|
# 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.56.2"
|
||||||
|
|
||||||
|
# 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
|
||||||
|
timedatectl set-timezone Europe/Paris
|
||||||
|
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 # on lance l'installation de docker
|
||||||
|
gpasswd -a vagrant docker
|
||||||
|
fi
|
||||||
|
git clone https://github.com/amirouchef/kali-docker-lab1.git
|
||||||
|
SHELL
|
||||||
|
end
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user