diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2016-06-18 09:52:29 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2016-06-18 09:52:29 -0300 |
commit | 83bdfe2e56cc8c1823a3846f7a3c276770fa65d9 (patch) | |
tree | e430248a398e93edafd7b4dea73ee1dbbbeb9f40 | |
parent | 0fae80a1a028a20bfe2b133995d60b2cb29bde4a (diff) | |
download | puppet-mail-83bdfe2e56cc8c1823a3846f7a3c276770fa65d9.tar.gz puppet-mail-83bdfe2e56cc8c1823a3846f7a3c276770fa65d9.tar.bz2 |
Updates templates
-rw-r--r-- | templates/amavisd/05-node_id.erb | 2 | ||||
l--------- | templates/dovecot/dovecot.conf.jessie.erb | 1 | ||||
-rw-r--r-- | templates/dovecot/dovecot.conf.wheezy.erb | 2 | ||||
-rw-r--r-- | templates/firma/transport_regexp.erb | 4 | ||||
-rw-r--r-- | templates/firma/virtual_regexp.erb | 2 | ||||
-rw-r--r-- | templates/sympa/dbconfig-common.squeeze.erb | 8 | ||||
-rw-r--r-- | templates/sympa/dbconfig-common.wheezy.erb | 8 | ||||
-rw-r--r-- | templates/sympa/sympa.conf.squeeze.erb | 20 | ||||
-rw-r--r-- | templates/sympa/sympa.conf.wheezy.erb | 16 | ||||
-rw-r--r-- | templates/sympa/transport_regexp.erb | 4 | ||||
-rw-r--r-- | templates/sympa/virtual_regexp.erb | 2 | ||||
-rw-r--r-- | templates/virtual/postfixadmin/config.inc.php.erb | 8 | ||||
-rw-r--r-- | templates/virtual/roundcube/main.inc.php.erb | 6 |
13 files changed, 42 insertions, 41 deletions
diff --git a/templates/amavisd/05-node_id.erb b/templates/amavisd/05-node_id.erb index 6a09896..2b795da 100644 --- a/templates/amavisd/05-node_id.erb +++ b/templates/amavisd/05-node_id.erb @@ -9,6 +9,6 @@ chomp($myhostname = `hostname --fqdn`); # Qualified Domain Name (FQDN) and remove the # at the beginning of the line. # #$myhostname = "mail.example.com"; -$myhostname = "<%= fqdn %>"; +$myhostname = "<%= @fqdn %>"; 1; # ensure a defined return diff --git a/templates/dovecot/dovecot.conf.jessie.erb b/templates/dovecot/dovecot.conf.jessie.erb new file mode 120000 index 0000000..9575c2f --- /dev/null +++ b/templates/dovecot/dovecot.conf.jessie.erb @@ -0,0 +1 @@ +dovecot.conf.wheezy.erb
\ No newline at end of file diff --git a/templates/dovecot/dovecot.conf.wheezy.erb b/templates/dovecot/dovecot.conf.wheezy.erb index 823ebb3..72e4c0d 100644 --- a/templates/dovecot/dovecot.conf.wheezy.erb +++ b/templates/dovecot/dovecot.conf.wheezy.erb @@ -56,7 +56,7 @@ protocol pop3 { protocol lda { auth_socket_path = /var/run/dovecot/auth-master mail_plugins = sieve - postmaster_address = postmaster@<%= fqdn %> + postmaster_address = postmaster@<%= @fqdn %> } # Should saving a mail to a non-existing mailbox automatically create it? diff --git a/templates/firma/transport_regexp.erb b/templates/firma/transport_regexp.erb index fb715f5..0116fb5 100644 --- a/templates/firma/transport_regexp.erb +++ b/templates/firma/transport_regexp.erb @@ -1,2 +1,2 @@ -/^.*+request\@<%= subdomain.gsub(/\./, '\.') %>$/ firmarequest: -/^.*\@<%= subdomain.gsub(/\./, '\.') %>$/ firma: +/^.*+request\@<%= @subdomain.gsub(/\./, '\.') %>$/ firmarequest: +/^.*\@<%= @subdomain.gsub(/\./, '\.') %>$/ firma: diff --git a/templates/firma/virtual_regexp.erb b/templates/firma/virtual_regexp.erb index 310cacd..a41b4b7 100644 --- a/templates/firma/virtual_regexp.erb +++ b/templates/firma/virtual_regexp.erb @@ -1 +1 @@ -/^(.*)-request\@<%= subdomain.gsub(/\./, '\.') %>$/ $1+request@<%= subdomain %> +/^(.*)-request\@<%= @subdomain.gsub(/\./, '\.') %>$/ $1+request@<%= @subdomain %> diff --git a/templates/sympa/dbconfig-common.squeeze.erb b/templates/sympa/dbconfig-common.squeeze.erb index 91a9c97..6bae257 100644 --- a/templates/sympa/dbconfig-common.squeeze.erb +++ b/templates/sympa/dbconfig-common.squeeze.erb @@ -24,17 +24,17 @@ dbc_dbtype='mysql' # dbc_dbuser: database user # the name of the user who we will use to connect to the database. -dbc_dbuser='<%= database_name %>' +dbc_dbuser='<%= @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='<%= database_password %>' +dbc_dbpass='<%= @database_password %>' # dbc_dbserver: database host. # leave unset to use localhost (or a more efficient local method # if it exists). -dbc_dbserver='<%= database_host %>' +dbc_dbserver='<%= @database_host %>' # dbc_dbport: remote database port # leave unset to use the default. only applicable if you are @@ -43,7 +43,7 @@ dbc_dbport='' # dbc_dbname: name of database # this is the name of your application's database. -dbc_dbname='<%= database_name %>' +dbc_dbname='<%= @database_name %>' # dbc_dbadmin: name of the administrative user # this is the administrative user that is used to create all of the above diff --git a/templates/sympa/dbconfig-common.wheezy.erb b/templates/sympa/dbconfig-common.wheezy.erb index 91a9c97..6bae257 100644 --- a/templates/sympa/dbconfig-common.wheezy.erb +++ b/templates/sympa/dbconfig-common.wheezy.erb @@ -24,17 +24,17 @@ dbc_dbtype='mysql' # dbc_dbuser: database user # the name of the user who we will use to connect to the database. -dbc_dbuser='<%= database_name %>' +dbc_dbuser='<%= @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='<%= database_password %>' +dbc_dbpass='<%= @database_password %>' # dbc_dbserver: database host. # leave unset to use localhost (or a more efficient local method # if it exists). -dbc_dbserver='<%= database_host %>' +dbc_dbserver='<%= @database_host %>' # dbc_dbport: remote database port # leave unset to use the default. only applicable if you are @@ -43,7 +43,7 @@ dbc_dbport='' # dbc_dbname: name of database # this is the name of your application's database. -dbc_dbname='<%= database_name %>' +dbc_dbname='<%= @database_name %>' # dbc_dbadmin: name of the administrative user # this is the administrative user that is used to create all of the above diff --git a/templates/sympa/sympa.conf.squeeze.erb b/templates/sympa/sympa.conf.squeeze.erb index d6e691c..1b8496e 100644 --- a/templates/sympa/sympa.conf.squeeze.erb +++ b/templates/sympa/sympa.conf.squeeze.erb @@ -49,18 +49,18 @@ log_level 0 ###\\\\ General definition ////### ## Main robot hostname -domain <%= subdomain %>.<%= domain %> +domain <%= @subdomain %>.<%= @domain %> ## Listmasters email list comma separated ## Sympa will associate listmaster privileges to these email addresses (mail and web interfaces). Some error reports may also be sent to these addresses. -listmaster <%= listmasters %> +listmaster <%= @listmasters %> ## Local part of sympa email adresse ## Effective address will be [EMAIL]@[HOST] email sympa ## Default lang (cs | de | el | en_US | fr | hu | it | ja_JP | nl | oc | pt_BR | tr) -lang <%= lang %> +lang <%= @lang %> ## Who is able to create lists ## This parameter is a scenario, check sympa documentation about scenarios if you want to define one @@ -140,17 +140,17 @@ db_type mysql ## Name of the database ## with SQLite, the name of the DB corresponds to the DB file -db_name <%= database_name %> +db_name <%= @database_name %> ## The host hosting your sympa database -db_host <%= database_host %> +db_host <%= @database_host %> ## Database user for connexion -db_user <%= database_name %> +db_user <%= @database_name %> ## Database password (associated to the db_user) ## What ever you use a password or not, you must protect the SQL server (is it a not a public internet service ?) -db_passwd <%= database_password %> +db_passwd <%= @database_password %> ## Database private extention to user table ## You need to extend the database format with these fields @@ -163,10 +163,10 @@ db_passwd <%= database_password %> ###\\\\ Web interface ////### ## Sympa's main page URL -wwsympa_url https://<%= subdomain %>.<%= domain %>/wws +wwsympa_url https://<%= @subdomain %>.<%= @domain %>/wws ## SOAP service URL -soap_url https://<%= subdomain %>.<%= domain %>/sympasoap +soap_url https://<%= @subdomain %>.<%= @domain %>/sympasoap ## Supported languages for the user interface supported_lang en_US,pt_BR @@ -179,5 +179,5 @@ bounce_halt_rate 50 <%- unless logo_html_definition.to_s.empty? then -%> ## Logo -logo_html_definition <%= logo_html_definition %> +logo_html_definition <%= @logo_html_definition %> <%- end %> diff --git a/templates/sympa/sympa.conf.wheezy.erb b/templates/sympa/sympa.conf.wheezy.erb index 78080b8..c23e0ee 100644 --- a/templates/sympa/sympa.conf.wheezy.erb +++ b/templates/sympa/sympa.conf.wheezy.erb @@ -45,18 +45,18 @@ log_level 0 ###\\\\ General definition ////### ## Main robot hostname -domain <%= subdomain %>.<%= domain %> +domain <%= @subdomain %>.<%= @domain %> ## Listmasters email list comma separated ## Sympa will associate listmaster privileges to these email addresses (mail and web interfaces). Some error reports may also be sent to these addresses. -listmaster <%= listmasters %> +listmaster <%= @listmasters %> ## Local part of sympa email adresse ## Effective address will be [EMAIL]@[HOST] email sympa ## Default lang (cs | de | el | en_US | fr | hu | it | ja_JP | nl | oc | pt_BR | tr) -lang <%= lang %> +lang <%= @lang %> ## Who is able to create lists ## This parameter is a scenario, check sympa documentation about scenarios if you want to define one @@ -142,11 +142,11 @@ db_name <%= database_name %> db_host <%= database_host %> ## Database user for connexion -db_user <%= database_name %> +db_user <%= @database_name %> ## Database password (associated to the db_user) ## What ever you use a password or not, you must protect the SQL server (is it a not a public internet service ?) -db_passwd <%= database_password %> +db_passwd <%= @database_password %> ## Database private extention to user table ## You need to extend the database format with these fields @@ -159,10 +159,10 @@ db_passwd <%= database_password %> ###\\\\ Web interface ////### ## Sympa's main page URL -wwsympa_url https://<%= subdomain %>.<%= domain %>/wws +wwsympa_url https://<%= @subdomain %>.<%= @domain %>/wws ## SOAP service URL -soap_url https://<%= subdomain %>.<%= domain %>/sympasoap +soap_url https://<%= @subdomain %>.<%= @domain %>/sympasoap ## Supported languages for the user interface supported_lang en_US,pt_BR,es,fr,de @@ -175,5 +175,5 @@ bounce_halt_rate 50 <%- unless logo_html_definition.to_s.empty? then -%> ## Logo -logo_html_definition <%= logo_html_definition %> +logo_html_definition <%= @logo_html_definition %> <%- end %> diff --git a/templates/sympa/transport_regexp.erb b/templates/sympa/transport_regexp.erb index 6323836..0ab655c 100644 --- a/templates/sympa/transport_regexp.erb +++ b/templates/sympa/transport_regexp.erb @@ -1,2 +1,2 @@ -/^.*+owner\@<%= subdomain.gsub(/\./, '\.') %>$/ sympabounce: -/^.*\@<%= subdomain.gsub(/\./, '\.') %>$/ sympa: +/^.*+owner\@<%= @subdomain.gsub(/\./, '\.') %>$/ sympabounce: +/^.*\@<%= @subdomain.gsub(/\./, '\.') %>$/ sympa: diff --git a/templates/sympa/virtual_regexp.erb b/templates/sympa/virtual_regexp.erb index b82b9df..86e82ce 100644 --- a/templates/sympa/virtual_regexp.erb +++ b/templates/sympa/virtual_regexp.erb @@ -1 +1 @@ -/^(.*)-owner\@<%= subdomain.gsub(/\./, '\.') %>$/ $1+owner@<%= subdomain %> +/^(.*)-owner\@<%= @subdomain.gsub(/\./, '\.') %>$/ $1+owner@<%= @subdomain %> diff --git a/templates/virtual/postfixadmin/config.inc.php.erb b/templates/virtual/postfixadmin/config.inc.php.erb index 58b91b7..79dfa58 100644 --- a/templates/virtual/postfixadmin/config.inc.php.erb +++ b/templates/virtual/postfixadmin/config.inc.php.erb @@ -131,10 +131,10 @@ $CONF['page_size'] = '10'; // Default Aliases // The default aliases that need to be created for all domains. $CONF['default_aliases'] = array ( - 'abuse' => 'abuse@<%= domain %>', - 'hostmaster' => 'hostmaster@<%= domain %>', - 'postmaster' => 'postmaster@<%= domain %>', - 'webmaster' => 'webmaster@<%= domain %>' + 'abuse' => 'abuse@<%= @domain %>', + 'hostmaster' => 'hostmaster@<%= @domain %>', + 'postmaster' => 'postmaster@<%= @domain %>', + 'webmaster' => 'webmaster@<%= @domain %>' ); // Mailboxes diff --git a/templates/virtual/roundcube/main.inc.php.erb b/templates/virtual/roundcube/main.inc.php.erb index 5582ce0..6aaf5cb 100644 --- a/templates/virtual/roundcube/main.inc.php.erb +++ b/templates/virtual/roundcube/main.inc.php.erb @@ -210,7 +210,7 @@ $rcmail_config['auto_create_user'] = true; // replace Roundcube logo with this image // specify an URL relative to the document root of this Roundcube installation -$rcmail_config['skin_logo'] = <%= roundcube_logo %>; +$rcmail_config['skin_logo'] = <%= @roundcube_logo %>; // Includes should be interpreted as PHP files $rcmail_config['skin_include_php'] = false; @@ -247,7 +247,7 @@ $rcmail_config['x_frame_options'] = 'sameorigin'; // this key is used to encrypt the users imap password which is stored // in the session record (and the client cookie if remember password is enabled). // please provide a string of exactly 24 chars. -$rcmail_config['des_key'] = '<%= roundcube_des_key %>'; +$rcmail_config['des_key'] = '<%= @roundcube_des_key %>'; // Automatically add this domain to user names for login // Only for IMAP servers that require full e-mail addresses for login @@ -487,7 +487,7 @@ $rcmail_config['undo_timeout'] = 0; // Login_info plugin $rcmail_config['login_info'] = <<<EOT <div id="login_info" style="margin-top:3%;margin-left:auto;margin-right:auto;;width:380px;border-radius:10px;padding:10px;-moz-border-radius:10px;background-color:lightgrey;text-align:center;color:red;"> - <%= roundcube_login_info %> + <%= @roundcube_login_info %> </div> EOT; <% end -%> |