Merge pull request 'feat: manage proxmox nodes' (#159) from neoloc/proxmox into develop
Reviewed-on: unkinben/puppet-prod#159
This commit is contained in:
@@ -1,15 +1,10 @@
|
||||
# /etc/hosts file managed by Puppet
|
||||
|
||||
# The following lines are desirable for IPv4 capable hosts
|
||||
127.0.0.1 <%= @fqdn %> <%= @hostname %>
|
||||
<%= @facts['networking']['ip'] %> <%= @fqdn %> <%= @hostname %>
|
||||
127.0.0.1 localhost.localdomain localhost
|
||||
127.0.0.1 localhost4.localdomain4 localhost4
|
||||
|
||||
# The following lines are desirable for IPv6 capable hosts
|
||||
::1 <%= @fqdn %> <%= @hostname %>
|
||||
::1 localhost.localdomain localhost
|
||||
::1 localhost6.localdomain6 localhost6
|
||||
|
||||
<% @additional_hosts.each do |host| -%>
|
||||
<%= host['ip'] %> <%= host['hostname'] %> <%= host['aliases'].join(' ') if host['aliases'] %>
|
||||
<% end -%>
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
#!/usr/bin/expect -f
|
||||
set timeout -1
|
||||
set password [lindex $argv 0]
|
||||
set ip [lindex $argv 1]
|
||||
|
||||
spawn pvecm add $ip
|
||||
expect "Please enter superuser (root) password for"
|
||||
send "$password\r"
|
||||
expect "The authenticity of host"
|
||||
send "yes\r"
|
||||
expect eof
|
||||
@@ -0,0 +1,2 @@
|
||||
---
|
||||
pve_clusterinit_master: <%= @clusterinit_master %>
|
||||
Reference in New Issue
Block a user