ADNET Ghislain
2007-Jan-26 18:15 UTC
directory, effect of recurse with ensure => directory
Hello, I wanted to say:: this file is a directory and must be created , this directory and it''s content should be owned by root:www-data with 640 mode for file and 750 for dirs: file { "base_admin": path => "/my/dir" owner => ''root'', group => www-data, recurse => true, ensure => directory, mode => 640 } problem: debug: //myserver/sourcedir/File[/var/www/base_admin/server_sql.php]: Changing ensure debug: //myserver/sourcedir/File[/var/www/base_admin/server_sql.php]: 1 change(s) debug: //myserver/sourcedir/File[/var/www/base_admin/server_sql.php]: Removing existing file for replacement with directory debug: /myserver/sourcedir/File[/var/www/base_admin/server_sql.php]/ensure: setting directory (currently file) notice: /myserver/sourcedir/File[/var/www/base_admin/server_sql.php]/ensure: ensure changed ''file'' to ''directory'' and the owner/group is not changed , i was wondering id the ensure => directory should not be somewhat limited to the object itself when recurse is in effect. Is there any chance someone use recurse with ensure => directory to ensure there is only directory under this one ? -- Cordialement, Ghislain _______________________________________________ Puppet-users mailing list Puppet-users@madstop.com https://mail.madstop.com/mailman/listinfo/puppet-users
Luke Kanies
2007-Jan-29 16:33 UTC
Re: directory, effect of recurse with ensure => directory
On Jan 26, 2007, at 12:15 PM, ADNET Ghislain wrote:> Hello, > > I wanted to say:: > > this file is a directory and must be created , this directory and > it''s content should be owned by root:www-data with 640 mode for > file and 750 for dirs: > > file { "base_admin": > path => "/my/dir" > owner => ''root'', > group => www-data, > recurse => true, > ensure => directory, > mode => 640 > } > > problem: > > debug: //myserver/sourcedir/File[/var/www/base_admin/ > server_sql.php]: Changing ensure > debug: //myserver/sourcedir/File[/var/www/base_admin/ > server_sql.php]: 1 change(s) > debug: //myserver/sourcedir/File[/var/www/base_admin/ > server_sql.php]: Removing existing file for replacement with directory > debug: /myserver/sourcedir/File[/var/www/base_admin/server_sql.php]/ > ensure: setting directory (currently file) > notice: /myserver/sourcedir/File[/var/www/base_admin/ > server_sql.php]/ensure: ensure changed ''file'' to ''directory'' > > > and the owner/group is not changed , i was wondering id the > ensure => directory > > should not be somewhat limited to the object itself when recurse > is in effect. Is there any chance someone use recurse with ensure > => directory to ensure there is only directory under this one ?You''re probably right; the ''ensure'' should likely be restricted to the top-level file. Hmm. Please file a bug against that. -- Tobacco stocks have taken a big tumble," says Jay Leno. "Phillip Morris fell 6 points. They lost so much money they may have to lay off two senators." --------------------------------------------------------------------- Luke Kanies | http://reductivelabs.com | http://madstop.com
Apparently Analagous Threads
- Specify Includes Only
- adding facts
- [Bug 13582] New: rsync filters containing multiple adjacent slashes aren't reduced to just one slash before matching
- file contents cause rsync to fail (with certains args and dir structure)
- [Bug 8336] New: parent dir permission