Compare commits
9 Commits
v.0.2.2-ge
...
v.0.2.7-ge
Author | SHA1 | Date | |
---|---|---|---|
|
4a4ba1214f | ||
|
996e230d44 | ||
|
ee8ba29e39 | ||
|
8ac9bac7a1 | ||
|
bcff0b9ebc | ||
cd8c794bc3 | |||
4fb288042e | |||
|
adaadd2792 | ||
0624663de2 |
@@ -1,5 +1,6 @@
|
||||
Dépôt de fichiers personnels provenant de machines virtuelles utilisées en TP.
|
||||
# siotp
|
||||
|
||||
Dépôt de fichiers personnels provenant de machines virtuelles utilisées en TP.
|
||||
Ce Gitea contient aussi un script d'automatisation du processus de push et de pull, adaptés aux deux branches.
|
||||
|
||||
Dépôt anciennement privé, devenu public le 16 Septembre 2024.
|
||||
*Dépôt anciennement privé, devenu public le 16 Septembre 2024.*
|
@@ -1,2 +1,3 @@
|
||||
Dépôt de seconde année de BTS.
|
||||
Un répertoire est dédié au côté SISR, un autre est dédié au côté Cybersécurité.
|
||||
Un dernier répertoire est dédié aux ateliers de professionalisation, mais les effectifs du BTS font que le seul présent (sur le SDIS 29) sera le dernier en mode "piscine".
|
||||
|
5
bts_annee_2/ateliers_professionalisation/README.md
Normal file
5
bts_annee_2/ateliers_professionalisation/README.md
Normal file
@@ -0,0 +1,5 @@
|
||||
# Dépôt de fichiers et du travail de l'AP3-SDIS-29
|
||||
|
||||
Ce dépôt contient les documents et scripts, fichiers de configuration et *playbooks* Ansible ayant étés élaborés lors de l'atelier de professionalisation 3, concernant le SDIS-29 comme sujet.
|
||||
Le SDIS-29 est, si on vulgarise, les sapeurs-pompiers du Finistère.
|
||||
**Chaque dossier porte un nom explicite, en rapport à ce qu'il contient.**
|
@@ -1,2 +1,3 @@
|
||||
Dossier avec le script utilisé pour simuler une attaque de ransomware sur un partage Samba accessible en écriture, avec un mot de passe et nom d'utilisateur connus.
|
||||
Les arguments passés après le nom du script sont utilisés plus tard et sont nécessaires.
|
||||
Séance sur la simulation d'un *ransomware* sur un partage de fichiers Samba.
|
||||
Le mode d'emploi du script est dans celui-ci.
|
||||
Pour générer une clé d'encryption/décryption, on peut faire ceci: `date | sha512sum > macle.txt`.
|
||||
|
1
bts_annee_2/cyber2/ransomware-simulation/cle.txt
Normal file
1
bts_annee_2/cyber2/ransomware-simulation/cle.txt
Normal file
@@ -0,0 +1 @@
|
||||
f1822d2fe58daeadc88e0e4eef2f155fc3edd3713ff9a5d1e27696afd9231d905db51c98dcf0c6416658239b8d3b5893c5775ffd7941f769a78fcd684c5f9161
|
@@ -1,34 +1,40 @@
|
||||
#!/bin/bash
|
||||
# déclaration des variables
|
||||
|
||||
# Usage :
|
||||
# bash smbcc.sh <chemin du partage Windows AVEC IP> <nom d'utilisateur/mot de passe> <action> <clé d'encryption>
|
||||
|
||||
# Déclaration des variables.
|
||||
chemin=$1
|
||||
cred=$2
|
||||
action=$3
|
||||
ficcle=$4
|
||||
|
||||
# récup du mot de passe et nom d'utilisateur
|
||||
# Récupération du nom d'utilisateur et du mot de passe.
|
||||
user=$(echo $cred| cut -d "/" -f1)
|
||||
pass=$(echo $cred| cut -d "/" -f2)
|
||||
|
||||
# créa du répertoire et on monte dessus
|
||||
[[ -e /mnt/samba ]] || mkdir /mnt/samba
|
||||
mount.cifs -o "username=$user,password=$pass" "//${chemin}" /mnt/samba
|
||||
# Création du répertoire s'il n'existe pas, et montage du partage Samba dessus.
|
||||
[[ -e /tmp/samba ]] || mkdir /tmp/samba
|
||||
mount.cifs -o "username=$user,password=$pass" "//${chemin}" /tmp/samba
|
||||
|
||||
# vérification d'erreurs
|
||||
# Première vérification d'erreurs.
|
||||
if [[ $? != 0 ]] ; then
|
||||
rmdir /mnt/samba
|
||||
echo "Erreur dans la commande mount.cifs, vérifiez les paramètres entrés."
|
||||
rmdir /tmp/samba
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# la commande ccrypt
|
||||
ccrypt "$action" -r -k $ficcle /mnt/samba
|
||||
# Commande ccrypt pour encrypter ou décrypter le répertoire avec le partage.
|
||||
ccrypt "$action" --recursive --key $ficcle /tmp/samba
|
||||
|
||||
# vérification d'erreurs
|
||||
# Seconde vérification d'erreurs.
|
||||
if [[ $? != 0 ]] ; then
|
||||
echo "ccrypt échoué, revérifie le script."
|
||||
echo "Échec de ccrypt, veuillez relancer le script après avoir vérifié les paramètres."
|
||||
umount /tmp/samba
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# nettoyage et sortie, code 0
|
||||
umount /mnt/samba
|
||||
rmdir /mnt/samba
|
||||
# Nettoyage des directoires, et sortie du script avec le code 0.
|
||||
umount /tmp/samba
|
||||
rmdir /tmp/samba
|
||||
exit 0
|
||||
|
1
bts_annee_2/cyber2/ransomware-simulation/test.txt
Normal file
1
bts_annee_2/cyber2/ransomware-simulation/test.txt
Normal file
@@ -0,0 +1 @@
|
||||
0d7b9fea61b5707ff8bf6da489a2638153e8c5d74d3bfab9a12dca6698da3ef61441cf86b819b166cae673efc97c99cb3ab8022c62774636f9e8fe18771a13db -
|
@@ -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-----
|
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user