]> gitweb.fluxo.info Git - puppet-mail.git/commitdiff
Updates templates
authorSilvio Rhatto <rhatto@riseup.net>
Sat, 18 Jun 2016 12:52:29 +0000 (09:52 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Sat, 18 Jun 2016 12:52:29 +0000 (09:52 -0300)
13 files changed:
templates/amavisd/05-node_id.erb
templates/dovecot/dovecot.conf.jessie.erb [new symlink]
templates/dovecot/dovecot.conf.wheezy.erb
templates/firma/transport_regexp.erb
templates/firma/virtual_regexp.erb
templates/sympa/dbconfig-common.squeeze.erb
templates/sympa/dbconfig-common.wheezy.erb
templates/sympa/sympa.conf.squeeze.erb
templates/sympa/sympa.conf.wheezy.erb
templates/sympa/transport_regexp.erb
templates/sympa/virtual_regexp.erb
templates/virtual/postfixadmin/config.inc.php.erb
templates/virtual/roundcube/main.inc.php.erb

index 6a09896af6e0737e0f02be3a628da9c9d6f813fa..2b795da3fa068838d8938978c825ef1228e31758 100644 (file)
@@ -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 (symlink)
index 0000000..9575c2f
--- /dev/null
@@ -0,0 +1 @@
+dovecot.conf.wheezy.erb
\ No newline at end of file
index 823ebb32be93b5683cf7e0a770ab19bbb05fe5fa..72e4c0d59a5a1f0c1771cebb6fab78dcba160ffe 100644 (file)
@@ -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?
index fb715f5fc199926fca3d2c54381d13deba09e62b..0116fb50adc2e6e1a323bacac9166324eff0813f 100644 (file)
@@ -1,2 +1,2 @@
-/^.*+request\@<%= subdomain.gsub(/\./, '\.') %>$/ firmarequest:
-/^.*\@<%= subdomain.gsub(/\./, '\.') %>$/       firma:
+/^.*+request\@<%= @subdomain.gsub(/\./, '\.') %>$/ firmarequest:
+/^.*\@<%= @subdomain.gsub(/\./, '\.') %>$/       firma:
index 310cacd5584b24b408beafa0a72aba4bc84c1f3b..a41b4b71859ec2a1787789a822fd97d9b821a98c 100644 (file)
@@ -1 +1 @@
-/^(.*)-request\@<%= subdomain.gsub(/\./, '\.') %>$/    $1+request@<%= subdomain %>
+/^(.*)-request\@<%= @subdomain.gsub(/\./, '\.') %>$/    $1+request@<%= @subdomain %>
index 91a9c97ecac477a1b950de38d0c7791888759dc4..6bae25775c383c81020ba4f9769cce9b92309e85 100644 (file)
@@ -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
index 91a9c97ecac477a1b950de38d0c7791888759dc4..6bae25775c383c81020ba4f9769cce9b92309e85 100644 (file)
@@ -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
index d6e691c7b3e3d4cbafba1092ceaea95cb609a0f4..1b8496e66ff5defdfa361b44fa1479b5b1132c77 100644 (file)
@@ -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 %>
index 78080b800b53e7f519c3d5576ccf1872a7506599..c23e0eef63bede633c537f9be4de9d74cdadf116 100644 (file)
@@ -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 %>
index 6323836030cfe6e6fdd6665094af76cc45f6c4f8..0ab655c57908df0b196daa775cd8875e5a5be404 100644 (file)
@@ -1,2 +1,2 @@
-/^.*+owner\@<%= subdomain.gsub(/\./, '\.') %>$/ sympabounce:
-/^.*\@<%= subdomain.gsub(/\./, '\.') %>$/       sympa:
+/^.*+owner\@<%= @subdomain.gsub(/\./, '\.') %>$/ sympabounce:
+/^.*\@<%= @subdomain.gsub(/\./, '\.') %>$/       sympa:
index b82b9df9bc20f48400ec60cfea7855c2c6831ff9..86e82ce69d539536e441d31e8343348834544356 100644 (file)
@@ -1 +1 @@
-/^(.*)-owner\@<%= subdomain.gsub(/\./, '\.') %>$/    $1+owner@<%= subdomain %>
+/^(.*)-owner\@<%= @subdomain.gsub(/\./, '\.') %>$/    $1+owner@<%= @subdomain %>
index 58b91b7a6fec0f2a74d75934e8d4508282268417..79dfa581daa16136c9db68ac3702cc1ef9533fea 100644 (file)
@@ -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
index 5582ce0d0ce378f8763a255e83ae6e9fdc119e47..6aaf5cb14593d50782d6ab36b85ad06583ecdfb3 100644 (file)
@@ -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 -%>