diff options
author | Michael Scherer <misc@mageia.org> | 2012-03-17 16:53:46 +0000 |
---|---|---|
committer | Michael Scherer <misc@mageia.org> | 2012-03-17 16:53:46 +0000 |
commit | 77b85dcffc7e6ba92a619ee4e9bccfe015734f27 (patch) | |
tree | 3c62ff46db995a22b0abe2eb0a4413db31ba99a9 /modules/postgresql/manifests/init.pp | |
parent | f62c146259543bba72c54ce983d2a846ae8ba755 (diff) | |
download | puppet-77b85dcffc7e6ba92a619ee4e9bccfe015734f27.tar puppet-77b85dcffc7e6ba92a619ee4e9bccfe015734f27.tar.gz puppet-77b85dcffc7e6ba92a619ee4e9bccfe015734f27.tar.bz2 puppet-77b85dcffc7e6ba92a619ee4e9bccfe015734f27.tar.xz puppet-77b85dcffc7e6ba92a619ee4e9bccfe015734f27.zip |
split postgresql::server in its own file, and clean puppet-lint warning
Diffstat (limited to 'modules/postgresql/manifests/init.pp')
-rw-r--r-- | modules/postgresql/manifests/init.pp | 62 |
1 files changed, 0 insertions, 62 deletions
diff --git a/modules/postgresql/manifests/init.pp b/modules/postgresql/manifests/init.pp index 1774b510..058d1433 100644 --- a/modules/postgresql/manifests/init.pp +++ b/modules/postgresql/manifests/init.pp @@ -1,66 +1,4 @@ class postgresql { - class server { - $pgsql_data = "/var/lib/pgsql/data/" - $pg_version = '9.0' - - # missing requires is corrected in cooker, - # should be removed - # once the fix is in a stable release - package { "postgresql${pg_version}-plpgsql": - alias => "postgresql-plpgsql", - } - - package { "postgresql${pg_version}-server": - alias => "postgresql-server", - require => Package['postgresql-plpgsql'], - } - - service { postgresql: - subscribe => Package["postgresql-server"], - } - - exec { "service postgresql reload": - refreshonly => true, - } - - openssl::self_signed_splitted_cert { "pgsql.$domain": - filename => "server", - directory => $pgsql_data, - owner => "postgres", - group => "postgres", - require => Package['postgresql-server'] - } - - - file { '/etc/pam.d/postgresql': - content => template("postgresql/pam"), - } - - define config($content) { - file { "$name": - owner => postgres, - group => postgres, - mode => 600, - content => $content, - require => Package["postgresql-server"], - notify => Exec['service postgresql reload'], - } - } - - - $db = list_exported_ressources('Postgresql::Db_and_user') - - $forum_lang = list_exported_ressources('Phpbb::Locale_db') - - config { - "$pgsql_data/pg_hba.conf": content => template("postgresql/pg_hba.conf"); - "$pgsql_data/pg_ident.conf": content => template("postgresql/pg_ident.conf"); - "$pgsql_data/postgresql.conf": content => template("postgresql/postgresql.conf"); - } - - } - - define remote_db_and_user($description = "", $tag = "default", $callback_notify = "", |