gateway.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 'gateway'
  7. # Where to find external cookbooks:
  8. default_source :supermarket
  9. default_source :chef_repo, './cookbooks' do |s|
  10. s.preferred_for "gateway"
  11. end
  12. # run_list: chef-client will run these recipes in the order specified.
  13. run_list [
  14. 'gateway::default',
  15. ]
  16. # Kitchen-test suite
  17. named_run_list :complete, [
  18. 'resolver_config::_dokken',
  19. ] + run_list
  20. named_run_list :git, [
  21. 'resolver_config::_dokken',
  22. 'gateway::_git',
  23. ]
  24. named_run_list :apt, [
  25. 'resolver_config::_dokken',
  26. 'apt_repositories::_official',
  27. ]
  28. named_run_list :packages, @named_run_lists[:apt] + [
  29. 'gateway::_packages',
  30. ]
  31. # Specify a custom source for a single cookbook:
  32. # cookbook 'example_cookbook', path: '../cookbooks/example_cookbook'
  33. cookbook 'etckeeper', git: 'https://github.com/pioneerit/etckeeper-cookbook'
  34. cookbook 'git', git: 'https://github.com/jmauro/git', branch: 'config_file_scope'
  35. cookbook 'resolver', git: 'https://github.com/jmauro/resolver', branch: 'atomic_update'
  36. # Global attributes