neoloc/ausyd1nxvm1017 #55
@ -2,7 +2,17 @@
|
||||
profiles::cobbler::params::is_cobbler_master: true
|
||||
networking::interfaces:
|
||||
eth0:
|
||||
ensure: absent
|
||||
ens18:
|
||||
ensure: present
|
||||
family: inet
|
||||
method: static
|
||||
ipaddress: 198.18.13.27
|
||||
netmask: 255.255.255.0
|
||||
onboot: true
|
||||
networking::routes:
|
||||
default:
|
||||
gateway: 198.18.13.254
|
||||
interface: ens18
|
||||
|
||||
profiles::almalinux::base::remove_ens18: false
|
||||
|
||||
@ -1,10 +1,14 @@
|
||||
# base almalinux settings
|
||||
class profiles::almalinux::base {
|
||||
class profiles::almalinux::base (
|
||||
Boolean $remove_ens18 = true,
|
||||
) {
|
||||
|
||||
if $remove_ens18 {
|
||||
file {'/etc/sysconfig/network-scripts/ifcfg-ens18':
|
||||
ensure => absent,
|
||||
}
|
||||
-> service {'NetworkManager':
|
||||
}
|
||||
service {'NetworkManager':
|
||||
ensure => false,
|
||||
enable => false,
|
||||
require => Package['network-scripts'],
|
||||
|
||||
Loading…
Reference in New Issue
Block a user