Closed beddari closed 11 years ago
Makes sense. Just realised I haven't pushed up a lot of local commits, so I'll merge to this branch before pushing it.
Managed to use the scripts in the puppet gem, so can probably get rid of most of the files directory. This has created another dependency on using the charlock_holmes gem to ignore binary files during string replacement (/usr/bin --> /opt/puppet-omnibus etc...). If there's an alternative using core, it'd be good to know.
I changed my mind on this for now because builddir is created relative to the recipe, thus when I move recipes to a subdir builddir is not cleaned on "fpm-cook clean". Could possibly be patched in fpm-cookery but it is not worth it so far.
Might rethink this if I want to be able to have recipes reference each other on a larger scale ...
As I have quite some plans for this project now would be a great time to change how the recipe files are organized.
I'm suggesting something like this
recipe.rb is what fpm-cook looks for by default and should be a generic build with no extras.
Preferably we need a way to reference this generic build in the other, more specialized builds like recipe-aws.rb and recipe-mco.rb
I'm going to try this out on the dev branch