Parcourir la source

Merge pull request #44 from greenalto/fix_whitespace

Fix trailing whitespace
Alex Payne il y a 11 ans
Parent
révision
498719f034

+ 14
- 15
Vagrantfile Voir le fichier

@@ -1,19 +1,6 @@
1 1
 # The following patch needs to be applied for ansible to run cleanly on vagrant up:
2 2
 # https://github.com/mitchellh/vagrant/pull/1723.diff on /opt/vagrant/embedded/gems/gems/vagrant-1.2.x
3 3
 
4
-$boxes = [
5
-  {
6
-    :name => 'ansible.local',
7
-    :forwards => { 22  => 22222,
8
-                   80  => 80,
9
-                   25  => 25,
10
-                   143 => 143,
11
-                   465 => 465,
12
-                   993 => 993 
13
-    }
14
-  }
15
-]
16
-
17 4
 Vagrant.configure('2') do |config|
18 5
   config.vm.provider :lxc do |lxc, override|
19 6
     override.vm.box     = 'precise64'
@@ -25,7 +12,19 @@ Vagrant.configure('2') do |config|
25 12
     override.vm.box_url = 'http://files.vagrantup.com/precise64.box'
26 13
   end
27 14
 
28
-  $boxes.each do |opts| 
15
+  boxes = [
16
+    {
17
+      :name => 'ansible.local',
18
+      :forwards => { 22  => 22222,
19
+                     80  => 80,
20
+                     25  => 25,
21
+                     143 => 143,
22
+                     465 => 465,
23
+                     993 => 993 }
24
+    }
25
+  ]
26
+
27
+  boxes.each do |opts|
29 28
     config.vm.hostname = opts[:name]
30 29
 
31 30
     opts[:forwards].each do |guest_port, host_port|
@@ -38,7 +37,7 @@ Vagrant.configure('2') do |config|
38 37
     config.vm.provision :ansible do |ansible|
39 38
       ansible.playbook = 'site.yml'
40 39
     end
41
-    
40
+
42 41
     config.vm.provision :shell,
43 42
                         :inline => "echo [test] > /vagrant/hosts.autogen && ifconfig eth0 | grep 'inet addr' | awk '{print $2}' | cut -d: -f2 >> /vagrant/hosts.autogen"
44 43
   end

+ 153
- 153
roles/mailserver/files/etc_solr_conf_solrconfig.xml Voir le fichier

@@ -16,9 +16,9 @@
16 16
  limitations under the License.
17 17
 -->
18 18
 
19
-<!-- 
19
+<!--
20 20
      For more details about configurations options that may appear in
21
-     this file, see http://wiki.apache.org/solr/SolrConfigXml. 
21
+     this file, see http://wiki.apache.org/solr/SolrConfigXml.
22 22
 -->
23 23
 <config>
24 24
   <!-- In all configuration below, a prefix of "solr." for class names
@@ -40,7 +40,7 @@
40 40
          -Dsolr.abortOnConfigurationError=false
41 41
     -->
42 42
   <abortOnConfigurationError>${solr.abortOnConfigurationError:true}</abortOnConfigurationError>
43
-  
43
+
44 44
   <!-- Controls what version of Lucene various components of Solr
45 45
        adhere to.  Generally, you want to use the latest version to
46 46
        get all bug fixes and improvements. It is highly recommended
@@ -60,11 +60,11 @@
60 60
        If a "./lib" directory exists in your instanceDir, all files
61 61
        found in it are included as if you had used the following
62 62
        syntax...
63
-       
63
+
64 64
               <lib dir="./lib" />
65 65
     -->
66 66
 
67
-  <!-- A 'dir' option by itself adds any files found in the directory 
67
+  <!-- A 'dir' option by itself adds any files found in the directory
68 68
        to the classpath, this is useful for including all jars in a
69 69
        directory.
70 70
     -->
@@ -85,7 +85,7 @@
85 85
 
86 86
     <lib dir="../../dist/" regex="apache-solr-dataimporthandler-\d.*\.jar" />
87 87
     <lib dir="../../contrib/dataimporthandler/lib/" regex=".*\.jar" />
88
-  
88
+
89 89
     <lib dir="../../dist/" regex="apache-solr-langid-\d.*\.jar" />
90 90
     <lib dir="../../contrib/langid/lib/" regex=".*\.jar" />
91 91
 
@@ -96,17 +96,17 @@
96 96
   <!-- If a 'dir' option (with or without a regex) is used and nothing
97 97
        is found that matches, it will be ignored
98 98
     -->
99
-  <!-- 
99
+  <!--
100 100
     <lib dir="/total/crap/dir/ignored" />
101 101
   -->
102
-  <!-- an exact 'path' can be used instead of a 'dir' to specify a 
103
-       specific file.  This will cause a serious error to be logged if 
102
+  <!-- an exact 'path' can be used instead of a 'dir' to specify a
103
+       specific file.  This will cause a serious error to be logged if
104 104
        it can't be loaded.
105 105
     -->
106 106
   <!--
107
-     <lib path="../a-jar-that-does-not-exist.jar" /> 
107
+     <lib path="../a-jar-that-does-not-exist.jar" />
108 108
   -->
109
-  
109
+
110 110
   <!-- Data Directory
111 111
 
112 112
        Used to specify an alternate directory to hold all index data
@@ -118,7 +118,7 @@
118 118
 
119 119
 
120 120
   <!-- The DirectoryFactory to use for indexes.
121
-       
121
+
122 122
        solr.StandardDirectoryFactory, the default, is filesystem
123 123
        based and tries to pick the best implementation for the current
124 124
        JVM and platform.  One can force a particular implementation
@@ -128,16 +128,16 @@
128 128
        solr.RAMDirectoryFactory is memory based, not
129 129
        persistent, and doesn't work with replication.
130 130
     -->
131
-  <directoryFactory name="DirectoryFactory" 
131
+  <directoryFactory name="DirectoryFactory"
132 132
                     class="${solr.directoryFactory:solr.StandardDirectoryFactory}"/>
133 133
 
134 134
   <!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
135 135
        Index Config - These settings control low-level behavior of indexing
136 136
        Most example settings here show the default value, but are commented
137 137
        out, to more easily see where customizations have been made.
138
-       
138
+
139 139
        Note: As of Solr 3.6, the <indexDefaults> and <mainIndex> sections
140
-             are deprecated and not shown in the example config. They will 
140
+             are deprecated and not shown in the example config. They will
141 141
              still work, but will go away for good in 4.0
142 142
        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
143 143
   <indexConfig>
@@ -146,8 +146,8 @@
146 146
     <!-- Maximum time to wait for a write lock (ms) for an IndexWriter. Default: 1000 -->
147 147
     <!-- <writeLockTimeout>1000</writeLockTimeout>  -->
148 148
 
149
-    <!-- Expert: Enabling compound file will use less files for the index, 
150
-         using fewer file descriptors on the expense of performance decrease. 
149
+    <!-- Expert: Enabling compound file will use less files for the index,
150
+         using fewer file descriptors on the expense of performance decrease.
151 151
          Default in Lucene is "true". Default in Solr is "false" (since 3.6) -->
152 152
     <!-- <useCompoundFile>false</useCompoundFile> -->
153 153
 
@@ -161,7 +161,7 @@
161 161
     <!-- <ramBufferSizeMB>32</ramBufferSizeMB> -->
162 162
     <!-- <maxBufferedDocs>1000</maxBufferedDocs> -->
163 163
 
164
-    <!-- Expert: Merge Policy 
164
+    <!-- Expert: Merge Policy
165 165
          The Merge Policy in Lucene controls how merging of segments is done.
166 166
          The default since Solr/Lucene 3.3 is TieredMergePolicy.
167 167
          The default since Lucene 2.3 was the LogByteSizeMergePolicy,
@@ -173,7 +173,7 @@
173 173
           <int name="segmentsPerTier">10</int>
174 174
         </mergePolicy>
175 175
       -->
176
-       
176
+
177 177
     <!-- Merge Factor
178 178
          The merge factor controls how many segments will get merged at a time.
179 179
          For TieredMergePolicy, mergeFactor is a convenience parameter which
@@ -182,7 +182,7 @@
182 182
          will be allowed before they are merged into one.
183 183
          Default is 10 for both merge policies.
184 184
       -->
185
-    <!-- 
185
+    <!--
186 186
     <mergeFactor>10</mergeFactor>
187 187
       -->
188 188
 
