Puppet模块(四):HOST模块及host资源
# vi /etc/puppet/modules/host/manifests/init.ppclass host {
host { 'puppet.ewin.com': #计算机名称
ensure => present, #基础属性,应用此资源
host_aliases => "puppet", #计算机别名,可以多个
ip => "10.188.1.73", #计算机IP地址
}
host { 'zabbix.ewin.com':
ensure => present,
host_aliases => "zabbix",
ip => "10.188.1.103",
}
host { 'centostest.ewin.com':
ensure => present,
host_aliases => "centostest",
ip => "10.188.1.85",
}
host { 'ywzhou-pc.ewin.com':
ensure => present,
host_aliases => "ywzhou-pc",
ip => "10.188.1.172",
}
}
页:
[1]