Ajout des vagrantfiles au dépôt.

This commit is contained in:
Guillaume Emorine
2024-11-28 12:02:52 +01:00
parent 996e230d44
commit 4a4ba1214f
192 changed files with 1690 additions and 0 deletions

View File

@@ -0,0 +1 @@
1.5:c7b272d3-0f78-49b4-a01a-fc0a39d4b53c

View File

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

View File

@@ -0,0 +1 @@
c7b272d3-0f78-49b4-a01a-fc0a39d4b53c

View File

@@ -0,0 +1 @@
d06de35decc74d0cb9b7a5feefd4f41e

View File

@@ -0,0 +1,8 @@
-----BEGIN OPENSSH PRIVATE KEY-----
b3BlbnNzaC1rZXktdjEAAAAABG5vbmUAAAAEbm9uZQAAAAAAAAABAAAAMwAA
AAtzc2gtZWQyNTUxOQAAACAJHiW7B/dX/L5bbhHM8KWhL7+LhIaMHM/12X//
aoY35gAAAJBOOr4XTjq+FwAAAAtzc2gtZWQyNTUxOQAAACAJHiW7B/dX/L5b
bhHM8KWhL7+LhIaMHM/12X//aoY35gAAAEAvYJjQChqJ5GCSf5w/TlYyyHmp
6gFKvMEDdlHTukng1AkeJbsH91f8vltuEczwpaEvv4uEhowcz/XZf/9qhjfm
AAAAB3ZhZ3JhbnQBAgMEBQY=
-----END OPENSSH PRIVATE KEY-----

View File

@@ -0,0 +1 @@
{"virtualbox":{"/vagrant":{"guestpath":"/vagrant","hostpath":"/home/guillaume.emorine/vagrant/nagios","disabled":false,"__vagrantfile":true}}}

View File

@@ -0,0 +1 @@
/home/guillaume.emorine/vagrant/nagios

View 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

View File

@@ -0,0 +1,32 @@
# -*- mode: ruby -*-
# vi: set ft=ruby :
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 = "nagios4"
# 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.provision "shell", inline: <<-SHELL
apt-get update
apt-get install -y vim curl wget apache2 php nagios4 nagios-plugins-contrib
cp /etc/nagios4/apache2.conf /etc/apache2/sites-available/nagios4.conf
a2ensite nagios4.conf
a2enmod rewrite cgi
systemctl reload apache2
SHELL
end