hi! all, the following regex fails for a mount point definition [palms] path /apps/puppet/projects/palms/%h allow /^bangvmplmpalm([0-1][0-4,9]).example.com$/ here''s the logs ./puppet.log-20130120:Thu Jan 17 19:17:21 +0530 2013 /Stage[main]//Node[bangvmplmpalm11.example.com]/File[/etc/httpd/dispatcher/dispatcher.any] (err): Could not evaluate: Error 400 on SERVER: Not authorized to call find on /file_metadata/palms/dispatcher.any Could not retrieve file metadata for puppet:///palms/dispatcher.any: Error 400 on SERVER: Not authorized to call find on /file_metadata/palms/dispatcher.any ./puppet.log-20130120:Thu Jan 17 19:17:21 +0530 2013 /Stage[main]//Node[bangvmplmpalm11.example.com]/File[/etc/httpd/dispatcher-vhost/dispatcher-vhost.conf] (err): Could not evaluate: Error 400 on SERVER: Not authorized to call find on /file_metadata/palms/dispatcher-vhost.conf Could not retrieve file metadata for puppet:///palms/dispatcher-vhost.conf: Error 400 on SERVER: Not authorized to call find on /file_metadata/palms/dispatcher-vhost.conf when I test it on rubular or any other ruby based regex test with the string bangvmplmplam09 to bangvmplmpalm14 it shows mathces, nopt sure if it is a regex problem or puppet. Please advice on what might be going wrong. -- 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/-/yhuQ8RvM6GIJ. 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.
Wil Cooley
2013-Jan-25 03:39 UTC
Re: [Puppet Users] puppet allow regex issue in file server
On Jan 21, 2013 1:32 AM, "Anadi Misra" <anadi.msr@gmail.com> wrote:> > hi! all, > > the following regex fails for a mount point definition > > [palms] > path /apps/puppet/projects/palms/%h > allow /^bangvmplmpalm([0-1][0-4,9]).example.com$/ >The allow directive uses wildcards, not regular expressions: http://docs.puppetlabs.com/guides/file_serving.html Unless this was added but not documented. -- 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. Visit this group at http://groups.google.com/group/puppet-users?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Anadi Misra
2013-Jan-26 05:07 UTC
Re: [Puppet Users] puppet allow regex issue in file server
Hmm ..... silly I missed that; We name our virtual machines in the following manner [location-prefix][vm-type][project-code][vm-id] hence the name bang (Bangalore) vmplm [ mid -size VM running RHEL 6.3] palm [project code], the ids are from 09 to 14. I wanted to reserve this mount point only for the VMs of this project. looks like bangvmplmpalm* is the right way to go then. also is there a way to extract the project code "plam" into a variable? something like [projects] /apps/puppet/projects/%p/%h or /apps/puppet/projects/$project/%h ? BR/ Anadi Misra. On Fri, Jan 25, 2013 at 9:09 AM, Wil Cooley <wcooley@nakedape.cc> wrote:> > On Jan 21, 2013 1:32 AM, "Anadi Misra" <anadi.msr@gmail.com> wrote: > > > > hi! all, > > > > the following regex fails for a mount point definition > > > > [palms] > > path /apps/puppet/projects/palms/%h > > allow /^bangvmplmpalm([0-1][0-4,9]).example.com$/ > > > > The allow directive uses wildcards, not regular expressions: > > http://docs.puppetlabs.com/guides/file_serving.html > > Unless this was added but not documented. > > -- > 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. > Visit this group at http://groups.google.com/group/puppet-users?hl=en. > For more options, visit https://groups.google.com/groups/opt_out. > > >-- 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. Visit this group at http://groups.google.com/group/puppet-users?hl=en. For more options, visit https://groups.google.com/groups/opt_out.