Hi groupmates.
Tell me pls how can i use multiple ignore in file types
by other words i wanna use such syntax:
file { "/foo/dir":
source => "puppet://host/fooscripts",
notify => Service["fooservice"],
recurse => true,
ignore => [".svn", ".foo"]
}
but as i can see its dont work.
10nx
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Puppet Users" group.
To post to this group, send email to puppet-users@googlegroups.com
To unsubscribe from this group, send email to
puppet-users+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/puppet-users?hl=en
-~----------~----~----~----~------~----~------~--~---
Hi groupmates.
Tell me pls how can i use multiple ignore in file types
by other words i wanna use such syntax:
file { "/foo/dir":
source => "puppet://host/fooscripts",
notify => Service["fooservice"],
recurse => true,
ignore => [".svn", ".foo"]
}
but as i can see its dont work.
10nx
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Puppet Users" group.
To post to this group, send email to puppet-users@googlegroups.com
To unsubscribe from this group, send email to
puppet-users+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/puppet-users?hl=en
-~----------~----~----~----~------~----~------~--~---
Hi, nmay wrote:> Tell me pls how can i use multiple ignore in file types > by other words i wanna use such syntax: > file { "/foo/dir": > source => "puppet://host/fooscripts", > notify => Service["fooservice"], > recurse => true, > ignore => [".svn", ".foo"] > }You should be able to use something like ".{svn,foo}" because according the file type reference [1] you can use a pattern which will be matched using ruby''s builtin globbing engine which is described on [2]. François 1. http://reductivelabs.com/trac/puppet/wiki/TypeReference#file 2. http://www.ruby-doc.org/core/classes/Dir.html#M002322 --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---
I keep hitting this post with Google, so I thought I''d provide an
update.
The original syntax appears to be working at written with Puppet 2.7. I
could not get the globbing syntax to work correctly.
file { "/tmp/cade":
ensure => directory,
recurse => true,
force => true,
purge => true,
source => "puppet:///test/",
ignore => ["aa", "cc"],
}
in module files directory:
# ls -l
total 16
drwxr-xr-x 2 root root 4096 Jan 2 13:36 aa
drwxr-xr-x 2 root root 4096 Jan 2 13:36 bb
drwxr-xr-x 2 root root 4096 Jan 2 13:36 cc
drwxr-xr-x 2 root root 4096 Jan 2 13:36 dd
in agent
# ls -l
total 2
drwxr-xr-x 2 root root 1024 Jan 2 16:39 bb
drwxr-xr-x 2 root root 1024 Jan 2 16:39 dd
Just wanted to give some updated information.
On Monday, August 17, 2009 10:20:47 AM UTC-4, Francois Deppierraz
wrote:>
> Hi,
>
> nmay wrote:
>
> > Tell me pls how can i use multiple ignore in file types
> > by other words i wanna use such syntax:
> > file { "/foo/dir":
> > source => "puppet://host/fooscripts",
> > notify => Service["fooservice"],
> > recurse => true,
> > ignore => [".svn", ".foo"]
> > }
>
> You should be able to use something like ".{svn,foo}" because
according
> the file type reference [1] you can use a pattern which will be matched
> using ruby''s builtin globbing engine which is described on [2].
>
> François
>
> 1. http://reductivelabs.com/trac/puppet/wiki/TypeReference#file
> 2. http://www.ruby-doc.org/core/classes/Dir.html#M002322
>
>
>
--
You received this message because you are subscribed to the Google Groups
"Puppet Users" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/puppet-users/-/GC41pnij6RIJ.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to
puppet-users+unsubscribe@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/puppet-users?hl=en.