Advertisement
Guest User

Am I High?

a guest
Oct 29th, 2013
40
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.82 KB | None | 0 0
  1. Relevant File Content:
  2. ----------------------
  3. /var/chef/cache/cookbooks/postgresql/recipes/config_pgtune.rb:
  4.  
  5. 85:
  6. 86: # Parse out db_type option, or use default.
  7. 87: db_type = 'mixed'
  8. 88:
  9. 89: if (node['postgresql'].attribute?('config_pgtune') && node['postgresql']['config_pgtune'].attribute?('db_type'))
  10. 90: db_type = node['postgresql']['config_pgtune']['db_type']
  11. 91: if (!(["dw","oltp","web","mixed","desktop"].include?(db_type)))
  12. 92>> Chef::Application.fatal!([
  13. 93: "Bad value (#{db_type})",
  14. 94: "for node['postgresql']['config_pgtune']['db_type'] attribute.",
  15. 95: "Valid values are one of dw, oltp, web, mixed, desktop."
  16. 96: ].join(' '))
  17. 97: end
  18. 98: end
  19. 99:
  20. 100: # Parse out max_connections option, or use a value based on db_type.
  21. 101: con =
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement