Move from template to file_line for Karaf features 94/55594/1
authorDaniel Farrell <dfarrell@redhat.com>
Thu, 4 Feb 2016 02:32:23 +0000 (21:32 -0500)
committerDaniel Farrell <dfarrell@redhat.com>
Wed, 19 Apr 2017 19:18:40 +0000 (15:18 -0400)
commitca156d10761036e6affe62cfb539cf07f5a6e83b
tree6c108b2b3b0c17f6ebfa9567f8f9c75f3fb27ef6
parente7bc2817664568bcc6965ca530ab87ded86983b9
Move from template to file_line for Karaf features

We were configuring the set of Karaf features to install at start (set
via featuresBoot) using a template. This template in particular
frequently exposed the major problem with templates - they override new
upstream content and need a manual update each time it changes. This
implementation uses file_line to do a sed-like replace on the
featuresBoot list, without impacting the rest of the file (the Karaf
feature repos via featuresRepositories most importantly, as it changed
every ODL version bump).

New rspec-puppet tests were added for the file_line step, and the
original file tests were updated. The Beaker tests haven't changed and
are still passing, which is desired/expected since we want the same
functional output from the two implementations.

Change-Id: I2e4fffc02989c7f790128e2b69f3c055bd32492c
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
manifests/config.pp
spec/spec_helper.rb
templates/org.apache.karaf.features.cfg.erb [deleted file]