Project

General

Profile

Download (2.56 KB) Statistics
| Branch: | Tag: | Revision:
class foreman_proxy::params {

include tftp::params
include puppet::params

# Packaging
$use_testing = false

# variables
$port = "8443"
$dir = '/usr/share/foreman-proxy'
$user = 'foreman-proxy'
$log = '/var/log/foreman-proxy/proxy.log'

# Should we assume a sudoers.d dir exists ( 'false' will use augeas instead )
$use_sudoersd = true

# puppetca settings
$puppetca = true
$autosign_location = '/etc/puppet/autosign.conf'
$puppetca_cmd = $puppet::params::puppetca_cmd
$puppet_group = 'puppet'

# puppetrun settings
$puppetrun = true
$puppetrun_cmd = '/usr/sbin/puppetrun'

# TFTP settings - requires optional TFTP puppet module
$tftp = true
case $::operatingsystem {
Debian,Ubuntu: {
$tftp_syslinux_root = '/usr/lib/syslinux'
}
default: {
$tftp_syslinux_root = '/usr/share/syslinux'
}
}
$tftp_syslinux_files = ['pxelinux.0','menu.c32','chain.c32']
$tftp_root = $tftp::params::root
$tftp_dirs = ["${tftp_root}/pxelinux.cfg","${tftp_root}/boot"]
$tftp_servername = $ipaddress_eth0

# DHCP settings - requires optional DHCP puppet module
$dhcp = false
$dhcp_interface = 'eth0'
$dhcp_gateway = '192.168.100.1'
$dhcp_range = '192.168.100.50 192.168.100.200'
# This will use the IP of the interface in $dhcp_interface, override
# if you need to. You can make this a comma-separated string too - it
# will be split into an array
$dhcp_nameservers = 'default'

# DHCP server settings
case $::operatingsystem {
Debian,Ubuntu: {
$dhcp_vendor = 'isc'
$dhcp_config = '/etc/dhcp/dhcpd.conf'
$dhcp_leases = '/var/lib/dhcp/dhcpd.leases'
}
RedHat,CentOS: {
$dhcp_vendor = 'isc'
if ($::lsbmajdistrelease == 5) {
$dhcp_config = '/etc/dhcpd.conf'
} else {
$dhcp_config = '/etc/dhcp/dhcpd.conf'
}
$dhcp_leases = '/var/lib/dhcpd/dhcpd.leases'
}
default: {
$dhcp_vendor = 'isc'
$dhcp_config = '/etc/dhcpd.conf'
$dhcp_leases = '/var/lib/dhcpd/dhcpd.leases'
}
}

# DNS settings - requires optional DNS puppet module
$dns = false
$dns_interface = 'eth0'
$dns_reverse = '100.168.192.in-addr.arpa'
# localhost can resolve to ipv6 which ruby doesn't handle well
$dns_server = '127.0.0.1'
case $::operatingsystem {
Debian,Ubuntu: {
$keyfile = '/etc/bind/rndc.key'
$nsupdate = 'dnsutils'
}
default: {
$keyfile = '/etc/rndc.key'
$nsupdate = 'bind-utils'
}
}

$dns_forwarders = []

}
(4-4/9)