@@ -192,15 +192,15 @@
192 192
          can perform merges in the background using separate threads.
193 193
          The SerialMergeScheduler (Lucene 2.2 default) does not.
194 194
      -->
195
-    <!-- 
195
+    <!--
196 196
        <mergeScheduler class="org.apache.lucene.index.ConcurrentMergeScheduler"/>
197 197
        -->
198 198
 
199
-    <!-- LockFactory 
199
+    <!-- LockFactory
200 200
 
201 201
          This option specifies which Lucene LockFactory implementation
202 202
          to use.
203
-      
203
+
204 204
          single = SingleInstanceLockFactory - suggested for a
205 205
                   read-only index or when there is no possibility of
206 206
                   another process trying to modify the index.
@@ -229,7 +229,7 @@
229 229
     <!--
230 230
     <unlockOnStartup>false</unlockOnStartup>
231 231
       -->
232
-    
232
+
233 233
     <!-- Expert: Controls how often Lucene loads terms into memory
234 234
          Default is 128 and is likely good for most everyone.
235 235
       -->
@@ -238,7 +238,7 @@
238 238
     <!-- If true, IndexReaders will be reopened (often more efficient)
239 239
          instead of closed and then opened. Default: true
240 240
       -->
241
-    <!-- 
241
+    <!--
242 242
     <reopenReaders>true</reopenReaders>
243 243
       -->
244 244
 
@@ -252,11 +252,11 @@
252 252
          The default Solr IndexDeletionPolicy implementation supports
253 253
          deleting index commit points on number of commits, age of
254 254
          commit point and optimized status.
255
-         
255
+
256 256
          The latest commit point should always be preserved regardless
257 257
          of the criteria.
258 258
     -->
259
-    <!-- 
259
+    <!--
260 260
     <deletionPolicy class="solr.SolrDeletionPolicy">
261 261
     -->
262 262
       <!-- The number of commit points to be kept -->
@@ -271,24 +271,24 @@
271 271
          <str name="maxCommitAge">30MINUTES</str>
272 272
          <str name="maxCommitAge">1DAY</str>
273 273
       -->
274
-    <!-- 
274
+    <!--
275 275
     </deletionPolicy>
276 276
     -->
277 277
 
278 278
     <!-- Lucene Infostream
279
-       
279
+
280 280
          To aid in advanced debugging, Lucene provides an "InfoStream"
281 281
          of detailed information when indexing.
282 282
 
283 283
          Setting The value to true will instruct the underlying Lucene
284 284
          IndexWriter to write its debugging info the specified file
285 285
       -->
286
-     <!-- <infoStream file="INFOSTREAM.txt">false</infoStream> --> 
286
+     <!-- <infoStream file="INFOSTREAM.txt">false</infoStream> -->
287 287
   </indexConfig>
288 288
 
289 289
 
290 290
   <!-- JMX
291
-       
291
+
292 292
        This example enables JMX if and only if an existing MBeanServer
293 293
        is found, use this if you want to configure JMX through JVM
294 294
        parameters. Remove this to disable exposing Solr configuration
@@ -298,7 +298,7 @@
298 298
     -->
299 299
   <jmx />
300 300
   <!-- If you want to connect to a particular server, specify the
301
-       agentId 
301
+       agentId
302 302
     -->
303 303
   <!-- <jmx agentId="myAgent" /> -->
304 304
   <!-- If you want to start a new MBeanServer, specify the serviceUrl -->
@@ -312,7 +312,7 @@
312 312
 
313 313
          Perform a <commit/> automatically under certain conditions.
314 314
          Instead of enabling autoCommit, consider using "commitWithin"
315
-         when adding documents. 
315
+         when adding documents.
316 316
 
317 317
          http://wiki.apache.org/solr/UpdateXmlMessages
318 318
 
@@ -321,17 +321,17 @@
321 321
 
322 322
          maxTime - Maximum amount of time that is allowed to pass
323 323
                    since a document was added before automaticly
324
-                   triggering a new commit. 
324
+                   triggering a new commit.
325 325
       -->
326 326
     <!--
327
-       <autoCommit> 
327
+       <autoCommit>
328 328
          <maxDocs>10000</maxDocs>
329
-         <maxTime>1000</maxTime> 
329
+         <maxTime>1000</maxTime>
330 330
        </autoCommit>
331 331
       -->
332 332
 
333 333
     <!-- Update Related Event Listeners
334
-         
334
+
335 335
          Various IndexWriter related events can trigger Listeners to
336 336
          take actions.
337 337
 
@@ -340,10 +340,10 @@
340 340
       -->
341 341
     <!-- The RunExecutableListener executes an external command from a
342 342
          hook such as postCommit or postOptimize.
343
-         
343
+
344 344
          exe - the name of the executable to run
345 345
          dir - dir to use as the current working directory. (default=".")
346
-         wait - the calling thread waits until the executable returns. 
346
+         wait - the calling thread waits until the executable returns.
347 347
                 (default="true")
348 348
          args - the arguments to pass to the program.  (default is none)
349 349
          env - environment variables to set.  (default is none)
@@ -362,7 +362,7 @@
362 362
        </listener>
363 363
       -->
364 364
   </updateHandler>
365
-  
365
+
366 366
   <!-- IndexReaderFactory
367 367
 
368 368
        Use the following format to specify a custom IndexReaderFactory,
@@ -394,7 +394,7 @@
394 394
        be specified.
395 395
     -->
396 396
   <!--
397
-     <indexReaderFactory name="IndexReaderFactory" 
397
+     <indexReaderFactory name="IndexReaderFactory"
398 398
                          class="solr.StandardIndexReaderFactory">
399 399
        <int name="setTermIndexDivisor">12</int>
400 400
      </indexReaderFactory >
@@ -410,12 +410,12 @@
410 410
          is thrown if exceeded.
411 411
 
412 412
          ** WARNING **
413
-         
413
+
414 414
          This option actually modifies a global Lucene property that
415 415
          will affect all SolrCores.  If multiple solrconfig.xml files
416 416
          disagree on this property, the value at any given moment will
417 417
          be based on the last SolrCore to be initialized.
418
-         
418
+
419 419
       -->
420 420
     <maxBooleanClauses>1024</maxBooleanClauses>
421 421
 
@@ -424,7 +424,7 @@
424 424
 
425 425
          There are two implementations of cache available for Solr,
426 426
          LRUCache, based on a synchronized LinkedHashMap, and
427
-         FastLRUCache, based on a ConcurrentHashMap.  
427
+         FastLRUCache, based on a ConcurrentHashMap.
428 428
 
429 429
          FastLRUCache has faster gets and slower puts in single
430 430
          threaded operation and thus is generally faster than LRUCache
@@ -449,7 +449,7 @@
449 449
            initialSize - the initial capacity (number of entries) of
450 450
                the cache.  (see java.util.HashMap)
451 451
            autowarmCount - the number of entries to prepopulate from
452
-               and old cache.  
452
+               and old cache.
453 453
       -->
454 454
     <filterCache class="solr.FastLRUCache"
455 455
                  size="512"
@@ -457,29 +457,29 @@
457 457
                  autowarmCount="0"/>
458 458
 
459 459
     <!-- Query Result Cache
460
-         
460
+
461 461
          Caches results of searches - ordered lists of document ids
462
-         (DocList) based on a query, a sort, and the range of documents 
463
-         requested.  
462
+         (DocList) based on a query, a sort, and the range of documents
463
+         requested.
464 464
       -->
465 465
     <queryResultCache class="solr.LRUCache"
466 466
                      size="512"
467 467
                      initialSize="512"
468 468
                      autowarmCount="0"/>
469
-   
469
+
470 470
     <!-- Document Cache
471 471
 
472 472
          Caches Lucene Document objects (the stored fields for each
473 473
          document).  Since Lucene internal document ids are transient,
474
-         this cache will not be autowarmed.  
474
+         this cache will not be autowarmed.
475 475
       -->
476 476
     <documentCache class="solr.LRUCache"
477 477
                    size="512"
478 478
                    initialSize="512"
479 479
                    autowarmCount="0"/>
480
-    
480
+
481 481
     <!-- Field Value Cache
482
-         
482
+
483 483
          Cache used to hold field values that are quickly accessible
484 484
          by document id.  The fieldValueCache is created by default
485 485
          even if not configured here.
@@ -497,8 +497,8 @@
497 497
          name through SolrIndexSearcher.getCache(),cacheLookup(), and
