gateway.rb 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. # Policyfile.rb - Describe how you want Chef Infra Client to build your system.
  2. #
  3. # For more information on the Policyfile feature, visit
  4. # https://docs.chef.io/policyfile/
  5. # A name that describes what the system you're building with Chef does.
  6. name 'gateway'
  7. # Where to find external cookbooks:
  8. default_source :supermarket
  9. default_source :chef_repo, './cookbooks' do |s|
  10. s.preferred_for "gateway"
  11. end
  12. # run_list: chef-client will run these recipes in the order specified.
  13. run_list [
  14. 'gateway::default',
  15. ]
  16. # Kitchen-test suite
  17. named_run_list :complete, [
  18. 'resolver_config::_dokken',
  19. ] + run_list
  20. named_run_list :git, [
  21. 'resolver_config::_dokken',
  22. 'workstation::_git',
  23. ]
  24. named_run_list :apt, [
  25. 'resolver_config::_dokken',
  26. 'apt_repositories::_official',
  27. 'apt_repositories::_genie',
  28. 'apt_repositories::_terraform',
  29. ]
  30. named_run_list :user, [
  31. 'workstation::_user',
  32. ]
  33. named_run_list :terraform, [
  34. 'resolver_config::_dokken',
  35. 'workstation::_terraform',
  36. ]
  37. named_run_list :podman, [
  38. 'resolver_config::_dokken',
  39. 'workstation::_podman',
  40. ]
  41. named_run_list :genie, [
  42. 'resolver_config::_dokken',
  43. 'workstation::_genie',
  44. ]
  45. named_run_list :packages, @named_run_lists[:apt] + [
  46. 'resolver_config::_dokken',
  47. 'workstation::_packages',
  48. ]
  49. # Specify a custom source for a single cookbook:
  50. # cookbook 'example_cookbook', path: '../cookbooks/example_cookbook'
  51. cookbook 'etckeeper', git: 'https://github.com/jmauro/etckeeper-cookbook', branch: 'master-next'
  52. cookbook 'git', git: 'https://github.com/jmauro/git', branch: 'config_file_scope'
  53. cookbook 'resolver', git: 'https://github.com/jmauro/resolver', branch: 'atomic_update'
  54. # Global attributes