base.rb 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  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 'base'
  7. # Where to find external cookbooks:
  8. default_source :supermarket
  9. default_source :chef_repo, './cookbooks'
  10. # run_list: chef-client will run these recipes in the order specified.
  11. run_list [
  12. 'workstation::default',
  13. ]
  14. # Kitchen-test suite
  15. named_run_list :complete, [
  16. 'resolver_config::_dokken',
  17. ] + run_list
  18. named_run_list :git, [
  19. 'resolver_config::_dokken',
  20. 'workstation::_git',
  21. ]
  22. named_run_list :apt, [
  23. 'resolver_config::_dokken',
  24. 'apt_repositories::_official',
  25. 'apt_repositories::_genie',
  26. 'apt_repositories::_terraform',
  27. ]
  28. named_run_list :user, [
  29. 'workstation::_user',
  30. ]
  31. named_run_list :terraform, [
  32. 'resolver_config::_dokken',
  33. 'workstation::_terraform',
  34. ]
  35. named_run_list :podman, [
  36. 'resolver_config::_dokken',
  37. 'workstation::_podman',
  38. ]
  39. named_run_list :genie, [
  40. 'resolver_config::_dokken',
  41. 'workstation::_genie',
  42. ]
  43. named_run_list :packages, @named_run_lists[:apt] + [
  44. 'resolver_config::_dokken',
  45. 'workstation::_packages',
  46. ]
  47. # Specify a custom source for a single cookbook:
  48. # cookbook 'example_cookbook', path: '../cookbooks/example_cookbook'
  49. #cookbook 'etckeeper', git: 'https://github.com/pioneerit/etckeeper-cookbook'
  50. cookbook 'etckeeper', git: 'https://github.com/jmauro/etckeeper-cookbook', branch: 'master-next'
  51. cookbook 'git', git: 'https://github.com/jmauro/git', branch: 'config_file_scope'
  52. cookbook 'resolver', git: 'https://github.com/jmauro/resolver', branch: 'atomic_update'
  53. # Global attributes
  54. default['my_workstation']['default_user']['jeremy'] = {
  55. 'home': '/home/jeremy',
  56. 'shell': '/bin/bash',
  57. 'manage_home': true,
  58. }