498 498
          cacheInsert().  The purpose is to enable easy caching of
499 499
          user/application level data.  The regenerator argument should
500
-         be specified as an implementation of solr.CacheRegenerator 
501
-         if autowarming is desired.  
500
+         be specified as an implementation of solr.CacheRegenerator
501
+         if autowarming is desired.
502 502
       -->
503 503
     <!--
504 504
        <cache name="myUserCache"
@@ -543,14 +543,14 @@
543 543
         An optimization for use with the queryResultCache.  When a search
544 544
         is requested, a superset of the requested number of document ids
545 545
         are collected.  For example, if a search for a particular query
546
-        requests matching documents 10 through 19, and queryWindowSize 
547
-        is 50, then documents 0 through 49 will be collected and cached.  
548
-        Any further requests in that range can be satisfied via the cache.  
546
+        requests matching documents 10 through 19, and queryWindowSize
547
+        is 50, then documents 0 through 49 will be collected and cached.
548
+        Any further requests in that range can be satisfied via the cache.
549 549
      -->
550 550
    <queryResultWindowSize>20</queryResultWindowSize>
551 551
 
552 552
    <!-- Maximum number of documents to cache for any entry in the
553
-        queryResultCache. 
553
+        queryResultCache.
554 554
      -->
555 555
    <queryResultMaxDocsCached>200</queryResultMaxDocsCached>
556 556
 
@@ -568,10 +568,10 @@
568 568
         prepared but there is no current registered searcher to handle
569 569
         requests or to gain autowarming data from.
570 570
 
571
-        
571
+
572 572
      -->
573 573
     <!-- QuerySenderListener takes an array of NamedList and executes a
574
-         local query request for each NamedList in sequence. 
574
+         local query request for each NamedList in sequence.
575 575
       -->
576 576
     <listener event="newSearcher" class="solr.QuerySenderListener">
577 577
       <arr name="queries">
@@ -599,7 +599,7 @@
599 599
     <useColdSearcher>false</useColdSearcher>
600 600
 
601 601
     <!-- Max Warming Searchers
602
-         
602
+
603 603
          Maximum number of searchers that may be warming in the
604 604
          background concurrently.  An error is returned if this limit
605 605
          is exceeded.
@@ -636,14 +636,14 @@
636 636
 
637 637
          multipartUploadLimitInKB - specifies the max size of
638 638
          Multipart File Uploads that Solr will allow in a Request.
639
-         
639
+
640 640
          *** WARNING ***
641 641
          The settings below authorize Solr to fetch remote files, You
642 642
          should make sure your system has some authentication before
643 643
          using enableRemoteStreaming="true"
644 644
 
645
-      --> 
646
-    <requestParsers enableRemoteStreaming="true" 
645
+      -->
646
+    <requestParsers enableRemoteStreaming="true"
647 647
                     multipartUploadLimitInKB="2048000" />
648 648
 
649 649
     <!-- HTTP Caching
@@ -657,21 +657,21 @@
657 657
     <!-- If you include a <cacheControl> directive, it will be used to
658 658
          generate a Cache-Control header (as well as an Expires header
659 659
          if the value contains "max-age=")
660
-         
660
+
661 661
          By default, no Cache-Control header is generated.
662
-         
662
+
663 663
          You can use the <cacheControl> option even if you have set
664 664
          never304="true"
665 665
       -->
666 666
     <!--
667 667
        <httpCaching never304="true" >
668
-         <cacheControl>max-age=30, public</cacheControl> 
668
+         <cacheControl>max-age=30, public</cacheControl>
669 669
        </httpCaching>
670 670
       -->
671 671
     <!-- To enable Solr to respond with automatically generated HTTP
672 672
          Caching headers, and to response to Cache Validation requests
673 673
          correctly, set the value of never304="false"
674
-         
674
+
675 675
          This will cause Solr to generate Last-Modified and ETag
676 676
          headers based on the properties of the Index.
677 677
 
@@ -696,12 +696,12 @@
696 696
     <!--
697 697
        <httpCaching lastModifiedFrom="openTime"
698 698
                     etagSeed="Solr">
699
-         <cacheControl>max-age=30, public</cacheControl> 
699
+         <cacheControl>max-age=30, public</cacheControl>
700 700
        </httpCaching>
701 701
       -->
702 702
   </requestDispatcher>
703 703
 
704
-  <!-- Request Handlers 
704
+  <!-- Request Handlers
705 705
 
706 706
        http://wiki.apache.org/solr/SolrRequestHandler
707 707
 
@@ -857,8 +857,8 @@
857 857
      -->
858 858
   </requestHandler>
859 859
 
860
-  <!-- XML Update Request Handler.  
861
-       
860
+  <!-- XML Update Request Handler.
861
+
862 862
        http://wiki.apache.org/solr/UpdateXmlMessages
863 863
 
864 864
        The canonical Request Handler for Modifying the Index through
@@ -868,10 +868,10 @@
868 868
        type header if posted in the body. For example, curl now
869 869
        requires: -H 'Content-type:text/xml; charset=utf-8'
870 870
     -->
871
-  <requestHandler name="/update" 
871
+  <requestHandler name="/update"
872 872
                   class="solr.XmlUpdateRequestHandler">
873
-    <!-- See below for information on defining 
874
-         updateRequestProcessorChains that can be used by name 
873
+    <!-- See below for information on defining
874
+         updateRequestProcessorChains that can be used by name
875 875
          on each Update Request
876 876
       -->
877 877
     <!--
@@ -883,29 +883,29 @@
883 883
   <!-- Binary Update Request Handler
884 884
        http://wiki.apache.org/solr/javabin
885 885
     -->
886
-  <requestHandler name="/update/javabin" 
886
+  <requestHandler name="/update/javabin"
887 887
                   class="solr.BinaryUpdateRequestHandler" />
888 888
 
889 889
   <!-- CSV Update Request Handler
890 890
        http://wiki.apache.org/solr/UpdateCSV
891 891
     -->
892
-  <requestHandler name="/update/csv" 
893
-                  class="solr.CSVRequestHandler" 
892
+  <requestHandler name="/update/csv"
893
+                  class="solr.CSVRequestHandler"
894 894
                   startup="lazy" />
895 895
 
896 896
   <!-- JSON Update Request Handler
897 897
        http://wiki.apache.org/solr/UpdateJSON
898 898
     -->
899
-  <requestHandler name="/update/json" 
900
-                  class="solr.JsonUpdateRequestHandler" 
899
+  <requestHandler name="/update/json"
900
+                  class="solr.JsonUpdateRequestHandler"
901 901
                   startup="lazy" />
902 902
 
903 903
   <!-- Solr Cell Update Request Handler
904 904
 
905
-       http://wiki.apache.org/solr/ExtractingRequestHandler 
905
+       http://wiki.apache.org/solr/ExtractingRequestHandler
906 906
 
907 907
     -->
908
-  <requestHandler name="/update/extract" 
908
+  <requestHandler name="/update/extract"
909 909
                   startup="lazy"
910 910
                   class="solr.extraction.ExtractingRequestHandler" >
911 911
     <lst name="defaults">
@@ -947,7 +947,7 @@
947 947
            field value analysis will be marked as "matched" for every
948 948
            token that is produces by the query analysis
949 949
    -->
950
-  <requestHandler name="/analysis/field" 
950
+  <requestHandler name="/analysis/field"
951 951
                   startup="lazy"
952 952
                   class="solr.FieldAnalysisRequestHandler" />
953 953
 
@@ -980,18 +980,18 @@
980 980
     request parameter that holds the query text to be analyzed. It
981 981
     also supports the "analysis.showmatch" parameter which when set to
982 982
     true, all field tokens that match the query tokens will be marked
983
-    as a "match". 
983
+    as a "match".
984 984
   -->
985
-  <requestHandler name="/analysis/document" 
986
-                  class="solr.DocumentAnalysisRequestHandler" 
985
+  <requestHandler name="/analysis/document"
986
+                  class="solr.DocumentAnalysisRequestHandler"
987 987
                   startup="lazy" />
988 988
 
989 989
   <!-- Admin Handlers
990 990
 
991 991
        Admin Handlers - This will register all the standard admin
992
-       RequestHandlers.  
992
+       RequestHandlers.
993 993
     -->
994
-  <requestHandler name="/admin/" 
994
+  <requestHandler name="/admin/"
995 995
                   class="solr.admin.AdminHandlers" />
996 996
   <!-- This single handler is equivalent to the following... -->
