From e1aa94896fff5ef538aaae3c920312b98ddde915 Mon Sep 17 00:00:00 2001 From: Jinn Koriech Date: Thu, 5 Dec 2013 10:35:35 +0000 Subject: [PATCH 1/2] Add documentation for usage of encrypted postgresql passwords. --- database/postgresql_user | 1 + 1 file changed, 1 insertion(+) diff --git a/database/postgresql_user b/database/postgresql_user index 1bda98d18cb..01a37731e76 100644 --- a/database/postgresql_user +++ b/database/postgresql_user @@ -44,6 +44,7 @@ options: password: description: - set the user's password, before 1.4 this was required. + - "When passing an encrypted password it must be generated with the format C('str(\"md5\") + md5( password + username )'), resulting in a total of 35 characters. An easy way to do this is: C(echo \"md5$(echo -n \"verysecretpasswordJOE\" | md5)\")." required: false default: null db: From fbb1018abe5bab9940b441b5148249763e919914 Mon Sep 17 00:00:00 2001 From: Jinn Koriech Date: Thu, 5 Dec 2013 16:57:56 +0000 Subject: [PATCH 2/2] Fix postgresql_user documentation render --- database/postgresql_user | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/database/postgresql_user b/database/postgresql_user index 01a37731e76..7897ecac72f 100644 --- a/database/postgresql_user +++ b/database/postgresql_user @@ -44,7 +44,7 @@ options: password: description: - set the user's password, before 1.4 this was required. - - "When passing an encrypted password it must be generated with the format C('str(\"md5\") + md5( password + username )'), resulting in a total of 35 characters. An easy way to do this is: C(echo \"md5$(echo -n \"verysecretpasswordJOE\" | md5)\")." + - "When passing an encrypted password it must be generated with the format C('str[\\"md5\\"] + md5[ password + username ]'), resulting in a total of 35 characters. An easy way to do this is: C(echo \\"md5`echo -n \\"verysecretpasswordJOE\\" | md5`\\")." required: false default: null db: