Skip to content

Instantly share code, notes, and snippets.

@StephenKing
Last active August 29, 2015 13:56
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save StephenKing/8939285 to your computer and use it in GitHub Desktop.
Save StephenKing/8939285 to your computer and use it in GitHub Desktop.

metadata.rb

name              'my_postgresql'
license           'Apache 2.0'
version           '1.0.0'
 
depends           'postgresql'

attributes/default.rb

default['postgresql']['password']['postgres'] = "1234"
default['postgresql']['config']['ssl'] = false
default['postgresql']['config']['listen_addresses'] = "*"
default['postgresql']['pg_hba']['type'] = "host"
default['postgresql']['pg_hba']['db'] = "all"
default['postgresql']['pg_hba']['user'] = "postgres"
default['postgresql']['pg_hba']['addr'] = "119.9.40.50/32"
default['postgresql']['pg_hba']['method'] = "md5"

recipes/default.rb

include_recipe 'postgresql::server'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment