chef-stackstorm icon indicating copy to clipboard operation
chef-stackstorm copied to clipboard

LWRP for st2 pack install

Open arm4b opened this issue 9 years ago • 1 comments

Provide LWRP for managing StackStorm packs.

  • [ ] Support new v2.1+ pack management only
  • [ ] Actions
    • [ ] :install
    • [ ] :remove
    • [ ] :register
    • [ ] :nothing
    • [ ] ...
  • [ ] Ability to configure pack <pack_name>.yaml settings

Example:

st2_pack 'github' do
  action :install
  ...
end

Related examples:

  • https://github.com/poise/poise-python#python_package
  • https://github.com/chef-cookbooks/php#examples-1
  • https://github.com/chef-cookbooks/docker#docker_image

Hints:

  • https://docs.chef.io/custom_resources.html
  • http://chef.readthedocs.io/en/latest/lwrps_custom.html
  • https://github.com/jhotta/chef-fundamentals-ja/blob/master/slides/lwrp-introduction/01_slide.md

arm4b avatar Nov 20 '16 14:11 arm4b

For the settings, they can be a hash attribute on the LWRP, or a separate LWRP Personally i would say the hash attribute though

shortdudey123 avatar Nov 20 '16 16:11 shortdudey123