I''m, still, working on converting my cfengine configs into puppet; one of the major hang-ups is the lack of any find/replace in puppet. So for those of you who are using FreeBSD and puppet, how do you manage you rc.conf? -- -- Perfection is just a word I use occasionally with mustard. --Atom Powers--
Atom Powers wrote:> I''m, still, working on converting my cfengine configs into puppet; one > of the major hang-ups is the lack of any find/replace in puppet. > > So for those of you who are using FreeBSD and puppet, how do you > manage you rc.conf? >search the list. i just posted about this last week or so. after using it a bit, some works, some doesn''t (namely ensuring a service is stopped if it''s set to NO in rc.conf - still working on that) -scott
On 11/09/2007, Atom Powers <atom.powers@gmail.com> wrote:> I''m, still, working on converting my cfengine configs into puppet; one > of the major hang-ups is the lack of any find/replace in puppet. > > So for those of you who are using FreeBSD and puppet, how do you > manage you rc.conf?You might find this useful: http://reductivelabs.com/trac/puppet/wiki/SimpleTextRecipes
On 9/11/07, ben <pr0ncracker@gmail.com> wrote:> On 11/09/2007, Atom Powers <atom.powers@gmail.com> wrote: > > So for those of you who are using FreeBSD and puppet, how do you > > manage you rc.conf? > > You might find this useful: > > http://reductivelabs.com/trac/puppet/wiki/SimpleTextRecipes > _______________________________________________I''ve never been a fan of calling external programs from within cfe/puppet. Puppet is better, but you still have to *know* that your path is correct, the programs exist where you expect them to, and that they behave as you expect them to. (BSD vs GNU syntax etc.) And that doesn''t help me if I need to remove or modify a line. -- -- Perfection is just a word I use occasionally with mustard. --Atom Powers--
Atom Powers wrote:> I''ve never been a fan of calling external programs from within > cfe/puppet. Puppet is better, but you still have to *know* that your > path is correct, the programs exist where you expect them to, and that > they behave as you expect them to. (BSD vs GNU syntax etc.) > > And that doesn''t help me if I need to remove or modify a line. >like i said - search the list man. i provided a solution for both of your issues. or you could spend the same 2-3 hours and wind up with the same conclusion. -scott
Whuf, I finally found it. It was a little too recent to be in the archive yet. "handling rc.conf / freebsd init scripts" Thank you. On 9/13/07, Scott Smith <scott@kontera.com> wrote:> Atom Powers wrote: > > I''ve never been a fan of calling external programs from within > > cfe/puppet. Puppet is better, but you still have to *know* that your > > path is correct, the programs exist where you expect them to, and that > > they behave as you expect them to. (BSD vs GNU syntax etc.) > > > > And that doesn''t help me if I need to remove or modify a line. > > > > like i said - search the list man. i provided a solution for both of > your issues. or you could spend the same 2-3 hours and wind up with the > same conclusion. > > -scott > _______________________________________________ > Puppet-users mailing list > Puppet-users@madstop.com > https://mail.madstop.com/mailman/listinfo/puppet-users >-- -- Perfection is just a word I use occasionally with mustard. --Atom Powers--
On Thu, Sep 13, 2007 at 09:27:18AM -0700, Atom Powers wrote:> On 9/11/07, ben <pr0ncracker@gmail.com> wrote: > > On 11/09/2007, Atom Powers <atom.powers@gmail.com> wrote: > > > So for those of you who are using FreeBSD and puppet, how do you > > > manage you rc.conf? > > > > You might find this useful: > > > > http://reductivelabs.com/trac/puppet/wiki/SimpleTextRecipes > > _______________________________________________ > > I''ve never been a fan of calling external programs from within > cfe/puppet. Puppet is better, but you still have to *know* that your > path is correct, the programs exist where you expect them to, and that > they behave as you expect them to. (BSD vs GNU syntax etc.)So you use built-in (Ruby) types instead.> And that doesn''t help me if I need to remove or modify a line.remove_line is even simpler than replace_line. - Matt