Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Fix documentation about username/password for the postgresql_hash fun…
…ction

This is messed up in different ways and this commit brings it in align with what the function actually does.
  • Loading branch information
duritong committed Oct 7, 2013
commit 194bdf019cc88e5d2af786277f3cf5052d7da270
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ There are many ways to set up a postgres database using the `postgresql::server:

postgresql::server::db { 'mydatabasename':
user => 'mydatabaseuser',
password => postgresql_password('mypassword', 'mydatabasename'),
password => postgresql_password('mydatabaseuser', 'mypassword'),
}

###Managing users, roles and permissions
Expand All @@ -94,7 +94,7 @@ To manage users, roles and permissions:
class { 'postgresql::server': }

postgresql::server::role { 'marmot':
password_hash => postgresql_password('foo', 'mydb'),
password_hash => postgresql_password('marmot', 'mypasswd'),
}

postgresql::server::database_grant { 'test1':
Expand Down Expand Up @@ -654,7 +654,7 @@ The role name to create.
The hash to use during password creation. If the password is not already pre-encrypted in a format that PostgreSQL supports, use the `postgresql_password` function to provide an MD5 hash here, for example:

postgresql::role { "myusername":
password_hash => postgresql_password('mypassword'),
password_hash => postgresql_password('myusername', 'mypassword'),
}

####`createdb`
Expand Down