Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Relevant File Content:
- ----------------------
- /var/chef/cache/cookbooks/postgresql/recipes/config_pgtune.rb:
- 85:
- 86: # Parse out db_type option, or use default.
- 87: db_type = 'mixed'
- 88:
- 89: if (node['postgresql'].attribute?('config_pgtune') && node['postgresql']['config_pgtune'].attribute?('db_type'))
- 90: db_type = node['postgresql']['config_pgtune']['db_type']
- 91: if (!(["dw","oltp","web","mixed","desktop"].include?(db_type)))
- 92>> Chef::Application.fatal!([
- 93: "Bad value (#{db_type})",
- 94: "for node['postgresql']['config_pgtune']['db_type'] attribute.",
- 95: "Valid values are one of dw, oltp, web, mixed, desktop."
- 96: ].join(' '))
- 97: end
- 98: end
- 99:
- 100: # Parse out max_connections option, or use a value based on db_type.
- 101: con =
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement