aboutsummaryrefslogtreecommitdiffstats
path: root/modules/postgresql
diff options
context:
space:
mode:
authorMichael Scherer <misc@mageia.org>2011-06-17 15:57:07 +0000
committerMichael Scherer <misc@mageia.org>2011-06-17 15:57:07 +0000
commitd0335859f2bc006383b10c51a2b9637a7cce537e (patch)
tree542bb0eb05a78aa80de4b0b846d054defe11fc7c /modules/postgresql
parent48e7f4b3d6ff2db841deb9ce1083dadf92756347 (diff)
downloadpuppet-d0335859f2bc006383b10c51a2b9637a7cce537e.tar
puppet-d0335859f2bc006383b10c51a2b9637a7cce537e.tar.gz
puppet-d0335859f2bc006383b10c51a2b9637a7cce537e.tar.bz2
puppet-d0335859f2bc006383b10c51a2b9637a7cce537e.tar.xz
puppet-d0335859f2bc006383b10c51a2b9637a7cce537e.zip
rename user to db_user, as it cause conflict with builtin type
Diffstat (limited to 'modules/postgresql')
-rw-r--r--modules/postgresql/manifests/init.pp10
1 files changed, 5 insertions, 5 deletions
diff --git a/modules/postgresql/manifests/init.pp b/modules/postgresql/manifests/init.pp
index 297cc429..6be6bf42 100644
--- a/modules/postgresql/manifests/init.pp
+++ b/modules/postgresql/manifests/init.pp
@@ -84,7 +84,7 @@ class postgresql {
define tagged() {
# TODO add a system of tag so we can declare database on more than one
# server
- Postgresql::User <<| tag == $name |>>
+ Postgresql::Db_user <<| tag == $name |>>
Postgresql::Database <<| tag == $name |>>
Postgresql::Db_and_user <<| tag == $name |>>
}
@@ -127,7 +127,7 @@ class postgresql {
define remote_user($password,
$tag = "default")
{
- @@postgresql::user { $name:
+ @@postgresql::db_user { $name:
tag => $tag,
password => $password,
}
@@ -137,13 +137,13 @@ class postgresql {
$callback_notify = "",
$password ) {
- database { $name:
+ postgresql::database { $name:
callback_notify => $callback_notify,
description => $description,
user => $name,
}
- user { $name:
+ postgresql::db_user { $name:
password => $password
}
@@ -177,7 +177,7 @@ class postgresql {
# TODO convert to a regular type, so we can later change password without erasing the
# current user
- define user($password) {
+ define db_user($password) {
$sql = "CREATE ROLE $name ENCRYPTED PASSWORD '\$pass' NOSUPERUSER NOCREATEDB NOCREATEROLE INHERIT LOGIN;"
exec { "psql -U postgres -c \"$sql\" ":