base.rb 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  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. 'workstation::_resolver',
  17. ] + run_list
  18. named_run_list :git, [
  19. 'workstation::_resolver',
  20. 'workstation::_git',
  21. ]
  22. named_run_list :apt, [
  23. 'workstation::_resolver',
  24. 'workstation::_apt',
  25. ]
  26. named_run_list :genie, [
  27. 'workstation::_resolver',
  28. 'workstation::_genie',
  29. ]
  30. # Specify a custom source for a single cookbook:
  31. # cookbook 'example_cookbook', path: '../cookbooks/example_cookbook'
  32. cookbook 'etckeeper', git: 'https://github.com/jmauro/etckeeper-cookbook', branch: 'master-next'
  33. cookbook 'git', git: 'https://github.com/jmauro/git', branch: 'config_file_scope'
  34. cookbook 'resolver', git: 'https://github.com/jmauro/resolver', branch: 'atomic_update'
  35. # Global attributes
  36. default['my_workstation']['default_user']['jeremy'] = {
  37. 'home': '/home/jeremy',
  38. 'shell': '/bin/bash',
  39. 'manage_home': true,
  40. }