997 997
   <!--
@@ -1003,14 +1003,14 @@
1003 1003
      <requestHandler name="/admin/file"       class="solr.admin.ShowFileRequestHandler" >
1004 1004
     -->
1005 1005
   <!-- If you wish to hide files under ${solr.home}/conf, explicitly
1006
-       register the ShowFileRequestHandler using: 
1006
+       register the ShowFileRequestHandler using:
1007 1007
     -->
1008 1008
   <!--
1009
-     <requestHandler name="/admin/file" 
1009
+     <requestHandler name="/admin/file"
1010 1010
                      class="solr.admin.ShowFileRequestHandler" >
1011 1011
        <lst name="invariants">
1012
-         <str name="hidden">synonyms.txt</str> 
1013
-         <str name="hidden">anotherfile.txt</str> 
1012
+         <str name="hidden">synonyms.txt</str>
1013
+         <str name="hidden">anotherfile.txt</str>
1014 1014
        </lst>
1015 1015
      </requestHandler>
1016 1016
     -->
@@ -1028,7 +1028,7 @@
1028 1028
   <!-- Echo the request contents back to the client -->
1029 1029
   <requestHandler name="/debug/dump" class="solr.DumpRequestHandler" >
1030 1030
     <lst name="defaults">
1031
-     <str name="echoParams">explicit</str> 
1031
+     <str name="echoParams">explicit</str>
1032 1032
      <str name="echoHandler">true</str>
1033 1033
     </lst>
1034 1034
   </requestHandler>
@@ -1038,7 +1038,7 @@
1038 1038
        The SolrReplicationHandler supports replicating indexes from a
1039 1039
        "master" used for indexing and "slaves" used for queries.
1040 1040
 
1041
-       http://wiki.apache.org/solr/SolrReplication 
1041
+       http://wiki.apache.org/solr/SolrReplication
1042 1042
 
1043 1043
        In the example below, remove the <lst name="master"> section if
1044 1044
        this is just a slave and remove  the <lst name="slave"> section
@@ -1060,18 +1060,18 @@
1060 1060
 
1061 1061
   <!-- Search Components
1062 1062
 
1063
-       Search components are registered to SolrCore and used by 
1063
+       Search components are registered to SolrCore and used by
1064 1064
        instances of SearchHandler (which can access them by name)
1065
-       
1065
+
1066 1066
        By default, the following components are available:
1067
-       
1067
+
1068 1068
        <searchComponent name="query"     class="solr.QueryComponent" />
1069 1069
        <searchComponent name="facet"     class="solr.FacetComponent" />
1070 1070
        <searchComponent name="mlt"       class="solr.MoreLikeThisComponent" />
1071 1071
        <searchComponent name="highlight" class="solr.HighlightComponent" />
1072 1072
        <searchComponent name="stats"     class="solr.StatsComponent" />
1073 1073
        <searchComponent name="debug"     class="solr.DebugComponent" />
1074
-   
1074
+
1075 1075
        Default configuration in a requestHandler would look like:
1076 1076
 
1077 1077
        <arr name="components">
@@ -1083,28 +1083,28 @@
1083 1083
          <str>debug</str>
1084 1084
        </arr>
1085 1085
 
1086
-       If you register a searchComponent to one of the standard names, 
1086
+       If you register a searchComponent to one of the standard names,
1087 1087
        that will be used instead of the default.
1088 1088
 
1089 1089
        To insert components before or after the 'standard' components, use:
1090
-    
1090
+
1091 1091
        <arr name="first-components">
1092 1092
          <str>myFirstComponentName</str>
1093 1093
        </arr>
1094
-    
1094
+
1095 1095
        <arr name="last-components">
1096 1096
          <str>myLastComponentName</str>
1097 1097
        </arr>
1098 1098
 
1099 1099
        NOTE: The component registered with the name "debug" will
1100
-       always be executed after the "last-components" 
1101
-       
1100
+       always be executed after the "last-components"
1101
+
1102 1102
      -->
1103 1103
 
1104 1104
    <!-- Spell Check
1105 1105
 
1106 1106
         The spell check component can return a list of alternative spelling
1107
-        suggestions.  
1107
+        suggestions.
1108 1108
 
1109 1109
         http://wiki.apache.org/solr/SpellCheckComponent
1110 1110
      -->
@@ -1123,7 +1123,7 @@
1123 1123
       <str name="name">default</str>
1124 1124
       <str name="field">name</str>
1125 1125
       <str name="spellcheckIndexDir">spellchecker</str>
1126
-      <!-- uncomment this to require terms to occur in 1% of the documents 
1126
+      <!-- uncomment this to require terms to occur in 1% of the documents
1127 1127
            in order to be included in the dictionary
1128 1128
         -->
1129 1129
       <!--
@@ -1143,7 +1143,7 @@
1143 1143
        </lst>
1144 1144
      -->
1145 1145
 
1146
-    <!-- a spellchecker that use an alternate comparator 
1146
+    <!-- a spellchecker that use an alternate comparator
1147 1147
 
1148 1148
          comparatorClass be one of:
1149 1149
           1. score (default)
@@ -1171,7 +1171,7 @@
1171 1171
       -->
1172 1172
   </searchComponent>
1173 1173
 
1174
-  <!-- A request handler for demonstrating the spellcheck component.  
1174
+  <!-- A request handler for demonstrating the spellcheck component.
1175 1175
 
1176 1176
        NOTE: This is purely as an example.  The whole purpose of the
1177 1177
        SpellCheckComponent is to hook it into the request handler that
@@ -1180,7 +1180,7 @@
1180 1180
 
1181 1181
        IN OTHER WORDS, THERE IS REALLY GOOD CHANCE THE SETUP BELOW IS
1182 1182
        NOT WHAT YOU WANT FOR YOUR PRODUCTION SYSTEM!
1183
-       
1183
+
1184 1184
        See http://wiki.apache.org/solr/SpellCheckComponent for details
1185 1185
        on the request parameters.
1186 1186
     -->
@@ -1206,8 +1206,8 @@
1206 1206
 
1207 1207
        This is purely as an example.
1208 1208
 
1209
-       In reality you will likely want to add the component to your 
1210
-       already specified request handlers. 
1209
+       In reality you will likely want to add the component to your
1210
+       already specified request handlers.
1211 1211
     -->
1212 1212
   <requestHandler name="/tvrh" class="solr.SearchHandler" startup="lazy">
1213 1213
     <lst name="defaults">
@@ -1230,7 +1230,7 @@
1230 1230
 
1231 1231
           java -Dsolr.clustering.enabled=true -jar start.jar
1232 1232
     -->
1233
-  <searchComponent name="clustering" 
1233
+  <searchComponent name="clustering"
1234 1234
                    enable="${solr.clustering.enabled:false}"
1235 1235
                    class="solr.clustering.ClusteringComponent" >
1236 1236
     <!-- Declare an engine -->
@@ -1238,14 +1238,14 @@
1238 1238
       <!-- The name, only one can be named "default" -->
1239 1239
       <str name="name">default</str>
1240 1240
 
1241
-      <!-- Class name of Carrot2 clustering algorithm. 
1242
-           
1241
+      <!-- Class name of Carrot2 clustering algorithm.
1242
+
1243 1243
            Currently available algorithms are:
1244
-           
1244
+
1245 1245
            * org.carrot2.clustering.lingo.LingoClusteringAlgorithm
1246 1246
            * org.carrot2.clustering.stc.STCClusteringAlgorithm
1247 1247
            * org.carrot2.clustering.kmeans.BisectingKMeansClusteringAlgorithm
1248
-           
1248
+
1249 1249
            See http://project.carrot2.org/algorithms.html for the
1250 1250
            algorithm's characteristics.
1251 1251
         -->
@@ -1261,7 +1261,7 @@
1261 1261
            name and attribute value as parameter value.
1262 1262
         -->
1263 1263
       <str name="LingoClusteringAlgorithm.desiredClusterCountBase">20</str>
1264
-      
1264
+
1265 1265
       <!-- Location of Carrot2 lexical resources.
1266 1266
 
1267 1267
            A directory from which to load Carrot2-specific stop words
@@ -1276,7 +1276,7 @@
1276 1276
       <str name="carrot.lexicalResourcesDir">clustering/carrot2</str>
1277 1277
 
1278 1278
       <!-- The language to assume for the documents.
1279
-           
1279
+
1280 1280
            For a list of allowed values, see:
