I assumed this would be simple. I thought about using augeas, but don''t want to pull that in if I don''t really need it. Is there a built-in resource that I could use to edit property files that I''m missing? Thanks, David -- 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, Don''t think so. You can use Augeas for editing config files in place, templates for adding in values on the fly or source files for direct copies. I don''t know of others but someone else on the list might know cooler tricks. Cheers, Den On 18/04/2011, at 23:08, David Kavanagh <dkavanagh@gmail.com> wrote:> I assumed this would be simple. I thought about using augeas, but don''t want to pull that in if I don''t really need it. Is there a built-in resource that I could use to edit property files that I''m missing? > Thanks, > David > -- > 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.-- 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.
On 04/18/2011 10:55 PM, Denmat wrote:> Hi, > > Don''t think so. You can use Augeas for editing config files in place, > templates for adding in values on the fly or source files for direct > copies. > > I don''t know of others but someone else on the list might know cooler > tricks. > > Cheers, > Den > On 18/04/2011, at 23:08, David Kavanagh <dkavanagh@gmail.com > <mailto:dkavanagh@gmail.com>> wrote: > >> I assumed this would be simple. I thought about using augeas, but >> don''t want to pull that in if I don''t really need it. Is there a >> built-in resource that I could use to edit property files that I''m >> missing? >> Thanks, >> DavidHi, no, you''re stuck with augeas vs. "rolling complete files" (which you may or may not want to template). If the file syntax is simple and your ruby is good, you may want to whip up a simple provider. You can roll this using pluginsync and don''t need to install and learn augeas. The Forge doesn''t offer too many providers yet, sadly, but you may want to trawl the githubs of the Puppetlab folks, some of them have been known to keep cool providers stashed away ;-) Cheers, Felix -- 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.
On Apr 18, 2011, at 6:08 AM, David Kavanagh wrote:> I assumed this would be simple. I thought about using augeas, but don''t want to pull that in if I don''t really need it. Is there a built-in resource that I could use to edit property files that I''m missing? > Thanks, > DavidWhat''s a property file? You talking about MacOS plist files? -- 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.
Property files are pretty common in Java land. They are a key/value store. Formatted as key=value with optional #comment lines. Yes, probably like a .plist file. I''ve done some iOS programming... seem to remember that, but mostly use XCode which hides the underlying file format pretty well. David On Tue, Apr 19, 2011 at 1:58 PM, Patrick <kc7zzv@gmail.com> wrote:> > On Apr 18, 2011, at 6:08 AM, David Kavanagh wrote: > > > I assumed this would be simple. I thought about using augeas, but don''t > want to pull that in if I don''t really need it. Is there a built-in resource > that I could use to edit property files that I''m missing? > > Thanks, > > David > > What''s a property file? You talking about MacOS plist files? > > -- > 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. > >-- 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.