- [root@n10 ~]# ll /etc/resolv.conf
- -rw-r--r-- 1 root root 110 Jan 4 21:59 /etc/resolv.conf
- [root@n10 ~]# puppet resource file /etc/resolv.conf
- file { '/etc/resolv.conf':
- ensure => 'file',
- content => '{md5}17dff4999ba22dca07cdc3cac3ffc34b',
- ctime => 'Fri Jan 04 21:59:36 -0800 2013',
- group => '0',
- mode => '644',
- mtime => 'Fri Jan 04 21:59:36 -0800 2013',
- owner => '0',
- selrole => 'object_r',
- seltype => 'net_conf_t',
- seluser => 'system_u',
- type => 'file',
- }
- [root@n10 ~]# id
- uid=0(root) gid=0(root) groups=0(root),1(bin),2(daemon),3(sys),4(adm),6(disk),10(wheel) context=root:system_r:unconfined_t:SystemLow-SystemHigh
- [root@n10 ~]# puppet resource user root
- user { 'root':
- ensure => 'present',
- comment => 'root',
- gid => '0',
- groups => ['root', 'bin', 'daemon', 'sys', 'adm', 'disk', 'wheel'],
- home => '/root',
- password => '$1$ChEkQ7I0$B23WW.aWiWS5Gtn/RQtYY/',
- password_max_age => '99999',
- password_min_age => '0',
- shell => '/bin/bash',
- uid => '0',
- }