Advertisement
Guest User

Untitled

a guest
Jun 24th, 2016
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.13 KB | None | 0 0
  1. # test-attributes-1/attributes/default.rb
  2. default['test-attributes']['exclude'] = [ 'one', 'two', 'three' ]
  3.  
  4. # test-attributes-2/attributes/default.rb
  5. default['test-attributes']['exclude'] = [ 'three', 'four', 'five' ]
  6.  
  7. # test-attributes-1/recipes/default.rb
  8. include_recipe 'test-attributes-2'
  9. Chef::Log.info(node['test-attributes']['exclude'].join(' '))
  10.  
  11. # Expected output
  12. ...
  13. one two three four five
  14. ...
  15.  
  16. # Actual output
  17. $ sudo chef-client -o "recipe[test-attributes-1]" --force-logger
  18. [2016-06-24T15:16:06-04:00] INFO: Forking chef instance to converge...
  19. [2016-06-24T15:16:06-04:00] INFO: *** Chef 12.6.0 ***
  20. [2016-06-24T15:16:06-04:00] INFO: Chef-client pid: 23803
  21. [2016-06-24T15:16:08-04:00] WARN: Run List override has been provided.
  22. [2016-06-24T15:16:08-04:00] WARN: Original Run List: [role[rhel-base]]
  23. [2016-06-24T15:16:08-04:00] WARN: Overridden Run List: [recipe[test-attributes-1]]
  24. [2016-06-24T15:16:08-04:00] INFO: Run List is [recipe[test-attributes-1]]
  25. [2016-06-24T15:16:08-04:00] INFO: Run List expands to [test-attributes-1]
  26. [2016-06-24T15:16:08-04:00] INFO: Starting Chef Run for test-host.company.com
  27. [2016-06-24T15:16:08-04:00] INFO: Running start handlers
  28. [2016-06-24T15:16:08-04:00] INFO: Start handlers complete.
  29. [2016-06-24T15:16:08-04:00] INFO: Loading cookbooks [test-attributes-2@0.1.0, test-attributes-1@0.1.0]
  30. [2016-06-24T15:16:08-04:00] INFO: Skipping removal of obsoleted cookbooks from the cache
  31. [2016-06-24T15:16:09-04:00] INFO: Storing updated cookbooks/test-attributes-2/attributes/default.rb in the cache.
  32. [2016-06-24T15:16:09-04:00] INFO: Storing updated cookbooks/test-attributes-1/attributes/default.rb in the cache.
  33. [2016-06-24T15:16:09-04:00] INFO: one two three
  34. [2016-06-24T15:16:09-04:00] WARN: Skipping final node save because override_runlist was given
  35. [2016-06-24T15:16:09-04:00] INFO: Chef Run complete in 0.707446046 seconds
  36. [2016-06-24T15:16:09-04:00] INFO: Skipping removal of unused files from the cache
  37. [2016-06-24T15:16:09-04:00] INFO: Running report handlers
  38. [2016-06-24T15:16:09-04:00] INFO: Report handlers complete
  39. [2016-06-24T15:16:09-04:00] INFO: Sending resource update report (run-id: 2ade7324-5022-4344-8eaa-103168c95d62)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement