ajout logs
This commit is contained in:
		@@ -1,9 +1,10 @@
 | 
			
		||||
# vagrant
 | 
			
		||||
 | 
			
		||||
le 2023-01-29
 | 
			
		||||
le 2023-04-25 20h00 - ps
 | 
			
		||||
 | 
			
		||||
Ce dépôt héberge des **Vagrantfile** dont
 | 
			
		||||
Ce dépôt héberge des **Vagrantfile** dont : 
 | 
			
		||||
  * **dns** : Vagrantfile pour 2 serveurs **Bind9** (1 maitre et un esclave), tests **goss** chainés  
 | 
			
		||||
  * **divers/logs** : Vagrantfile pour serveur et client **rsyslog**  sans journald  
 | 
			
		||||
  * **docker**
 | 
			
		||||
  * **docker-wordpress**
 | 
			
		||||
  * **docker-glpi**
 | 
			
		||||
@@ -15,6 +16,7 @@ Ce dépôt héberge des **Vagrantfile** dont
 | 
			
		||||
  * **devstack**
 | 
			
		||||
  * **guacamole** : Vagrantfile pour Apache Guacamole dockerise sans frontal
 | 
			
		||||
  * **k8s** : kubernetes 1.26.00 + playbook pour master **k8s-master** et 2 noeuds **node-1** et **node-2**
 | 
			
		||||
  * **k3s-awx** : Vagrantfile + script **inst-awx** pour installation  **Ansible AWX** sur **k3s** avec **awx-on-k3s**
 | 
			
		||||
  * **minione**
 | 
			
		||||
  * **rundeck** : Vagrantfile + playbook pour installation avec Mariadb
 | 
			
		||||
  * **wp-lb** : Wordpress web1 et web2, lb HaProxy, nfs, db Mariadb - Vagrantfile + playbooks
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										28
									
								
								divers/logs/Vagrantfile
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										28
									
								
								divers/logs/Vagrantfile
									
									
									
									
										vendored
									
									
										Normal file
									
								
							@@ -0,0 +1,28 @@
 | 
			
		||||
Vagrant.configure("2") do |config|
 | 
			
		||||
  config.vm.define 'srv' do |config|
 | 
			
		||||
	  config.vm.box = "debian/bullseye64"
 | 
			
		||||
	  config.vm.hostname = "srv"
 | 
			
		||||
	  config.vm.network "private_network", ip: "192.168.56.10"
 | 
			
		||||
	  config.vm.provision "shell", inline:<<-SHELL
 | 
			
		||||
#	    apt-get update
 | 
			
		||||
#	    apt-get install -y vim curl wget 
 | 
			
		||||
	    sed -i 's/^#module\(load="imudp"\)/module(load="imudp")/' /etc/rsyslog.conf
 | 
			
		||||
	    sed -i 's/^#input\(type="imudp" port="514"\)/input(type="imudp" port="514")/' /etc/rsyslog.conf
 | 
			
		||||
	    systemctl restart syslog
 | 
			
		||||
	    ss -lnu 
 | 
			
		||||
	  SHELL
 | 
			
		||||
	end
 | 
			
		||||
 | 
			
		||||
  config.vm.define 'cli' do |config| 
 | 
			
		||||
	  config.vm.box = "debian/bullseye64"
 | 
			
		||||
	  config.vm.hostname = "cli"
 | 
			
		||||
	  config.vm.network "private_network", ip: "192.168.56.11"
 | 
			
		||||
	  config.vm.provision "shell", inline:<<-SHELL
 | 
			
		||||
#	    apt-get update
 | 
			
		||||
#	    apt-get install -y vim curl wget 
 | 
			
		||||
	    echo "*.* @192.168.56.10" >> /etc/rsyslog.conf
 | 
			
		||||
	    systemctl restart syslog
 | 
			
		||||
	    logger salut 
 | 
			
		||||
	  SHELL
 | 
			
		||||
	end
 | 
			
		||||
end
 | 
			
		||||
		Reference in New Issue
	
	Block a user