summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2012-05-23 14:50:48 -0300
committerSilvio Rhatto <rhatto@riseup.net>2012-05-23 14:50:48 -0300
commit2445bd4442e29fea85ba7f10ae5ef675490bc378 (patch)
treec02ec9663d6b7af318df1ba98715e96332734534
parent1d5e5998c60f2b2cf5d8b957a133ee89e363f4ef (diff)
downloadpuppet-mail-2445bd4442e29fea85ba7f10ae5ef675490bc378.tar.gz
puppet-mail-2445bd4442e29fea85ba7f10ae5ef675490bc378.tar.bz2
Managing /etc/dbconfig-common/sympa.conf
-rw-r--r--manifests/sympa.pp16
-rw-r--r--templates/sympa/dbconfig-common.squeeze.erb76
2 files changed, 92 insertions, 0 deletions
diff --git a/manifests/sympa.pp b/manifests/sympa.pp
index d73f2bb..d916d51 100644
--- a/manifests/sympa.pp
+++ b/manifests/sympa.pp
@@ -75,6 +75,22 @@ class mail::sympa {
notify => Service['apache', 'sympa'],
}
+ file { "/etc/dbconfig-common":
+ ensure => directory,
+ owner => root,
+ group => root,
+ mode => 0755,
+ }
+
+ file { "/etc/dbconfig-common/sympa.conf":
+ ensure => present,
+ owner => root,
+ group => root,
+ mode => 0600,
+ content => template("mail/sympa/dbconfig-common.${lsbdistcodename}.erb"),
+ require => File['/etc/dbconfig-common'],
+ }
+
file { "/etc/logrotate.d/sympa":
ensure => present,
owner => root,
diff --git a/templates/sympa/dbconfig-common.squeeze.erb b/templates/sympa/dbconfig-common.squeeze.erb
new file mode 100644
index 0000000..89aa0a2
--- /dev/null
+++ b/templates/sympa/dbconfig-common.squeeze.erb
@@ -0,0 +1,76 @@
+# automatically generated by the maintainer scripts of sympa
+# any changes you make will be preserved, though your comments
+# will be lost! to change your settings you should edit this
+# file and then run "dpkg-reconfigure sympa"
+
+# dbc_install: configure database with dbconfig-common?
+# set to anything but "true" to opt out of assistance
+dbc_install='true'
+
+# dbc_upgrade: upgrade database with dbconfig-common?
+# set to anything but "true" to opt out of assistance
+dbc_upgrade='true'
+
+# dbc_remove: deconfigure database with dbconfig-common?
+# set to anything but "true" to opt out of assistance
+dbc_remove=''
+
+# dbc_dbtype: type of underlying database to use
+# this exists primarily to let dbconfig-common know what database
+# type to use when a package supports multiple database types.
+# don't change this value unless you know for certain that this
+# package supports multiple database types
+dbc_dbtype='mysql'
+
+# dbc_dbuser: database user
+# the name of the user who we will use to connect to the database.
+dbc_dbuser='<%= sympa_database_name %>'
+
+# dbc_dbpass: database user password
+# the password to use with the above username when connecting
+# to a database, if one is required
+dbc_dbpass='<%= sympa_database_password %>'
+
+# dbc_dbserver: database host.
+# leave unset to use localhost (or a more efficient local method
+# if it exists).
+dbc_dbserver='<%= sympa_database_host %>'
+
+# dbc_dbport: remote database port
+# leave unset to use the default. only applicable if you are
+# using a remote database.
+dbc_dbport=''
+
+# dbc_dbname: name of database
+# this is the name of your application's database.
+dbc_dbname='<%= sympa_database_name %>'
+
+# dbc_dbadmin: name of the administrative user
+# this is the administrative user that is used to create all of the above
+dbc_dbadmin='root'
+
+# dbc_basepath: base directory to hold database files
+# leave unset to use the default. only applicable if you are
+# using a local (filesystem based) database.
+dbc_basepath=''
+
+##
+## postgresql specific settings. if you don't use postgresql,
+## you can safely ignore all of these
+##
+
+# dbc_ssl: should we require ssl?
+# set to "true" to require that connections use ssl
+dbc_ssl=''
+
+# dbc_authmethod_admin: authentication method for admin
+# dbc_authmethod_user: authentication method for dbuser
+# see the section titled "AUTHENTICATION METHODS" in
+# /usr/share/doc/dbconfig-common/README.pgsql for more info
+dbc_authmethod_admin=''
+dbc_authmethod_user=''
+
+##
+## end postgresql specific settings
+##
+