added new server
	
		
			
	
		
	
	
		
	
		
			All checks were successful
		
		
	
	
		
			
				
	
				ci/woodpecker/push/demo-workflow Pipeline was successful
				
			
		
		
	
	
				
					
				
			
		
			All checks were successful
		
		
	
	ci/woodpecker/push/demo-workflow Pipeline was successful
				
			- added new server - added instruction regarding joining quoram - use terraform to provision VM for new server
This commit is contained in:
		
							
								
								
									
										29
									
								
								infra/ansible/inventory/host_vars/proxmox3.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										29
									
								
								infra/ansible/inventory/host_vars/proxmox3.yaml
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,29 @@ | ||||
| # VM related variables | ||||
| vm_list: | ||||
|   - id: 301 | ||||
|     name: "vm10" | ||||
|     memory: 4096 | ||||
|     cores: 2 | ||||
|     disk_size: 30G | ||||
|     ip: "192.168.1.172/24" | ||||
|     gateway: "192.168.1.1" | ||||
|     nameserver1: "192.168.1.145" | ||||
|     nameserver2: "1.1.1.1" | ||||
|   - id: 302 | ||||
|     name: "vm11" | ||||
|     memory: 4096 | ||||
|     cores: 2 | ||||
|     disk_size: 30G | ||||
|     ip: "192.168.1.173/24" | ||||
|     gateway: "192.168.1.1" | ||||
|     nameserver1: "192.168.1.145" | ||||
|     nameserver2: "1.1.1.1" | ||||
|  | ||||
| # cloud-init template variables | ||||
| node: "homeserver3" | ||||
| net0: "virtio,bridge=vmbr0" | ||||
| # disk_name: "local:2000/vm-2000-disk-0.raw,discard=on" | ||||
| disk_path: "/var/lib/vz/images/3000" | ||||
| ide2: "local:cloudinit,format=qcow2" | ||||
| boot_order: "order=scsi0" | ||||
| scsi_hw: "virtio-scsi-pci" | ||||
| @ -7,19 +7,27 @@ hypervisors: | ||||
|   children: | ||||
|     server1: | ||||
|     server2: | ||||
|     server3: | ||||
|  | ||||
| server1: | ||||
|   hosts: | ||||
|     proxmox1: | ||||
|       ansible_host: 192.168.1.121 | ||||
|       ansible_user:  "{{ ansible_proxmox_user }}" | ||||
|       ansible_user: "{{ ansible_proxmox_user }}" | ||||
|       ansible_ssh_private_key_file: "{{ ansible_ssh_private_key_file }}" | ||||
|  | ||||
| server2: | ||||
|   hosts: | ||||
|     proxmox2: | ||||
|       ansible_host: 192.168.1.122 | ||||
|       ansible_user:  "{{ ansible_proxmox_user }}" | ||||
|       ansible_user: "{{ ansible_proxmox_user }}" | ||||
|       ansible_ssh_private_key_file: "{{ ansible_ssh_private_key_file }}" | ||||
|  | ||||
| server3: | ||||
|   hosts: | ||||
|     proxmox3: | ||||
|       ansible_host: 192.168.1.123 | ||||
|       ansible_user: "{{ ansible_proxmox_user }}" | ||||
|       ansible_ssh_private_key_file: "{{ ansible_ssh_private_key_file }}" | ||||
|  | ||||
| vms: | ||||
| @ -48,4 +56,3 @@ vm_group_2: | ||||
|       ansible_host: 192.168.1.162 | ||||
|       ansible_user: "{{ ansible_vm_user }}" | ||||
|       ansible_ssh_private_key_file: "{{ ansible_ssh_private_key_file }}" | ||||
|  | ||||
|  | ||||
		Reference in New Issue
	
	Block a user