base.rb 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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. ]
  26. named_run_list :genie, [
  27. 'resolver_config::_dokken',
  28. 'workstation::_genie',
  29. ]
  30. named_run_list :packages, @named_run_lists[:apt] + [
  31. 'workstation::_packages',
  32. ]
  33. # Specify a custom source for a single cookbook:
  34. # cookbook 'example_cookbook', path: '../cookbooks/example_cookbook'
  35. cookbook 'etckeeper', git: 'https://github.com/pioneerit/etckeeper-cookbook'
  36. cookbook 'git', git: 'https://github.com/jmauro/git', branch: 'config_file_scope'
  37. cookbook 'resolver', git: 'https://github.com/jmauro/resolver', branch: 'atomic_update'
  38. # Global attributes
  39. default['my_workstation']['default_user']['jeremy'] = {
  40. 'home': '/home/jeremy',
  41. 'shell': '/bin/bash',
  42. 'manage_home': true,
  43. }