1281 1281
            http://download.carrot2.org/stable/manual/#section.attribute.lingo.MultilingualClustering.defaultLanguage
1282 1282
        -->
@@ -1292,8 +1292,8 @@
1292 1292
 
1293 1293
        This is purely as an example.
1294 1294
 
1295
-       In reality you will likely want to add the component to your 
1296
-       already specified request handlers. 
1295
+       In reality you will likely want to add the component to your
1296
+       already specified request handlers.
1297 1297
     -->
1298 1298
   <requestHandler name="/clustering"
1299 1299
                   startup="lazy"
@@ -1314,7 +1314,7 @@
1314 1314
        <!--<int name="carrot.numDescriptions">5</int>-->
1315 1315
        <!-- produce sub clusters -->
1316 1316
        <bool name="carrot.outputSubClusters">false</bool>
1317
-       
1317
+
1318 1318
        <str name="df">text</str>
1319 1319
        <str name="defType">edismax</str>
1320 1320
        <str name="qf">
@@ -1323,12 +1323,12 @@
1323 1323
        <str name="q.alt">*:*</str>
1324 1324
        <str name="rows">10</str>
1325 1325
        <str name="fl">*,score</str>
1326
-    </lst>     
1326
+    </lst>
1327 1327
     <arr name="last-components">
1328 1328
       <str>clustering</str>
1329 1329
     </arr>
1330 1330
   </requestHandler>
1331
-  
1331
+
1332 1332
   <!-- Terms Component
1333 1333
 
1334 1334
        http://wiki.apache.org/solr/TermsComponent
@@ -1342,7 +1342,7 @@
1342 1342
   <requestHandler name="/terms" class="solr.SearchHandler" startup="lazy">
1343 1343
      <lst name="defaults">
1344 1344
       <bool name="terms">true</bool>
1345
-    </lst>     
1345
+    </lst>
1346 1346
     <arr name="components">
1347 1347
       <str>terms</str>
1348 1348
     </arr>
@@ -1382,7 +1382,7 @@
1382 1382
     <highlighting>
1383 1383
       <!-- Configure the standard fragmenter -->
1384 1384
       <!-- This could most likely be commented out in the "default" case -->
1385
-      <fragmenter name="gap" 
1385
+      <fragmenter name="gap"
1386 1386
                   default="true"
1387 1387
                   class="solr.highlight.GapFragmenter">
1388 1388
         <lst name="defaults">
@@ -1390,10 +1390,10 @@
1390 1390
         </lst>
1391 1391
       </fragmenter>
1392 1392
 
1393
-      <!-- A regular-expression-based fragmenter 
1394
-           (for sentence extraction) 
1393
+      <!-- A regular-expression-based fragmenter
1394
+           (for sentence extraction)
1395 1395
         -->
1396
-      <fragmenter name="regex" 
1396
+      <fragmenter name="regex"
1397 1397
                   class="solr.highlight.RegexFragmenter">
1398 1398
         <lst name="defaults">
1399 1399
           <!-- slightly smaller fragsizes work better because of slop -->
@@ -1406,7 +1406,7 @@
1406 1406
       </fragmenter>
1407 1407
 
1408 1408
       <!-- Configure the standard formatter -->
1409
-      <formatter name="html" 
1409
+      <formatter name="html"
1410 1410
                  default="true"
1411 1411
                  class="solr.highlight.HtmlFormatter">
1412 1412
         <lst name="defaults">
@@ -1416,23 +1416,23 @@
1416 1416
       </formatter>
1417 1417
 
1418 1418
       <!-- Configure the standard encoder -->
1419
-      <encoder name="html" 
1419
+      <encoder name="html"
1420 1420
                class="solr.highlight.HtmlEncoder" />
1421 1421
 
1422 1422
       <!-- Configure the standard fragListBuilder -->
1423
-      <fragListBuilder name="simple" 
1423
+      <fragListBuilder name="simple"
1424 1424
                        default="true"
1425 1425
                        class="solr.highlight.SimpleFragListBuilder"/>
1426 1426
 
1427 1427
       <!-- Configure the single fragListBuilder -->
1428
-      <fragListBuilder name="single" 
1428
+      <fragListBuilder name="single"
1429 1429
                        class="solr.highlight.SingleFragListBuilder"/>
1430 1430
 
1431 1431
       <!-- default tag FragmentsBuilder -->
1432
-      <fragmentsBuilder name="default" 
1432
+      <fragmentsBuilder name="default"
1433 1433
                         default="true"
1434 1434
                         class="solr.highlight.ScoreOrderFragmentsBuilder">
1435
-        <!-- 
1435
+        <!--
1436 1436
         <lst name="defaults">
1437 1437
           <str name="hl.multiValuedSeparatorChar">/</str>
1438 1438
         </lst>
@@ -1440,7 +1440,7 @@
1440 1440
       </fragmentsBuilder>
1441 1441
 
1442 1442
       <!-- multi-colored tag FragmentsBuilder -->
1443
-      <fragmentsBuilder name="colored" 
1443
+      <fragmentsBuilder name="colored"
1444 1444
                         class="solr.highlight.ScoreOrderFragmentsBuilder">
1445 1445
         <lst name="defaults">
