Appending Config file

I need to append something to a file; therefore, not being a default
attribute or override attribute. What would I need to do to append to the
bottom of a configuration file within roles?

  • Nikhil Shah */ System Administrator

nshah@theorchard.com

The Orchard® / www.theorchard.com

t (+1) 212.308.5648 / f (+1) 212.201.9203
23 E. 4th St., 3rd Fl / New York, NY 10003

The Daily Rind™ / www.dailyrindblog.com http://www.dailyrindblog.com/

Facebook http://www.facebook.com/theorchard /
@orchtweetshttp://www.twitter.com/orchtweets

Privileged And Confidential Communication.

This electronic transmission, and any documents attached hereto, (a) are
protected by the Electronic Communications Privacy Act (18 USC §§
2510-2521), (b) may contain confidential and/or legally privileged
information, and © are for the sole use of the intended recipient named
above. If you have received this electronic message in error, please notify
the sender and delete the electronic message. Any disclosure, copying,
distribution, or use of the contents of the information received in error
is strictly prohibited

On Wed, Sep 4, 2013 at 2:15 PM, Nikhil Shah nshah@theorchard.com wrote:

I need to append something to a file; therefore, not being a default
attribute or override attribute. What would I need to do to
append to the bottom of a configuration file within roles?

Normally the idea is that you manage a file's entire contents with Chef.
However, if you really need to do line editing, may I recommend:

http://community.opscode.com/cookbooks/line

  • Julian

--
[ Julian C. Dunn jdunn@aquezada.com * Sorry, I'm ]
[ WWW: Julian Dunn's Blog - Commentary on media, technology, and everything in between. * only Web 1.0 ]
[ gopher://sdf.org/1/users/keymaker/ * compliant! ]
[ PGP: 91B3 7A9D 683C 7C16 715F 442C 6065 D533 FDC2 05B9 ]

Ohh I did not know of this. I need to add a livestatus entry in the preexisitng config file so it does not wipe out the livestatus entry

Thanks,

Nikhil Shah

On Sep 4, 2013, at 6:22 PM, "Julian C. Dunn" jdunn@aquezada.com wrote:

On Wed, Sep 4, 2013 at 2:15 PM, Nikhil Shah nshah@theorchard.com wrote:

I need to append something to a file; therefore, not being a default attribute or override attribute. What would I need to do to
append to the bottom of a configuration file within roles?

Normally the idea is that you manage a file's entire contents with Chef. However, if you really need to do line editing, may I recommend:

http://community.opscode.com/cookbooks/line

  • Julian

--
[ Julian C. Dunn jdunn@aquezada.com * Sorry, I'm ]
[ WWW: http://www.aquezada.com/staff/julian * only Web 1.0 ]
[ gopher://sdf.org/1/users/keymaker/ * compliant! ]
[ PGP: 91B3 7A9D 683C 7C16 715F 442C 6065 D533 FDC2 05B9 ]