Skip to content

Instantly share code, notes, and snippets.

@raphink
Created April 29, 2013 12:17
Show Gist options
  • Save raphink/5481262 to your computer and use it in GitHub Desktop.
Save raphink/5481262 to your computer and use it in GitHub Desktop.
local all all ident sameuser
local all toto md5
local all titi md5 b a="3" c="o=4,v=6"
pg_hba { 'Test entry':
method => 'ident',
options => {
'sameuser' => undef
},
target => '/tmp/pg_hba.conf',
}
pg_hba { 'Test entry 2':
user => 'toto',
method => 'md5',
target => '/tmp/pg_hba.conf',
}
pg_hba { 'Test entry 3':
user => 'titi',
method => 'md5',
options => {
'a' => '3',
'b' => undef,
'c' => 'o=4,v=6',
},
target => '/tmp/pg_hba.conf',
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment