Skip to content

tenhishadow/pve_on_debian

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pve_on_debian

HABRAHABR

https://habr.com/ru/post/342310/

This role will install on Debian system

It's just an automation for this https://pve.proxmox.com/wiki/Install_Proxmox_VE_on_Debian_Stretch and some additionals to make system usable(Configure journald,chronyd) It was writed to be applicable to all versions of Debian and Proxmox(but I haven't tested it :) ). You can override defaults in your playbook to use other versions: - debian_version - debian_repo - pve_repo_keyurl - pve_repo_keyring

At first role will do all from https://pve.proxmox.com/wiki/Install_Proxmox_VE_on_Debian_Stretch excluding installation of open-iscsi. I have excluded package open-iscsi from installation because I don't use it and it shows warnings without configuring.

During performing tasks role will configure bridge for VMs(default is vmbr0) using bridge-utils. You can easly reconfigure it somehow else by modifying templates/interfaces.j2

Requirements

Ansible (tested with 2.3.1.0) Python (tested with 2.7.5)

Role Variables

A description of the settable variables for this role should go here, including any variables that are in defaults/main.yml, vars/main.yml, and any variables that can/should be set via parameters to the role. Any variables that are read from other roles and/or the global scope (ie. hostvars, group vars, etc.) should be mentioned here as well.

defaults/main.yml:
	ntp_pool: pool.ntp.org				# Pool of ntp-servers
	timezone: Europe/Moscow				# Default timezone
	debian_version: stretch				# Default release
	debian_repo: "http://mirror.yandex.ru/debian/"	# Default repo address
	add_pve-no-subscription: True			# Add pve-no-subscription repository
	disable_pve-enterprise: True			# Disable commercial repo
	pve_repo_keyurl					# repo key url
	pve_repo_keyring				# gpg keyring
playbook vars( must be declared ):
	proxmox_ip			# ip address for new instance of Proxmox
	proxmox_mask			# network mask
	proxmox_gateway			# default gateway
	proxmox_physnet			# physical network for bridge (e.g. eth0)
	proxmox_bridge			# name of the virtual bridge (e.g. vmbr0)
	proxmox_hostname_fdqn		# fqdn for new Proxmox

Dependencies

A list of other roles hosted on Galaxy should go here, plus any details in regards to parameters that may need to be set for other roles, or variables that are used from other roles.

Example Playbook

---
- hosts: proxmox_target
  gather_facts: true
  vars:
    - proxmox_physnet: eth0
    - proxmox_bridge: vmbr0
    - proxmox_ip: 192.168.102.51 
    - proxmox_mask: 255.255.255.0
    - proxmox_gateway: 192.168.102.1
    - proxmox_hostname_fdqn: proxmox.testlab.lan
  roles:
    - tenhishadow.pve_on_debian
...

License

GPL v 3.0

Author Information

https://tenhi.online Tenhi adm@tenhi.ru

Releases

No releases published

Packages

No packages published