forked from guillaume.emorine/siotp
Ajout des vagrantfiles au dépôt.
This commit is contained in:
@@ -0,0 +1 @@
|
||||
1.5:c7b272d3-0f78-49b4-a01a-fc0a39d4b53c
|
@@ -0,0 +1 @@
|
||||
1726755879
|
@@ -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 @@
|
||||
c7b272d3-0f78-49b4-a01a-fc0a39d4b53c
|
@@ -0,0 +1 @@
|
||||
d06de35decc74d0cb9b7a5feefd4f41e
|
@@ -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-----
|
@@ -0,0 +1 @@
|
||||
{"virtualbox":{"/vagrant":{"guestpath":"/vagrant","hostpath":"/home/guillaume.emorine/vagrant/nagios","disabled":false,"__vagrantfile":true}}}
|
@@ -0,0 +1 @@
|
||||
/home/guillaume.emorine/vagrant/nagios
|
12
bts_annee_2/vagrantfiles/nagios/.vagrant/rgloader/loader.rb
Normal file
12
bts_annee_2/vagrantfiles/nagios/.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
|
32
bts_annee_2/vagrantfiles/nagios/Vagrantfile
vendored
Normal file
32
bts_annee_2/vagrantfiles/nagios/Vagrantfile
vendored
Normal 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
|
Reference in New Issue
Block a user