feat: manage proxmox nodes
- change /etc/hosts to meet proxmox requirements - add proxmox node role - add init, params, repo, install, clusterjoin classes
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
# profiles::proxmox::config
|
||||
class profiles::proxmox::config {
|
||||
|
||||
# include params class
|
||||
include profiles::proxmox::params
|
||||
|
||||
# localise some vars
|
||||
$clusterinit_master = $profiles::proxmox::params::pve_clusterinit_master
|
||||
|
||||
# create pve_facts file
|
||||
file {'/opt/puppetlabs/facter/facts.d/pve_facts.yaml':
|
||||
ensure => 'file',
|
||||
owner => 'root',
|
||||
group => 'root',
|
||||
mode => '0600',
|
||||
content => template('profiles/proxmox/pve_facts.yaml.erb')
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user