diff options
author | Nicolas Vigier <boklm@mageia.org> | 2013-01-17 18:09:38 +0000 |
---|---|---|
committer | Nicolas Vigier <boklm@mageia.org> | 2013-01-17 18:09:38 +0000 |
commit | 8977fd73911efe82bc15e6287bc9529152d24201 (patch) | |
tree | 55c9f5dc0555870dc5a38fd7ab95537818b4a62b | |
parent | 5908336d448529be94978f2f1166cf06c624933c (diff) | |
download | puppet-8977fd73911efe82bc15e6287bc9529152d24201.tar puppet-8977fd73911efe82bc15e6287bc9529152d24201.tar.gz puppet-8977fd73911efe82bc15e6287bc9529152d24201.tar.bz2 puppet-8977fd73911efe82bc15e6287bc9529152d24201.tar.xz puppet-8977fd73911efe82bc15e6287bc9529152d24201.zip |
epoll: split database creation in a separate class
Create epoll::create_db class
-rw-r--r-- | manifests/nodes/alamut.pp | 1 | ||||
-rw-r--r-- | modules/epoll/manifests/create_db.pp | 7 | ||||
-rw-r--r-- | modules/epoll/manifests/init.pp | 5 |
3 files changed, 8 insertions, 5 deletions
diff --git a/manifests/nodes/alamut.pp b/manifests/nodes/alamut.pp index 63618c0c..3fdd7eaf 100644 --- a/manifests/nodes/alamut.pp +++ b/manifests/nodes/alamut.pp @@ -21,6 +21,7 @@ node alamut { db_password => extlookup('epoll_pgsql','x'), } include epoll + include epoll::create_db include transifex include bugzilla diff --git a/modules/epoll/manifests/create_db.pp b/modules/epoll/manifests/create_db.pp new file mode 100644 index 00000000..8ef9c0aa --- /dev/null +++ b/modules/epoll/manifests/create_db.pp @@ -0,0 +1,7 @@ +class epoll::create_db () { + postgresql::remote_db_and_user { $epoll::var::db_name: + description => 'Epoll database', + password => $epoll::var::db_password, + } +} +# vim: sw=2 diff --git a/modules/epoll/manifests/init.pp b/modules/epoll/manifests/init.pp index 509a389c..fb86f23a 100644 --- a/modules/epoll/manifests/init.pp +++ b/modules/epoll/manifests/init.pp @@ -11,11 +11,6 @@ class epoll { apache::vhost::redirect_ssl { $epoll::var::vhost: } - postgresql::remote_db_and_user { $epoll::var::db_name: - description => 'Epoll database', - password => $epoll::var::db_password, - } - file { 'epoll.yml': path => '/etc/epoll.yml', group => 'apache', |