Puppet : How to use [node Section]2023/10/17 |
It's possible to set resources for every clients by using [node] section like follows. |
|
[1] | Set resources to [node01.srv.world] and others. ('default' section is applied on other clients.) |
[root@dlp ~]#
vi /etc/puppetlabs/code/environments/production/manifests/nodes.pp node 'node01.srv.world' { file { '/home/testfile5.txt': ensure => file, owner => 'root', group => 'root', mode => '0644', content => 'This is the puppet test file for node01.', } } node default { file { '/home/testfile6.txt': ensure => file, owner => 'root', group => 'root', mode => '0644', content => 'This is the puppet default test file.', } } |
Sponsored Link |