base.rb 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  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::_podman',
  27. 'apt_repositories::_terraform',
  28. ]
  29. named_run_list :user, [
  30. 'workstation::_user',
  31. ]
  32. named_run_list :terraform, [
  33. 'workstation::_terraform',
  34. ]
  35. named_run_list :podman, [
  36. 'workstation::_podman',
  37. ]
  38. named_run_list :genie, [
  39. 'resolver_config::_dokken',
  40. 'workstation::_genie',
  41. ]
  42. named_run_list :packages, @named_run_lists[:apt] + [
  43. 'workstation::_packages',
  44. ]
  45. # Specify a custom source for a single cookbook:
  46. # cookbook 'example_cookbook', path: '../cookbooks/example_cookbook'
  47. #cookbook 'etckeeper', git: 'https://github.com/pioneerit/etckeeper-cookbook'
  48. cookbook 'etckeeper', git: 'https://github.com/jmauro/etckeeper-cookbook', branch: 'master-next'
  49. cookbook 'git', git: 'https://github.com/jmauro/git', branch: 'config_file_scope'
  50. cookbook 'resolver', git: 'https://github.com/jmauro/resolver', branch: 'atomic_update'
  51. # Global attributes
  52. default['my_workstation']['default_user']['jeremy'] = {
  53. 'home': '/home/jeremy',
  54. 'shell': '/bin/bash',
  55. 'manage_home': true,
  56. }