1446 1446
           <str name="hl.tag.pre"><![CDATA[
@@ -1452,8 +1452,8 @@
1452 1452
           <str name="hl.tag.post"><![CDATA[</b>]]></str>
1453 1453
         </lst>
1454 1454
       </fragmentsBuilder>
1455
-      
1456
-      <boundaryScanner name="default" 
1455
+
1456
+      <boundaryScanner name="default"
1457 1457
                        default="true"
1458 1458
                        class="solr.highlight.SimpleBoundaryScanner">
1459 1459
         <lst name="defaults">
@@ -1461,20 +1461,20 @@
1461 1461
           <str name="hl.bs.chars">.,!? &#9;&#10;&#13;</str>
1462 1462
         </lst>
1463 1463
       </boundaryScanner>
1464
-      
1465
-      <boundaryScanner name="breakIterator" 
1464
+
1465
+      <boundaryScanner name="breakIterator"
1466 1466
                        class="solr.highlight.BreakIteratorBoundaryScanner">
1467 1467
         <lst name="defaults">
1468 1468
           <!-- type should be one of:
1469
-               * CHARACTER 
1469
+               * CHARACTER
1470 1470
                * WORD (default)
1471 1471
                * LINE
1472
-               * SENTENCE 
1472
+               * SENTENCE
1473 1473
             -->
1474 1474
           <str name="hl.bs.type">WORD</str>
1475
-          <!-- language and country are used when constructing Locale 
1476
-               object which will be used when getting instance of 
1477
-               BreakIterator 
1475
+          <!-- language and country are used when constructing Locale
1476
+               object which will be used when getting instance of
1477
+               BreakIterator
1478 1478
             -->
1479 1479
           <str name="hl.bs.language">en</str>
1480 1480
           <str name="hl.bs.country">US</str>
@@ -1491,15 +1491,15 @@
1491 1491
 
1492 1492
        http://wiki.apache.org/solr/UpdateRequestProcessor
1493 1493
 
1494
-    --> 
1494
+    -->
1495 1495
   <!-- Deduplication
1496 1496
 
1497 1497
        An example dedup update processor that creates the "id" field
1498 1498
        on the fly based on the hash code of some other fields.  This
1499 1499
        example has overwriteDupes set to false since we are using the
1500 1500
        id field as the signatureField and Solr will maintain
1501
-       uniqueness based on that anyway.  
1502
-       
1501
+       uniqueness based on that anyway.
1502
+
1503 1503
     -->
1504 1504
   <!--
1505 1505
      <updateRequestProcessorChain name="dedupe">
@@ -1535,7 +1535,7 @@
1535 1535
        <processor class="solr.RunUpdateProcessorFactory" />
1536 1536
      </updateRequestProcessorChain>
1537 1537
     -->
1538
- 
1538
+
1539 1539
   <!-- Response Writers
1540 1540
 
1541 1541
        http://wiki.apache.org/solr/QueryResponseWriter
@@ -1551,7 +1551,7 @@
1551 1551
        overridden...
1552 1552
     -->
1553 1553
   <!--
1554
-     <queryResponseWriter name="xml" 
1554
+     <queryResponseWriter name="xml"
1555 1555
                           default="true"
1556 1556
                           class="solr.XMLResponseWriter" />
1557 1557
      <queryResponseWriter name="json" class="solr.JSONResponseWriter"/>
@@ -1569,16 +1569,16 @@
1569 1569
      -->
1570 1570
     <str name="content-type">text/plain; charset=UTF-8</str>
1571 1571
   </queryResponseWriter>
1572
-  
1572
+
1573 1573
   <!--
1574 1574
      Custom response writers can be declared as needed...
1575 1575
     -->
1576 1576
     <queryResponseWriter name="velocity" class="solr.VelocityResponseWriter" startup="lazy"/>
1577
-  
1577
+
1578 1578
 
1579 1579
   <!-- XSLT response writer transforms the XML output by any xslt file found
1580 1580
        in Solr's conf/xslt directory.  Changes to xslt files are checked for
1581
-       every xsltCacheLifetimeSeconds.  
1581
+       every xsltCacheLifetimeSeconds.
1582 1582
     -->
1583 1583
   <queryResponseWriter name="xslt" class="solr.XSLTResponseWriter">
1584 1584
     <int name="xsltCacheLifetimeSeconds">5</int>
@@ -1606,7 +1606,7 @@
1606 1606
     -->
1607 1607
   <!-- example of registering a custom function parser  -->
1608 1608
   <!--
1609
-     <valueSourceParser name="myfunc" 
1609
+     <valueSourceParser name="myfunc"
1610 1610
                         class="com.mycompany.MyValueSourceParser" />
1611 1611
     -->
1612 1612
 
@@ -1615,7 +1615,7 @@
1615 1615
     <defaultQuery>*:*</defaultQuery>
1616 1616
 
1617 1617
     <!-- configure a healthcheck file for servers behind a
1618
-         loadbalancer 
1618
+         loadbalancer
1619 1619
       -->
1620 1620
     <!--
1621 1621
        <healthcheck type="file">server-enabled</healthcheck>

+ 15
- 15
roles/mailserver/files/etc_tomcat6_server.xml Voir le fichier

@@ -48,19 +48,19 @@
48 48
   </GlobalNamingResources>
49 49
 
50 50
   <!-- A "Service" is a collection of one or more "Connectors" that share
51
-       a single "Container" Note:  A "Service" is not itself a "Container", 
51
+       a single "Container" Note:  A "Service" is not itself a "Container",
52 52
        so you may not define subcomponents such as "Valves" at this level.
53 53
        Documentation at /docs/config/service.html
54 54
    -->
55 55
   <Service name="Catalina">
56
-  
56
+
57 57
     <!--The connectors can use a shared executor, you can define one or more named thread pools-->
58 58
     <!--
59
-    <Executor name="tomcatThreadPool" namePrefix="catalina-exec-" 
59
+    <Executor name="tomcatThreadPool" namePrefix="catalina-exec-"
60 60
         maxThreads="150" minSpareThreads="4"/>
61 61
     -->
62
-    
63
-    
62
+
63
+
64 64
     <!-- A "Connector" represents an endpoint by which requests are received
65 65
          and responses are returned. Documentation at :
66 66
          Java HTTP Connector: /docs/config/http.html (blocking & non-blocking)
@@ -68,19 +68,19 @@
68 68
          APR (HTTP/AJP) Connector: /docs/apr.html
69 69
          Define a non-SSL HTTP/1.1 Connector on port 8080
70 70
     -->
71
-    <Connector address="127.0.0.1" port="8080" protocol="HTTP/1.1" 
72
-               connectionTimeout="20000" 
71
+    <Connector address="127.0.0.1" port="8080" protocol="HTTP/1.1"
72
+               connectionTimeout="20000"
73 73
                URIEncoding="UTF-8"
74 74
                redirectPort="8443" />
75 75
     <!-- A "Connector" using the shared thread pool-->
76 76
     <!--
77 77
     <Connector executor="tomcatThreadPool"
78
-               port="8080" protocol="HTTP/1.1" 
79
-               connectionTimeout="20000" 
78
+               port="8080" protocol="HTTP/1.1"
79
+               connectionTimeout="20000"
80 80
                redirectPort="8443" />
81
-    -->           
81
+    -->
82 82
     <!-- Define a SSL HTTP/1.1 Connector on port 8443
83
-         This connector uses the JSSE configuration, when using APR, the 
83
+         This connector uses the JSSE configuration, when using APR, the
84 84
          connector should be using the OpenSSL style configuration
85 85
          described in the APR documentation -->
86 86
     <!--
@@ -102,8 +102,8 @@
102 102
          Documentation at /docs/config/engine.html -->
103 103
 
104 104
     <!-- You should set jvmRoute to support load-balancing via AJP ie :
105
-    <Engine name="Catalina" defaultHost="localhost" jvmRoute="jvm1">         
106
-    --> 
105
+    <Engine name="Catalina" defaultHost="localhost" jvmRoute="jvm1">
106
+    -->
107 107
     <Engine name="Catalina" defaultHost="localhost">
108 108
 
109 109
       <!--For clustering, please take a look at documentation at:
@@ -111,7 +111,7 @@
111 111
           /docs/config/cluster.html (reference documentation) -->
112 112
       <!--
113 113
       <Cluster className="org.apache.catalina.ha.tcp.SimpleTcpCluster"/>
114
-      -->        
114
+      -->
115 115
 
116 116
       <!-- The request dumper valve dumps useful debugging information about
117 117
            the request and response data received and sent by Tomcat.
@@ -143,7 +143,7 @@
143 143
         <!-- Access log processes all example.
144 144
              Documentation at: /docs/config/valve.html -->
145 145
         <!--
146
-        <Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs"  
146
+        <Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs"
147 147
                prefix="localhost_access_log." suffix=".txt" pattern="common" resolveHosts="false"/>
148 148
         -->
149 149
 

+ 38
- 38
roles/monitoring/files/etc_monit_monitrc Voir le fichier

@@ -5,8 +5,8 @@
5 5
 ## Comments begin with a '#' and extend through the end of the line. Keywords
6 6
 ## are case insensitive. All path's MUST BE FULLY QUALIFIED, starting with '/'.
7 7
 ##
8
-## Below you will find examples of some frequently used statements. For 
9
-## information about the control file and a complete list of statements and 
8
+## Below you will find examples of some frequently used statements. For
9
+## information about the control file and a complete list of statements and
10 10
 ## options, please have a look in the Monit manual.
11 11
 ##
12 12
 ##
@@ -17,20 +17,20 @@
17 17
 ## Start Monit in the background (run as a daemon):
18 18
 #
19 19
   set daemon 120            # check services at 2-minute intervals
20
-#   with start delay 240    # optional: delay the first check by 4-minutes (by 
20
+#   with start delay 240    # optional: delay the first check by 4-minutes (by
21 21
 #                           # default Monit check immediately after Monit start)
22 22
 #
23 23
 #
24 24
 ## Set syslog logging with the 'daemon' facility. If the FACILITY option is
25
-## omitted, Monit will use 'user' facility by default. If you want to log to 
25
+## omitted, Monit will use 'user' facility by default. If you want to log to
26 26
 ## a standalone log file instead, specify the full path to the log file
27 27
 #
28
-# set logfile syslog facility log_daemon                       
28
+# set logfile syslog facility log_daemon
29 29
   set logfile /var/log/monit.log
30 30
 #
31 31
 #
32 32
 ## Set the location of the Monit id file which stores the unique id for the
33
-## Monit instance. The id is generated and stored on first Monit start. By 
33
+## Monit instance. The id is generated and stored on first Monit start. By
34 34
 ## default the file is placed in $HOME/.monit.id.
35 35
 #
36 36
 # set idfile /var/.monit.id
@@ -44,9 +44,9 @@
44 44
 #
45 45
   set statefile /var/lib/monit/state
46 46
 #
47
-## Set the list of mail servers for alert delivery. Multiple servers may be 
48
-## specified using a comma separator. If the first mail server fails, Monit 
49
-# will use the second mail server in the list and so on. By default Monit uses 
47
+## Set the list of mail servers for alert delivery. Multiple servers may be
48
+## specified using a comma separator. If the first mail server fails, Monit
49
+# will use the second mail server in the list and so on. By default Monit uses
50 50
 # port 25 - it is possible to override this with the PORT option.
51 51
 #
52 52
 # set mailserver mail.bar.baz,               # primary mailserver
@@ -56,11 +56,11 @@
56 56
 
57 57
 set mailserver localhost
58 58
 
59
-## By default Monit will drop alert events if no mail servers are available. 
60
-## If you want to keep the alerts for later delivery retry, you can use the 
61
-## EVENTQUEUE statement. The base directory where undelivered alerts will be 
59
+## By default Monit will drop alert events if no mail servers are available.
60
+## If you want to keep the alerts for later delivery retry, you can use the
61
+## EVENTQUEUE statement. The base directory where undelivered alerts will be
62 62
 ## stored is specified by the BASEDIR option. You can limit the maximal queue
63
-## size using the SLOTS option (if omitted, the queue is limited by space 
63
+## size using the SLOTS option (if omitted, the queue is limited by space
64 64
 ## available in the back end filesystem).
65 65
 #
66 66
   set eventqueue
@@ -68,11 +68,11 @@ set mailserver localhost
68 68
       slots 100                     # optionally limit the queue size
69 69
 #
70 70
 #
71
-## Send status and events to M/Monit (for more informations about M/Monit 
72
-## see http://mmonit.com/). By default Monit registers credentials with 
71
+## Send status and events to M/Monit (for more informations about M/Monit
72
+## see http://mmonit.com/). By default Monit registers credentials with
73 73
 ## M/Monit so M/Monit can smoothly communicate back to Monit and you don't
74 74
 ## have to register Monit credentials manually in M/Monit. It is possible to
75
-## disable credential registration using the commented out option below. 
75
+## disable credential registration using the commented out option below.
76 76
 ## Though, if safety is a concern we recommend instead using https when
77 77
 ## communicating with M/Monit and send credentials encrypted.
78 78
 #
@@ -104,18 +104,18 @@ set mailserver localhost
104 104
 # set mail-format { from: monit@foo.bar }
105 105
 #
106 106
 #
107
-## You can set alert recipients whom will receive alerts if/when a 
108
-## service defined in this file has errors. Alerts may be restricted on 
109
-## events by using a filter as in the second example below. 
107
+## You can set alert recipients whom will receive alerts if/when a
108
+## service defined in this file has errors. Alerts may be restricted on
109
+## events by using a filter as in the second example below.
110 110
 #
111 111
 # set alert sysadm@foo.bar                       # receive all alerts
112 112
 # set alert manager@foo.bar only on { timeout }  # receive just service-
113 113
 #                                                # timeout alert
114 114
 #
115 115
 #
116
-## Monit has an embedded web server which can be used to view status of 
116
+## Monit has an embedded web server which can be used to view status of
117 117
 ## services monitored and manage services from a web interface. See the
118
-## Monit Wiki if you want to enable SSL for the web server. 
118
+## Monit Wiki if you want to enable SSL for the web server.
119 119
 #
120 120
 # set httpd port 2812 and
121 121
 #     use address localhost  # only accept connection from localhost
@@ -141,15 +141,15 @@ set mailserver localhost
141 141
 #    if cpu usage (system) > 30% then alert
142 142
 #    if cpu usage (wait) > 20% then alert
143 143
 #
144
-#    
144
+#
145 145
 ## Check if a file exists, checksum, permissions, uid and gid. In addition
146
-## to alert recipients in the global section, customized alert can be sent to 
147
-## additional recipients by specifying a local alert handler. The service may 
146
+## to alert recipients in the global section, customized alert can be sent to
147
+## additional recipients by specifying a local alert handler. The service may
148 148
 ## be grouped using the GROUP option. More than one group can be specified by
149 149
 ## repeating the 'group name' statement.
150
-#    
150
+#
151 151
 #  check file apache_bin with path /usr/local/apache/bin/httpd
152
-#    if failed checksum and 
152
+#    if failed checksum and
153 153
 #       expect the sum 8f7f419955cefa0b33a2ba316cba3659 then unmonitor
154 154
 #    if failed permission 755 then unmonitor
155 155
 #    if failed uid root then unmonitor
@@ -159,15 +159,15 @@ set mailserver localhost
159 159
 #        } with the mail-format { subject: Alarm! }
160 160
 #    group server
161 161
 #
162
-#    
162
+#
163 163
 ## Check that a process is running, in this case Apache, and that it respond
164 164
 ## to HTTP and HTTPS requests. Check its resource usage such as cpu and memory,
165
-## and number of children. If the process is not running, Monit will restart 
166
-## it by default. In case the service is restarted very often and the 
165
+## and number of children. If the process is not running, Monit will restart
166
+## it by default. In case the service is restarted very often and the
167 167
 ## problem remains, it is possible to disable monitoring using the TIMEOUT
168 168
 ## statement. This service depends on another service (apache_bin) which
169 169
 ## is defined above.
170
-#    
170
+#
171 171
 #  check process apache with pidfile /usr/local/apache/logs/httpd.pid
172 172
 #    start program = "/etc/init.d/httpd start" with timeout 60 seconds
173 173
 #    stop program  = "/etc/init.d/httpd stop"
@@ -176,7 +176,7 @@ set mailserver localhost
176 176
 #    if totalmem > 200.0 MB for 5 cycles then restart
177 177
 #    if children > 250 then restart
178 178
 #    if loadavg(5min) greater than 10 for 8 cycles then stop
179
-#    if failed host www.tildeslash.com port 80 protocol http 
179
+#    if failed host www.tildeslash.com port 80 protocol http
180 180
 #       and request "/somefile.html"
181 181
 #       then restart
182 182
 #    if failed port 443 type tcpssl protocol http
@@ -185,8 +185,8 @@ set mailserver localhost
185 185
 #    if 3 restarts within 5 cycles then timeout
186 186
 #    depends on apache_bin
187 187
 #    group server
188
-#    
189
-#    
188
+#
189
+#
190 190
 ## Check filesystem permissions, uid, gid, space and inode usage. Other services,
191 191
 ## such as databases, may depend on this resource and an automatically graceful
192 192
 ## stop may be cascaded to them before the filesystem will become full and data
@@ -205,7 +205,7 @@ set mailserver localhost
205 205
 #    group server
206 206
 #
207 207
 #
208
-## Check a file's timestamp. In this example, we test if a file is older 
208
+## Check a file's timestamp. In this example, we test if a file is older
209 209
 ## than 15 minutes and assume something is wrong if its not updated. Also,
210 210
 ## if the file size exceed a given limit, execute a script
211 211
 #
@@ -217,8 +217,8 @@ set mailserver localhost
217 217
 #    if size > 100 MB then exec "/my/cleanup/script" as uid dba and gid dba
218 218
 #
219 219
 #
220
-## Check directory permission, uid and gid.  An event is triggered if the 
221
-## directory does not belong to the user with uid 0 and gid 0.  In addition, 
220
+## Check directory permission, uid and gid.  An event is triggered if the
221
+## directory does not belong to the user with uid 0 and gid 0.  In addition,
222 222
 ## the permissions have to match the octal description of 755 (see chmod(1)).
223 223
 #
224 224
 #  check directory bin with path /bin
@@ -227,8 +227,8 @@ set mailserver localhost
227 227
 #    if failed gid 0 then unmonitor
228 228
 #
229 229
 #
230
-## Check a remote host availability by issuing a ping test and check the 
231
-## content of a response from a web server. Up to three pings are sent and 
230
+## Check a remote host availability by issuing a ping test and check the
231
+## content of a response from a web server. Up to three pings are sent and
232 232
 ## connection to a port and an application level network check is performed.
233 233
 #
234 234
 #  check host myserver with address 192.168.1.1

+ 6
- 6
roles/vpn/files/etc_rc.local Voir le fichier

@@ -1,15 +1,15 @@
1 1
 #!/bin/sh -e
2
-# 
2
+#
3 3
 # rc.local
4
-# 
4
+#
5 5
 # This script is executed at the end of each multiuser runlevel.
6 6
 # Make sure that the script will "exit 0" on success or any other
7 7
 # value on error.
8
-# 
8
+#
9 9
 # In order to enable or disable this script just change the execution
10 10
 # bits.
11
-# 
12
-  
11
+#
12
+
13 13
 iptables -A FORWARD -m state --state RELATED,ESTABLISHED -j ACCEPT
14 14
 iptables -A FORWARD -s 10.8.0.0/24 -j ACCEPT
15 15
 iptables -A FORWARD -j REJECT
@@ -17,4 +17,4 @@ iptables -t nat -A POSTROUTING -s 10.8.0.0/24 -o eth0 -j MASQUERADE
17 17
 
18 18
 /etc/init.d/dnsmasq restart
19 19
 
20
-exit 0
20
+exit 0

+ 21
- 21
roles/webmail/files/etc_roundcube_main.inc.php Voir le fichier

@@ -25,7 +25,7 @@ $rcmail_config['debug_level'] = 1;
25 25
 $rcmail_config['log_driver'] = 'file';
26 26
 
27 27
 // date format for log entries
28
-// (read http://php.net/manual/en/function.date.php for all format characters)  
28
+// (read http://php.net/manual/en/function.date.php for all format characters)
29 29
 $rcmail_config['log_date_format'] = 'd-M-Y H:i:s O';
30 30
 
31 31
 // Syslog ident string to use, if using the 'syslog' log driver.
@@ -70,7 +70,7 @@ $rcmail_config['smtp_debug'] = false;
70 70
 // %s - domain name after the '@' from e-mail address provided at login screen
71 71
 // For example %n = mail.domain.tld, %d = domain.tld
72 72
 // $rcmail_config['default_host'] = '';
73
-$rcmail_config['default_host'] = 'ssl://127.0.0.1:993'; 
73
+$rcmail_config['default_host'] = 'ssl://127.0.0.1:993';
74 74
 
75 75
 // TCP port used for IMAP connections
76 76
 // $rcmail_config['default_port'] = 143;
@@ -134,7 +134,7 @@ $rcmail_config['messages_cache'] = false;
134 134
 // %z - IMAP domain (IMAP hostname without the first part)
135 135
 // For example %n = mail.domain.tld, %d = domain.tld
136 136
 // $rcmail_config['smtp_server'] = '';
137
-$rcmail_config['smtp_server'] = 'ssl://127.0.0.1'; 
137
+$rcmail_config['smtp_server'] = 'ssl://127.0.0.1';
138 138
 
139 139
 // SMTP port (default is 25; 465 for SSL)
140 140
 $rcmail_config['smtp_port'] = 465;
@@ -142,12 +142,12 @@ $rcmail_config['smtp_port'] = 465;
142 142
 // SMTP username (if required) if you use %u as the username Roundcube
143 143
 // will use the current username for login
144 144
 //$rcmail_config['smtp_user'] = '';
145
-$rcmail_config['smtp_user'] = '%u'; 
145
+$rcmail_config['smtp_user'] = '%u';
146 146
 
147 147
 // SMTP password (if required) if you use %p as the password Roundcube
148 148
 // will use the current user's password for login
149 149
 //$rcmail_config['smtp_pass'] = '';
150
-$rcmail_config['smtp_pass'] = '%p'; 
150
+$rcmail_config['smtp_pass'] = '%p';
151 151
 
152 152
 // SMTP AUTH type (DIGEST-MD5, CRAM-MD5, LOGIN, PLAIN or empty to use
153 153
 // best server supported one)
@@ -159,10 +159,10 @@ $rcmail_config['smtp_auth_cid'] = null;
159 159
 // Optional SMTP authentication password to be used for smtp_auth_cid
160 160
 $rcmail_config['smtp_auth_pw'] = null;
161 161
 
162
-// SMTP HELO host 
163
-// Hostname to give to the remote server for SMTP 'HELO' or 'EHLO' messages 
164
-// Leave this blank and you will get the server variable 'server_name' or 
165
-// localhost if that isn't defined. 
162
+// SMTP HELO host
163
+// Hostname to give to the remote server for SMTP 'HELO' or 'EHLO' messages
164
+// Leave this blank and you will get the server variable 'server_name' or
165
+// localhost if that isn't defined.
166 166
 $rcmail_config['smtp_helo_host'] = '';
167 167
 
168 168
 // SMTP connection timeout, in seconds. Default: 0 (no limit)
@@ -283,11 +283,11 @@ $rcmail_config['password_charset'] = 'ISO-8859-1';
283 283
 $rcmail_config['sendmail_delay'] = 0;
284 284
 
285 285
 // Maximum number of recipients per message. Default: 0 (no limit)
286
-$rcmail_config['max_recipients'] = 0; 
286
+$rcmail_config['max_recipients'] = 0;
287 287
 
288 288
 // Maximum allowednumber of members of an address group. Default: 0 (no limit)
289 289
 // If 'max_recipients' is set this value should be less or equal
290
-$rcmail_config['max_group_members'] = 0; 
290
+$rcmail_config['max_group_members'] = 0;
291 291
 
292 292
 // add this user-agent to message headers when sending
293 293
 $rcmail_config['useragent'] = 'Roundcube Webmail/'.RCMAIL_VERSION;
@@ -368,7 +368,7 @@ $rcmail_config['plugins'] = array();
368 368
 // USER INTERFACE
369 369
 // ----------------------------------
370 370
 
371
-// default messages sort column. Use empty value for default server's sorting, 
371
+// default messages sort column. Use empty value for default server's sorting,
372 372
 // or 'arrival', 'date', 'subject', 'from', 'to', 'size', 'cc'
373 373
 $rcmail_config['message_sort_col'] = '';
374 374
 
@@ -427,12 +427,12 @@ $rcmail_config['default_imap_folders'] = array('INBOX', 'Drafts', 'Sent', 'Junk'
427 427
 
428 428
 // automatically create the above listed default folders on first login
429 429
 // $rcmail_config['create_default_folders'] = false;
430
-$rcmail_config['create_default_folders'] = true; 
430
+$rcmail_config['create_default_folders'] = true;
431 431
 
432 432
 // protect the default folders from renames, deletes, and subscription changes
433 433
 $rcmail_config['protect_default_folders'] = true;
434 434
 
435
-// if in your system 0 quota means no limit set this option to true 
435
+// if in your system 0 quota means no limit set this option to true
436 436
 $rcmail_config['quota_zero_as_unlimited'] = false;
437 437
 
438 438
 // Make use of the built-in spell checker. It is based on GoogieSpell.
@@ -504,7 +504,7 @@ $rcmail_config['address_book_type'] = 'sql';
504 504
 // Array key must contain only safe characters, ie. a-zA-Z0-9_
505 505
 $rcmail_config['ldap_public'] = array();
506 506
 
507
-// If you are going to use LDAP for individual address books, you will need to 
507
+// If you are going to use LDAP for individual address books, you will need to
508 508
 // set 'user_specific' to true and use the variables to generate the appropriate DNs to access it.
509 509
 //
510 510
 // The recommended directory structure for LDAP is to store all the address book entries
@@ -605,7 +605,7 @@ $rcmail_config['ldap_public']['Verisign'] = array(
605 605
 // definition for contact groups (uncomment if no groups are supported)
606 606
 // for the groups base_dn, the user replacements %fu, %u, $d and %dc work as for base_dn (see above)
607 607
 // if the groups base_dn is empty, the contact base_dn is used for the groups as well
608
-// -> in this case, assure that groups and contacts are separated due to the concernig filters! 
608
+// -> in this case, assure that groups and contacts are separated due to the concernig filters!
609 609
 'groups'        => array(
610 610
 'base_dn'     => '',
611 611
 'scope'       => 'sub',   // search mode: sub|base|list
@@ -685,7 +685,7 @@ $rcmail_config['prefer_html'] = true;
685 685
 $rcmail_config['show_images'] = 0;
686 686
 
687 687
 // compose html formatted messages by default
688
-// 0 - never, 1 - always, 2 - on reply to HTML message only 
688
+// 0 - never, 1 - always, 2 - on reply to HTML message only
689 689
 $rcmail_config['htmleditor'] = 0;
690 690
 
691 691
 // show pretty dates as standard
@@ -707,7 +707,7 @@ $rcmail_config['logout_purge'] = false;
707 707
 // Compact INBOX on logout
708 708
 $rcmail_config['logout_expunge'] = false;
709 709
 
710
-// Display attached images below the message body 
710
+// Display attached images below the message body
711 711
 $rcmail_config['inline_images'] = true;
712 712
 
713 713
 // Encoding of long/non-ascii attachment names:
@@ -738,9 +738,9 @@ $rcmail_config['check_all_folders'] = false;
738 738
 // If true, after message delete/move, the next message will be displayed
739 739
 $rcmail_config['display_next'] = false;
740 740
 
741
-// 0 - Do not expand threads 
742
-// 1 - Expand all threads automatically 
743
-// 2 - Expand only threads with unread messages 
741
+// 0 - Do not expand threads
742
+// 1 - Expand all threads automatically
743
+// 2 - Expand only threads with unread messages
744 744
 $rcmail_config['autoexpand_threads'] = 0;
745 745
 
746 746
 // When replying place cursor above original message (top posting)

Chargement…
Annuler
Enregistrer