diff options
author | Michael Scherer <misc@mageia.org> | 2010-12-15 12:24:47 +0000 |
---|---|---|
committer | Michael Scherer <misc@mageia.org> | 2010-12-15 12:24:47 +0000 |
commit | c0440373d12e164ac12e8f5a50c4b7a0d8d046a2 (patch) | |
tree | 1ef8fd51d489b1fd1c426bedfb16eb3c7c63cccd /modules/mga-mirrors/manifests/init.pp | |
parent | 75e79d222aeaa7be5c774a4218655c4ba2ffe6ab (diff) | |
download | puppet-c0440373d12e164ac12e8f5a50c4b7a0d8d046a2.tar puppet-c0440373d12e164ac12e8f5a50c4b7a0d8d046a2.tar.gz puppet-c0440373d12e164ac12e8f5a50c4b7a0d8d046a2.tar.bz2 puppet-c0440373d12e164ac12e8f5a50c4b7a0d8d046a2.tar.xz puppet-c0440373d12e164ac12e8f5a50c4b7a0d8d046a2.zip |
- create the database and the user on deployment of mga-mirrors
Diffstat (limited to 'modules/mga-mirrors/manifests/init.pp')
-rw-r--r-- | modules/mga-mirrors/manifests/init.pp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/modules/mga-mirrors/manifests/init.pp b/modules/mga-mirrors/manifests/init.pp index b41ed53c..4b55904f 100644 --- a/modules/mga-mirrors/manifests/init.pp +++ b/modules/mga-mirrors/manifests/init.pp @@ -12,6 +12,16 @@ class mga-mirrors { } $pgsql_password = extlookup("mga_mirror_pgsql",'x') + + @@postgresql::user { 'mirrors': + password => $pgsql_password, + } + + @@postgresql::database { 'mirrors': + description => "Mirrors database", + user => "mirrors", + require => Postgresql::User['mirrors'] + } file { "mga-mirrors.ini": path => "/etc/mga-mirrors.ini", |