nvnivs / jarbas

Chef based workstation setup
Other
0 stars 0 forks source link

Run add-hoc recipes #2

Closed nvnivs closed 2 years ago

nvnivs commented 2 years ago

With the move to Policyfile the ability of overridding a run list has been lost has it's not supported by older versions of chef-client, such as 15.14.0 on Arch based systems.

Look into named_run_list as a possible alternative:

https://docs.chef.io/config_rb_policyfile/

named_run_list "NAME", "ITEM1", "ITEM2", ...
Specify a named run-list to be used as an alternative to the override run-list. This setting should be used carefully and for specific use cases, like running a small set of recipes to quickly converge configuration for a single application on a host or for one-time setup tasks. For example:

Copy
named_run_list :update_app, 'my_app_cookbook::default'
nvnivs commented 2 years ago

Fixed by https://github.com/z0c/jarbas/commit/4f7a1b553d532c7867e6699bf1f0be9407b9a8db