base.rb 1.2 KB

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