Skip to content

Commit bf03e21

Browse files
author
Ashley Penney
committed
Merge pull request puppetlabs#268 from duritong/master
Fix documentation about username/password for the postgresql_hash functi...
2 parents d925bd9 + 194bdf0 commit bf03e21

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ There are many ways to set up a postgres database using the `postgresql::server:
8484

8585
postgresql::server::db { 'mydatabasename':
8686
user => 'mydatabaseuser',
87-
password => postgresql_password('mypassword', 'mydatabasename'),
87+
password => postgresql_password('mydatabaseuser', 'mypassword'),
8888
}
8989

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

9696
postgresql::server::role { 'marmot':
97-
password_hash => postgresql_password('foo', 'mydb'),
97+
password_hash => postgresql_password('marmot', 'mypasswd'),
9898
}
9999

100100
postgresql::server::database_grant { 'test1':
@@ -654,7 +654,7 @@ The role name to create.
654654
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:
655655

656656
postgresql::role { "myusername":
657-
password_hash => postgresql_password('mypassword'),
657+
password_hash => postgresql_password('myusername', 'mypassword'),
658658
}
659659

660660
####`createdb`

0 commit comments

Comments
 (0)