You probably wanna use ensure => directory, as it implies present, and
ensure present will make a file IIRC
On 25/02/2009, at 6:27 PM, chakkerz wrote:
>
> The following code,
> file
> { "/var/log/sysinfo":
> owner => root,
> group => root,
> mode => 755,
> ensure => [ present, directory ],
> }
>
> on RHEL5 generates a directory:
> [r...@puppetks4 ~]# uname -a ; ls -ld /var/log/sysinfo
> Linux puppetks4.its.uq.edu.au 2.6.18-128.el5 #1 SMP Wed Dec 17
> 11:41:38 EST 2008 x86_64 x86_64 x86_64 GNU/Linux
> drwxr-xr-x 2 root root 4096 Feb 18 09:04 /var/log/sysinfo
>
> using
> [r...@puppetks4 ~]# rpm -q puppet
> puppet-0.24.7-4.el5
>
> while on OpenSolaris generates a file:
> r...@puppetsun:/# uname -a ; ls -l /var/log/sysinfo
> SunOS puppetsun 5.11 snv_101b i86pc i386 i86pc Solaris
> -rwxr-xr-x 1 root root 0 2009-02-13 17:57 /var/log/sysinfo
>
> using
> r...@puppetsun:/# pkginfo -l CSWpuppet
> PKGINST: CSWpuppet
> NAME: puppet - a system configuration tool
> CATEGORY: application,system
> ARCH: all
> VERSION: 0.24.7,REV=2009.01.10
> BASEDIR: /
> VENDOR: http://reductivelabs.com/projects/puppet packaged for CSW
> by Gary Law and Mark Phillips
> PSTAMP: zone6120090110180023
> INSTDATE: Dec 29 1986 04:18
> EMAIL: [email protected]
> STATUS: completely installed
> FILES: 524 installed pathnames
> 12 shared pathnames
> 95 directories
> 419 executables
> 3713 blocks used (approx)
> >
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Puppet Users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/puppet-users?hl=en
-~----------~----~----~----~------~----~------~--~---