chef-stackstorm
chef-stackstorm copied to clipboard
LWRP for st2 pack install
Provide LWRP for managing StackStorm packs.
- [ ] Support new
v2.1+ pack management only - [ ] Actions
- [ ]
:install - [ ]
:remove - [ ]
:register - [ ]
:nothing - [ ] ...
- [ ]
- [ ] Ability to configure pack
<pack_name>.yamlsettings
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
For the settings, they can be a hash attribute on the LWRP, or a separate LWRP Personally i would say the hash attribute though