aboutsummaryrefslogtreecommitdiffstats
path: root/modules
diff options
context:
space:
mode:
authorMichael Scherer <misc@mageia.org>2011-01-13 18:12:22 +0000
committerMichael Scherer <misc@mageia.org>2011-01-13 18:12:22 +0000
commit94d4e39055208a57063a244fa1181bd7813d7cf6 (patch)
treec980242c41cdabd9985c98b4b9c08531aab6d0a7 /modules
parent45bac1b118b61774775a361b9990f60bba0f708d (diff)
downloadpuppet-94d4e39055208a57063a244fa1181bd7813d7cf6.tar
puppet-94d4e39055208a57063a244fa1181bd7813d7cf6.tar.gz
puppet-94d4e39055208a57063a244fa1181bd7813d7cf6.tar.bz2
puppet-94d4e39055208a57063a244fa1181bd7813d7cf6.tar.xz
puppet-94d4e39055208a57063a244fa1181bd7813d7cf6.zip
add various comment on what should be improved later
Diffstat (limited to 'modules')
-rw-r--r--modules/postgresql/manifests/init.pp9
1 files changed, 8 insertions, 1 deletions
diff --git a/modules/postgresql/manifests/init.pp b/modules/postgresql/manifests/init.pp
index 50aa8fde..176a81dc 100644
--- a/modules/postgresql/manifests/init.pp
+++ b/modules/postgresql/manifests/init.pp
@@ -57,6 +57,9 @@ class postgresql {
require => Package["postgresql-server"],
}
+ # TODO use augeas to manage this file once augeas 0.7.4 is installed
+ # on our server, as this would allow use to autodeclare database in it without
+ # much trouble
file { 'pg_hba.conf':
path => "$pgsql_data/pg_hba.conf",
ensure => present,
@@ -77,6 +80,8 @@ class postgresql {
require => Package["postgresql-server"],
}
+ # TODO add a system of tag so we can declare database on more than one
+ # server
Postgresql::User <<| |>>
Postgresql::Database <<| |>>
}
@@ -89,7 +94,9 @@ class postgresql {
unless => "psql -A -t -U postgres -l | grep '^$name|'",
}
}
-
+
+ # TODO convert to a regular type, so we can later change password without erasing the
+ # current user
define user($password) {
$sql = "CREATE ROLE $name ENCRYPTED PASSWORD '\$pass' NOSUPERUSER NOCREATEDB NOCREATEROLE INHERIT LOGIN;"