Re: [Puppet Users] Re: Tidy symlinks

2014-09-22 Thread Cosmin Lehene
tidy doesn't set a flag that would be required by Fileset in order to 
follow symlinks (:links = :follow) so the behavior is consistent with stat 
(http://linux.die.net/man/2/stat) 
In my case I had some fun with /etc/init.d which is a symlink to 
/etc/rc.d/init.d 

I created https://tickets.puppetlabs.com/browse/PUP-3328 for this and added 
a patch.



On Friday, July 24, 2009 4:48:42 AM UTC-7, Trevor wrote:

 This has turned into a bit of an interesting adventure in the syntax of 
 Tidy. 

 Environment: puppet 0.24.8 on Fedora Core 11 

 After each run, I touch /tmp/foodir/bar to have something to tidy. 

 Test code: 

 # Environment Setup 
 $testdir = /tmp/foodir 
 $subdir = $testdir/subdir 

 file { $testdir: 
 ensure = 'directory', 
 require = Tidy[$testdir] 
 } 

 file { $subdir: 
 ensure = 'directory' 
 } 

 file { $subdir/foo: 
 ensure = 'file', 
 content = foo 
 } 

 file { $testdir/foolink: 
 ensure = $subdir/foo 
 } 

 Test 1: 

 tidy { $testdir: 
 age = '0s', 
 matches = * 
 } 

 Test 1 Result: Fail, bar remains 

 Test 2: 

 tidy { $testdir: 
age = '0s', 
matches = .* 
 } 

 Test 2 Result: Fail, bar remains 

 Test 3: 

 tidy { $testdir: 
 age = '0s', 
 recurse = 'true' 
 } 

 Test 3 Result: Pass, bar deleted 

 Test 4: 

 Created a symlink /tmp/foodir/baz that points to /tmp/foodir/subdir/foo 

 tidy { $testdir: 
 age = '0s', 
 recurse = 'true' 
 } 

 Test 4 Result: Partial, bar deleted, baz remains 

 Test 5: 

 Created the symlink baz and touched bar 

 tidy { $testdir: 
age = '0s', 
recurse = 'true', 
type = 'mtime' 
 } 

 Test 5 Result: Pass 

 Comments: 

 I don't quite understand why the pass/fail combinations work above.  I 
 also noticed that any subdirectory that is explicitly managed will not 
 be recursed into even if recurse is set to 'true'.  I believe that it 
 should recurse through all subdirectories, not just the ones that 
 aren't otherwise managed. 

 Thanks, 

 Trevor 


 On Fri, Jul 24, 2009 at 00:21, Greggreg...@gmail.com javascript: 
 wrote: 
  
  Trevor, 
  
  Not sure - the docs don't seem to reference symlinks in terms of 
  tidy... 
  
  Just something to try - does setting rmdirs = true make any 
  difference? 
  
  Greg 
  
  On Jul 24, 11:19 am, Trevor Vaughan peiriann...@gmail.com wrote: 
  So, I have a directory of symlinks that I'm managing and Tidy doesn't 
  seem to be doing much for me in there. 
  
  Does Tidy ignore symlinks for some reason? 
  
  If not, does anyone have the correct syntax? 
  
  Thanks, 
  
  Trevor 
   
  


-- 
You received this message because you are subscribed to the Google Groups 
Puppet Users group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/7de37acf-5daa-48af-a3d0-e6341bf4aa36%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Puppet Users] Puppet Error during Yum execution

2014-08-27 Thread Cosmin Lehene
This is extremely confusing. Yum helper should output the entire error.

On Thursday, August 25, 2011 8:10:09 PM UTC-6, LenR wrote:

 You can confirm that by trying to run yum outside of puppet.

 On Thu, Aug 25, 2011 at 8:42 AM, R.I.Pienaar r...@devco.net javascript:
  wrote:



 - Original Message -

  plugins: fastestmirror
  Could not retrieve mirrorlist
  http://mirrorlist.centos.org/?release=6arch=x86_64repo=os
  error was
  12: Timeout on
  http://mirrorlist.centos.org/?release=6arch=x86_64repo=os:
  (28, '')

 Your machine cant talk to the mirror list.

 --
 You received this message because you are subscribed to the Google Groups 
 Puppet Users group.
 To post to this group, send email to puppet...@googlegroups.com 
 javascript:.
 To unsubscribe from this group, send email to 
 puppet-users...@googlegroups.com javascript:.
 For more options, visit this group at 
 http://groups.google.com/group/puppet-users?hl=en.




-- 
You received this message because you are subscribed to the Google Groups 
Puppet Users group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/a348bf8a-d69e-46eb-a350-134d7ed78e16%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.