Afternoon all, I''m currently working on adding oranfstab support to Puppet-Oracle (https://github.com/stschulte/puppet-oracle). However I''m struggling to get my head around how I can get Puppet parsedfile to work with multi-line configurations... An example oranfstab configuration block is: server: stgasm <=== NFS server Host name path: 10.177.52.158 <--- First path to NFS server ie NFS server NIC local: 10.177.52.151 <--- First client-side NIC path: 10.177.52.159 <--- Second path to NFS server ie NFS server NIC (For load balance purpose) local: 10.177.52.151 <--- Second client-side NIC (For load balance purpose) export: /oraclenfs mount: /oradata1 ''path'' and ''local'' are optional, but can be specified multiple times aswell... The final ''export'' line is required, and can be provided multiple times for multiple mount points.. So as you can see, there''s a fair amount of variability in the file format... It''s also then possible to have multiple ''server/path/local/export'' blocks, for example with different filers... Any ideas on where I could begin? Is parsedfile right for the job, or am I better looking elsewhere? Thank you in advance for any responses. Regards Gavin -- 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/-/7Mz3DIiIIDIJ. 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.
Anyone got any ideas??? My next thought is to use something like puppet-concat with an ERB template... However not sure how effective that''s going to be... Cheers Gavin On Friday, 4 January 2013 16:33:17 UTC, Gavin Williams wrote:> > Afternoon all, > > I''m currently working on adding oranfstab support to Puppet-Oracle ( > https://github.com/stschulte/puppet-oracle). > > However I''m struggling to get my head around how I can get Puppet > parsedfile to work with multi-line configurations... > > An example oranfstab configuration block is: > server: stgasm <=== NFS server Host name > path: 10.177.52.158 <--- First path to NFS server ie NFS server NIC > local: 10.177.52.151 <--- First client-side NIC > path: 10.177.52.159 <--- Second path to NFS server ie NFS server NIC (For > load balance purpose) > local: 10.177.52.151 <--- Second client-side NIC (For load balance purpose) > export: /oraclenfs mount: /oradata1 > > ''path'' and ''local'' are optional, but can be specified multiple times > aswell... > The final ''export'' line is required, and can be provided multiple times > for multiple mount points.. > > So as you can see, there''s a fair amount of variability in the file > format... > > It''s also then possible to have multiple ''server/path/local/export'' > blocks, for example with different filers... > > Any ideas on where I could begin? Is parsedfile right for the job, or am I > better looking elsewhere? > > Thank you in advance for any responses. > > Regards > Gavin >-- 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/-/xDI6ktYRcVsJ. 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.
Ok, this item is next on my hitlist... I''ve been looking at the current oratab provider, and also the cron provider, and in my mind it looks like parsed file should work... Just need to get my head around it a bit more I think... Any pointers greatly appreciated. Cheers Gavin On Wednesday, 9 January 2013 16:41:20 UTC, Gavin Williams wrote:> > Anyone got any ideas??? > > My next thought is to use something like puppet-concat with an ERB > template... However not sure how effective that''s going to be... > > Cheers > Gavin > > On Friday, 4 January 2013 16:33:17 UTC, Gavin Williams wrote: >> >> Afternoon all, >> >> I''m currently working on adding oranfstab support to Puppet-Oracle ( >> https://github.com/stschulte/puppet-oracle). >> >> However I''m struggling to get my head around how I can get Puppet >> parsedfile to work with multi-line configurations... >> >> An example oranfstab configuration block is: >> server: stgasm <=== NFS server Host name >> path: 10.177.52.158 <--- First path to NFS server ie NFS server NIC >> local: 10.177.52.151 <--- First client-side NIC >> path: 10.177.52.159 <--- Second path to NFS server ie NFS server NIC (For >> load balance purpose) >> local: 10.177.52.151 <--- Second client-side NIC (For load balance >> purpose) >> export: /oraclenfs mount: /oradata1 >> >> ''path'' and ''local'' are optional, but can be specified multiple times >> aswell... >> The final ''export'' line is required, and can be provided multiple times >> for multiple mount points.. >> >> So as you can see, there''s a fair amount of variability in the file >> format... >> >> It''s also then possible to have multiple ''server/path/local/export'' >> blocks, for example with different filers... >> >> Any ideas on where I could begin? Is parsedfile right for the job, or am >> I better looking elsewhere? >> >> Thank you in advance for any responses. >> >> Regards >> Gavin >> >-- 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/-/cuYmdhm1sLMJ. 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.
On 10 January 2013 02:41, Gavin Williams <fatmcgav@gmail.com> wrote:> Anyone got any ideas??? > > My next thought is to use something like puppet-concat with an ERB > template... However not sure how effective that''s going to be... >That would probably be pretty easy to setup. I use concat and templates for a few of my modules, namely my firewall module. Each rule calls a define i setup to create the rule from a template. I am on holidays till Wednesday next week and most of my code is at work. I can send you some examples then.> Cheers > Gavin > > On Friday, 4 January 2013 16:33:17 UTC, Gavin Williams wrote: >> >> Afternoon all, >> >> I''m currently working on adding oranfstab support to Puppet-Oracle ( >> https://github.com/stschulte/**puppet-oracle<https://github.com/stschulte/puppet-oracle>). >> >> >> However I''m struggling to get my head around how I can get Puppet >> parsedfile to work with multi-line configurations... >> >> An example oranfstab configuration block is: >> server: stgasm <=== NFS server Host name >> path: 10.177.52.158 <--- First path to NFS server ie NFS server NIC >> local: 10.177.52.151 <--- First client-side NIC >> path: 10.177.52.159 <--- Second path to NFS server ie NFS server NIC (For >> load balance purpose) >> local: 10.177.52.151 <--- Second client-side NIC (For load balance >> purpose) >> export: /oraclenfs mount: /oradata1 >> >> ''path'' and ''local'' are optional, but can be specified multiple times >> aswell... >> The final ''export'' line is required, and can be provided multiple times >> for multiple mount points.. >> >> So as you can see, there''s a fair amount of variability in the file >> format... >> >> It''s also then possible to have multiple ''server/path/local/export'' >> blocks, for example with different filers... >> >> Any ideas on where I could begin? Is parsedfile right for the job, or am >> I better looking elsewhere? >> >> Thank you in advance for any responses. >> >> Regards >> Gavin >> > -- > 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/-/xDI6ktYRcVsJ. > > 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. >-- 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+unsubscribe@googlegroups.com. To post to this group, send email to puppet-users@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.
Peter That would be great, cheers... Enjoy ure holiday first though... ;) Cheers Gavin On 25 January 2013 04:31, Peter Brown <rendhalver@gmail.com> wrote:> On 10 January 2013 02:41, Gavin Williams <fatmcgav@gmail.com> wrote: > >> Anyone got any ideas??? >> >> My next thought is to use something like puppet-concat with an ERB >> template... However not sure how effective that''s going to be... >> > > That would probably be pretty easy to setup. > I use concat and templates for a few of my modules, namely my firewall > module. > Each rule calls a define i setup to create the rule from a template. > > I am on holidays till Wednesday next week and most of my code is at work. > I can send you some examples then. > > >> Cheers >> Gavin >> >> On Friday, 4 January 2013 16:33:17 UTC, Gavin Williams wrote: >>> >>> Afternoon all, >>> >>> I''m currently working on adding oranfstab support to Puppet-Oracle ( >>> https://github.com/stschulte/**puppet-oracle<https://github.com/stschulte/puppet-oracle>). >>> >>> >>> However I''m struggling to get my head around how I can get Puppet >>> parsedfile to work with multi-line configurations... >>> >>> An example oranfstab configuration block is: >>> server: stgasm <=== NFS server Host name >>> path: 10.177.52.158 <--- First path to NFS server ie NFS server NIC >>> local: 10.177.52.151 <--- First client-side NIC >>> path: 10.177.52.159 <--- Second path to NFS server ie NFS server NIC >>> (For load balance purpose) >>> local: 10.177.52.151 <--- Second client-side NIC (For load balance >>> purpose) >>> export: /oraclenfs mount: /oradata1 >>> >>> ''path'' and ''local'' are optional, but can be specified multiple times >>> aswell... >>> The final ''export'' line is required, and can be provided multiple times >>> for multiple mount points.. >>> >>> So as you can see, there''s a fair amount of variability in the file >>> format... >>> >>> It''s also then possible to have multiple ''server/path/local/export'' >>> blocks, for example with different filers... >>> >>> Any ideas on where I could begin? Is parsedfile right for the job, or am >>> I better looking elsewhere? >>> >>> Thank you in advance for any responses. >>> >>> Regards >>> Gavin >>> >> -- >> 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/-/xDI6ktYRcVsJ. >> >> 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. >> > > -- > 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.