===========================================================
                                      .___ __  __   
          _________________  __ __  __| _/|__|/  |_ 
         / ___\_` __ \__  \ |  |  \/ __ | | \\_  __\
        / /_/  >  | \// __ \|  |  / /_/ | |  ||  |  
        \___  /|__|  (____  /____/\____ | |__||__|  
       /_____/            \/           \/           
              grep rough audit - static analysis tool
                  v2.8 written by @Wireghoul
=================================[justanotherhacker.com]===
ruby-puppet-forge-2.3.2/spec/fixtures/v3/modules__owner=puppetlabs.json-315-        "downloads": 628084,
ruby-puppet-forge-2.3.2/spec/fixtures/v3/modules__owner=puppetlabs.json:316:        "readme": "<section class=\"markdown\"><h1>Puppet Labs Standard Library</h1>\n\n<p><a href=\"https://travis-ci.org/puppetlabs/puppetlabs-stdlib\"><img src=\"https://travis-ci.org/puppetlabs/puppetlabs-stdlib.png?branch=master\" alt=\"Build Status\"></a></p>\n\n<p>This module provides a &quot;standard library&quot; of resources for developing Puppet\nModules.  This modules will include the following additions to Puppet</p>\n\n<ul>\n<li>Stages</li>\n<li>Facts</li>\n<li>Functions</li>\n<li>Defined resource types</li>\n<li>Types</li>\n<li>Providers</li>\n</ul>\n\n<p>This module is officially curated and provided by Puppet Labs.  The modules\nPuppet Labs writes and distributes will make heavy use of this standard\nlibrary.</p>\n\n<p>To report or research a bug with any part of this module, please go to\n<a href=\"http://projects.puppetlabs.com/projects/stdlib\">http://projects.puppetlabs.com/projects/stdlib</a></p>\n\n<h1>Versions</h1>\n\n<p>This module follows semver.org (v1.0.0) versioning guidelines.  The standard\nlibrary module is released as part of <a href=\"http://puppetlabs.com/puppet/puppet-enterprise/\">Puppet\nEnterprise</a> and as a result\nolder versions of Puppet Enterprise that Puppet Labs still supports will have\nbugfix maintenance branches periodically &quot;merged up&quot; into master.  The current\nlist of integration branches are:</p>\n\n<ul>\n<li>v2.1.x (v2.1.1 released in PE 1)</li>\n<li>v2.2.x (Never released as part of PE, only to the Forge)</li>\n<li>v2.3.x (Released in PE 2)</li>\n<li>v3.0.x (Never released as part of PE, only to the Forge)</li>\n<li>v4.0.x (Drops support for Puppet 2.7)</li>\n<li>master (mainline development branch)</li>\n</ul>\n\n<p>The first Puppet Enterprise version including the stdlib module is Puppet\nEnterprise 1.2.</p>\n\n<h1>Compatibility</h1>\n\n<table><thead>\n<tr>\n<th align=\"left\">Puppet Versions</th>\n<th align=\"center\">&lt; 2.6</th>\n<th align=\"center\">2.6</th>\n<th align=\"center\">2.7</th>\n<th align=\"center\">3.x</th>\n</tr>\n</thead><tbody>\n<tr>\n<td align=\"left\"><strong>stdlib 2.x</strong></td>\n<td align=\"center\">no</td>\n<td align=\"center\"><strong>yes</strong></td>\n<td align=\"center\"><strong>yes</strong></td>\n<td align=\"center\">no</td>\n</tr>\n<tr>\n<td align=\"left\"><strong>stdlib 3.x</strong></td>\n<td align=\"center\">no</td>\n<td align=\"center\">no</td>\n<td align=\"center\"><strong>yes</strong></td>\n<td align=\"center\"><strong>yes</strong></td>\n</tr>\n<tr>\n<td align=\"left\"><strong>stdlib 4.x</strong></td>\n<td align=\"center\">no</td>\n<td align=\"center\">no</td>\n<td align=\"center\">no</td>\n<td align=\"center\"><strong>yes</strong></td>\n</tr>\n</tbody></table>\n\n<p>The stdlib module does not work with Puppet versions released prior to Puppet\n2.6.0.</p>\n\n<h2>stdlib 2.x</h2>\n\n<p>All stdlib releases in the 2.0 major version support Puppet 2.6 and Puppet 2.7.</p>\n\n<h2>stdlib 3.x</h2>\n\n<p>The 3.0 major release of stdlib drops support for Puppet 2.6.  Stdlib 3.x\nsupports Puppet 2 and Puppet 3.</p>\n\n<h2>stdlib 4.x</h2>\n\n<p>The 4.0 major release of stdlib drops support for Puppet 2.7.  Stdlib 4.x\nsupports Puppet 3.  Notably, ruby 1.8.5 is no longer supported though ruby\n1.8.7, 1.9.3, and 2.0.0 are fully supported.</p>\n\n<h1>Functions</h1>\n\n<h2>abs</h2>\n\n<p>Returns the absolute value of a number, for example -34.56 becomes\n34.56. Takes a single integer and float value as an argument.</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>any2array</h2>\n\n<p>This converts any object to an array containing that object. Empty argument\nlists are converted to an empty array. Arrays are left untouched. Hashes are\nconverted to arrays of alternating keys and values.</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>bool2num</h2>\n\n<p>Converts a boolean to a number. Converts the values:\nfalse, f, 0, n, and no to 0\ntrue, t, 1, y, and yes to 1\n    Requires a single boolean or string as an input.</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>capitalize</h2>\n\n<p>Capitalizes the first letter of a string or array of strings.\nRequires either a single string or an array as an input.</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>chomp</h2>\n\n<p>Removes the record separator from the end of a string or an array of\nstrings, for example <code>hello\\n</code> becomes <code>hello</code>.\nRequires a single string or array as an input.</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>chop</h2>\n\n<p>Returns a new string with the last character removed. If the string ends\nwith <code>\\r\\n</code>, both characters are removed. Applying chop to an empty\nstring returns an empty string. If you wish to merely remove record\nseparators then you should use the <code>chomp</code> function.\nRequires a string or array of strings as input.</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>concat</h2>\n\n<p>Appends the contents of array 2 onto array 1.</p>\n\n<p><em>Example:</em></p>\n\n<pre><code>concat([&#39;1&#39;,&#39;2&#39;,&#39;3&#39;],[&#39;4&#39;,&#39;5&#39;,&#39;6&#39;])\n</code></pre>\n\n<p>Would result in:</p>\n\n<p>[&#39;1&#39;,&#39;2&#39;,&#39;3&#39;,&#39;4&#39;,&#39;5&#39;,&#39;6&#39;]</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>count</h2>\n\n<p>Takes an array as first argument and an optional second argument.\nCount the number of elements in array that matches second argument.\nIf called with only an array it counts the number of elements that are not nil/undef.</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>defined_with_params</h2>\n\n<p>Takes a resource reference and an optional hash of attributes.</p>\n\n<p>Returns true if a resource with the specified attributes has already been added\nto the catalog, and false otherwise.</p>\n\n<pre><code>user { &#39;dan&#39;:\n  ensure =&gt; present,\n}\n\nif ! defined_with_params(User[dan], {&#39;ensure&#39; =&gt; &#39;present&#39; }) {\n  user { &#39;dan&#39;: ensure =&gt; present, }\n}\n</code></pre>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>delete</h2>\n\n<p>Deletes all instances of a given element from an array, substring from a\nstring, or key from a hash.</p>\n\n<p><em>Examples:</em></p>\n\n<pre><code>delete([&#39;a&#39;,&#39;b&#39;,&#39;c&#39;,&#39;b&#39;], &#39;b&#39;)\nWould return: [&#39;a&#39;,&#39;c&#39;]\n\ndelete({&#39;a&#39;=&gt;1,&#39;b&#39;=&gt;2,&#39;c&#39;=&gt;3}, &#39;b&#39;)\nWould return: {&#39;a&#39;=&gt;1,&#39;c&#39;=&gt;3}\n\ndelete(&#39;abracadabra&#39;, &#39;bra&#39;)\nWould return: &#39;acada&#39;\n</code></pre>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>delete_at</h2>\n\n<p>Deletes a determined indexed value from an array.</p>\n\n<p><em>Examples:</em></p>\n\n<pre><code>delete_at([&#39;a&#39;,&#39;b&#39;,&#39;c&#39;], 1)\n</code></pre>\n\n<p>Would return: [&#39;a&#39;,&#39;c&#39;]</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>dirname</h2>\n\n<p>Returns the <code>dirname</code> of a path.</p>\n\n<p><em>Examples:</em></p>\n\n<pre><code>dirname(&#39;/path/to/a/file.ext&#39;)\n</code></pre>\n\n<p>Would return: &#39;/path/to/a&#39;</p>\n\n<h2>downcase</h2>\n\n<p>Converts the case of a string or all strings in an array to lower case.</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>empty</h2>\n\n<p>Returns true if the variable is empty.</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>ensure_packages</h2>\n\n<p>Takes a list of packages and only installs them if they don&#39;t already exist.</p>\n\n<ul>\n<li><em>Type</em>: statement</li>\n</ul>\n\n<h2>ensure_resource</h2>\n\n<p>Takes a resource type, title, and a list of attributes that describe a\nresource.</p>\n\n<pre><code>user { &#39;dan&#39;:\n  ensure =&gt; present,\n}\n</code></pre>\n\n<p>This example only creates the resource if it does not already exist:</p>\n\n<pre><code>ensure_resource(&#39;user, &#39;dan&#39;, {&#39;ensure&#39; =&gt; &#39;present&#39; })\n</code></pre>\n\n<p>If the resource already exists but does not match the specified parameters,\nthis function will attempt to recreate the resource leading to a duplicate\nresource definition error.</p>\n\n<p>An array of resources can also be passed in and each will be created with\nthe type and parameters specified if it doesn&#39;t already exist.</p>\n\n<pre><code>ensure_resource(&#39;user&#39;, [&#39;dan&#39;,&#39;alex&#39;], {&#39;ensure&#39; =&gt; &#39;present&#39;})\n</code></pre>\n\n<ul>\n<li><em>Type</em>: statement</li>\n</ul>\n\n<h2>flatten</h2>\n\n<p>This function flattens any deeply nested arrays and returns a single flat array\nas a result.</p>\n\n<p><em>Examples:</em></p>\n\n<pre><code>flatten([&#39;a&#39;, [&#39;b&#39;, [&#39;c&#39;]]])\n</code></pre>\n\n<p>Would return: [&#39;a&#39;,&#39;b&#39;,&#39;c&#39;]</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>floor</h2>\n\n<p>Returns the largest integer less or equal to the argument.\nTakes a single numeric value as an argument.</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>fqdn_rotate</h2>\n\n<p>Rotates an array a random number of times based on a nodes fqdn.</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>get_module_path</h2>\n\n<p>Returns the absolute path of the specified module for the current\nenvironment.</p>\n\n<p>Example:\n  $module_path = get_module_path(&#39;stdlib&#39;)</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>getparam</h2>\n\n<p>Takes a resource reference and name of the parameter and\nreturns value of resource&#39;s parameter.</p>\n\n<p><em>Examples:</em></p>\n\n<pre><code>define example_resource($param) {\n}\n\nexample_resource { &quot;example_resource_instance&quot;:\n    param =&gt; &quot;param_value&quot;\n}\n\ngetparam(Example_resource[&quot;example_resource_instance&quot;], &quot;param&quot;)\n</code></pre>\n\n<p>Would return: param_value</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>getvar</h2>\n\n<p>Lookup a variable in a remote namespace.</p>\n\n<p>For example:</p>\n\n<pre><code>$foo = getvar(&#39;site::data::foo&#39;)\n# Equivalent to $foo = $site::data::foo\n</code></pre>\n\n<p>This is useful if the namespace itself is stored in a string:</p>\n\n<pre><code>$datalocation = &#39;site::data&#39;\n$bar = getvar(&quot;${datalocation}::bar&quot;)\n# Equivalent to $bar = $site::data::bar\n</code></pre>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>grep</h2>\n\n<p>This function searches through an array and returns any elements that match\nthe provided regular expression.</p>\n\n<p><em>Examples:</em></p>\n\n<pre><code>grep([&#39;aaa&#39;,&#39;bbb&#39;,&#39;ccc&#39;,&#39;aaaddd&#39;], &#39;aaa&#39;)\n</code></pre>\n\n<p>Would return:</p>\n\n<pre><code>[&#39;aaa&#39;,&#39;aaaddd&#39;]\n</code></pre>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>has_interface_with</h2>\n\n<p>Returns boolean based on kind and value:</p>\n\n<ul>\n<li>macaddress</li>\n<li>netmask</li>\n<li>ipaddress</li>\n<li>network</li>\n</ul>\n\n<p>has_interface_with(&quot;macaddress&quot;, &quot;x:x:x:x:x:x&quot;)\nhas_interface_with(&quot;ipaddress&quot;, &quot;127.0.0.1&quot;)    =&gt; true\netc.</p>\n\n<p>If no &quot;kind&quot; is given, then the presence of the interface is checked:\nhas_interface_with(&quot;lo&quot;)                        =&gt; true</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>has_ip_address</h2>\n\n<p>Returns true if the client has the requested IP address on some interface.</p>\n\n<p>This function iterates through the &#39;interfaces&#39; fact and checks the\n&#39;ipaddress_IFACE&#39; facts, performing a simple string comparison.</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>has_ip_network</h2>\n\n<p>Returns true if the client has an IP address within the requested network.</p>\n\n<p>This function iterates through the &#39;interfaces&#39; fact and checks the\n&#39;network_IFACE&#39; facts, performing a simple string comparision.</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>has_key</h2>\n\n<p>Determine if a hash has a certain key value.</p>\n\n<p>Example:</p>\n\n<pre><code>$my_hash = {&#39;key_one&#39; =&gt; &#39;value_one&#39;}\nif has_key($my_hash, &#39;key_two&#39;) {\n  notice(&#39;we will not reach here&#39;)\n}\nif has_key($my_hash, &#39;key_one&#39;) {\n  notice(&#39;this will be printed&#39;)\n}\n</code></pre>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>hash</h2>\n\n<p>This function converts an array into a hash.</p>\n\n<p><em>Examples:</em></p>\n\n<pre><code>hash([&#39;a&#39;,1,&#39;b&#39;,2,&#39;c&#39;,3])\n</code></pre>\n\n<p>Would return: {&#39;a&#39;=&gt;1,&#39;b&#39;=&gt;2,&#39;c&#39;=&gt;3}</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>is_array</h2>\n\n<p>Returns true if the variable passed to this function is an array.</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>is_domain_name</h2>\n\n<p>Returns true if the string passed to this function is a syntactically correct domain name.</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>is_float</h2>\n\n<p>Returns true if the variable passed to this function is a float.</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>is_function_available</h2>\n\n<p>This function accepts a string as an argument, determines whether the\nPuppet runtime has access to a function by that name.  It returns a\ntrue if the function exists, false if not.</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>is_hash</h2>\n\n<p>Returns true if the variable passed to this function is a hash.</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>is_integer</h2>\n\n<p>Returns true if the variable returned to this string is an integer.</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>is_ip_address</h2>\n\n<p>Returns true if the string passed to this function is a valid IP address.</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>is_mac_address</h2>\n\n<p>Returns true if the string passed to this function is a valid mac address.</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>is_numeric</h2>\n\n<p>Returns true if the variable passed to this function is a number.</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>is_string</h2>\n\n<p>Returns true if the variable passed to this function is a string.</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>join</h2>\n\n<p>This function joins an array into a string using a seperator.</p>\n\n<p><em>Examples:</em></p>\n\n<pre><code>join([&#39;a&#39;,&#39;b&#39;,&#39;c&#39;], &quot;,&quot;)\n</code></pre>\n\n<p>Would result in: &quot;a,b,c&quot;</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>join_keys_to_values</h2>\n\n<p>This function joins each key of a hash to that key&#39;s corresponding value with a\nseparator. Keys and values are cast to strings. The return value is an array in\nwhich each element is one joined key/value pair.</p>\n\n<p><em>Examples:</em></p>\n\n<pre><code>join_keys_to_values({&#39;a&#39;=&gt;1,&#39;b&#39;=&gt;2}, &quot; is &quot;)\n</code></pre>\n\n<p>Would result in: [&quot;a is 1&quot;,&quot;b is 2&quot;]</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>keys</h2>\n\n<p>Returns the keys of a hash as an array.</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>loadyaml</h2>\n\n<p>Load a YAML file containing an array, string, or hash, and return the data\nin the corresponding native data type.</p>\n\n<p>For example:</p>\n\n<pre><code>$myhash = loadyaml(&#39;/etc/puppet/data/myhash.yaml&#39;)\n</code></pre>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>lstrip</h2>\n\n<p>Strips leading spaces to the left of a string.</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>max</h2>\n\n<p>Returns the highest value of all arguments.\nRequires at least one argument.</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>member</h2>\n\n<p>This function determines if a variable is a member of an array.</p>\n\n<p><em>Examples:</em></p>\n\n<pre><code>member([&#39;a&#39;,&#39;b&#39;], &#39;b&#39;)\n</code></pre>\n\n<p>Would return: true</p>\n\n<pre><code>member([&#39;a&#39;,&#39;b&#39;], &#39;c&#39;)\n</code></pre>\n\n<p>Would return: false</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>merge</h2>\n\n<p>Merges two or more hashes together and returns the resulting hash.</p>\n\n<p>For example:</p>\n\n<pre><code>$hash1 = {&#39;one&#39; =&gt; 1, &#39;two&#39;, =&gt; 2}\n$hash2 = {&#39;two&#39; =&gt; &#39;dos&#39;, &#39;three&#39;, =&gt; &#39;tres&#39;}\n$merged_hash = merge($hash1, $hash2)\n# The resulting hash is equivalent to:\n# $merged_hash =  {&#39;one&#39; =&gt; 1, &#39;two&#39; =&gt; &#39;dos&#39;, &#39;three&#39; =&gt; &#39;tres&#39;}\n</code></pre>\n\n<p>When there is a duplicate key, the key in the rightmost hash will &quot;win.&quot;</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>min</h2>\n\n<p>Returns the lowest value of all arguments.\nRequires at least one argument.</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>num2bool</h2>\n\n<p>This function converts a number or a string representation of a number into a\ntrue boolean. Zero or anything non-numeric becomes false. Numbers higher then 0\nbecome true.</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>parsejson</h2>\n\n<p>This function accepts JSON as a string and converts into the correct Puppet\nstructure.</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>parseyaml</h2>\n\n<p>This function accepts YAML as a string and converts it into the correct\nPuppet structure.</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>pick</h2>\n\n<p>This function is similar to a coalesce function in SQL in that it will return\nthe first value in a list of values that is not undefined or an empty string\n(two things in Puppet that will return a boolean false value). Typically,\nthis function is used to check for a value in the Puppet Dashboard/Enterprise\nConsole, and failover to a default value like the following:</p>\n\n<pre><code>$real_jenkins_version = pick($::jenkins_version, &#39;1.449&#39;)\n</code></pre>\n\n<p>The value of $real_jenkins_version will first look for a top-scope variable\ncalled &#39;jenkins_version&#39; (note that parameters set in the Puppet Dashboard/\nEnterprise Console are brought into Puppet as top-scope variables), and,\nfailing that, will use a default value of 1.449.</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>prefix</h2>\n\n<p>This function applies a prefix to all elements in an array.</p>\n\n<p><em>Examples:</em></p>\n\n<pre><code>prefix([&#39;a&#39;,&#39;b&#39;,&#39;c&#39;], &#39;p&#39;)\n</code></pre>\n\n<p>Will return: [&#39;pa&#39;,&#39;pb&#39;,&#39;pc&#39;]</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>range</h2>\n\n<p>When given range in the form of (start, stop) it will extrapolate a range as\nan array.</p>\n\n<p><em>Examples:</em></p>\n\n<pre><code>range(&quot;0&quot;, &quot;9&quot;)\n</code></pre>\n\n<p>Will return: [0,1,2,3,4,5,6,7,8,9]</p>\n\n<pre><code>range(&quot;00&quot;, &quot;09&quot;)\n</code></pre>\n\n<p>Will return: <a href=\"Zero%20padded%20strings%20are%20converted%20to%0Aintegers%20automatically\">0,1,2,3,4,5,6,7,8,9</a></p>\n\n<pre><code>range(&quot;a&quot;, &quot;c&quot;)\n</code></pre>\n\n<p>Will return: [&quot;a&quot;,&quot;b&quot;,&quot;c&quot;]</p>\n\n<pre><code>range(&quot;host01&quot;, &quot;host10&quot;)\n</code></pre>\n\n<p>Will return: [&quot;host01&quot;, &quot;host02&quot;, ..., &quot;host09&quot;, &quot;host10&quot;]</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>reject</h2>\n\n<p>This function searches through an array and rejects all elements that match\nthe provided regular expression.</p>\n\n<p><em>Examples:</em></p>\n\n<pre><code>reject([&#39;aaa&#39;,&#39;bbb&#39;,&#39;ccc&#39;,&#39;aaaddd&#39;], &#39;aaa&#39;)\n</code></pre>\n\n<p>Would return:</p>\n\n<pre><code>[&#39;bbb&#39;,&#39;ccc&#39;]\n</code></pre>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>reverse</h2>\n\n<p>Reverses the order of a string or array.</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>rstrip</h2>\n\n<p>Strips leading spaces to the right of the string.</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>shuffle</h2>\n\n<p>Randomizes the order of a string or array elements.</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>size</h2>\n\n<p>Returns the number of elements in a string or array.</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>sort</h2>\n\n<p>Sorts strings and arrays lexically.</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>squeeze</h2>\n\n<p>Returns a new string where runs of the same character that occur in this set\nare replaced by a single character.</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>str2bool</h2>\n\n<p>This converts a string to a boolean. This attempt to convert strings that\ncontain things like: y, 1, t, true to &#39;true&#39; and strings that contain things\nlike: 0, f, n, false, no to &#39;false&#39;.</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>str2saltedsha512</h2>\n\n<p>This converts a string to a salted-SHA512 password hash (which is used for\nOS X versions &gt;= 10.7). Given any simple string, you will get a hex version\nof a salted-SHA512 password hash that can be inserted into your Puppet\nmanifests as a valid password attribute.</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>strftime</h2>\n\n<p>This function returns formatted time.</p>\n\n<p><em>Examples:</em></p>\n\n<p>To return the time since epoch:</p>\n\n<pre><code>strftime(&quot;%s&quot;)\n</code></pre>\n\n<p>To return the date:</p>\n\n<pre><code>strftime(&quot;%Y-%m-%d&quot;)\n</code></pre>\n\n<p><em>Format meaning:</em></p>\n\n<pre><code>%a - The abbreviated weekday name (``Sun&#39;&#39;)\n%A - The  full  weekday  name (``Sunday&#39;&#39;)\n%b - The abbreviated month name (``Jan&#39;&#39;)\n%B - The  full  month  name (``January&#39;&#39;)\n%c - The preferred local date and time representation\n%C - Century (20 in 2009)\n%d - Day of the month (01..31)\n%D - Date (%m/%d/%y)\n%e - Day of the month, blank-padded ( 1..31)\n%F - Equivalent to %Y-%m-%d (the ISO 8601 date format)\n%h - Equivalent to %b\n%H - Hour of the day, 24-hour clock (00..23)\n%I - Hour of the day, 12-hour clock (01..12)\n%j - Day of the year (001..366)\n%k - hour, 24-hour clock, blank-padded ( 0..23)\n%l - hour, 12-hour clock, blank-padded ( 0..12)\n%L - Millisecond of the second (000..999)\n%m - Month of the year (01..12)\n%M - Minute of the hour (00..59)\n%n - Newline (\n</code></pre>\n\n<p>)\n    %N - Fractional seconds digits, default is 9 digits (nanosecond)\n            %3N  millisecond (3 digits)\n            %6N  microsecond (6 digits)\n            %9N  nanosecond (9 digits)\n    %p - Meridian indicator (<code>AM&#39;&#39;  or</code>PM&#39;&#39;)\n    %P - Meridian indicator (<code>am&#39;&#39;  or</code>pm&#39;&#39;)\n    %r - time, 12-hour (same as %I:%M:%S %p)\n    %R - time, 24-hour (%H:%M)\n    %s - Number of seconds since 1970-01-01 00:00:00 UTC.\n    %S - Second of the minute (00..60)\n    %t - Tab character (    )\n    %T - time, 24-hour (%H:%M:%S)\n    %u - Day of the week as a decimal, Monday being 1. (1..7)\n    %U - Week  number  of the current year,\n            starting with the first Sunday as the first\n            day of the first week (00..53)\n    %v - VMS date (%e-%b-%Y)\n    %V - Week number of year according to ISO 8601 (01..53)\n    %W - Week  number  of the current year,\n            starting with the first Monday as the first\n            day of the first week (00..53)\n    %w - Day of the week (Sunday is 0, 0..6)\n    %x - Preferred representation for the date alone, no time\n    %X - Preferred representation for the time alone, no date\n    %y - Year without a century (00..99)\n    %Y - Year with century\n    %z - Time zone as  hour offset from UTC (e.g. +0900)\n    %Z - Time zone name\n    %% - Literal ``%&#39;&#39; character</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>strip</h2>\n\n<p>This function removes leading and trailing whitespace from a string or from\nevery string inside an array.</p>\n\n<p><em>Examples:</em></p>\n\n<pre><code>strip(&quot;    aaa   &quot;)\n</code></pre>\n\n<p>Would result in: &quot;aaa&quot;</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>suffix</h2>\n\n<p>This function applies a suffix to all elements in an array.</p>\n\n<p><em>Examples:</em></p>\n\n<pre><code>suffix([&#39;a&#39;,&#39;b&#39;,&#39;c&#39;], &#39;p&#39;)\n</code></pre>\n\n<p>Will return: [&#39;ap&#39;,&#39;bp&#39;,&#39;cp&#39;]</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>swapcase</h2>\n\n<p>This function will swap the existing case of a string.</p>\n\n<p><em>Examples:</em></p>\n\n<pre><code>swapcase(&quot;aBcD&quot;)\n</code></pre>\n\n<p>Would result in: &quot;AbCd&quot;</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>time</h2>\n\n<p>This function will return the current time since epoch as an integer.</p>\n\n<p><em>Examples:</em></p>\n\n<pre><code>time()\n</code></pre>\n\n<p>Will return something like: 1311972653</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>to_bytes</h2>\n\n<p>Converts the argument into bytes, for example 4 kB becomes 4096.\nTakes a single string value as an argument.</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>type</h2>\n\n<p>Returns the type when passed a variable. Type can be one of:</p>\n\n<ul>\n<li>string</li>\n<li>array</li>\n<li>hash</li>\n<li>float</li>\n<li>integer</li>\n<li><p>boolean</p></li>\n<li><p><em>Type</em>: rvalue</p></li>\n</ul>\n\n<h2>unique</h2>\n\n<p>This function will remove duplicates from strings and arrays.</p>\n\n<p><em>Examples:</em></p>\n\n<pre><code>unique(&quot;aabbcc&quot;)\n</code></pre>\n\n<p>Will return:</p>\n\n<pre><code>abc\n</code></pre>\n\n<p>You can also use this with arrays:</p>\n\n<pre><code>unique([&quot;a&quot;,&quot;a&quot;,&quot;b&quot;,&quot;b&quot;,&quot;c&quot;,&quot;c&quot;])\n</code></pre>\n\n<p>This returns:</p>\n\n<pre><code>[&quot;a&quot;,&quot;b&quot;,&quot;c&quot;]\n</code></pre>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>upcase</h2>\n\n<p>Converts a string or an array of strings to uppercase.</p>\n\n<p><em>Examples:</em></p>\n\n<pre><code>upcase(&quot;abcd&quot;)\n</code></pre>\n\n<p>Will return:</p>\n\n<pre><code>ASDF\n</code></pre>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>uriescape</h2>\n\n<p>Urlencodes a string or array of strings.\nRequires either a single string or an array as an input.</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>validate_absolute_path</h2>\n\n<p>Validate the string represents an absolute path in the filesystem.  This function works\nfor windows and unix style paths.</p>\n\n<p>The following values will pass:</p>\n\n<pre><code>$my_path = &quot;C:/Program Files (x86)/Puppet Labs/Puppet&quot;\nvalidate_absolute_path($my_path)\n$my_path2 = &quot;/var/lib/puppet&quot;\nvalidate_absolute_path($my_path2)\n</code></pre>\n\n<p>The following values will fail, causing compilation to abort:</p>\n\n<pre><code>validate_absolute_path(true)\nvalidate_absolute_path([ &#39;var/lib/puppet&#39;, &#39;/var/foo&#39; ])\nvalidate_absolute_path([ &#39;/var/lib/puppet&#39;, &#39;var/foo&#39; ])\n$undefined = undef\nvalidate_absolute_path($undefined)\n</code></pre>\n\n<ul>\n<li><em>Type</em>: statement</li>\n</ul>\n\n<h2>validate_array</h2>\n\n<p>Validate that all passed values are array data structures. Abort catalog\ncompilation if any value fails this check.</p>\n\n<p>The following values will pass:</p>\n\n<pre><code>$my_array = [ &#39;one&#39;, &#39;two&#39; ]\nvalidate_array($my_array)\n</code></pre>\n\n<p>The following values will fail, causing compilation to abort:</p>\n\n<pre><code>validate_array(true)\nvalidate_array(&#39;some_string&#39;)\n$undefined = undef\nvalidate_array($undefined)\n</code></pre>\n\n<ul>\n<li><em>Type</em>: statement</li>\n</ul>\n\n<h2>validate_augeas</h2>\n\n<p>Perform validation of a string using an Augeas lens\nThe first argument of this function should be a string to\ntest, and the second argument should be the name of the Augeas lens to use.\nIf Augeas fails to parse the string with the lens, the compilation will\nabort with a parse error.</p>\n\n<p>A third argument can be specified, listing paths which should\nnot be found in the file. The <code>$file</code> variable points to the location\nof the temporary file being tested in the Augeas tree.</p>\n\n<p>For example, if you want to make sure your passwd content never contains\na user <code>foo</code>, you could write:</p>\n\n<pre><code>validate_augeas($passwdcontent, &#39;Passwd.lns&#39;, [&#39;$file/foo&#39;])\n</code></pre>\n\n<p>Or if you wanted to ensure that no users used the &#39;/bin/barsh&#39; shell,\nyou could use:</p>\n\n<pre><code>validate_augeas($passwdcontent, &#39;Passwd.lns&#39;, [&#39;$file/*[shell=&quot;/bin/barsh&quot;]&#39;]\n</code></pre>\n\n<p>If a fourth argument is specified, this will be the error message raised and\nseen by the user.</p>\n\n<p>A helpful error message can be returned like this:</p>\n\n<pre><code>validate_augeas($sudoerscontent, &#39;Sudoers.lns&#39;, [], &#39;Failed to validate sudoers content with Augeas&#39;)\n</code></pre>\n\n<ul>\n<li><em>Type</em>: statement</li>\n</ul>\n\n<h2>validate_bool</h2>\n\n<p>Validate that all passed values are either true or false. Abort catalog\ncompilation if any value fails this check.</p>\n\n<p>The following values will pass:</p>\n\n<pre><code>$iamtrue = true\nvalidate_bool(true)\nvalidate_bool(true, true, false, $iamtrue)\n</code></pre>\n\n<p>The following values will fail, causing compilation to abort:</p>\n\n<pre><code>$some_array = [ true ]\nvalidate_bool(&quot;false&quot;)\nvalidate_bool(&quot;true&quot;)\nvalidate_bool($some_array)\n</code></pre>\n\n<ul>\n<li><em>Type</em>: statement</li>\n</ul>\n\n<h2>validate_cmd</h2>\n\n<p>Perform validation of a string with an external command.\nThe first argument of this function should be a string to\ntest, and the second argument should be a path to a test command\ntaking a file as last argument. If the command, launched against\na tempfile containing the passed string, returns a non-null value,\ncompilation will abort with a parse error.</p>\n\n<p>If a third argument is specified, this will be the error message raised and\nseen by the user.</p>\n\n<p>A helpful error message can be returned like this:</p>\n\n<p>Example:</p>\n\n<pre><code>validate_cmd($sudoerscontent, &#39;/usr/sbin/visudo -c -f&#39;, &#39;Visudo failed to validate sudoers content&#39;)\n</code></pre>\n\n<ul>\n<li><em>Type</em>: statement</li>\n</ul>\n\n<h2>validate_hash</h2>\n\n<p>Validate that all passed values are hash data structures. Abort catalog\ncompilation if any value fails this check.</p>\n\n<p>The following values will pass:</p>\n\n<pre><code>$my_hash = { &#39;one&#39; =&gt; &#39;two&#39; }\nvalidate_hash($my_hash)\n</code></pre>\n\n<p>The following values will fail, causing compilation to abort:</p>\n\n<pre><code>validate_hash(true)\nvalidate_hash(&#39;some_string&#39;)\n$undefined = undef\nvalidate_hash($undefined)\n</code></pre>\n\n<ul>\n<li><em>Type</em>: statement</li>\n</ul>\n\n<h2>validate_re</h2>\n\n<p>Perform simple validation of a string against one or more regular\nexpressions. The first argument of this function should be a string to\ntest, and the second argument should be a stringified regular expression\n(without the // delimiters) or an array of regular expressions.  If none\nof the regular expressions match the string passed in, compilation will\nabort with a parse error.</p>\n\n<p>If a third argument is specified, this will be the error message raised and\nseen by the user.</p>\n\n<p>The following strings will validate against the regular expressions:</p>\n\n<pre><code>validate_re(&#39;one&#39;, &#39;^one$&#39;)\nvalidate_re(&#39;one&#39;, [ &#39;^one&#39;, &#39;^two&#39; ])\n</code></pre>\n\n<p>The following strings will fail to validate, causing compilation to abort:</p>\n\n<pre><code>validate_re(&#39;one&#39;, [ &#39;^two&#39;, &#39;^three&#39; ])\n</code></pre>\n\n<p>A helpful error message can be returned like this:</p>\n\n<pre><code>validate_re($::puppetversion, &#39;^2.7&#39;, &#39;The $puppetversion fact value does not match 2.7&#39;)\n</code></pre>\n\n<ul>\n<li><em>Type</em>: statement</li>\n</ul>\n\n<h2>validate_slength</h2>\n\n<p>Validate that the first argument is a string (or an array of strings), and\nless/equal to than the length of the second argument.  It fails if the first\nargument is not a string or array of strings, and if arg 2 is not convertable\nto a number.</p>\n\n<p>The following values will pass:</p>\n\n<p>validate_slength(&quot;discombobulate&quot;,17)\n  validate_slength([&quot;discombobulate&quot;,&quot;moo&quot;],17)</p>\n\n<p>The following valueis will not:</p>\n\n<p>validate_slength(&quot;discombobulate&quot;,1)\n  validate_slength([&quot;discombobulate&quot;,&quot;thermometer&quot;],5)</p>\n\n<ul>\n<li><em>Type</em>: statement</li>\n</ul>\n\n<h2>validate_string</h2>\n\n<p>Validate that all passed values are string data structures. Abort catalog\ncompilation if any value fails this check.</p>\n\n<p>The following values will pass:</p>\n\n<pre><code>$my_string = &quot;one two&quot;\nvalidate_string($my_string, &#39;three&#39;)\n</code></pre>\n\n<p>The following values will fail, causing compilation to abort:</p>\n\n<pre><code>validate_string(true)\nvalidate_string([ &#39;some&#39;, &#39;array&#39; ])\n$undefined = undef\nvalidate_string($undefined)\n</code></pre>\n\n<ul>\n<li><em>Type</em>: statement</li>\n</ul>\n\n<h2>values</h2>\n\n<p>When given a hash this function will return the values of that hash.</p>\n\n<p><em>Examples:</em></p>\n\n<pre><code>$hash = {\n  &#39;a&#39; =&gt; 1,\n  &#39;b&#39; =&gt; 2,\n  &#39;c&#39; =&gt; 3,\n}\nvalues($hash)\n</code></pre>\n\n<p>This example would return:</p>\n\n<pre><code>[1,2,3]\n</code></pre>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>values_at</h2>\n\n<p>Finds value inside an array based on location.</p>\n\n<p>The first argument is the array you want to analyze, and the second element can\nbe a combination of:</p>\n\n<ul>\n<li>A single numeric index</li>\n<li>A range in the form of &#39;start-stop&#39; (eg. 4-9)</li>\n<li>An array combining the above</li>\n</ul>\n\n<p><em>Examples</em>:</p>\n\n<pre><code>values_at([&#39;a&#39;,&#39;b&#39;,&#39;c&#39;], 2)\n</code></pre>\n\n<p>Would return [&#39;c&#39;].</p>\n\n<pre><code>values_at([&#39;a&#39;,&#39;b&#39;,&#39;c&#39;], [&quot;0-1&quot;])\n</code></pre>\n\n<p>Would return [&#39;a&#39;,&#39;b&#39;].</p>\n\n<pre><code>values_at([&#39;a&#39;,&#39;b&#39;,&#39;c&#39;,&#39;d&#39;,&#39;e&#39;], [0, &quot;2-3&quot;])\n</code></pre>\n\n<p>Would return [&#39;a&#39;,&#39;c&#39;,&#39;d&#39;].</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>zip</h2>\n\n<p>Takes one element from first array and merges corresponding elements from second array. This generates a sequence of n-element arrays, where n is one more than the count of arguments.</p>\n\n<p><em>Example:</em></p>\n\n<pre><code>zip([&#39;1&#39;,&#39;2&#39;,&#39;3&#39;],[&#39;4&#39;,&#39;5&#39;,&#39;6&#39;])\n</code></pre>\n\n<p>Would result in:</p>\n\n<pre><code>[&quot;1&quot;, &quot;4&quot;], [&quot;2&quot;, &quot;5&quot;], [&quot;3&quot;, &quot;6&quot;]\n</code></pre>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<p><em>This page autogenerated on 2013-04-11 13:54:25 -0700</em></p>\n</section>",
ruby-puppet-forge-2.3.2/spec/fixtures/v3/modules__owner=puppetlabs.json-317-        "changelog": "<section class=\"plaintext\"><pre>2013-05-06 - Jeff McCune &lt;jeff@puppetlabs.com&gt; - 4.1.0\n * (#20582) Restore facter_dot_d to stdlib for PE users (3b887c8)\n * (maint) Update Gemfile with GEM_FACTER_VERSION (f44d535)\n\n2013-05-06 - Alex Cline &lt;acline@us.ibm.com&gt; - 4.1.0\n * Terser method of string to array conversion courtesy of ethooz. (d38bce0)\n\n2013-05-06 - Alex Cline &lt;acline@us.ibm.com&gt; 4.1.0\n * Refactor ensure_resource expectations (b33cc24)\n\n2013-05-06 - Alex Cline &lt;acline@us.ibm.com&gt; 4.1.0\n * Changed str-to-array conversion and removed abbreviation. (de253db)\n\n2013-05-03 - Alex Cline &lt;acline@us.ibm.com&gt; 4.1.0\n * (#20548) Allow an array of resource titles to be passed into the ensure_resource function (e08734a)\n\n2013-05-02 - Raphaël Pinson &lt;raphael.pinson@camptocamp.com&gt; - 4.1.0\n * Add a dirname function (2ba9e47)\n\n2013-04-29 - Mark Smith-Guerrero &lt;msmithgu@gmail.com&gt; - 4.1.0\n * (maint) Fix a small typo in hash() description (928036a)\n\n2013-04-12 - Jeff McCune &lt;jeff@puppetlabs.com&gt; - 4.0.2\n * Update user information in gemspec to make the intent of the Gem clear.\n\n2013-04-11 - Jeff McCune &lt;jeff@puppetlabs.com&gt; - 4.0.1\n * Fix README function documentation (ab3e30c)\n\n2013-04-11 - Jeff McCune &lt;jeff@puppetlabs.com&gt; - 4.0.0\n * stdlib 4.0 drops support with Puppet 2.7\n * stdlib 4.0 preserves support with Puppet 3\n\n2013-04-11 - Jeff McCune &lt;jeff@puppetlabs.com&gt; - 4.0.0\n * Add ability to use puppet from git via bundler (9c5805f)\n\n2013-04-10 - Jeff McCune &lt;jeff@puppetlabs.com&gt; - 4.0.0\n * (maint) Make stdlib usable as a Ruby GEM (e81a45e)\n\n2013-04-10 - Erik Dalén &lt;dalen@spotify.com&gt; - 4.0.0\n * Add a count function (f28550e)\n\n2013-03-31 - Amos Shapira &lt;ashapira@atlassian.com&gt; - 4.0.0\n * (#19998) Implement any2array (7a2fb80)\n\n2013-03-29 - Steve Huff &lt;shuff@vecna.org&gt; - 4.0.0\n * (19864) num2bool match fix (8d217f0)\n\n2013-03-20 - Erik Dalén &lt;dalen@spotify.com&gt; - 4.0.0\n * Allow comparisons of Numeric and number as String (ff5dd5d)\n\n2013-03-26 - Richard Soderberg &lt;rsoderberg@mozilla.com&gt; - 4.0.0\n * add suffix function to accompany the prefix function (88a93ac)\n\n2013-03-19 - Kristof Willaert &lt;kristof.willaert@gmail.com&gt; - 4.0.0\n * Add floor function implementation and unit tests (0527341)\n\n2012-04-03 - Eric Shamow &lt;eric@puppetlabs.com&gt; - 4.0.0\n * (#13610) Add is_function_available to stdlib (961dcab)\n\n2012-12-17 - Justin Lambert &lt;jlambert@eml.cc&gt; - 4.0.0\n * str2bool should return a boolean if called with a boolean (5d5a4d4)\n\n2012-10-23 - Uwe Stuehler &lt;ustuehler@team.mobile.de&gt; - 4.0.0\n * Fix number of arguments check in flatten() (e80207b)\n\n2013-03-11 - Jeff McCune &lt;jeff@puppetlabs.com&gt; - 4.0.0\n * Add contributing document (96e19d0)\n\n2013-03-04 - Raphaël Pinson &lt;raphael.pinson@camptocamp.com&gt; - 4.0.0\n * Add missing documentation for validate_augeas and validate_cmd to README.markdown (a1510a1)\n\n2013-02-14 - Joshua Hoblitt &lt;jhoblitt@cpan.org&gt; - 4.0.0\n * (#19272) Add has_element() function (95cf3fe)\n\n2013-02-07 - Raphaël Pinson &lt;raphael.pinson@camptocamp.com&gt; - 4.0.0\n * validate_cmd(): Use Puppet::Util::Execution.execute when available (69248df)\n\n2012-12-06 - Raphaël Pinson &lt;raphink@gmail.com&gt; - 4.0.0\n * Add validate_augeas function (3a97c23)\n\n2012-12-06 - Raphaël Pinson &lt;raphink@gmail.com&gt; - 4.0.0\n * Add validate_cmd function (6902cc5)\n\n2013-01-14 - David Schmitt &lt;david@dasz.at&gt; - 4.0.0\n * Add geppetto project definition (b3fc0a3)\n\n2013-01-02 - Jaka Hudoklin &lt;jakahudoklin@gmail.com&gt; - 4.0.0\n * Add getparam function to get defined resource parameters (20e0e07)\n\n2013-01-05 - Jeff McCune &lt;jeff@puppetlabs.com&gt; - 4.0.0\n * (maint) Add Travis CI Support (d082046)\n\n2012-12-04 - Jeff McCune &lt;jeff@puppetlabs.com&gt; - 4.0.0\n * Clarify that stdlib 3 supports Puppet 3 (3a6085f)\n\n2012-11-30 - Erik Dalén &lt;dalen@spotify.com&gt; - 4.0.0\n * maint: style guideline fixes (7742e5f)\n\n2012-11-09 - James Fryman &lt;james@frymanet.com&gt; - 4.0.0\n * puppet-lint cleanup (88acc52)\n\n2012-11-06 - Joe Julian &lt;me@joejulian.name&gt; - 4.0.0\n * Add function, uriescape, to URI.escape strings. Redmine #17459 (fd52b8d)\n\n2012-09-18 - Chad Metcalf &lt;chad@wibidata.com&gt; - 3.2.0\n * Add an ensure_packages function. (8a8c09e)\n\n2012-11-23 - Erik Dalén &lt;dalen@spotify.com&gt; - 3.2.0\n * (#17797) min() and max() functions (9954133)\n\n2012-05-23 - Peter Meier &lt;peter.meier@immerda.ch&gt; - 3.2.0\n * (#14670) autorequire a file_line resource&#x27;s path (dfcee63)\n\n2012-11-19 - Joshua Harlan Lifton &lt;lifton@puppetlabs.com&gt; - 3.2.0\n * Add join_keys_to_values function (ee0f2b3)\n\n2012-11-17 - Joshua Harlan Lifton &lt;lifton@puppetlabs.com&gt; - 3.2.0\n * Extend delete function for strings and hashes (7322e4d)\n\n2012-08-03 - Gary Larizza &lt;gary@puppetlabs.com&gt; - 3.2.0\n * Add the pick() function (ba6dd13)\n\n2012-03-20 - Wil Cooley &lt;wcooley@pdx.edu&gt; - 3.2.0\n * (#13974) Add predicate functions for interface facts (f819417)\n\n2012-11-06 - Joe Julian &lt;me@joejulian.name&gt; - 3.2.0\n * Add function, uriescape, to URI.escape strings. Redmine #17459 (70f4a0e)\n\n2012-10-25 - Jeff McCune &lt;jeff@puppetlabs.com&gt; - 3.1.1\n * (maint) Fix spec failures resulting from Facter API changes (97f836f)\n\n2012-10-23 - Matthaus Owens &lt;matthaus@puppetlabs.com&gt; - 3.1.0\n * Add PE facts to stdlib (cdf3b05)\n\n2012-08-16 - Jeff McCune &lt;jeff@puppetlabs.com&gt; - 3.0.1\n * Fix accidental removal of facts_dot_d.rb in 3.0.0 release\n\n2012-08-16 - Jeff McCune &lt;jeff@puppetlabs.com&gt; - 3.0.0\n * stdlib 3.0 drops support with Puppet 2.6\n * stdlib 3.0 preserves support with Puppet 2.7\n\n2012-08-07 - Dan Bode &lt;dan@puppetlabs.com&gt; - 3.0.0\n * Add function ensure_resource and defined_with_params (ba789de)\n\n2012-07-10 - Hailee Kenney &lt;hailee@puppetlabs.com&gt; - 3.0.0\n * (#2157) Remove facter_dot_d for compatibility with external facts (f92574f)\n\n2012-04-10 - Chris Price &lt;chris@puppetlabs.com&gt; - 3.0.0\n * (#13693) moving logic from local spec_helper to puppetlabs_spec_helper (85f96df)\n\n2012-10-25 - Jeff McCune &lt;jeff@puppetlabs.com&gt; - 2.5.1\n * (maint) Fix spec failures resulting from Facter API changes (97f836f)\n\n2012-10-23 - Matthaus Owens &lt;matthaus@puppetlabs.com&gt; - 2.5.0\n * Add PE facts to stdlib (cdf3b05)\n\n2012-08-15 - Dan Bode &lt;dan@puppetlabs.com&gt; - 2.5.0\n * Explicitly load functions used by ensure_resource (9fc3063)\n\n2012-08-13 - Dan Bode &lt;dan@puppetlabs.com&gt; - 2.5.0\n * Add better docs about duplicate resource failures (97d327a)\n\n2012-08-13 - Dan Bode &lt;dan@puppetlabs.com&gt; - 2.5.0\n * Handle undef for parameter argument (4f8b133)\n\n2012-08-07 - Dan Bode &lt;dan@puppetlabs.com&gt; - 2.5.0\n * Add function ensure_resource and defined_with_params (a0cb8cd)\n\n2012-08-20 - Jeff McCune &lt;jeff@puppetlabs.com&gt; - 2.5.0\n * Disable tests that fail on 2.6.x due to #15912 (c81496e)\n\n2012-08-20 - Jeff McCune &lt;jeff@puppetlabs.com&gt; - 2.5.0\n * (Maint) Fix mis-use of rvalue functions as statements (4492913)\n\n2012-08-20 - Jeff McCune &lt;jeff@puppetlabs.com&gt; - 2.5.0\n * Add .rspec file to repo root (88789e8)\n\n2012-06-07 - Chris Price &lt;chris@puppetlabs.com&gt; - 2.4.0\n * Add support for a &#x27;match&#x27; parameter to file_line (a06c0d8)\n\n2012-08-07 - Erik Dalén &lt;dalen@spotify.com&gt; - 2.4.0\n * (#15872) Add to_bytes function (247b69c)\n\n2012-07-19 - Jeff McCune &lt;jeff@puppetlabs.com&gt; - 2.4.0\n * (Maint) use PuppetlabsSpec::PuppetInternals.scope (master) (deafe88)\n\n2012-07-10 - Hailee Kenney &lt;hailee@puppetlabs.com&gt; - 2.4.0\n * (#2157) Make facts_dot_d compatible with external facts (5fb0ddc)\n\n2012-03-16 - Steve Traylen &lt;steve.traylen@cern.ch&gt; - 2.4.0\n * (#13205) Rotate array&#x2F;string randomley based on fqdn, fqdn_rotate() (fef247b)\n\n2012-05-22 - Peter Meier &lt;peter.meier@immerda.ch&gt; - 2.3.3\n * fix regression in #11017 properly (f0a62c7)\n\n2012-05-10 - Jeff McCune &lt;jeff@puppetlabs.com&gt; - 2.3.3\n * Fix spec tests using the new spec_helper (7d34333)\n\n2012-05-10 - Puppet Labs &lt;support@puppetlabs.com&gt; - 2.3.2\n * Make file_line default to ensure =&gt; present (1373e70)\n * Memoize file_line spec instance variables (20aacc5)\n * Fix spec tests using the new spec_helper (1ebfa5d)\n * (#13595) initialize_everything_for_tests couples modules Puppet ver (3222f35)\n * (#13439) Fix MRI 1.9 issue with spec_helper (15c5fd1)\n * (#13439) Fix test failures with Puppet 2.6.x (665610b)\n * (#13439) refactor spec helper for compatibility with both puppet 2.7 and master (82194ca)\n * (#13494) Specify the behavior of zero padded strings (61891bb)\n\n2012-03-29 Puppet Labs &lt;support@puppetlabs.com&gt; - 2.1.3\n* (#11607) Add Rakefile to enable spec testing\n* (#12377) Avoid infinite loop when retrying require json\n\n2012-03-13 Puppet Labs &lt;support@puppetlabs.com&gt; - 2.3.1\n* (#13091) Fix LoadError bug with puppet apply and puppet_vardir fact\n\n2012-03-12 Puppet Labs &lt;support@puppetlabs.com&gt; - 2.3.0\n* Add a large number of new Puppet functions\n* Backwards compatibility preserved with 2.2.x\n\n2011-12-30 Puppet Labs &lt;support@puppetlabs.com&gt; - 2.2.1\n* Documentation only release for the Forge\n\n2011-12-30 Puppet Labs &lt;support@puppetlabs.com&gt; - 2.1.2\n* Documentation only release for PE 2.0.x\n\n2011-11-08 Puppet Labs &lt;support@puppetlabs.com&gt; - 2.2.0\n* #10285 - Refactor json to use pson instead.\n* Maint  - Add watchr autotest script\n* Maint  - Make rspec tests work with Puppet 2.6.4\n* #9859  - Add root_home fact and tests\n\n2011-08-18 Puppet Labs &lt;support@puppetlabs.com&gt; - 2.1.1\n* Change facts.d paths to match Facter 2.0 paths.\n* &#x2F;etc&#x2F;facter&#x2F;facts.d\n* &#x2F;etc&#x2F;puppetlabs&#x2F;facter&#x2F;facts.d\n\n2011-08-17 Puppet Labs &lt;support@puppetlabs.com&gt; - 2.1.0\n* Add R.I. Pienaar&#x27;s facts.d custom facter fact\n* facts defined in &#x2F;etc&#x2F;facts.d and &#x2F;etc&#x2F;puppetlabs&#x2F;facts.d are\n  automatically loaded now.\n\n2011-08-04 Puppet Labs &lt;support@puppetlabs.com&gt; - 2.0.0\n* Rename whole_line to file_line\n* This is an API change and as such motivating a 2.0.0 release according to semver.org.\n\n2011-08-04 Puppet Labs &lt;support@puppetlabs.com&gt; - 1.1.0\n* Rename append_line to whole_line\n* This is an API change and as such motivating a 1.1.0 release.\n\n2011-08-04 Puppet Labs &lt;support@puppetlabs.com&gt; - 1.0.0\n* Initial stable release\n* Add validate_array and validate_string functions\n* Make merge() function work with Ruby 1.8.5\n* Add hash merging function\n* Add has_key function\n* Add loadyaml() function\n* Add append_line native\n\n2011-06-21 Jeff McCune &lt;jeff@puppetlabs.com&gt; - 0.1.7\n* Add validate_hash() and getvar() functions\n\n2011-06-15 Jeff McCune &lt;jeff@puppetlabs.com&gt; - 0.1.6\n* Add anchor resource type to provide containment for composite classes\n\n2011-06-03 Jeff McCune &lt;jeff@puppetlabs.com&gt; - 0.1.5\n* Add validate_bool() function to stdlib\n\n0.1.4 2011-05-26 Jeff McCune &lt;jeff@puppetlabs.com&gt;\n* Move most stages after main\n\n0.1.3 2011-05-25 Jeff McCune &lt;jeff@puppetlabs.com&gt;\n* Add validate_re() function\n\n0.1.2 2011-05-24 Jeff McCune &lt;jeff@puppetlabs.com&gt;\n* Update to add annotated tag\n\n0.1.1 2011-05-24 Jeff McCune &lt;jeff@puppetlabs.com&gt;\n* Add stdlib::stages class with a standard set of stages\n</pre></section>",
##############################################
ruby-puppet-forge-2.3.2/spec/fixtures/v3/modules__owner=puppetlabs.json-710-                  "name": "chain",
ruby-puppet-forge-2.3.2/spec/fixtures/v3/modules__owner=puppetlabs.json:711:                  "doc": "      Name of the chain to use. Can be one of the built-ins:\n\n      * INPUT\n      * FORWARD\n      * OUTPUT\n      * PREROUTING\n      * POSTROUTING\n\n      Or you can provide a user-based chain.\n\n      The default value is 'INPUT'.\n  Values can match `/^[a-zA-Z0-9\\-_]+$/`.  Requires features iptables."
ruby-puppet-forge-2.3.2/spec/fixtures/v3/modules__owner=puppetlabs.json-712-                },
##############################################
ruby-puppet-forge-2.3.2/spec/fixtures/v3/modules__owner=puppetlabs.json-722-                  "name": "iniface",
ruby-puppet-forge-2.3.2/spec/fixtures/v3/modules__owner=puppetlabs.json:723:                  "doc": "      Input interface to filter on.\n  Values can match `/^[a-zA-Z0-9\\-\\._\\+]+$/`.  Requires features interface_match."
ruby-puppet-forge-2.3.2/spec/fixtures/v3/modules__owner=puppetlabs.json-724-                },
##############################################
ruby-puppet-forge-2.3.2/spec/fixtures/v3/modules__owner=puppetlabs.json-726-                  "name": "outiface",
ruby-puppet-forge-2.3.2/spec/fixtures/v3/modules__owner=puppetlabs.json:727:                  "doc": "      Output interface to filter on.\n  Values can match `/^[a-zA-Z0-9\\-\\._\\+]+$/`.  Requires features interface_match."
ruby-puppet-forge-2.3.2/spec/fixtures/v3/modules__owner=puppetlabs.json-728-                },
##############################################
ruby-puppet-forge-2.3.2/spec/fixtures/v3/modules__owner=puppetlabs.json-766-                  "name": "burst",
ruby-puppet-forge-2.3.2/spec/fixtures/v3/modules__owner=puppetlabs.json:767:                  "doc": "      Rate limiting burst value (per second) before limit checks apply.\n  Values can match `/^\\d+$/`.  Requires features rate_limiting."
ruby-puppet-forge-2.3.2/spec/fixtures/v3/modules__owner=puppetlabs.json-768-                },
##############################################
ruby-puppet-forge-2.3.2/spec/fixtures/v3/modules__owner=puppetlabs.json-796-                  "name": "name",
ruby-puppet-forge-2.3.2/spec/fixtures/v3/modules__owner=puppetlabs.json:797:                  "doc": "      The canonical name of the rule. This name is also used for ordering\n      so make sure you prefix the rule with a number:\n\n          000 this runs first\n          999 this runs last\n\n      Depending on the provider, the name of the rule can be stored using\n      the comment feature of the underlying firewall subsystem.\n  Values can match `/^\\d+[[:alpha:][:digit:][:punct:][:space:]]+$/`."
ruby-puppet-forge-2.3.2/spec/fixtures/v3/modules__owner=puppetlabs.json-798-                },
##############################################
ruby-puppet-forge-2.3.2/spec/fixtures/v3/modules__owner=puppetlabs.json-1279-        "downloads": 6389,
ruby-puppet-forge-2.3.2/spec/fixtures/v3/modules__owner=puppetlabs.json:1280:        "readme": "<section class=\"markdown\"><h1>apache</h1>\n\n<p><a href=\"https://travis-ci.org/puppetlabs/puppetlabs-apache\"><img src=\"https://travis-ci.org/puppetlabs/puppetlabs-apache.png?branch=master\" alt=\"Build Status\"></a></p>\n\n<h4>Table of Contents</h4>\n\n<ol>\n<li><a href=\"#overview\">Overview - What is the Apache module?</a></li>\n<li><a href=\"#module-description\">Module Description - What does the module do?</a></li>\n<li><a href=\"#setup\">Setup - The basics of getting started with Apache</a>\n\n<ul>\n<li><a href=\"#beginning-with-apache\">Beginning with Apache - Installation</a></li>\n<li><a href=\"#configure-a-virtual-host\">Configure a Virtual Host - Basic options for getting started</a></li>\n</ul></li>\n<li><a href=\"#usage\">Usage - The classes, defined types, and their parameters available for configuration</a>\n\n<ul>\n<li><a href=\"#classes-and-defined-types\">Classes and Defined Types</a>\n\n<ul>\n<li><a href=\"#class-apache\">Class: apache</a></li>\n<li><a href=\"#classes-apachemodname\">Classes: apache::mod::*</a></li>\n<li><a href=\"#defined-type-apachevhost\">Defined Type: apache::vhost</a></li>\n</ul></li>\n<li><a href=\"#virtual-host-examples\">Virtual Host Examples - Demonstrations of some configuration options</a></li>\n</ul></li>\n<li><a href=\"#implementation\">Implementation - An under-the-hood peek at what the module is doing</a>\n\n<ul>\n<li><a href=\"#classes-and-defined-types\">Classes and Defined Types</a></li>\n<li><a href=\"#templates\">Templates</a></li>\n</ul></li>\n<li><a href=\"#limitations\">Limitations - OS compatibility, etc.</a></li>\n<li><a href=\"#development\">Development - Guide for contributing to the module</a></li>\n<li><a href=\"#release-notes\">Release Notes - Notes on the most recent updates to the module</a></li>\n</ol>\n\n<h2>Overview</h2>\n\n<p>The Apache module allows you to set up virtual hosts and manage web services with minimal effort.</p>\n\n<h2>Module Description</h2>\n\n<p>Apache is a widely-used web server, and this module provides a simplified way of creating configurations to manage your infrastructure. This includes the ability to configure and manage a range of different virtual host setups, as well as a streamlined way to install and configure Apache modules.</p>\n\n<h2>Setup</h2>\n\n<p><strong>What Apache affects:</strong></p>\n\n<ul>\n<li>configuration files and directories (created and written to)\n\n<ul>\n<li><strong>NOTE</strong>: Configurations that are <em>not</em> managed by Puppet will be purged.</li>\n</ul></li>\n<li>package/service/configuration files for Apache</li>\n<li>Apache modules</li>\n<li>virtual hosts</li>\n<li>listened-to ports</li>\n<li><code>/etc/make.conf</code> on FreeBSD</li>\n</ul>\n\n<h3>Beginning with Apache</h3>\n\n<p>To install Apache with the default parameters</p>\n\n<pre lang=\"puppet\"><code>    class { &#39;apache&#39;:  }\n</code></pre>\n\n<p>The defaults are determined by your operating system (e.g. Debian systems have one set of defaults, RedHat systems have another). These defaults will work well in a testing environment, but are not suggested for production. To establish customized parameters</p>\n\n<pre lang=\"puppet\"><code>    class { &#39;apache&#39;:\n      default_mods        =&gt; false,\n      default_confd_files =&gt; false,\n    }\n</code></pre>\n\n<h3>Configure a virtual host</h3>\n\n<p>Declaring the <code>apache</code> class will create a default virtual host by setting up a vhost on port 80, listening on all interfaces and serving <code>$apache::docroot</code>.</p>\n\n<pre lang=\"puppet\"><code>    class { &#39;apache&#39;: }\n</code></pre>\n\n<p>To configure a very basic, name-based virtual host</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;first.example.com&#39;:\n      port    =&gt; &#39;80&#39;,\n      docroot =&gt; &#39;/var/www/first&#39;,\n    }\n</code></pre>\n\n<p><em>Note:</em> The default priority is 15. If nothing matches this priority, the alphabetically first name-based vhost will be used. This is also true if you pass a higher priority and no names match anything else.</p>\n\n<p>A slightly more complicated example, which moves the docroot owner/group</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;second.example.com&#39;:\n      port          =&gt; &#39;80&#39;,\n      docroot       =&gt; &#39;/var/www/second&#39;,\n      docroot_owner =&gt; &#39;third&#39;,\n      docroot_group =&gt; &#39;third&#39;,\n    }\n</code></pre>\n\n<p>To set up a virtual host with SSL and default SSL certificates</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;ssl.example.com&#39;:\n      port    =&gt; &#39;443&#39;,\n      docroot =&gt; &#39;/var/www/ssl&#39;,\n      ssl     =&gt; true,\n    }\n</code></pre>\n\n<p>To set up a virtual host with SSL and specific SSL certificates</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;fourth.example.com&#39;:\n      port     =&gt; &#39;443&#39;,\n      docroot  =&gt; &#39;/var/www/fourth&#39;,\n      ssl      =&gt; true,\n      ssl_cert =&gt; &#39;/etc/ssl/fourth.example.com.cert&#39;,\n      ssl_key  =&gt; &#39;/etc/ssl/fourth.example.com.key&#39;,\n    }\n</code></pre>\n\n<p>To set up a virtual host with IP address different than &#39;*&#39;</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;subdomain.example.com&#39;:\n      ip      =&gt; &#39;127.0.0.1&#39;,\n      port    =&gt; &#39;80&#39;,\n      docrout =&gt; &#39;/var/www/subdomain&#39;,\n    }\n</code></pre>\n\n<p>To set up a virtual host with wildcard alias for subdomain mapped to same named directory\n<code>http://examle.com.loc =&gt; /var/www/example.com</code></p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;subdomain.loc&#39;:\n      vhost_name =&gt; &#39;*&#39;,\n      port       =&gt; &#39;80&#39;,\n      virtual_docroot&#39; =&gt; &#39;/var/www/%-2+&#39;,\n      docroot          =&gt; &#39;/var/www&#39;,\n      serveraliases    =&gt; [&#39;*.loc&#39;,],\n    }\n</code></pre>\n\n<p>To set up a virtual host with suPHP</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;suphp.example.com&#39;:\n      port                =&gt; &#39;80&#39;,\n      docroot             =&gt; &#39;/home/appuser/myphpapp&#39;,\n      suphp_addhandler    =&gt; &#39;x-httpd-php&#39;,\n      suphp_engine        =&gt; &#39;on&#39;,\n      suphp_configpath    =&gt; &#39;/etc/php5/apache2&#39;,\n      directories         =&gt; { path =&gt; &#39;/home/appuser/myphpapp&#39;,\n        &#39;suphp&#39;           =&gt; { user =&gt; &#39;myappuser&#39;, group =&gt; &#39;myappgroup&#39; },\n      }\n    }\n</code></pre>\n\n<p>To set up a virtual host with WSGI</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;wsgi.example.com&#39;:\n      port                        =&gt; &#39;80&#39;,\n      docroot                     =&gt; &#39;/var/www/pythonapp&#39;,\n      wsgi_daemon_process         =&gt; &#39;wsgi&#39;,\n      wsgi_daemon_process_options =&gt;\n        { processes =&gt; &#39;2&#39;, threads =&gt; &#39;15&#39;, display-name =&gt; &#39;%{GROUP}&#39; },\n      wsgi_process_group          =&gt; &#39;wsgi&#39;,\n      wsgi_script_aliases         =&gt; { &#39;/&#39; =&gt; &#39;/var/www/demo.wsgi&#39; },\n    }\n</code></pre>\n\n<p>Starting 2.2.16, httpd supports <a href=\"https://httpd.apache.org/docs/2.2/mod/mod_dir.html#fallbackresource\">FallbackResource</a> which is a simple replace for common RewriteRules:</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;wordpress.example.com&#39;:\n      port                =&gt; &#39;80&#39;,\n      docroot             =&gt; &#39;/var/www/wordpress&#39;,\n      fallbackresource    =&gt; &#39;/index.php&#39;,\n    }\n</code></pre>\n\n<p>Please note that the <code>disabled</code> argument to FallbackResource is only supported since 2.2.24.</p>\n\n<p>To see a list of all virtual host parameters, <a href=\"#defined-type-apachevhost\">please go here</a>. To see an extensive list of virtual host examples <a href=\"#virtual-host-examples\">please look here</a>.</p>\n\n<h2>Usage</h2>\n\n<h3>Classes and Defined Types</h3>\n\n<p>This module modifies Apache configuration files and directories and will purge any configuration not managed by Puppet. Configuration of Apache should be managed by Puppet, as non-puppet configuration files can cause unexpected failures.</p>\n\n<p>It is possible to temporarily disable full Puppet management by setting the <code>purge_configs</code> parameter within the base <code>apache</code> class to &#39;false&#39;. This option should only be used as a temporary means of saving and relocating customized configurations.</p>\n\n<h4>Class: <code>apache</code></h4>\n\n<p>The Apache module&#39;s primary class, <code>apache</code>, guides the basic setup of Apache on your system.</p>\n\n<p>You may establish a default vhost in this class, the <code>vhost</code> class, or both. You may add additional vhost configurations for specific virtual hosts using a declaration of the <code>vhost</code> type.</p>\n\n<p><strong>Parameters within <code>apache</code>:</strong></p>\n\n<h5><code>default_mods</code></h5>\n\n<p>Sets up Apache with default settings based on your OS. Defaults to &#39;true&#39;, set to &#39;false&#39; for customized configuration.</p>\n\n<h5><code>default_vhost</code></h5>\n\n<p>Sets up a default virtual host. Defaults to &#39;true&#39;, set to &#39;false&#39; to set up <a href=\"#configure-a-virtual-host\">customized virtual hosts</a>.</p>\n\n<h5><code>default_confd_files</code></h5>\n\n<p>Generates default set of include-able apache configuration files under  <code>${apache::confd_dir}</code> directory. These configuration files correspond to what is usually installed with apache package on given platform.</p>\n\n<h5><code>default_ssl_vhost</code></h5>\n\n<p>Sets up a default SSL virtual host. Defaults to &#39;false&#39;.</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;default-ssl&#39;:\n      port            =&gt; 443,\n      ssl             =&gt; true,\n      docroot         =&gt; $docroot,\n      scriptalias     =&gt; $scriptalias,\n      serveradmin     =&gt; $serveradmin,\n      access_log_file =&gt; &quot;ssl_${access_log_file}&quot;,\n      }\n</code></pre>\n\n<p>SSL vhosts only respond to HTTPS queries.</p>\n\n<h5><code>default_ssl_cert</code></h5>\n\n<p>The default SSL certification, which is automatically set based on your operating system  (<code>/etc/pki/tls/certs/localhost.crt</code> for RedHat, <code>/etc/ssl/certs/ssl-cert-snakeoil.pem</code> for Debian, <code>/usr/local/etc/apache22/server.crt</code> for FreeBSD). This default will work out of the box but must be updated with your specific certificate information before being used in production.</p>\n\n<h5><code>default_ssl_key</code></h5>\n\n<p>The default SSL key, which is automatically set based on your operating system (<code>/etc/pki/tls/private/localhost.key</code> for RedHat, <code>/etc/ssl/private/ssl-cert-snakeoil.key</code> for Debian, <code>/usr/local/etc/apache22/server.key</code> for FreeBSD). This default will work out of the box but must be updated with your specific certificate information before being used in production.</p>\n\n<h5><code>default_ssl_chain</code></h5>\n\n<p>The default SSL chain, which is automatically set to &#39;undef&#39;. This default will work out of the box but must be updated with your specific certificate information before being used in production.</p>\n\n<h5><code>default_ssl_ca</code></h5>\n\n<p>The default certificate authority, which is automatically set to &#39;undef&#39;. This default will work out of the box but must be updated with your specific certificate information before being used in production.</p>\n\n<h5><code>default_ssl_crl_path</code></h5>\n\n<p>The default certificate revocation list path, which is automatically set to &#39;undef&#39;. This default will work out of the box but must be updated with your specific certificate information before being used in production.</p>\n\n<h5><code>default_ssl_crl</code></h5>\n\n<p>The default certificate revocation list to use, which is automatically set to &#39;undef&#39;. This default will work out of the box but must be updated with your specific certificate information before being used in production.</p>\n\n<h5><code>service_name</code></h5>\n\n<p>Name of apache service to run. Defaults to: <code>&#39;httpd&#39;</code> on RedHat, <code>&#39;apache2&#39;</code> on Debian, and <code>&#39;apache22&#39;</code> on FreeBSD.</p>\n\n<h5><code>service_enable</code></h5>\n\n<p>Determines whether the &#39;httpd&#39; service is enabled when the machine is booted. Defaults to &#39;true&#39;.</p>\n\n<h5><code>service_ensure</code></h5>\n\n<p>Determines whether the service should be running. Can be set to &#39;undef&#39; which is useful when you want to let the service be managed by some other application like pacemaker. Defaults to &#39;running&#39;.</p>\n\n<h5><code>purge_configs</code></h5>\n\n<p>Removes all other apache configs and vhosts, which is automatically set to true. Setting this to false is a stopgap measure to allow the apache module to coexist with existing or otherwise managed configuration. It is recommended that you move your configuration entirely to resources within this module.</p>\n\n<h5><code>serveradmin</code></h5>\n\n<p>Sets the server administrator. Defaults to &#39;root@localhost&#39;.</p>\n\n<h5><code>servername</code></h5>\n\n<p>Sets the servername. Defaults to fqdn provided by facter.</p>\n\n<h5><code>server_root</code></h5>\n\n<p>A value to be set as <code>ServerRoot</code> in main configuration file (<code>httpd.conf</code>). Defaults to <code>/etc/httpd</code> on RedHat, <code>/etc/apache2</code> on Debian and <code>/usr/local</code> on FreeBSD.</p>\n\n<h5><code>sendfile</code></h5>\n\n<p>Makes Apache use the Linux kernel &#39;sendfile&#39; to serve static files. Defaults to &#39;On&#39;.</p>\n\n<h5><code>server_root</code></h5>\n\n<p>A value to be set as <code>ServerRoot</code> in main configuration file (<code>httpd.conf</code>). Defaults to <code>/etc/httpd</code> on RedHat and <code>/etc/apache2</code> on Debian.</p>\n\n<h5><code>error_documents</code></h5>\n\n<p>Enables custom error documents. Defaults to &#39;false&#39;.</p>\n\n<h5><code>httpd_dir</code></h5>\n\n<p>Changes the base location of the configuration directories used for the service. This is useful for specially repackaged HTTPD builds but may have unintended consequences when used in combination with the default distribution packages. Default is based on your OS.</p>\n\n<h5><code>confd_dir</code></h5>\n\n<p>Changes the location of the configuration directory your custom configuration files are placed in. Default is based on your OS.</p>\n\n<h5><code>vhost_dir</code></h5>\n\n<p>Changes the location of the configuration directory your virtual host configuration files are placed in. Default is based on your OS.</p>\n\n<h5><code>mod_dir</code></h5>\n\n<p>Changes the location of the configuration directory your Apache modules configuration files are placed in. Default is based on your OS.</p>\n\n<h5><code>mpm_module</code></h5>\n\n<p>Configures which mpm module is loaded and configured for the httpd process by the <code>apache::mod::event</code>, <code>apache::mod::itk</code>, <code>apache::mod::peruser</code>, <code>apache::mod::prefork</code> and <code>apache::mod::worker</code> classes. Must be set to <code>false</code> to explicitly declare <code>apache::mod::event</code>, <code>apache::mod::itk</code>, <code>apache::mod::peruser</code>,  <code>apache::mod::prefork</code> or <code>apache::mod::worker</code> classes with parameters. All possible values are <code>event</code>, <code>itk</code>, <code>peruser</code>, <code>prefork</code>, <code>worker</code> (valid values depend on agent&#39;s OS), or the boolean <code>false</code>. Defaults to <code>prefork</code> on RedHat and FreeBSD and <code>worker</code> on Debian. Note: on FreeBSD switching between different mpm modules is quite difficult (but possible). Before changing <code>$mpm_module</code> one has to deinstall all packages that depend on currently installed <code>apache</code>.</p>\n\n<h5><code>conf_template</code></h5>\n\n<p>Setting this allows you to override the template used for the main apache configuration file.  This is a potentially risky thing to do as this module has been built around the concept of a minimal configuration file with most of the configuration coming in the form of conf.d/ entries.  Defaults to &#39;apache/httpd.conf.erb&#39;.</p>\n\n<h5><code>keepalive</code></h5>\n\n<p>Setting this allows you to enable persistent connections.</p>\n\n<h5><code>keepalive_timeout</code></h5>\n\n<p>Amount of time the server will wait for subsequent requests on a persistent connection. Defaults to &#39;15&#39;.</p>\n\n<h5><code>logroot</code></h5>\n\n<p>Changes the location of the directory Apache log files are placed in. Defaut is based on your OS.</p>\n\n<h5><code>log_level</code></h5>\n\n<p>Changes the verbosity level of the error log. Defaults to &#39;warn&#39;. Valid values are <code>emerg</code>, <code>alert</code>, <code>crit</code>, <code>error</code>, <code>warn</code>, <code>notice</code>, <code>info</code> or <code>debug</code>.</p>\n\n<h5><code>ports_file</code></h5>\n\n<p>Changes the name of the file containing Apache ports configuration. Default is <code>${conf_dir}/ports.conf</code>.</p>\n\n<h5><code>server_tokens</code></h5>\n\n<p>Controls how much information Apache sends to the browser about itself and the operating system. See Apache documentation for &#39;ServerTokens&#39;. Defaults to &#39;OS&#39;.</p>\n\n<h5><code>server_signature</code></h5>\n\n<p>Allows the configuration of a trailing footer line under server-generated documents. See Apache documentation for &#39;ServerSignature&#39;. Defaults to &#39;On&#39;.</p>\n\n<h5><code>trace_enable</code></h5>\n\n<p>Controls, how TRACE requests per RFC 2616 are handled. See Apache documentation for &#39;TraceEnable&#39;. Defaults to &#39;On&#39;.</p>\n\n<h5><code>manage_user</code></h5>\n\n<p>Setting this to false will avoid the user resource to be created by this module. This is useful when you already have a user created in another puppet module and that you want to used it to run apache. Without this, it would result in a duplicate resource error.</p>\n\n<h5><code>manage_group</code></h5>\n\n<p>Setting this to false will avoid the group resource to be created by this module. This is useful when you already have a group created in another puppet module and that you want to used it for apache. Without this, it would result in a duplicate resource error.</p>\n\n<h5><code>package_ensure</code></h5>\n\n<p>Allow control over the package ensure statement. This is useful if you want to make sure apache is always at the latest version or whether it is only installed.</p>\n\n<h4>Class: <code>apache::default_mods</code></h4>\n\n<p>Installs default Apache modules based on what OS you are running</p>\n\n<pre lang=\"puppet\"><code>    class { &#39;apache::default_mods&#39;: }\n</code></pre>\n\n<h4>Defined Type: <code>apache::mod</code></h4>\n\n<p>Used to enable arbitrary Apache httpd modules for which there is no specific <code>apache::mod::[name]</code> class. The <code>apache::mod</code> defined type will also install the required packages to enable the module, if any.</p>\n\n<pre lang=\"puppet\"><code>    apache::mod { &#39;rewrite&#39;: }\n    apache::mod { &#39;ldap&#39;: }\n</code></pre>\n\n<h4>Classes: <code>apache::mod::[name]</code></h4>\n\n<p>There are many <code>apache::mod::[name]</code> classes within this module that can be declared using <code>include</code>:</p>\n\n<ul>\n<li><code>alias</code></li>\n<li><code>auth_basic</code></li>\n<li><code>auth_kerb</code></li>\n<li><code>autoindex</code></li>\n<li><code>cache</code></li>\n<li><code>cgi</code></li>\n<li><code>cgid</code></li>\n<li><code>dav</code></li>\n<li><code>dav_fs</code></li>\n<li><code>dav_svn</code></li>\n<li><code>deflate</code></li>\n<li><code>dev</code></li>\n<li><code>dir</code>*</li>\n<li><code>disk_cache</code></li>\n<li><code>event</code></li>\n<li><code>fastcgi</code></li>\n<li><code>fcgid</code></li>\n<li><code>headers</code></li>\n<li><code>info</code></li>\n<li><code>itk</code></li>\n<li><code>ldap</code></li>\n<li><code>mime</code></li>\n<li><code>mime_magic</code>*</li>\n<li><code>mpm_event</code></li>\n<li><code>negotiation</code></li>\n<li><code>nss</code>*</li>\n<li><code>passenger</code>*</li>\n<li><code>perl</code></li>\n<li><code>peruser</code></li>\n<li><code>php</code> (requires <a href=\"#mpm_module\"><code>mpm_module</code></a> set to <code>prefork</code>)</li>\n<li><code>prefork</code>*</li>\n<li><code>proxy</code>*</li>\n<li><code>proxy_ajp</code></li>\n<li><code>proxy_html</code></li>\n<li><code>proxy_http</code></li>\n<li><code>python</code></li>\n<li><code>reqtimeout</code></li>\n<li><code>rewrite</code></li>\n<li><code>rpaf</code>*</li>\n<li><code>setenvif</code></li>\n<li><code>ssl</code>* (see <a href=\"#class-apachemodssl\">apache::mod::ssl</a> below)</li>\n<li><code>status</code>*</li>\n<li><code>suphp</code></li>\n<li><code>userdir</code>*</li>\n<li><code>vhost_alias</code></li>\n<li><code>worker</code>*</li>\n<li><code>wsgi</code> (see <a href=\"#class-apachemodwsgi\">apache::mod::wsgi</a> below)</li>\n<li><code>xsendfile</code></li>\n</ul>\n\n<p>Modules noted with a * indicate that the module has settings and, thus, a template that includes parameters. These parameters control the module&#39;s configuration. Most of the time, these parameters will not require any configuration or attention.</p>\n\n<p>The modules mentioned above, and other Apache modules that have templates, will cause template files to be dropped along with the mod install, and the module will not work without the template. Any mod without a template will install package but drop no files.</p>\n\n<h4>Class: <code>apache::mod::ssl</code></h4>\n\n<p>Installs Apache SSL capabilities and utilizes <code>ssl.conf.erb</code> template. These are the defaults:</p>\n\n<pre lang=\"puppet\"><code>    class { &#39;apache::mod::ssl&#39;:\n      ssl_compression =&gt; false,\n      ssl_options     =&gt; [ &#39;StdEnvVars&#39; ],\n  }\n</code></pre>\n\n<p>To <em>use</em> SSL with a virtual host, you must either set the<code>default_ssl_vhost</code> parameter in <code>apache</code> to &#39;true&#39; or set the <code>ssl</code> parameter in <code>apache::vhost</code> to &#39;true&#39;.</p>\n\n<h4>Class: <code>apache::mod::wsgi</code></h4>\n\n<pre lang=\"puppet\"><code>    class { &#39;apache::mod::wsgi&#39;:\n      wsgi_socket_prefix =&gt; &quot;\\${APACHE_RUN_DIR}WSGI&quot;,\n      wsgi_python_home   =&gt; &#39;/path/to/virtenv&#39;,\n      wsgi_python_path   =&gt; &#39;/path/to/virtenv/site-packages&#39;,\n    }\n</code></pre>\n\n<h4>Defined Type: <code>apache::vhost</code></h4>\n\n<p>The Apache module allows a lot of flexibility in the set up and configuration of virtual hosts. This flexibility is due, in part, to <code>vhost</code>&#39;s setup as a defined resource type, which allows it to be evaluated multiple times with different parameters.</p>\n\n<p>The <code>vhost</code> defined type allows you to have specialized configurations for virtual hosts that have requirements outside of the defaults. You can set up a default vhost within the base <code>apache</code> class as well as set a customized vhost setup as default. Your customized vhost (priority 10) will be privileged over the base class vhost (15).</p>\n\n<p>If you have a series of specific configurations and do not want a base <code>apache</code> class default vhost, make sure to set the base class default host to &#39;false&#39;.</p>\n\n<pre lang=\"puppet\"><code>    class { &#39;apache&#39;:\n      default_vhost =&gt; false,\n    }\n</code></pre>\n\n<p><strong>Parameters within <code>apache::vhost</code>:</strong></p>\n\n<p>The default values for each parameter will vary based on operating system and type of virtual host.</p>\n\n<h5><code>access_log</code></h5>\n\n<p>Specifies whether <code>*_access.log</code> directives should be configured. Valid values are &#39;true&#39; and &#39;false&#39;. Defaults to &#39;true&#39;.</p>\n\n<h5><code>access_log_file</code></h5>\n\n<p>Points to the <code>*_access.log</code> file. Defaults to &#39;undef&#39;.</p>\n\n<h5><code>access_log_pipe</code></h5>\n\n<p>Specifies a pipe to send access log messages to. Defaults to &#39;undef&#39;.</p>\n\n<h5><code>access_log_syslog</code></h5>\n\n<p>Sends all access log messages to syslog. Defaults to &#39;undef&#39;.</p>\n\n<h5><code>access_log_format</code></h5>\n\n<p>Specifies either a LogFormat nickname or custom format string for access log. Defaults to &#39;undef&#39;.</p>\n\n<h5><code>add_listen</code></h5>\n\n<p>Determines whether the vhost creates a listen statement. The default value is &#39;true&#39;.</p>\n\n<p>Setting <code>add_listen</code> to &#39;false&#39; stops the vhost from creating a listen statement, and this is important when you combine vhosts that are not passed an <code>ip</code> parameter with vhosts that <em>are</em> passed the <code>ip</code> parameter.</p>\n\n<h5><code>aliases</code></h5>\n\n<p>Passes a list of hashes to the vhost to create <code>Alias</code> or <code>AliasMatch</code> statements as per the <a href=\"http://httpd.apache.org/docs/current/mod/mod_alias.html\"><code>mod_alias</code> documentation</a>. Each hash is expected to be of the form:</p>\n\n<pre><code>aliases =&gt; [\n  { aliasmatch =&gt; &#39;^/image/(.*)\\.jpg$&#39;, path =&gt; &#39;/files/jpg.images/$1.jpg&#39; }\n  { alias      =&gt; &#39;/image&#39;,             path =&gt; &#39;/ftp/pub/image&#39; },\n],\n</code></pre>\n\n<p>For <code>Alias</code> and <code>AliasMatch</code> to work, each will need a corresponding <code>&lt;Directory /path/to/directory&gt;</code> or <code>&lt;Location /path/to/directory&gt;</code> block. The <code>Alias</code> and <code>AliasMatch</code> directives are created in the order specified in the <code>aliases</code> paramter. As described in the <a href=\"http://httpd.apache.org/docs/current/mod/mod_alias.html\"><code>mod_alias</code> documentation</a> more specific <code>Alias</code> or <code>AliasMatch</code> directives should come before the more general ones to avoid shadowing.</p>\n\n<p><strong>Note:</strong> If <code>apache::mod::passenger</code> is loaded and <code>PassengerHighPerformance true</code> is set, then <code>Alias</code> may have issues honouring the <code>PassengerEnabled off</code> statement. See <a href=\"http://www.conandalton.net/2010/06/passengerenabled-off-not-working.html\">this article</a> for details.</p>\n\n<h5><code>block</code></h5>\n\n<p>Specifies the list of things Apache will block access to. The default is an empty set, &#39;[]&#39;. Currently, the only option is &#39;scm&#39;, which blocks web access to .svn, .git and .bzr directories. To add to this, please see the <a href=\"#development\">Development</a> section.</p>\n\n<h5><code>custom_fragment</code></h5>\n\n<p>Pass a string of custom configuration directives to be placed at the end of the vhost configuration.</p>\n\n<h5><code>default_vhost</code></h5>\n\n<p>Sets a given <code>apache::vhost</code> as the default to serve requests that do not match any other <code>apache::vhost</code> definitions. The default value is &#39;false&#39;.</p>\n\n<h5><code>directories</code></h5>\n\n<p>Passes a list of hashes to the vhost to create <code>&lt;Directory /path/to/directory&gt;...&lt;/Directory&gt;</code> directive blocks as per the <a href=\"http://httpd.apache.org/docs/2.2/mod/core.html#directory\">Apache core documentation</a>.  The <code>path</code> key is required in these hashes. An optional <code>provider</code> defaults to <code>directory</code>.  Usage will typically look like:</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;sample.example.net&#39;:\n      docroot     =&gt; &#39;/path/to/directory&#39;,\n      directories =&gt; [\n        { path =&gt; &#39;/path/to/directory&#39;, &lt;directive&gt; =&gt; &lt;value&gt; },\n        { path =&gt; &#39;/path/to/another/directory&#39;, &lt;directive&gt; =&gt; &lt;value&gt; },\n      ],\n    }\n</code></pre>\n\n<p><em>Note:</em> At least one directory should match <code>docroot</code> parameter, once you start declaring directories <code>apache::vhost</code> assumes that all required <code>&lt;Directory&gt;</code> blocks will be declared.</p>\n\n<p><em>Note:</em> If not defined a single default <code>&lt;Directory&gt;</code> block will be created that matches the <code>docroot</code> parameter.</p>\n\n<p><code>provider</code> can be set to any of <code>directory</code>, <code>files</code>, or <code>location</code>. If the <a href=\"https://httpd.apache.org/docs/2.2/mod/core.html#files\">pathspec starts with a <code>~</code></a>, httpd will interpret this as the equivalent of <code>DirectoryMatch</code>, <code>FilesMatch</code>, or <code>LocationMatch</code>, respectively.</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;files.example.net&#39;:\n      docroot     =&gt; &#39;/var/www/files&#39;,\n      directories =&gt; [\n        { path =&gt; &#39;~ (\\.swp|\\.bak|~)$&#39;, &#39;provider&#39; =&gt; &#39;files&#39;, &#39;deny&#39; =&gt; &#39;from all&#39; },\n      ],\n    }\n</code></pre>\n\n<p>The directives will be embedded within the <code>Directory</code> (<code>Files</code>, or <code>Location</code>) directive block, missing directives should be undefined and not be added, resulting in their default vaules in Apache. Currently this is the list of supported directives:</p>\n\n<h6><code>addhandlers</code></h6>\n\n<p>Sets <code>AddHandler</code> directives as per the <a href=\"http://httpd.apache.org/docs/2.2/mod/mod_mime.html#addhandler\">Apache Core documentation</a>. Accepts a list of hashes of the form <code>{ handler =&gt; &#39;handler-name&#39;, extensions =&gt; [&#39;extension&#39;]}</code>. Note that <code>extensions</code> is a list of extenstions being handled by the handler.\nAn example:</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;sample.example.net&#39;:\n      docroot     =&gt; &#39;/path/to/directory&#39;,\n      directories =&gt; [ { path =&gt; &#39;/path/to/directory&#39;,\n        addhandlers =&gt; [ { handler =&gt; &#39;cgi-script&#39;, extensions =&gt; [&#39;.cgi&#39;]} ],\n      } ],\n    }\n</code></pre>\n\n<h6><code>allow</code></h6>\n\n<p>Sets an <code>Allow</code> directive as per the <a href=\"http://httpd.apache.org/docs/2.2/mod/mod_authz_host.html#allow\">Apache Core documentation</a>. An example:</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;sample.example.net&#39;:\n      docroot     =&gt; &#39;/path/to/directory&#39;,\n      directories =&gt; [ { path =&gt; &#39;/path/to/directory&#39;, allow =&gt; &#39;from example.org&#39; } ],\n    }\n</code></pre>\n\n<h6><code>allow_override</code></h6>\n\n<p>Sets the usage of <code>.htaccess</code> files as per the <a href=\"http://httpd.apache.org/docs/2.2/mod/core.html#allowoverride\">Apache core documentation</a>. Should accept in the form of a list or a string. An example:</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;sample.example.net&#39;:\n      docroot     =&gt; &#39;/path/to/directory&#39;,\n      directories =&gt; [ { path =&gt; &#39;/path/to/directory&#39;, allow_override =&gt; [&#39;AuthConfig&#39;, &#39;Indexes&#39;] } ],\n    }\n</code></pre>\n\n<h6><code>deny</code></h6>\n\n<p>Sets an <code>Deny</code> directive as per the <a href=\"http://httpd.apache.org/docs/2.2/mod/mod_authz_host.html#deny\">Apache Core documentation</a>. An example:</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;sample.example.net&#39;:\n      docroot     =&gt; &#39;/path/to/directory&#39;,\n      directories =&gt; [ { path =&gt; &#39;/path/to/directory&#39;, deny =&gt; &#39;from example.org&#39; } ],\n    }\n</code></pre>\n\n<h6><code>error_documents</code></h6>\n\n<p>A list of hashes which can be used to override the <a href=\"https://httpd.apache.org/docs/2.2/mod/core.html#errordocument\">ErrorDocument</a> settings for this directory. Example:</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;sample.example.net&#39;:\n      directories =&gt; [ { path =&gt; &#39;/srv/www&#39;\n        error_documents =&gt; [\n          { &#39;error_code&#39; =&gt; &#39;503&#39;, &#39;document&#39; =&gt; &#39;/service-unavail&#39; },\n        ],\n      }]\n    }\n</code></pre>\n\n<h6><code>headers</code></h6>\n\n<p>Adds lines for <code>Header</code> directives as per the <a href=\"http://httpd.apache.org/docs/2.2/mod/mod_headers.html#header\">Apache Header documentation</a>. An example:</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;sample.example.net&#39;:\n      docroot     =&gt; &#39;/path/to/directory&#39;,\n      directories =&gt; {\n        path    =&gt; &#39;/path/to/directory&#39;,\n        headers =&gt; &#39;Set X-Robots-Tag &quot;noindex, noarchive, nosnippet&quot;&#39;,\n      },\n    }\n</code></pre>\n\n<h6><code>options</code></h6>\n\n<p>Lists the options for the given <code>&lt;Directory&gt;</code> block</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;sample.example.net&#39;:\n      docroot     =&gt; &#39;/path/to/directory&#39;,\n      directories =&gt; [ { path =&gt; &#39;/path/to/directory&#39;, options =&gt; [&#39;Indexes&#39;,&#39;FollowSymLinks&#39;,&#39;MultiViews&#39;] }],\n    }\n</code></pre>\n\n<h6><code>index_options</code></h6>\n\n<p>Styles the list</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;sample.example.net&#39;:\n      docroot     =&gt; &#39;/path/to/directory&#39;,\n      directories =&gt; [ { path =&gt; &#39;/path/to/directory&#39;, options =&gt; [&#39;Indexes&#39;,&#39;FollowSymLinks&#39;,&#39;MultiViews&#39;], index_options =&gt; [&#39;IgnoreCase&#39;, &#39;FancyIndexing&#39;, &#39;FoldersFirst&#39;, &#39;NameWidth=*&#39;, &#39;DescriptionWidth=*&#39;, &#39;SuppressHTMLPreamble&#39;] }],\n    }\n</code></pre>\n\n<h6><code>index_order_default</code></h6>\n\n<p>Sets the order of the list </p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;sample.example.net&#39;:\n      docroot     =&gt; &#39;/path/to/directory&#39;,\n      directories =&gt; [ { path =&gt; &#39;/path/to/directory&#39;, order =&gt; &#39;Allow,Deny&#39;, index_order_default =&gt; [&#39;Descending&#39;, &#39;Date&#39;]}, ],\n    }\n</code></pre>\n\n<h6><code>order</code></h6>\n\n<p>Sets the order of processing <code>Allow</code> and <code>Deny</code> statements as per <a href=\"http://httpd.apache.org/docs/2.2/mod/mod_authz_host.html#order\">Apache core documentation</a>. An example:</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;sample.example.net&#39;:\n      docroot     =&gt; &#39;/path/to/directory&#39;,\n      directories =&gt; [ { path =&gt; &#39;/path/to/directory&#39;, order =&gt; &#39;Allow,Deny&#39; } ],\n    }\n</code></pre>\n\n<h6><code>auth_type</code></h6>\n\n<p>Sets the value for <code>AuthType</code> as per the <a href=\"https://httpd.apache.org/docs/2.2/mod/core.html#authtype\">Apache AuthType\ndocumentation</a>.</p>\n\n<h6><code>auth_name</code></h6>\n\n<p>Sets the value for <code>AuthName</code> as per the <a href=\"https://httpd.apache.org/docs/2.2/mod/core.html#authname\">Apache AuthName\ndocumentation</a>.</p>\n\n<h6><code>auth_digest_algorithm</code></h6>\n\n<p>Sets the value for <code>AuthDigestAlgorithm</code> as per the <a href=\"https://httpd.apache.org/docs/2.2/mod/mod_auth_digest.html#authdigestalgorithm\">Apache\nAuthDigestAlgorithm\ndocumentation</a></p>\n\n<h6><code>auth_digest_domain</code></h6>\n\n<p>Sets the value for <code>AuthDigestDomain</code> as per the <a href=\"https://httpd.apache.org/docs/2.2/mod/mod_auth_digest.html#authdigestdomain\">Apache AuthDigestDomain\ndocumentation</a>.</p>\n\n<h6><code>auth_digest_nonce_lifetime</code></h6>\n\n<p>Sets the value for <code>AuthDigestNonceLifetime</code> as per the <a href=\"https://httpd.apache.org/docs/2.2/mod/mod_auth_digest.html#authdigestnoncelifetime\">Apache\nAuthDigestNonceLifetime\ndocumentation</a></p>\n\n<h6><code>auth_digest_provider</code></h6>\n\n<p>Sets the value for <code>AuthDigestProvider</code> as per the <a href=\"https://httpd.apache.org/docs/2.2/mod/mod_auth_digest.html#authdigestprovider\">Apache AuthDigestProvider\ndocumentation</a>.</p>\n\n<h6><code>auth_digest_qop</code></h6>\n\n<p>Sets the value for <code>AuthDigestQop</code> as per the <a href=\"https://httpd.apache.org/docs/2.2/mod/mod_auth_digest.html#authdigestqop\">Apache AuthDigestQop\ndocumentation</a>.</p>\n\n<h6><code>auth_digest_shmem_size</code></h6>\n\n<p>Sets the value for <code>AuthAuthDigestShmemSize</code> as per the <a href=\"https://httpd.apache.org/docs/2.2/mod/mod_auth_digest.html#authdigestshmemsize\">Apache AuthDigestShmemSize\ndocumentation</a>.</p>\n\n<h6><code>auth_basic_authoritative</code></h6>\n\n<p>Sets the value for <code>AuthBasicAuthoritative</code> as per the <a href=\"https://httpd.apache.org/docs/2.2/mod/mod_auth_basic.html#authbasicauthoritative\">Apache\nAuthBasicAuthoritative\ndocumentation</a>.</p>\n\n<h6><code>auth_basic_fake</code></h6>\n\n<p>Sets the value for <code>AuthBasicFake</code> as per the <a href=\"https://httpd.apache.org/docs/trunk/mod/mod_auth_basic.html#authbasicfake\">Apache AuthBasicFake\ndocumentation</a>.</p>\n\n<h6><code>auth_basic_provider</code></h6>\n\n<p>Sets the value for <code>AuthBasicProvider</code> as per the <a href=\"https://httpd.apache.org/docs/2.2/mod/mod_auth_basic.html#authbasicprovider\">Apache AuthBasicProvider\ndocumentation</a>.</p>\n\n<h6><code>auth_user_file</code></h6>\n\n<p>Sets the value for <code>AuthUserFile</code> as per the <a href=\"https://httpd.apache.org/docs/2.2/mod/mod_authn_file.html#authuserfile\">Apache AuthUserFile\ndocumentation</a>.</p>\n\n<h6><code>auth_require</code></h6>\n\n<p>Sets the value for <code>AuthName</code> as per the <a href=\"https://httpd.apache.org/docs/2.2/mod/core.html#require\">Apache Require\ndocumentation</a></p>\n\n<h6><code>passenger_enabled</code></h6>\n\n<p>Sets the value for the <code>PassengerEnabled</code> directory to <code>on</code> or <code>off</code> as per the <a href=\"http://www.modrails.com/documentation/Users%20guide%20Apache.html#PassengerEnabled\">Passenger documentation</a>.</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;sample.example.net&#39;:\n      docroot     =&gt; &#39;/path/to/directory&#39;,\n      directories =&gt; [ { path =&gt; &#39;/path/to/directory&#39;, passenger_enabled =&gt; &#39;off&#39; } ],\n    }\n</code></pre>\n\n<p><strong>Note:</strong> This directive requires <code>apache::mod::passenger</code> to be active, Apache may not start with an unrecognised directive without it.</p>\n\n<p><strong>Note:</strong> Be aware that there is an <a href=\"http://www.conandalton.net/2010/06/passengerenabled-off-not-working.html\">issue</a> using the <code>PassengerEnabled</code> directive with the <code>PassengerHighPerformance</code> directive.</p>\n\n<h6><code>ssl_options</code></h6>\n\n<p>String or list of <a href=\"https://httpd.apache.org/docs/2.2/mod/mod_ssl.html#ssloptions\"><code>SSLOptions</code></a> for the given <code>&lt;Directory&gt;</code> block. This overrides, or refines the <a href=\"https://httpd.apache.org/docs/2.2/mod/mod_ssl.html#ssloptions\"><code>SSLOptions</code></a> of the parent block (either vhost, or server).</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;secure.example.net&#39;:\n      docroot     =&gt; &#39;/path/to/directory&#39;,\n      directories =&gt; [\n        { path =&gt; &#39;/path/to/directory&#39;, ssl_options =&gt; &#39;+ExportCertData&#39; }\n        { path =&gt; &#39;/path/to/different/dir&#39;, ssl_options =&gt; [ &#39;-StdEnvVars&#39;, &#39;+ExportCertData&#39;] },\n      ],\n    }\n</code></pre>\n\n<h6><code>suphp</code></h6>\n\n<p>An array containing two values: User and group for the <a href=\"http://www.suphp.org/DocumentationView.html?file=apache/CONFIG\">suPHP_UserGroup</a> setting.\nThis directive must be used with <code>suphp_engine =&gt; on</code> in the vhost declaration. This directive only works in <code>&lt;Directory&gt;</code> or <code>&lt;Location&gt;</code>.</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;secure.example.net&#39;:\n      docroot     =&gt; &#39;/path/to/directory&#39;,\n      directories =&gt; [\n        { path =&gt; &#39;/path/to/directory&#39;, suphp =&gt; { user =&gt;  &#39;myappuser&#39;, group =&gt; &#39;myappgroup&#39; }\n      ],\n    }\n</code></pre>\n\n<h6><code>custom_fragment</code></h6>\n\n<p>Pass a string of custom configuration directives to be placed at the end of the\ndirectory configuration.</p>\n\n<h5><code>directoryindex</code></h5>\n\n<p>Set a DirectoryIndex directive, to set the list of resources to look for, when the client requests an index of the directory by specifying a / at the end of the directory name..</p>\n\n<h5><code>docroot</code></h5>\n\n<p>Provides the DocumentRoot directive, identifying the directory Apache serves files from.</p>\n\n<h5><code>docroot_group</code></h5>\n\n<p>Sets group access to the docroot directory. Defaults to &#39;root&#39;.</p>\n\n<h5><code>docroot_owner</code></h5>\n\n<p>Sets individual user access to the docroot directory. Defaults to &#39;root&#39;.</p>\n\n<h5><code>error_log</code></h5>\n\n<p>Specifies whether <code>*_error.log</code> directives should be configured. Defaults to &#39;true&#39;.</p>\n\n<h5><code>error_log_file</code></h5>\n\n<p>Points to the <code>*_error.log</code> file. Defaults to &#39;undef&#39;.</p>\n\n<h5><code>error_log_pipe</code></h5>\n\n<p>Specifies a pipe to send error log messages to. Defaults to &#39;undef&#39;.</p>\n\n<h5><code>error_log_syslog</code></h5>\n\n<p>Sends all error log messages to syslog. Defaults to &#39;undef&#39;.</p>\n\n<h5><code>error_documents</code></h5>\n\n<p>A list of hashes which can be used to override the <a href=\"https://httpd.apache.org/docs/2.2/mod/core.html#errordocument\">ErrorDocument</a> settings for this vhost. Defaults to <code>[]</code>. Example:</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;sample.example.net&#39;:\n      error_documents =&gt; [\n        { &#39;error_code&#39; =&gt; &#39;503&#39;, &#39;document&#39; =&gt; &#39;/service-unavail&#39; },\n        { &#39;error_code&#39; =&gt; &#39;407&#39;, &#39;document&#39; =&gt; &#39;https://example.com/proxy/login&#39; },\n      ],\n    }\n</code></pre>\n\n<h5><code>ensure</code></h5>\n\n<p>Specifies if the vhost file is present or absent.</p>\n\n<h5><code>fastcgi_server</code></h5>\n\n<p>Specifies the filename as an external FastCGI application. Defaults to &#39;undef&#39;.</p>\n\n<h5><code>fastcgi_socket</code></h5>\n\n<p>Filename used to communicate with the web server.  Defaults to &#39;undef&#39;.</p>\n\n<h5><code>fastcgi_dir</code></h5>\n\n<p>Directory to enable for FastCGI.  Defaults to &#39;undef&#39;.</p>\n\n<h5><code>additional_includes</code></h5>\n\n<p>Specifies paths to additional static vhost-specific Apache configuration files.\nThis option is useful when you need to implement a unique and/or custom\nconfiguration not supported by this module.</p>\n\n<h5><code>ip</code></h5>\n\n<p>The IP address the vhost listens on. Defaults to &#39;undef&#39;.</p>\n\n<h5><code>ip_based</code></h5>\n\n<p>Enables an IP-based vhost. This parameter inhibits the creation of a NameVirtualHost directive, since those are used to funnel requests to name-based vhosts. Defaults to &#39;false&#39;.</p>\n\n<h5><code>logroot</code></h5>\n\n<p>Specifies the location of the virtual host&#39;s logfiles. Defaults to <code>/var/log/&lt;apache log location&gt;/</code>.</p>\n\n<h5><code>log_level</code></h5>\n\n<p>Specifies the verbosity level of the error log. Defaults to <code>warn</code> for the global server configuration and can be overridden on a per-vhost basis using this parameter. Valid value for <code>log_level</code> is one of <code>emerg</code>, <code>alert</code>, <code>crit</code>, <code>error</code>, <code>warn</code>, <code>notice</code>, <code>info</code> or <code>debug</code>.</p>\n\n<h5><code>no_proxy_uris</code></h5>\n\n<p>Specifies URLs you do not want to proxy. This parameter is meant to be used in combination with <code>proxy_dest</code>.</p>\n\n<h5><code>options</code></h5>\n\n<p>Lists the options for the given virtual host</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;site.name.fdqn&#39;:\n      …\n      options =&gt; [&#39;Indexes&#39;,&#39;FollowSymLinks&#39;,&#39;MultiViews&#39;],\n    }\n</code></pre>\n\n<h5><code>override</code></h5>\n\n<p>Sets the overrides for the given virtual host. Accepts an array of AllowOverride arguments.</p>\n\n<h5><code>port</code></h5>\n\n<p>Sets the port the host is configured on.</p>\n\n<h5><code>priority</code></h5>\n\n<p>Sets the relative load-order for Apache httpd VirtualHost configuration files. Defaults to &#39;25&#39;.</p>\n\n<p>If nothing matches the priority, the first name-based vhost will be used. Likewise, passing a higher priority will cause the alphabetically first name-based vhost to be used if no other names match.</p>\n\n<p><em>Note</em>: You should not need to use this parameter. However, if you do use it, be aware that the <code>default_vhost</code> parameter for <code>apache::vhost</code> passes a priority of &#39;15&#39;.</p>\n\n<h5><code>proxy_dest</code></h5>\n\n<p>Specifies the destination address of a proxypass configuration. Defaults to &#39;undef&#39;.</p>\n\n<h5><code>proxy_pass</code></h5>\n\n<p>Specifies an array of path =&gt; uri for a proxypass configuration. Defaults to &#39;undef&#39;.</p>\n\n<p>Example:</p>\n\n<pre lang=\"puppet\"><code>$proxy_pass = [\n  { &#39;path&#39; =&gt; &#39;/a&#39;, &#39;url&#39; =&gt; &#39;http://backend-a/&#39; },\n  { &#39;path&#39; =&gt; &#39;/b&#39;, &#39;url&#39; =&gt; &#39;http://backend-b/&#39; },\n  { &#39;path&#39; =&gt; &#39;/c&#39;, &#39;url&#39; =&gt; &#39;http://backend-a/c&#39; }\n]\n\napache::vhost { &#39;site.name.fdqn&#39;:\n  …\n  proxy_pass       =&gt; $proxy_pass,\n}\n</code></pre>\n\n<h5><code>rack_base_uris</code></h5>\n\n<p>Specifies the resource identifiers for a rack configuration. The file paths specified will be listed as rack application roots for passenger/rack in the <code>_rack.erb</code> template. Defaults to &#39;undef&#39;.</p>\n\n<h5><code>redirect_dest</code></h5>\n\n<p>Specifies the address to redirect to. Defaults to &#39;undef&#39;.</p>\n\n<h5><code>redirect_source</code></h5>\n\n<p>Specifies the source items? that will redirect to the destination specified in <code>redirect_dest</code>. If more than one item for redirect is supplied, the source and destination must be the same length, and the items are order-dependent.</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;site.name.fdqn&#39;:\n      …\n      redirect_source =&gt; [&#39;/images&#39;,&#39;/downloads&#39;],\n      redirect_dest =&gt; [&#39;http://img.example.com/&#39;,&#39;http://downloads.example.com/&#39;],\n    }\n</code></pre>\n\n<h5><code>redirect_status</code></h5>\n\n<p>Specifies the status to append to the redirect. Defaults to &#39;undef&#39;.</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;site.name.fdqn&#39;:\n      …\n      redirect_status =&gt; [&#39;temp&#39;,&#39;permanent&#39;],\n    }\n</code></pre>\n\n<h5><code>request_headers</code></h5>\n\n<p>Specifies additional request headers.</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;site.name.fdqn&#39;:\n      …\n      request_headers =&gt; [\n        &#39;append MirrorID &quot;mirror 12&quot;&#39;,\n        &#39;unset MirrorID&#39;,\n      ],\n    }\n</code></pre>\n\n<h5><code>rewrite_base</code></h5>\n\n<p>Limits the <code>rewrite_rule</code> to the specified base URL. Defaults to &#39;undef&#39;.</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;site.name.fdqn&#39;:\n      …\n      rewrite_rule =&gt; &#39;^index\\.html$ welcome.html&#39;,\n      rewrite_base =&gt; &#39;/blog/&#39;,\n    }\n</code></pre>\n\n<p>The above example would limit the index.html -&gt; welcome.html rewrite to only something inside of <a href=\"http://example.com/blog/\">http://example.com/blog/</a>.</p>\n\n<h5><code>rewrite_cond</code></h5>\n\n<p>Rewrites a URL via <code>rewrite_rule</code> based on the truth of specified conditions. For example</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;site.name.fdqn&#39;:\n      …\n      rewrite_cond =&gt; &#39;%{HTTP_USER_AGENT} ^MSIE&#39;,\n    }\n</code></pre>\n\n<p>will rewrite URLs only if the visitor is using IE. Defaults to &#39;undef&#39;.</p>\n\n<p><em>Note</em>: At the moment, each vhost is limited to a single list of rewrite conditions. In the future, you will be able to specify multiple <code>rewrite_cond</code> and <code>rewrite_rules</code> per vhost, so that different conditions get different rewrites.</p>\n\n<h5><code>rewrite_rule</code></h5>\n\n<p>Creates URL rewrite rules. Defaults to &#39;undef&#39;. This parameter allows you to specify, for example, that anyone trying to access index.html will be served welcome.html.</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;site.name.fdqn&#39;:\n      …\n      rewrite_rule =&gt; &#39;^index\\.html$ welcome.html&#39;,\n    }\n</code></pre>\n\n<h5><code>scriptalias</code></h5>\n\n<p>Defines a directory of CGI scripts to be aliased to the path &#39;/cgi-bin&#39;</p>\n\n<h5><code>scriptaliases</code></h5>\n\n<p>Passes a list of hashes to the vhost to create <code>ScriptAlias</code> or <code>ScriptAliasMatch</code> statements as per the <a href=\"http://httpd.apache.org/docs/current/mod/mod_alias.html\"><code>mod_alias</code> documentation</a>. Each hash is expected to be of the form:</p>\n\n<pre lang=\"puppet\"><code>    scriptaliases =&gt; [\n      {\n        alias =&gt; &#39;/myscript&#39;,\n        path  =&gt; &#39;/usr/share/myscript&#39;,\n      },\n      {\n        aliasmatch =&gt; &#39;^/foo(.*)&#39;,\n        path       =&gt; &#39;/usr/share/fooscripts$1&#39;,\n      },\n      {\n        aliasmatch =&gt; &#39;^/bar/(.*)&#39;,\n        path       =&gt; &#39;/usr/share/bar/wrapper.sh/$1&#39;,\n      },\n      {\n        alias =&gt; &#39;/neatscript&#39;,\n        path  =&gt; &#39;/usr/share/neatscript&#39;,\n      },\n    ]\n</code></pre>\n\n<p>These directives are created in the order specified. As with <code>Alias</code> and <code>AliasMatch</code> directives the more specific aliases should come before the more general ones to avoid shadowing.</p>\n\n<h5><code>serveradmin</code></h5>\n\n<p>Specifies the email address Apache will display when it renders one of its error pages.</p>\n\n<h5><code>serveraliases</code></h5>\n\n<p>Sets the server aliases of the site.</p>\n\n<h5><code>servername</code></h5>\n\n<p>Sets the primary name of the virtual host.</p>\n\n<h5><code>setenv</code></h5>\n\n<p>Used by HTTPD to set environment variables for vhosts. Defaults to &#39;[]&#39;.</p>\n\n<h5><code>setenvif</code></h5>\n\n<p>Used by HTTPD to conditionally set environment variables for vhosts. Defaults to &#39;[]&#39;.</p>\n\n<h5><code>ssl</code></h5>\n\n<p>Enables SSL for the virtual host. SSL vhosts only respond to HTTPS queries. Valid values are &#39;true&#39; or &#39;false&#39;.</p>\n\n<h5><code>ssl_ca</code></h5>\n\n<p>Specifies the certificate authority.</p>\n\n<h5><code>ssl_cert</code></h5>\n\n<p>Specifies the SSL certification.</p>\n\n<h5><code>ssl_protocol</code></h5>\n\n<p>Specifies the SSL Protocol (SSLProtocol).</p>\n\n<h5><code>ssl_cipher</code></h5>\n\n<p>Specifies the SSLCipherSuite.</p>\n\n<h5><code>ssl_honorcipherorder</code></h5>\n\n<p>Sets SSLHonorCipherOrder directive, used to prefer the server&#39;s cipher preference order</p>\n\n<h5><code>ssl_certs_dir</code></h5>\n\n<p>Specifies the location of the SSL certification directory. Defaults to <code>/etc/ssl/certs</code> on Debian and <code>/etc/pki/tls/certs</code> on RedHat.</p>\n\n<h5><code>ssl_chain</code></h5>\n\n<p>Specifies the SSL chain.</p>\n\n<h5><code>ssl_crl</code></h5>\n\n<p>Specifies the certificate revocation list to use.</p>\n\n<h5><code>ssl_crl_path</code></h5>\n\n<p>Specifies the location of the certificate revocation list.</p>\n\n<h5><code>ssl_key</code></h5>\n\n<p>Specifies the SSL key.</p>\n\n<h5><code>ssl_verify_client</code></h5>\n\n<p>Sets <code>SSLVerifyClient</code> directives as per the <a href=\"http://httpd.apache.org/docs/2.2/mod/mod_ssl.html#sslverifyclient\">Apache Core documentation</a>. Defaults to undef.\nAn example:</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;sample.example.net&#39;:\n      …\n      ssl_verify_client =&gt; &#39;optional&#39;,\n    }\n</code></pre>\n\n<h5><code>ssl_verify_depth</code></h5>\n\n<p>Sets <code>SSLVerifyDepth</code> directives as per the <a href=\"http://httpd.apache.org/docs/2.2/mod/mod_ssl.html#sslverifydepth\">Apache Core documentation</a>. Defaults to undef.\nAn example:</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;sample.example.net&#39;:\n      …\n      ssl_verify_depth =&gt; 1,\n    }\n</code></pre>\n\n<h5><code>ssl_options</code></h5>\n\n<p>Sets <code>SSLOptions</code> directives as per the <a href=\"http://httpd.apache.org/docs/2.2/mod/mod_ssl.html#ssloptions\">Apache Core documentation</a>. This is the global setting for the vhost and can be a string or an array. Defaults to undef. A single string example:</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;sample.example.net&#39;:\n      …\n      ssl_options =&gt; &#39;+ExportCertData&#39;,\n    }\n</code></pre>\n\n<p>An array of strings example:</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;sample.example.net&#39;:\n      …\n      ssl_options =&gt; [ &#39;+StrictRequire&#39;, &#39;+ExportCertData&#39; ],\n    }\n</code></pre>\n\n<h5><code>ssl_proxyengine</code></h5>\n\n<p>Specifies whether to use <code>SSLProxyEngine</code> or not. Defaults to <code>false</code>.</p>\n\n<h5><code>vhost_name</code></h5>\n\n<p>This parameter is for use with name-based virtual hosting. Defaults to &#39;*&#39;.</p>\n\n<h5><code>itk</code></h5>\n\n<p>Hash containing infos to configure itk as per the <a href=\"http://mpm-itk.sesse.net/\">ITK documentation</a>.</p>\n\n<p>Keys could be:</p>\n\n<ul>\n<li>user + group</li>\n<li>assignuseridexpr</li>\n<li>assigngroupidexpr</li>\n<li>maxclientvhost</li>\n<li>nice</li>\n<li>limituidrange (Linux 3.5.0 or newer)</li>\n<li>limitgidrange (Linux 3.5.0 or newer)</li>\n</ul>\n\n<p>Usage will typically look like:</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;sample.example.net&#39;:\n      docroot     =&gt; &#39;/path/to/directory&#39;,\n      itk =&gt; {\n        user  =&gt; &#39;someuser&#39;,\n        group =&gt; &#39;somegroup&#39;,\n      },\n    }\n</code></pre>\n\n<h3>Virtual Host Examples</h3>\n\n<p>The Apache module allows you to set up pretty much any configuration of virtual host you might desire. This section will address some common configurations. Please see the <a href=\"https://github.com/puppetlabs/puppetlabs-apache/tree/master/tests\">Tests section</a> for even more examples.</p>\n\n<p>Configure a vhost with a server administrator</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;third.example.com&#39;:\n      port        =&gt; &#39;80&#39;,\n      docroot     =&gt; &#39;/var/www/third&#39;,\n      serveradmin =&gt; &#39;admin@example.com&#39;,\n    }\n</code></pre>\n\n<hr>\n\n<p>Set up a vhost with aliased servers</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;sixth.example.com&#39;:\n      serveraliases =&gt; [\n        &#39;sixth.example.org&#39;,\n        &#39;sixth.example.net&#39;,\n      ],\n      port          =&gt; &#39;80&#39;,\n      docroot       =&gt; &#39;/var/www/fifth&#39;,\n    }\n</code></pre>\n\n<hr>\n\n<p>Configure a vhost with a cgi-bin</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;eleventh.example.com&#39;:\n      port        =&gt; &#39;80&#39;,\n      docroot     =&gt; &#39;/var/www/eleventh&#39;,\n      scriptalias =&gt; &#39;/usr/lib/cgi-bin&#39;,\n    }\n</code></pre>\n\n<hr>\n\n<p>Set up a vhost with a rack configuration</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;fifteenth.example.com&#39;:\n      port           =&gt; &#39;80&#39;,\n      docroot        =&gt; &#39;/var/www/fifteenth&#39;,\n      rack_base_uris =&gt; [&#39;/rackapp1&#39;, &#39;/rackapp2&#39;],\n    }\n</code></pre>\n\n<hr>\n\n<p>Set up a mix of SSL and non-SSL vhosts at the same domain</p>\n\n<pre lang=\"puppet\"><code>    #The non-ssl vhost\n    apache::vhost { &#39;first.example.com non-ssl&#39;:\n      servername =&gt; &#39;first.example.com&#39;,\n      port       =&gt; &#39;80&#39;,\n      docroot    =&gt; &#39;/var/www/first&#39;,\n    }\n\n    #The SSL vhost at the same domain\n    apache::vhost { &#39;first.example.com ssl&#39;:\n      servername =&gt; &#39;first.example.com&#39;,\n      port       =&gt; &#39;443&#39;,\n      docroot    =&gt; &#39;/var/www/first&#39;,\n      ssl        =&gt; true,\n    }\n</code></pre>\n\n<hr>\n\n<p>Configure a vhost to redirect non-SSL connections to SSL</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;sixteenth.example.com non-ssl&#39;:\n      servername      =&gt; &#39;sixteenth.example.com&#39;,\n      port            =&gt; &#39;80&#39;,\n      docroot         =&gt; &#39;/var/www/sixteenth&#39;,\n      redirect_status =&gt; &#39;permanent&#39;\n      redirect_dest   =&gt; &#39;https://sixteenth.example.com/&#39;\n    }\n    apache::vhost { &#39;sixteenth.example.com ssl&#39;:\n      servername =&gt; &#39;sixteenth.example.com&#39;,\n      port       =&gt; &#39;443&#39;,\n      docroot    =&gt; &#39;/var/www/sixteenth&#39;,\n      ssl        =&gt; true,\n    }\n</code></pre>\n\n<hr>\n\n<p>Set up IP-based vhosts on any listen port and have them respond to requests on specific IP addresses. In this example, we will set listening on ports 80 and 81. This is required because the example vhosts are not declared with a port parameter.</p>\n\n<pre lang=\"puppet\"><code>    apache::listen { &#39;80&#39;: }\n    apache::listen { &#39;81&#39;: }\n</code></pre>\n\n<p>Then we will set up the IP-based vhosts</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;first.example.com&#39;:\n      ip       =&gt; &#39;10.0.0.10&#39;,\n      docroot  =&gt; &#39;/var/www/first&#39;,\n      ip_based =&gt; true,\n    }\n    apache::vhost { &#39;second.example.com&#39;:\n      ip       =&gt; &#39;10.0.0.11&#39;,\n      docroot  =&gt; &#39;/var/www/second&#39;,\n      ip_based =&gt; true,\n    }\n</code></pre>\n\n<hr>\n\n<p>Configure a mix of name-based and IP-based vhosts. First, we will add two IP-based vhosts on 10.0.0.10, one SSL and one non-SSL</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;The first IP-based vhost, non-ssl&#39;:\n      servername =&gt; &#39;first.example.com&#39;,\n      ip         =&gt; &#39;10.0.0.10&#39;,\n      port       =&gt; &#39;80&#39;,\n      ip_based   =&gt; true,\n      docroot    =&gt; &#39;/var/www/first&#39;,\n    }\n    apache::vhost { &#39;The first IP-based vhost, ssl&#39;:\n      servername =&gt; &#39;first.example.com&#39;,\n      ip         =&gt; &#39;10.0.0.10&#39;,\n      port       =&gt; &#39;443&#39;,\n      ip_based   =&gt; true,\n      docroot    =&gt; &#39;/var/www/first-ssl&#39;,\n      ssl        =&gt; true,\n    }\n</code></pre>\n\n<p>Then, we will add two name-based vhosts listening on 10.0.0.20</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;second.example.com&#39;:\n      ip      =&gt; &#39;10.0.0.20&#39;,\n      port    =&gt; &#39;80&#39;,\n      docroot =&gt; &#39;/var/www/second&#39;,\n    }\n    apache::vhost { &#39;third.example.com&#39;:\n      ip      =&gt; &#39;10.0.0.20&#39;,\n      port    =&gt; &#39;80&#39;,\n      docroot =&gt; &#39;/var/www/third&#39;,\n    }\n</code></pre>\n\n<p>If you want to add two name-based vhosts so that they will answer on either 10.0.0.10 or 10.0.0.20, you <strong>MUST</strong> declare <code>add_listen =&gt; &#39;false&#39;</code> to disable the otherwise automatic &#39;Listen 80&#39;, as it will conflict with the preceding IP-based vhosts.</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;fourth.example.com&#39;:\n      port       =&gt; &#39;80&#39;,\n      docroot    =&gt; &#39;/var/www/fourth&#39;,\n      add_listen =&gt; false,\n    }\n    apache::vhost { &#39;fifth.example.com&#39;:\n      port       =&gt; &#39;80&#39;,\n      docroot    =&gt; &#39;/var/www/fifth&#39;,\n      add_listen =&gt; false,\n    }\n</code></pre>\n\n<h2>Implementation</h2>\n\n<h3>Classes and Defined Types</h3>\n\n<h4>Class: <code>apache::dev</code></h4>\n\n<p>Installs Apache development libraries</p>\n\n<pre lang=\"puppet\"><code>    class { &#39;apache::dev&#39;: }\n</code></pre>\n\n<p>On FreeBSD you&#39;re required to define <code>apache::package</code> or <code>apache</code> class before <code>apache::dev</code>.</p>\n\n<h4>Defined Type: <code>apache::listen</code></h4>\n\n<p>Controls which ports Apache binds to for listening based on the title:</p>\n\n<pre lang=\"puppet\"><code>    apache::listen { &#39;80&#39;: }\n    apache::listen { &#39;443&#39;: }\n</code></pre>\n\n<p>Declaring this defined type will add all <code>Listen</code> directives to the <code>ports.conf</code> file in the Apache httpd configuration directory.  <code>apache::listen</code> titles should always take the form of: <code>&lt;port&gt;</code>, <code>&lt;ipv4&gt;:&lt;port&gt;</code>, or <code>[&lt;ipv6&gt;]:&lt;port&gt;</code></p>\n\n<p>Apache httpd requires that <code>Listen</code> directives must be added for every port. The <code>apache::vhost</code> defined type will automatically add <code>Listen</code> directives unless the <code>apache::vhost</code> is passed <code>add_listen =&gt; false</code>.</p>\n\n<h4>Defined Type: <code>apache::namevirtualhost</code></h4>\n\n<p>Enables named-based hosting of a virtual host</p>\n\n<pre lang=\"puppet\"><code>    class { &#39;apache::namevirtualhost`: }\n</code></pre>\n\n<p>Declaring this defined type will add all <code>NameVirtualHost</code> directives to the <code>ports.conf</code> file in the Apache https configuration directory. <code>apache::namevirtualhost</code> titles should always take the form of: <code>*</code>, <code>*:&lt;port&gt;</code>, <code>_default_:&lt;port&gt;</code>, <code>&lt;ip&gt;</code>, or <code>&lt;ip&gt;:&lt;port&gt;</code>.</p>\n\n<h4>Defined Type: <code>apache::balancermember</code></h4>\n\n<p>Define members of a proxy_balancer set (mod_proxy_balancer). Very useful when using exported resources.</p>\n\n<p>On every app server you can export a balancermember like this:</p>\n\n<pre lang=\"puppet\"><code>      @@apache::balancermember { &quot;${::fqdn}-puppet00&quot;:\n        balancer_cluster =&gt; &#39;puppet00&#39;,\n        url              =&gt; &quot;ajp://${::fqdn}:8009&quot;\n        options          =&gt; [&#39;ping=5&#39;, &#39;disablereuse=on&#39;, &#39;retry=5&#39;, &#39;ttl=120&#39;],\n      }\n</code></pre>\n\n<p>And on the proxy itself you create the balancer cluster using the defined type apache::balancer:</p>\n\n<pre lang=\"puppet\"><code>      apache::balancer { &#39;puppet00&#39;: }\n</code></pre>\n\n<p>If you need to use ProxySet in the balncer config you can do as so:</p>\n\n<pre lang=\"puppet\"><code>      apache::balancer { &#39;puppet01&#39;:\n        proxy_set =&gt; {&#39;stickysession&#39; =&gt; &#39;JSESSIONID&#39;},\n      }\n</code></pre>\n\n<h3>Templates</h3>\n\n<p>The Apache module relies heavily on templates to enable the <code>vhost</code> and <code>apache::mod</code> defined types. These templates are built based on Facter facts around your operating system. Unless explicitly called out, most templates are not meant for configuration.</p>\n\n<h2>Limitations</h2>\n\n<p>This has been tested on Ubuntu Precise, Debian Wheezy, CentOS 5.8, and FreeBSD 9.1.</p>\n\n<h2>Development</h2>\n\n<h3>Overview</h3>\n\n<p>Puppet Labs modules on the Puppet Forge are open projects, and community contributions are essential for keeping them great. We can’t access the huge number of platforms and myriad of hardware, software, and deployment configurations that Puppet is intended to serve.</p>\n\n<p>We want to keep it as easy as possible to contribute changes so that our modules work in your environment. There are a few guidelines that we need contributors to follow so that we can have a chance of keeping on top of things.</p>\n\n<p>You can read the complete module contribution guide <a href=\"http://projects.puppetlabs.com/projects/module-site/wiki/Module_contributing\">on the Puppet Labs wiki.</a></p>\n\n<h3>Running tests</h3>\n\n<p>This project contains tests for both <a href=\"http://rspec-puppet.com/\">rspec-puppet</a> and <a href=\"https://github.com/puppetlabs/rspec-system\">rspec-system</a> to verify functionality. For in-depth information please see their respective documentation.</p>\n\n<p>Quickstart:</p>\n\n<pre><code>gem install bundler\nbundle install\nbundle exec rake spec\nbundle exec rake spec:system\n</code></pre>\n\n<h2>Copyright and License</h2>\n\n<p>Copyright (C) 2012 <a href=\"https://www.puppetlabs.com/\">Puppet Labs</a> Inc</p>\n\n<p>Puppet Labs can be contacted at: <a href=\"mailto:info@puppetlabs.com\">info@puppetlabs.com</a></p>\n\n<p>Licensed under the Apache License, Version 2.0 (the &quot;License&quot;);\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at</p>\n\n<p><a href=\"http://www.apache.org/licenses/LICENSE-2.0\">http://www.apache.org/licenses/LICENSE-2.0</a></p>\n\n<p>Unless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an &quot;AS IS&quot; BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.</p>\n</section>",
ruby-puppet-forge-2.3.2/spec/fixtures/v3/modules__owner=puppetlabs.json-1281-        "changelog": "<section class=\"markdown\"><h2>2013-12-05 Release 0.10.0</h2>\n\n<h3>Summary:</h3>\n\n<p>This release adds FreeBSD osfamily support and various other improvements to some mods.</p>\n\n<h3>Features:</h3>\n\n<ul>\n<li>Add suPHP_UserGroup directive to directory context</li>\n<li>Add support for ScriptAliasMatch directives</li>\n<li>Set SSLOptions StdEnvVars in server context</li>\n<li>No implicit <Directory> entry for ScriptAlias path</li>\n<li>Add support for overriding ErrorDocument</li>\n<li>Add support for AliasMatch directives</li>\n<li>Disable default &quot;allow from all&quot; in vhost-directories</li>\n<li>Add WSGIPythonPath as an optional parameter to mod_wsgi. </li>\n<li>Add mod_rpaf support</li>\n<li>Add directives: IndexOptions, IndexOrderDefault</li>\n<li>Add ability to include additional external configurations in vhost</li>\n<li>need to use the provider variable not the provider key value from the directory hash for matches</li>\n<li>Support for FreeBSD and few other features</li>\n<li>Add new params to apache::mod::mime class</li>\n<li>Allow apache::mod to specify module id and path</li>\n<li>added $server_root parameter</li>\n<li>Add Allow and ExtendedStatus support to mod_status</li>\n<li>Expand vhost/_directories.pp directive support</li>\n<li>Add initial support for nss module (no directives in vhost template yet)</li>\n<li>added peruser and event mpms</li>\n<li>added $service_name parameter</li>\n<li>add parameter for TraceEnable</li>\n<li>Make LogLevel configurable for server and vhost</li>\n<li>Add documentation about $ip</li>\n<li>Add ability to pass ip (instead of wildcard) in default vhost files</li>\n</ul>\n\n<h3>Bugfixes:</h3>\n\n<ul>\n<li>Don&#39;t listen on port or set NameVirtualHost for non-existent vhost</li>\n<li>only apply Directory defaults when provider is a directory</li>\n<li>Working mod_authnz_ldap support on Debian/Ubuntu</li>\n</ul>\n\n<h2>2013-09-06 Release 0.9.0</h2>\n\n<h3>Summary:</h3>\n\n<p>This release adds more parameters to the base apache class and apache defined\nresource to make the module more flexible. It also adds or enhances SuPHP,\nWSGI, and Passenger mod support, and support for the ITK mpm module.</p>\n\n<h3>Backwards-incompatible Changes:</h3>\n\n<ul>\n<li>Remove many default mods that are not normally needed.</li>\n<li>Remove <code>rewrite_base</code> <code>apache::vhost</code> parameter; did not work anyway.</li>\n<li>Specify dependencies on stdlib &gt;=2.4.0 (this was already the case, but\nmaking explicit)</li>\n<li>Deprecate <code>a2mod</code> in favor of the <code>apache::mod::*</code> classes and <code>apache::mod</code>\ndefined resource.</li>\n</ul>\n\n<h3>Features:</h3>\n\n<ul>\n<li><code>apache</code> class\n\n<ul>\n<li>Add <code>httpd_dir</code> parameter to change the location of the configuration\nfiles.</li>\n<li>Add <code>logroot</code> parameter to change the logroot</li>\n<li>Add <code>ports_file</code> parameter to changes the <code>ports.conf</code> file location</li>\n<li>Add <code>keepalive</code> parameter to enable persistent connections</li>\n<li>Add <code>keepalive_timeout</code> parameter to change the timeout</li>\n<li>Update <code>default_mods</code> to be able to take an array of mods to enable.</li>\n</ul></li>\n<li><code>apache::vhost</code>\n\n<ul>\n<li>Add <code>wsgi_daemon_process</code>, <code>wsgi_daemon_process_options</code>,\n<code>wsgi_process_group</code>, and <code>wsgi_script_aliases</code> parameters for per-vhost\nWSGI configuration.</li>\n<li>Add <code>access_log_syslog</code> parameter to enable syslogging.</li>\n<li>Add <code>error_log_syslog</code> parameter to enable syslogging of errors.</li>\n<li>Add <code>directories</code> hash parameter. Please see README for documentation.</li>\n<li>Add <code>sslproxyengine</code> parameter to enable SSLProxyEngine</li>\n<li>Add <code>suphp_addhandler</code>, <code>suphp_engine</code>, and <code>suphp_configpath</code> for\nconfiguring SuPHP.</li>\n<li>Add <code>custom_fragment</code> parameter to allow for arbitrary apache\nconfiguration injection. (Feature pull requests are prefered over using\nthis, but it is available in a pinch.)</li>\n</ul></li>\n<li>Add <code>apache::mod::suphp</code> class for configuring SuPHP.</li>\n<li>Add <code>apache::mod::itk</code> class for configuring ITK mpm module.</li>\n<li>Update <code>apache::mod::wsgi</code> class for global WSGI configuration with\n<code>wsgi_socket_prefix</code> and <code>wsgi_python_home</code> parameters.</li>\n<li>Add README.passenger.md to document the <code>apache::mod::passenger</code> usage.\nAdded <code>passenger_high_performance</code>, <code>passenger_pool_idle_time</code>,\n<code>passenger_max_requests</code>, <code>passenger_stat_throttle_rate</code>, <code>rack_autodetect</code>,\nand <code>rails_autodetect</code> parameters.</li>\n<li>Separate the httpd service resource into a new <code>apache::service</code> class for\ndependency chaining of <code>Class[&#39;apache&#39;] -&gt; &lt;resource&gt; ~&gt;\nClass[&#39;apache::service&#39;]</code></li>\n<li>Added <code>apache::mod::proxy_balancer</code> class for <code>apache::balancer</code></li>\n</ul>\n\n<h3>Bugfixes:</h3>\n\n<ul>\n<li>Change dependency to puppetlabs-concat</li>\n<li>Fix ruby 1.9 bug for <code>a2mod</code></li>\n<li>Change servername to be <code>$::hostname</code> if there is no <code>$::fqdn</code></li>\n<li>Make <code>/etc/ssl/certs</code> the default ssl certs directory for RedHat non-5.</li>\n<li>Make <code>php</code> the default php package for RedHat non-5.</li>\n<li>Made <code>aliases</code> able to take a single alias hash instead of requiring an\narray.</li>\n</ul>\n\n<h2>2013-07-26 Release 0.8.1</h2>\n\n<h3>Bugfixes:</h3>\n\n<ul>\n<li>Update <code>apache::mpm_module</code> detection for worker/prefork</li>\n<li>Update <code>apache::mod::cgi</code> and <code>apache::mod::cgid</code> detection for\nworker/prefork</li>\n</ul>\n\n<h2>2013-07-16 Release 0.8.0</h2>\n\n<h3>Features:</h3>\n\n<ul>\n<li>Add <code>servername</code> parameter to <code>apache</code> class</li>\n<li>Add <code>proxy_set</code> parameter to <code>apache::balancer</code> define</li>\n</ul>\n\n<h3>Bugfixes:</h3>\n\n<ul>\n<li>Fix ordering for multiple <code>apache::balancer</code> clusters</li>\n<li>Fix symlinking for sites-available on Debian-based OSs</li>\n<li>Fix dependency ordering for recursive confdir management</li>\n<li>Fix <code>apache::mod::*</code> to notify the service on config change</li>\n<li>Documentation updates</li>\n</ul>\n\n<h2>2013-07-09 Release 0.7.0</h2>\n\n<h3>Changes:</h3>\n\n<ul>\n<li>Essentially rewrite the module -- too many to list</li>\n<li><code>apache::vhost</code> has many abilities -- see README.md for details</li>\n<li><code>apache::mod::*</code> classes provide httpd mod-loading capabilities</li>\n<li><code>apache</code> base class is much more configurable</li>\n</ul>\n\n<h3>Bugfixes:</h3>\n\n<ul>\n<li>Many. And many more to come</li>\n</ul>\n\n<h2>2013-03-2 Release 0.6.0</h2>\n\n<ul>\n<li>update travis tests (add more supported versions)</li>\n<li>add access log_parameter</li>\n<li>make purging of vhost dir configurable</li>\n</ul>\n\n<h2>2012-08-24 Release 0.4.0</h2>\n\n<h3>Changes:</h3>\n\n<ul>\n<li><code>include apache</code> is now required when using <code>apache::mod::*</code></li>\n</ul>\n\n<h3>Bugfixes:</h3>\n\n<ul>\n<li>Fix syntax for validate_re</li>\n<li>Fix formatting in vhost template</li>\n<li><p>Fix spec tests such that they pass</p>\n\n<p>2012-05-08 Puppet Labs <a href=\"mailto:info@puppetlabs.com\">info@puppetlabs.com</a> - 0.0.4\ne62e362 Fix broken tests for ssl, vhost, vhost::*\n42c6363 Changes to match style guide and pass puppet-lint without error\n42bc8ba changed name =&gt; path for file resources in order to name namevar by it&#39;s name\n72e13de One end too much\n0739641 style guide fixes: &#39;true&#39; &lt;&gt; true, $operatingsystem needs to be $::operatingsystem, etc.\n273f94d fix tests\na35ede5 (#13860) Make a2enmod/a2dismo commands optional\n98d774e (#13860) Autorequire Package[&#39;httpd&#39;]\n05fcec5 (#13073) Add missing puppet spec tests\n541afda (#6899) Remove virtual a2mod definition\n976cb69 (#13072) Move mod python and wsgi package names to params\n323915a (#13060) Add .gitignore to repo\nfdf40af (#13060) Remove pkg directory from source tree\nfd90015 Add LICENSE file and update the ModuleFile\nd3d0d23 Re-enable local php class\nd7516c7 Make management of firewalls configurable for vhosts\n60f83ba Explicitly lookup scope of apache_name in templates.\nf4d287f (#12581) Add explicit ordering for vdir directory\n88a2ac6 (#11706) puppetlabs-apache depends on puppetlabs-firewall\na776a8b (#11071) Fix to work with latest firewall module\n2b79e8b (#11070) Add support for Scientific Linux\n405b3e9 Fix for a2mod\n57b9048 Commit apache::vhost::redirect Manifest\n8862d01 Commit apache::vhost::proxy Manifest\nd5c1fd0 Commit apache::mod::wsgi Manifest\na825ac7 Commit apache::mod::python Manifest\nb77062f Commit Templates\n9a51b4a Vhost File Declarations\n6cf7312 Defaults for Parameters\n6a5b11a Ensure installed\nf672e46 a2mod fix\n8a56ee9 add pthon support to apache</p></li>\n</ul>\n</section>",
##############################################
ruby-puppet-forge-2.3.2/spec/fixtures/v3/modules__owner=puppetlabs.json-1690-        "readme": "<section class=\"markdown\"><h1>MySQL</h1>\n\n<h4>Table of Contents</h4>\n\n<ol>\n<li><a href=\"#overview\">Overview</a></li>\n<li><a href=\"#module-description\">Module Description - What the module does and why it is useful</a></li>\n<li><a href=\"#setup\">Setup - The basics of getting started with mysql</a>\n\n<ul>\n<li><a href=\"#what-mysql-affects\">What mysql affects</a></li>\n<li><a href=\"#setup-requirements\">Setup requirements</a></li>\n<li><a href=\"#beginning-with-mysql\">Beginning with mysql</a></li>\n</ul></li>\n<li><a href=\"#usage\">Usage - Configuration options and additional functionality</a></li>\n<li><a href=\"#reference\">Reference - An under-the-hood peek at what the module is doing and how</a></li>\n<li><a href=\"#limitations\">Limitations - OS compatibility, etc.</a></li>\n<li><a href=\"#development\">Development - Guide for contributing to the module</a></li>\n</ol>\n\n<h2>Overview</h2>\n\n<p>The MySQL module installs, configures, and manages the MySQL service.</p>\n\n<h2>Module Description</h2>\n\n<p>The MySQL module manages both the installation and configuration of MySQL as\nwell as extends Pupppet to allow management of MySQL resources, such as\ndatabases, users, and grants.</p>\n\n<h2>Backwards Compatibility</h2>\n\n<p>This module has just undergone a very large rewrite.  As a result it will no\nlonger work with the previous classes and configuration as before.  We&#39;ve\nattempted to handle backwards compatibility automatically by adding a\n<code>attempt_compatibility_mode</code> parameter to the main mysql class.  If you set\nthis to true it will attempt to map your previous parameters into the new\n<code>mysql::server</code> class.</p>\n\n<h3>WARNING</h3>\n\n<p>This may fail.  It may eat your MySQL server.  PLEASE test it before running it\nlive.  Even if it&#39;s just a no-op and a manual comparision.  Please be careful!</p>\n\n<h2>Setup</h2>\n\n<h3>What MySQL affects</h3>\n\n<ul>\n<li>MySQL package.</li>\n<li>MySQL configuration files.</li>\n<li>MySQL service.</li>\n</ul>\n\n<h3>Beginning with MySQL</h3>\n\n<p>If you just want a server installing with the default options you can run\n<code>include &#39;::mysql::server&#39;</code>.  If you need to customize options, such as the root\npassword or /etc/my.cnf settings then you can also include <code>mysql::server</code> and\npass in an override hash as seen below:</p>\n\n<pre lang=\"puppet\"><code>class { &#39;::mysql::server&#39;:\n  root_password    =&gt; &#39;strongpassword&#39;,\n  override_options =&gt; { &#39;mysqld&#39; =&gt; { &#39;max_connections&#39; =&gt; &#39;1024&#39; } }\n}\n</code></pre>\n\n<h2>Usage</h2>\n\n<p>All interaction for the server is done via <code>mysql::server</code>.  To install the\nclient you use <code>mysql::client</code>, and to install bindings you can use\n<code>mysql::bindings</code>.</p>\n\n<h3>Overrides</h3>\n\n<p>The hash structure for overrides in <code>mysql::server</code> is as follows:</p>\n\n<pre lang=\"puppet\"><code>$override_options = {\n  &#39;section&#39; =&gt; {\n    &#39;item&#39;             =&gt; &#39;thing&#39;,\n  }\n}\n</code></pre>\n\n<p>For items that you would traditionally represent as:</p>\n\n<pre>\n[section]\nthing\n</pre>\n\n<p>You can just make an entry like <code>thing =&gt; true</code> in the hash.  MySQL doesn&#39;t\ncare if thing is alone or set to a value, it&#39;ll happily accept both.</p>\n\n<h3>Custom configuration</h3>\n\n<p>To add custom mysql configuration you can drop additional files into\n<code>/etc/mysql/conf.d/</code> in order to override settings or add additional ones (if you\nchoose not to use override_options in <code>mysql::server</code>).  This location is\nhardcoded into the my.cnf template file.</p>\n\n<h2>Reference</h2>\n\n<h3>Classes</h3>\n\n<h4>Public classes</h4>\n\n<ul>\n<li><code>mysql::server</code>: Installs and configures MySQL.</li>\n<li><code>mysql::server::account_security</code>: Deletes default MySQL accounts.</li>\n<li><code>mysql::server::monitor</code>: Sets up a monitoring user.</li>\n<li><code>mysql::server::mysqltuner</code>: Installs MySQL tuner script.</li>\n<li><code>mysql::server::backup</code>: Sets up MySQL backups via cron.</li>\n<li><code>mysql::bindings</code>: Installs various MySQL language bindings.</li>\n<li><code>mysql::client</code>: Installs MySQL client (for non-servers).</li>\n</ul>\n\n<h4>Private classes</h4>\n\n<ul>\n<li><code>mysql::server::install</code>: Installs packages.</li>\n<li><code>mysql::server::config</code>: Configures MYSQL.</li>\n<li><code>mysql::server::service</code>: Manages service.</li>\n<li><code>mysql::server::root_password</code>: Sets MySQL root password.</li>\n<li><code>mysql::server::providers</code>: Creates users, grants, and databases.</li>\n<li><code>mysql::bindings::java</code>: Installs Java bindings.</li>\n<li><code>mysql::bindings::perl</code>: Installs Perl bindings.</li>\n<li><code>mysql::bindings::python</code>: Installs Python bindings.</li>\n<li><code>mysql::bindings::ruby</code>: Installs Ruby bindings.</li>\n<li><code>mysql::client::install</code>:  Installs MySQL client.</li>\n</ul>\n\n<h3>Parameters</h3>\n\n<h4>mysql::server</h4>\n\n<h5><code>root_password</code></h5>\n\n<p>What is the MySQL root password.  Puppet will attempt to set it to this and update <code>/root/.my.cnf</code>.</p>\n\n<h5><code>old_root_password</code></h5>\n\n<p>What was the previous root password (REQUIRED if you wish to change the root password via Puppet.)</p>\n\n<h5><code>override_options</code></h5>\n\n<p>This is the hash of override options to pass into MySQL.  It can be visualized\nlike a hash of the my.cnf file, so that entries look like:</p>\n\n<pre lang=\"puppet\"><code>$override_options = {\n  &#39;section&#39; =&gt; {\n    &#39;item&#39;             =&gt; &#39;thing&#39;,\n  }\n}\n</code></pre>\n\n<p>For items that you would traditionally represent as:</p>\n\n<pre>\n[section]\nthing\n</pre>\n\n<p>You can just make an entry like <code>thing =&gt; true</code> in the hash.  MySQL doesn&#39;t\ncare if thing is alone or set to a value, it&#39;ll happily accept both.</p>\n\n<h5><code>config_file</code></h5>\n\n<p>The location of the MySQL configuration file.</p>\n\n<h5><code>manage_config_file</code></h5>\n\n<p>Should we manage the MySQL configuration file.</p>\n\n<h5><code>purge_conf_dir</code></h5>\n\n<p>Should we purge the conf.d directory?</p>\n\n<h5><code>restart</code></h5>\n\n<p>Should the service be restarted when things change?</p>\n\n<h5><code>root_group</code></h5>\n\n<p>What is the group used for root?</p>\n\n<h5><code>package_ensure</code></h5>\n\n<p>What to set the package to.  Can be present, absent, or version.</p>\n\n<h5><code>package_name</code></h5>\n\n<p>What is the name of the mysql server package to install.</p>\n\n<h5><code>remove_default_accounts</code></h5>\n\n<p>Boolean to decide if we should automatically include\n<code>mysql::server::account_security</code>.</p>\n\n<h5><code>service_enabled</code></h5>\n\n<p>Boolean to decide if the service should be enabled.</p>\n\n<h5><code>service_manage</code></h5>\n\n<p>Boolean to decide if the service should be managed.</p>\n\n<h5><code>service_name</code></h5>\n\n<p>What is the name of the mysql server service.</p>\n\n<h5><code>service_provider</code></h5>\n\n<p>Which provider to use to manage the service.</p>\n\n<h5><code>users</code></h5>\n\n<p>Optional hash of users to create, which are passed to <a href=\"#mysql_user\">mysql_user</a>. Example:</p>\n\n<pre lang=\"puppet\"><code>$users = {\n  &#39;someuser@localhost&#39; =&gt; {\n    ensure                   =&gt; &#39;present&#39;,\n    max_connections_per_hour =&gt; &#39;0&#39;,\n    max_queries_per_hour     =&gt; &#39;0&#39;,\n    max_updates_per_hour     =&gt; &#39;0&#39;,\n    max_user_connections     =&gt; &#39;0&#39;,\n    password_hash            =&gt; &#39;*F3A2A51A9B0F2BE2468926B4132313728C250DBF&#39;,\n  },\n}\n</code></pre>\n\n<h5><code>grants</code></h5>\n\n<p>Optional hash of grants, which are passed to <a href=\"#mysql_grant\">mysql_grant</a>. Example:</p>\n\n<pre lang=\"puppet\"><code>$grants = {\n  &#39;someuser@localhost/somedb.*&#39; =&gt; {\n    ensure     =&gt; &#39;present&#39;,\n    options    =&gt; [&#39;GRANT&#39;],\n    privileges =&gt; [&#39;SELECT&#39;, &#39;INSERT&#39;, &#39;UPDATE&#39;, &#39;DELETE&#39;],\n    table      =&gt; &#39;somedb.*&#39;,\n    user       =&gt; &#39;someuser@localhost&#39;,\n  },\n}\n</code></pre>\n\n<h5><code>databases</code></h5>\n\n<p>Optional hash of databases to create, which are passed to <a href=\"#mysql_database\">mysql_database</a>. Example:</p>\n\n<pre lang=\"puppet\"><code>$databases = {\n  &#39;somedb&#39; =&gt; {\n    ensure  =&gt; &#39;present&#39;,\n    charset =&gt; &#39;utf8&#39;,\n  },\n}\n</code></pre>\n\n<h5><code>service_provider</code></h5>\n\n<h4>mysql::server::backup</h4>\n\n<h5><code>backupuser</code></h5>\n\n<p>MySQL user to create for backing up.</p>\n\n<h5><code>backuppassword</code></h5>\n\n<p>MySQL user password for backups.</p>\n\n<h5><code>backupdir</code></h5>\n\n<p>Directory to backup into.</p>\n\n<h5><code>backupcompress</code></h5>\n\n<p>Boolean to determine if backups should be compressed.</p>\n\n<h5><code>backuprotate</code></h5>\n\n<p>How many days to keep backups for.</p>\n\n<h5><code>delete_before_dump</code></h5>\n\n<p>Boolean to determine if you should cleanup before backing up or after.</p>\n\n<h5><code>backupdatabases</code></h5>\n\n<p>Array of databases to specifically backup.</p>\n\n<h5><code>file_per_database</code></h5>\n\n<p>Should a seperate file be used per database.</p>\n\n<h5><code>ensure</code></h5>\n\n<p>Present or absent, allows you to remove the backup scripts.</p>\n\n<h5><code>time</code></h5>\n\n<p>An array of two elements to set the time to backup.  Allows [&#39;23&#39;, &#39;5&#39;] or [&#39;3&#39;, &#39;45&#39;] for HH:MM times.</p>\n\n<h4>mysql::server::monitor</h4>\n\n<h5><code>mysql_monitor_username</code></h5>\n\n<p>The username to create for MySQL monitoring.</p>\n\n<h5><code>mysql_monitor_password</code></h5>\n\n<p>The password to create for MySQL monitoring.</p>\n\n<h5><code>mysql_monitor_hostname</code></h5>\n\n<p>The hostname to allow to access the MySQL monitoring user.</p>\n\n<h4>mysql::bindings</h4>\n\n<h5><code>java_enable</code></h5>\n\n<p>Boolean to decide if the Java bindings should be installed.</p>\n\n<h5><code>perl_enable</code></h5>\n\n<p>Boolean to decide if the Perl bindings should be installed.</p>\n\n<h5><code>php_enable</code></h5>\n\n<p>Boolean to decide if the PHP bindings should be installed.</p>\n\n<h5><code>python_enable</code></h5>\n\n<p>Boolean to decide if the Python bindings should be installed.</p>\n\n<h5><code>ruby_enable</code></h5>\n\n<p>Boolean to decide if the Ruby bindings should be installed.</p>\n\n<h5><code>java_package_ensure</code></h5>\n\n<p>What to set the package to.  Can be present, absent, or version.</p>\n\n<h5><code>java_package_name</code></h5>\n\n<p>The name of the package to install.</p>\n\n<h5><code>java_package_provider</code></h5>\n\n<p>What provider should be used to install the package.</p>\n\n<h5><code>perl_package_ensure</code></h5>\n\n<p>What to set the package to.  Can be present, absent, or version.</p>\n\n<h5><code>perl_package_name</code></h5>\n\n<p>The name of the package to install.</p>\n\n<h5><code>perl_package_provider</code></h5>\n\n<p>What provider should be used to install the package.</p>\n\n<h5><code>python_package_ensure</code></h5>\n\n<p>What to set the package to.  Can be present, absent, or version.</p>\n\n<h5><code>python_package_name</code></h5>\n\n<p>The name of the package to install.</p>\n\n<h5><code>python_package_provider</code></h5>\n\n<p>What provider should be used to install the package.</p>\n\n<h5><code>ruby_package_ensure</code></h5>\n\n<p>What to set the package to.  Can be present, absent, or version.</p>\n\n<h5><code>ruby_package_name</code></h5>\n\n<p>The name of the package to install.</p>\n\n<h5><code>ruby_package_provider</code></h5>\n\n<p>What provider should be used to install the package.</p>\n\n<h4>mysql::client</h4>\n\n<h5><code>bindings_enable</code></h5>\n\n<p>Boolean to automatically install all bindings.</p>\n\n<h5><code>package_ensure</code></h5>\n\n<p>What to set the package to.  Can be present, absent, or version.</p>\n\n<h5><code>package_name</code></h5>\n\n<p>What is the name of the mysql client package to install.</p>\n\n<h3>Defines</h3>\n\n<h4>mysql::db</h4>\n\n<p>Creates a database with a user and assign some privileges.</p>\n\n<pre lang=\"puppet\"><code>    mysql::db { &#39;mydb&#39;:\n      user     =&gt; &#39;myuser&#39;,\n      password =&gt; &#39;mypass&#39;,\n      host     =&gt; &#39;localhost&#39;,\n      grant    =&gt; [&#39;SELECT&#39;, &#39;UPDATE&#39;],\n    }\n</code></pre>\n\n<h3>Providers</h3>\n\n<h4>mysql_database</h4>\n\n<p>mysql_database can be used to create and manage databases within MySQL:</p>\n\n<pre lang=\"puppet\"><code>mysql_database { &#39;information_schema&#39;:\n  ensure  =&gt; &#39;present&#39;,\n  charset =&gt; &#39;utf8&#39;,\n  collate =&gt; &#39;utf8_swedish_ci&#39;,\n}\nmysql_database { &#39;mysql&#39;:\n  ensure  =&gt; &#39;present&#39;,\n  charset =&gt; &#39;latin1&#39;,\n  collate =&gt; &#39;latin1_swedish_ci&#39;,\n}\n</code></pre>\n\n<h4>mysql_user</h4>\n\n<p>mysql_user can be used to create and manage user grants within MySQL:</p>\n\n<pre lang=\"puppet\"><code>mysql_user { &#39;root@127.0.0.1&#39;:\n  ensure                   =&gt; &#39;present&#39;,\n  max_connections_per_hour =&gt; &#39;0&#39;,\n  max_queries_per_hour     =&gt; &#39;0&#39;,\n  max_updates_per_hour     =&gt; &#39;0&#39;,\n  max_user_connections     =&gt; &#39;0&#39;,\n}\n</code></pre>\n\n<h4>mysql_grant</h4>\n\n<p>mysql_grant can be used to create grant permissions to access databases within\nMySQL.  To use it you must create the title of the resource as shown below,\nfollowing the pattern of <code>username@hostname/database.table</code>:</p>\n\n<pre lang=\"puppet\"><code>mysql_grant { &#39;root@localhost/*.*&#39;:\n  ensure     =&gt; &#39;present&#39;,\n  options    =&gt; [&#39;GRANT&#39;],\n  privileges =&gt; [&#39;ALL&#39;],\n  table      =&gt; &#39;*.*&#39;,\n  user       =&gt; &#39;root@localhost&#39;,\n}\n</code></pre>\n\n<h2>Limitations</h2>\n\n<p>This module has been tested on:</p>\n\n<ul>\n<li>RedHat Enterprise Linux 5/6</li>\n<li>Debian 6/7</li>\n<li>CentOS 5/6</li>\n<li>Ubuntu 12.04</li>\n</ul>\n\n<p>Testing on other platforms has been light and cannot be guaranteed.</p>\n\n<h1>Development</h1>\n\n<p>Puppet Labs modules on the Puppet Forge are open projects, and community\ncontributions are essential for keeping them great. We can’t access the\nhuge number of platforms and myriad of hardware, software, and deployment\nconfigurations that Puppet is intended to serve.</p>\n\n<p>We want to keep it as easy as possible to contribute changes so that our\nmodules work in your environment. There are a few guidelines that we need\ncontributors to follow so that we can have a chance of keeping on top of things.</p>\n\n<p>You can read the complete module contribution guide <a href=\"http://projects.puppetlabs.com/projects/module-site/wiki/Module_contributing\">on the Puppet Labs wiki.</a></p>\n\n<h3>Authors</h3>\n\n<p>This module is based on work by David Schmitt. The following contributor have contributed patches to this module (beyond Puppet Labs):</p>\n\n<ul>\n<li>Larry Ludwig</li>\n<li>Christian G. Warden</li>\n<li>Daniel Black</li>\n<li>Justin Ellison</li>\n<li>Lowe Schmidt</li>\n<li>Matthias Pigulla</li>\n<li>William Van Hevelingen</li>\n<li>Michael Arnold</li>\n<li>Chris Weyl</li>\n</ul>\n</section>",
ruby-puppet-forge-2.3.2/spec/fixtures/v3/modules__owner=puppetlabs.json:1691:        "changelog": "<section class=\"plaintext\"><pre>2013-11-13 - Version 2.1.0\n\nSummary:\n\nThe most important changes in 2.1.0 are improvements to the my.cnf creation,\nas well as providers.  Setting options to = true strips them to be just the\nkey name itself, which is required for some options.\n\nThe provider updates fix a number of bugs, from lowercase privileges to\ndeprecation warnings.\n\nLast, the new hiera integration functionality should make it easier to\nexternalize all your grantts, users, and, databases.  Another great set of\ncommunity submissions helped to make this release.\n\nFeatures:\n- Some options can not take a argument. Gets rid of the &#x27;= true&#x27; when an\noption is set to true.\n- Easier hiera integration:  Add hash parameters to mysql::server to allow\nspecifying grants, users, and databases.\n\nFixes:\n- Fix an issue with lowercase privileges in mysql_grant{} causing them to be reapplied needlessly.\n- Changed defaults-file to defaults-extra-file in providers.\n- Ensure &#x2F;root&#x2F;.my.cnf is 0600 and root owned.\n- database_user deprecation warning was incorrect.\n- Add anchor pattern for client.pp\n- Documentation improvements.\n- Various test fixes.\n\n2013-10-21 - Version 2.0.1\n\nSummary:\n\nThis is a bugfix release to handle an issue where unsorted mysql_grant{}\nprivileges could cause Puppet to incorrectly reapply the permissions on\neach run.\n\nFixes:\n- Mysql_grant now sorts privileges in the type and provider for comparision.\n- Comment and test tweak for PE3.1.\n\n2013-10-14 - Version 2.0.0\n\nSummary:\n\n(Previously detailed in the changelog for 2.0.0-rc1)\n\nThis module has been completely refactored and works significantly different.\nThe changes are broad and touch almost every piece of the module.\n\nSee the README.md for full details of all changes and syntax.\nPlease remain on 1.0.0 if you don&#x27;t have time to fully test this in dev.\n\n* mysql::server, mysql::client, and mysql::bindings are the primary interface\nclasses.\n* mysql::server takes an `options_override` parameter to set my.cnf options,\nwith the hash format: { &#x27;section&#x27; =&gt; { &#x27;thing&#x27; =&gt; &#x27;value&#x27; }}\n* mysql attempts backwards compatibility by forwarding all parameters to\nmysql::server.\n\n2013-10-09 - Version 2.0.0-rc5\n\nSummary:\n\nHopefully the final rc!  Further fixes to mysql_grant (stripping out the\ncleverness so we match a much wider range of input.)\n\nFixes:\n- Make mysql_grant accept &#x27;.*&#x27;@&#x27;.*&#x27; in terms of input for user@host.\n\n2013-10-09 - Version 2.0.0-rc4\n\nSummary:\n\nBugfixes to mysql_grant and mysql_user form the bulk of this rc, as well as\nensuring that values in the override_options hash that contain a value of &#x27;&#x27;\nare created as just &quot;key&quot; in the conf rather than &quot;key =&quot; or &quot;key = false&quot;.\n\nFixes:\n- Improve mysql_grant to work with IPv6 addresses (both long and short).\n- Ensure @host users work as well as user@host users.\n- Updated my.cnf template to support items with no values.\n\n2013-10-07 - Version 2.0.0-rc3\n\nSummary:\n\nFix mysql::server::monitor&#x27;s use of mysql_user{}.\n\nFixes:\n- Fix myql::server::monitor&#x27;s use of mysql_user{} to grant the proper\npermissions.  Add specs as well.  (Thanks to treydock!)\n\n2013-10-03 - Version 2.0.0-rc2\n\nSummary:\n\nBugfixes\n\nFixes:\n- Fix a duplicate parameter in mysql::server\n\n2013-10-03 - Version 2.0.0-rc1\n\nSummary:\n\nThis module has been completely refactored and works significantly different.\nThe changes are broad and touch almost every piece of the module.\n\nSee the README.md for full details of all changes and syntax.\nPlease remain on 1.0.0 if you don&#x27;t have time to fully test this in dev.\n\n* mysql::server, mysql::client, and mysql::bindings are the primary interface\nclasses.\n* mysql::server takes an `options_override` parameter to set my.cnf options,\nwith the hash format: { &#x27;section&#x27; =&gt; { &#x27;thing&#x27; =&gt; &#x27;value&#x27; }}\n* mysql attempts backwards compatibility by forwarding all parameters to\nmysql::server.\n\n2013-09-23 - Version 1.0.0\n\nSummary:\n\nThis release introduces a number of new type&#x2F;providers, to eventually\nreplace the database_ ones.  The module has been converted to call the\nnew providers rather than the previous ones as they have a number of\nfixes, additional options, and work with puppet resource.\n\nThis 1.0.0 release precedes a large refactoring that will be released\nalmost immediately after as 2.0.0.\n\nFeatures:\n- Added mysql_grant, mysql_database, and mysql_user.\n- Add `mysql::bindings` class and refactor all other bindings to be contained underneath mysql::bindings:: namespace.\n- Added support to back up specified databases only with &#x27;mysqlbackup&#x27; parameter.\n- Add option to mysql::backup to set the backup script to perform a mysqldump on each database to its own file\n\nBugfixes:\n- Update my.cnf.pass.erb to allow custom socket support\n- Add environment variable for .my.cnf in mysql::db.\n- Add HOME environment variable for .my.cnf to mysqladmin command when\n(re)setting root password\n\n2013-07-15 - Version 0.9.0\nFeatures:\n- Add `mysql::backup::backuprotate` parameter\n- Add `mysql::backup::delete_before_dump` parameter\n- Add `max_user_connections` attribute to `database_user` type\n\nBugfixes:\n- Add client package dependency for `mysql::db`\n- Remove duplicate `expire_logs_days` and `max_binlog_size` settings\n- Make root&#x27;s `.my.cnf` file path dynamic\n- Update pidfile path for Suse variants\n- Fixes for lint\n\n2013-07-05 - Version 0.8.1\nBugfixes:\n - Fix a typo in the Fedora 19 support.\n\n2013-07-01 - Version 0.8.0\nFeatures:\n - mysql::perl class to install perl-DBD-mysql.\n - minor improvements to the providers to improve reliability\n - Install the MariaDB packages on Fedora 19 instead of MySQL.\n - Add new `mysql` class parameters:\n  -  `max_connections`: The maximum number of allowed connections.\n  -  `manage_config_file`: Opt out of puppetized control of my.cnf.\n  -  `ft_min_word_len`: Fine tune the full text search.\n  -  `ft_max_word_len`: Fine tune the full text search.\n - Add new `mysql` class performance tuning parameters:\n  -  `key_buffer`\n  -  `thread_stack`\n  -  `thread_cache_size`\n  -  `myisam-recover`\n  -  `query_cache_limit`\n  -  `query_cache_size`\n  -  `max_connections`\n  -  `tmp_table_size`\n  -  `table_open_cache`\n  -  `long_query_time`\n - Add new `mysql` class replication parameters:\n  -  `server_id`\n  -  `sql_log_bin`\n  -  `log_bin`\n  -  `max_binlog_size`\n  -  `binlog_do_db`\n  -  `expire_logs_days`\n  -  `log_bin_trust_function_creators`\n  -  `replicate_ignore_table`\n  -  `replicate_wild_do_table`\n  -  `replicate_wild_ignore_table`\n  -  `expire_logs_days`\n  -  `max_binlog_size`\n\nBugfixes:\n - No longer restart MySQL when &#x2F;root&#x2F;.my.cnf changes.\n - Ensure mysql::config runs before any mysql::db defines.\n\n2013-06-26 - Version 0.7.1\nBugfixes:\n- Single-quote password for special characters\n- Update travis testing for puppet 3.2.x and missing Bundler gems\n\n2013-06-25 - Version 0.7.0\nThis is a maintenance release for community bugfixes and exposing\nconfiguration variables.\n\n* Add new `mysql` class parameters:\n -  `basedir`: The base directory mysql uses\n -  `bind_address`: The IP mysql binds to\n -  `client_package_name`: The name of the mysql client package\n -  `config_file`: The location of the server config file\n -  `config_template`: The template to use to generate my.cnf\n -  `datadir`: The directory MySQL&#x27;s datafiles are stored\n -  `default_engine`: The default engine to use for tables\n -  `etc_root_password`: Whether or not to add the mysql root password to\n &#x2F;etc&#x2F;my.cnf\n -  `java_package_name`: The name of the java package containing the java\n connector\n -  `log_error`: Where to log errors\n -  `manage_service`: Boolean dictating if mysql::server should manage the\n service\n -  `max_allowed_packet`: Maximum network packet size mysqld will accept\n -  `old_root_password`: Previous root user password\n -  `php_package_name`: The name of the phpmysql package to install\n -  `pidfile`: The location mysql will expect the pidfile to be\n -  `port`: The port mysql listens on\n -  `purge_conf_dir`: Value fed to recurse and purge parameters of the\n &#x2F;etc&#x2F;mysql&#x2F;conf.d resource\n -  `python_package_name`: The name of the python mysql package to install\n -  `restart`: Whether to restart mysqld\n -  `root_group`: Use specified group for root-owned files\n -  `root_password`: The root MySQL password to use\n -  `ruby_package_name`: The name of the ruby mysql package to install\n -  `ruby_package_provider`: The installation suite to use when installing the\n ruby package\n -  `server_package_name`: The name of the server package to install\n -  `service_name`: The name of the service to start\n -  `service_provider`: The name of the service provider\n -  `socket`: The location of the MySQL server socket file\n -  `ssl_ca`: The location of the SSL CA Cert\n -  `ssl_cert`: The location of the SSL Certificate to use\n -  `ssl_key`: The SSL key to use\n -  `ssl`: Whether or not to enable ssl\n -  `tmpdir`: The directory MySQL&#x27;s tmpfiles are stored\n* Deprecate `mysql::package_name` parameter in favor of\n`mysql::client_package_name`\n* Fix local variable template deprecation\n* Fix dependency ordering in `mysql::db`\n* Fix ANSI quoting in queries\n* Fix travis support (but still messy)\n* Fix typos\n\n2013-01-11 - Version 0.6.1\n* Fix providers when &#x2F;root&#x2F;.my.cnf is absent\n\n2013-01-09 - Version 0.6.0\n* Add `mysql::server::config` define for specific config directives\n* Add `mysql::php` class for php support\n* Add `backupcompress` parameter to `mysql::backup`\n* Add `restart` parameter to `mysql::config`\n* Add `purge_conf_dir` parameter to `mysql::config`\n* Add `manage_service` parameter to `mysql::server`\n* Add syslog logging support via the `log_error` parameter\n* Add initial SuSE support\n* Fix remove non-localhost root user when fqdn != hostname\n* Fix dependency in `mysql::server::monitor`\n* Fix .my.cnf path for root user and root password\n* Fix ipv6 support for users\n* Fix &#x2F; update various spec tests\n* Fix typos\n* Fix lint warnings\n\n2012-08-23 - Version 0.5.0\n* Add puppetlabs&#x2F;stdlib as requirement\n* Add validation for mysql privs in provider\n* Add `pidfile` parameter to mysql::config\n* Add `ensure` parameter to mysql::db\n* Add Amazon linux support\n* Change `bind_address` parameter to be optional in my.cnf template\n* Fix quoting root passwords\n\n2012-07-24 - Version 0.4.0\n* Fix various bugs regarding database names\n* FreeBSD support\n* Allow specifying the storage engine\n* Add a backup class\n* Add a security class to purge default accounts\n\n2012-05-03 - Version 0.3.0\n* #14218 Query the database for available privileges\n* Add mysql::java class for java connector installation\n* Use correct error log location on different distros\n* Fix set_mysql_rootpw to properly depend on my.cnf\n\n2012-04-11 - Version 0.2.0\n\n2012-03-19 - William Van Hevelingen &lt;blkperl@cat.pdx.edu&gt;\n* (#13203) Add ssl support (f7e0ea5)\n\n2012-03-18 - Nan Liu &lt;nan@puppetlabs.com&gt;\n* Travis ci before script needs success exit code. (0ea463b)\n\n2012-03-18 - Nan Liu &lt;nan@puppetlabs.com&gt;\n* Fix Puppet 2.6 compilation issues. (9ebbbc4)\n\n2012-03-16 - Nan Liu &lt;nan@puppetlabs.com&gt;\n* Add travis.ci for testing multiple puppet versions. (33c72ef)\n\n2012-03-15 - William Van Hevelingen &lt;blkperl@cat.pdx.edu&gt;\n* (#13163) Datadir should be configurable (f353fc6)\n\n2012-03-16 - Nan Liu &lt;nan@puppetlabs.com&gt;\n* Document create_resources dependency. (558a59c)\n\n2012-03-16 - Nan Liu &lt;nan@puppetlabs.com&gt;\n* Fix spec test issues related to error message. (eff79b5)\n\n2012-03-16 - Nan Liu &lt;nan@puppetlabs.com&gt;\n* Fix mysql service on Ubuntu. (72da2c5)\n\n2012-03-16 - Dan Bode &lt;dan@puppetlabs.com&gt;\n* Add more spec test coverage (55e399d)\n\n2012-03-16 - Nan Liu &lt;nan@puppetlabs.com&gt;\n* (#11963) Fix spec test due to path changes. (1700349)\n\n2012-03-07 - François Charlier &lt;fcharlier@ploup.net&gt;\n* Add a test to check path for &#x27;mysqld-restart&#x27; (b14c7d1)\n\n2012-03-07 - François Charlier &lt;fcharlier@ploup.net&gt;\n* Fix path for &#x27;mysqld-restart&#x27; (1a9ae6b)\n\n2012-03-15 - Dan Bode &lt;dan@puppetlabs.com&gt;\n* Add rspec-puppet tests for mysql::config (907331a)\n\n2012-03-15 - Dan Bode &lt;dan@puppetlabs.com&gt;\n* Moved class dependency between sever and config to server (da62ad6)\n\n2012-03-14 - Dan Bode &lt;dan@puppetlabs.com&gt;\n* Notify mysql restart from set_mysql_rootpw exec (0832a2c)\n\n2012-03-15 - Nan Liu &lt;nan@puppetlabs.com&gt;\n* Add documentation related to osfamily fact. (8265d28)\n\n2012-03-14 - Dan Bode &lt;dan@puppetlabs.com&gt;\n* Mention osfamily value in failure message (e472d3b)\n\n2012-03-14 - Dan Bode &lt;dan@puppetlabs.com&gt;\n* Fix bug when querying for all database users (015490c)\n\n2012-02-09 - Nan Liu &lt;nan@puppetlabs.com&gt;\n* Major refactor of mysql module. (b1f90fd)\n\n2012-01-11 - Justin Ellison &lt;justin.ellison@buckle.com&gt;\n* Ruby and Python&#x27;s MySQL libraries are named differently on different distros. (1e926b4)\n\n2012-01-11 - Justin Ellison &lt;justin.ellison@buckle.com&gt;\n* Per @ghoneycutt, we should fail explicitly and explain why. (09af083)\n\n2012-01-11 - Justin Ellison &lt;justin.ellison@buckle.com&gt;\n* Removing duplicate declaration (7513d03)\n\n2012-01-10 - Justin Ellison &lt;justin.ellison@buckle.com&gt;\n* Use socket value from params class instead of hardcoding. (663e97c)\n\n2012-01-10 - Justin Ellison &lt;justin.ellison@buckle.com&gt;\n* Instead of hardcoding the config file target, pull it from mysql::params (031a47d)\n\n2012-01-10 - Justin Ellison &lt;justin.ellison@buckle.com&gt;\n* Moved $socket to within the case to toggle between distros.  Added a $config_file variable to allow per-distro config file destinations. (360eacd)\n\n2012-01-10 - Justin Ellison &lt;justin.ellison@buckle.com&gt;\n* Pretty sure this is a bug, 99% of Linux distros out there won&#x27;t ever hit the default. (3462e6b)\n\n2012-02-09 - William Van Hevelingen &lt;blkperl@cat.pdx.edu&gt;\n* Changed the README to use markdown (3b7dfeb)\n\n2012-02-04 - Daniel Black &lt;grooverdan@users.sourceforge.net&gt;\n* (#12412) mysqltuner.pl update (b809e6f)\n\n2011-11-17 - Matthias Pigulla &lt;mp@webfactory.de&gt;\n* (#11363) Add two missing privileges to grant: event_priv, trigger_priv (d15c9d1)\n\n2011-12-20 - Jeff McCune &lt;jeff@puppetlabs.com&gt;\n* (minor) Fixup typos in Modulefile metadata (a0ed6a1)\n\n2011-12-19 - Carl Caum &lt;carl@carlcaum.com&gt;\n* Only notify Exec to import sql if sql is given (0783c74)\n\n2011-12-19 - Carl Caum &lt;carl@carlcaum.com&gt;\n* (#11508) Only load sql_scripts on DB creation (e3b9fd9)\n\n2011-12-13 - Justin Ellison &lt;justin.ellison@buckle.com&gt;\n* Require not needed due to implicit dependencies (3058feb)\n\n2011-12-13 - Justin Ellison &lt;justin.ellison@buckle.com&gt;\n* Bug #11375: puppetlabs-mysql fails on CentOS&#x2F;RHEL (a557b8d)\n\n2011-06-03 - Dan Bode &lt;dan@puppetlabs.com&gt; - 0.0.1\n* initial commit\n</pre></section>",
ruby-puppet-forge-2.3.2/spec/fixtures/v3/modules__owner=puppetlabs.json-1692-        "license": "<section class=\"plaintext\"><pre>                                 Apache License\n                           Version 2.0, January 2004\n                        http:&#x2F;&#x2F;www.apache.org&#x2F;licenses&#x2F;\n\n   TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\n\n   1. Definitions.\n\n      &quot;License&quot; shall mean the terms and conditions for use, reproduction,\n      and distribution as defined by Sections 1 through 9 of this document.\n\n      &quot;Licensor&quot; shall mean the copyright owner or entity authorized by\n      the copyright owner that is granting the License.\n\n      &quot;Legal Entity&quot; shall mean the union of the acting entity and all\n      other entities that control, are controlled by, or are under common\n      control with that entity. For the purposes of this definition,\n      &quot;control&quot; means (i) the power, direct or indirect, to cause the\n      direction or management of such entity, whether by contract or\n      otherwise, or (ii) ownership of fifty percent (50%) or more of the\n      outstanding shares, or (iii) beneficial ownership of such entity.\n\n      &quot;You&quot; (or &quot;Your&quot;) shall mean an individual or Legal Entity\n      exercising permissions granted by this License.\n\n      &quot;Source&quot; form shall mean the preferred form for making modifications,\n      including but not limited to software source code, documentation\n      source, and configuration files.\n\n      &quot;Object&quot; form shall mean any form resulting from mechanical\n      transformation or translation of a Source form, including but\n      not limited to compiled object code, generated documentation,\n      and conversions to other media types.\n\n      &quot;Work&quot; shall mean the work of authorship, whether in Source or\n      Object form, made available under the License, as indicated by a\n      copyright notice that is included in or attached to the work\n      (an example is provided in the Appendix below).\n\n      &quot;Derivative Works&quot; shall mean any work, whether in Source or Object\n      form, that is based on (or derived from) the Work and for which the\n      editorial revisions, annotations, elaborations, or other modifications\n      represent, as a whole, an original work of authorship. For the purposes\n      of this License, Derivative Works shall not include works that remain\n      separable from, or merely link (or bind by name) to the interfaces of,\n      the Work and Derivative Works thereof.\n\n      &quot;Contribution&quot; shall mean any work of authorship, including\n      the original version of the Work and any modifications or additions\n      to that Work or Derivative Works thereof, that is intentionally\n      submitted to Licensor for inclusion in the Work by the copyright owner\n      or by an individual or Legal Entity authorized to submit on behalf of\n      the copyright owner. For the purposes of this definition, &quot;submitted&quot;\n      means any form of electronic, verbal, or written communication sent\n      to the Licensor or its representatives, including but not limited to\n      communication on electronic mailing lists, source code control systems,\n      and issue tracking systems that are managed by, or on behalf of, the\n      Licensor for the purpose of discussing and improving the Work, but\n      excluding communication that is conspicuously marked or otherwise\n      designated in writing by the copyright owner as &quot;Not a Contribution.&quot;\n\n      &quot;Contributor&quot; shall mean Licensor and any individual or Legal Entity\n      on behalf of whom a Contribution has been received by Licensor and\n      subsequently incorporated within the Work.\n\n   2. Grant of Copyright License. Subject to the terms and conditions of\n      this License, each Contributor hereby grants to You a perpetual,\n      worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n      copyright license to reproduce, prepare Derivative Works of,\n      publicly display, publicly perform, sublicense, and distribute the\n      Work and such Derivative Works in Source or Object form.\n\n   3. Grant of Patent License. Subject to the terms and conditions of\n      this License, each Contributor hereby grants to You a perpetual,\n      worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n      (except as stated in this section) patent license to make, have made,\n      use, offer to sell, sell, import, and otherwise transfer the Work,\n      where such license applies only to those patent claims licensable\n      by such Contributor that are necessarily infringed by their\n      Contribution(s) alone or by combination of their Contribution(s)\n      with the Work to which such Contribution(s) was submitted. If You\n      institute patent litigation against any entity (including a\n      cross-claim or counterclaim in a lawsuit) alleging that the Work\n      or a Contribution incorporated within the Work constitutes direct\n      or contributory patent infringement, then any patent licenses\n      granted to You under this License for that Work shall terminate\n      as of the date such litigation is filed.\n\n   4. Redistribution. You may reproduce and distribute copies of the\n      Work or Derivative Works thereof in any medium, with or without\n      modifications, and in Source or Object form, provided that You\n      meet the following conditions:\n\n      (a) You must give any other recipients of the Work or\n          Derivative Works a copy of this License; and\n\n      (b) You must cause any modified files to carry prominent notices\n          stating that You changed the files; and\n\n      (c) You must retain, in the Source form of any Derivative Works\n          that You distribute, all copyright, patent, trademark, and\n          attribution notices from the Source form of the Work,\n          excluding those notices that do not pertain to any part of\n          the Derivative Works; and\n\n      (d) If the Work includes a &quot;NOTICE&quot; text file as part of its\n          distribution, then any Derivative Works that You distribute must\n          include a readable copy of the attribution notices contained\n          within such NOTICE file, excluding those notices that do not\n          pertain to any part of the Derivative Works, in at least one\n          of the following places: within a NOTICE text file distributed\n          as part of the Derivative Works; within the Source form or\n          documentation, if provided along with the Derivative Works; or,\n          within a display generated by the Derivative Works, if and\n          wherever such third-party notices normally appear. The contents\n          of the NOTICE file are for informational purposes only and\n          do not modify the License. You may add Your own attribution\n          notices within Derivative Works that You distribute, alongside\n          or as an addendum to the NOTICE text from the Work, provided\n          that such additional attribution notices cannot be construed\n          as modifying the License.\n\n      You may add Your own copyright statement to Your modifications and\n      may provide additional or different license terms and conditions\n      for use, reproduction, or distribution of Your modifications, or\n      for any such Derivative Works as a whole, provided Your use,\n      reproduction, and distribution of the Work otherwise complies with\n      the conditions stated in this License.\n\n   5. Submission of Contributions. Unless You explicitly state otherwise,\n      any Contribution intentionally submitted for inclusion in the Work\n      by You to the Licensor shall be under the terms and conditions of\n      this License, without any additional terms or conditions.\n      Notwithstanding the above, nothing herein shall supersede or modify\n      the terms of any separate license agreement you may have executed\n      with Licensor regarding such Contributions.\n\n   6. Trademarks. This License does not grant permission to use the trade\n      names, trademarks, service marks, or product names of the Licensor,\n      except as required for reasonable and customary use in describing the\n      origin of the Work and reproducing the content of the NOTICE file.\n\n   7. Disclaimer of Warranty. Unless required by applicable law or\n      agreed to in writing, Licensor provides the Work (and each\n      Contributor provides its Contributions) on an &quot;AS IS&quot; BASIS,\n      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\n      implied, including, without limitation, any warranties or conditions\n      of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A\n      PARTICULAR PURPOSE. You are solely responsible for determining the\n      appropriateness of using or redistributing the Work and assume any\n      risks associated with Your exercise of permissions under this License.\n\n   8. Limitation of Liability. In no event and under no legal theory,\n      whether in tort (including negligence), contract, or otherwise,\n      unless required by applicable law (such as deliberate and grossly\n      negligent acts) or agreed to in writing, shall any Contributor be\n      liable to You for damages, including any direct, indirect, special,\n      incidental, or consequential damages of any character arising as a\n      result of this License or out of the use or inability to use the\n      Work (including but not limited to damages for loss of goodwill,\n      work stoppage, computer failure or malfunction, or any and all\n      other commercial damages or losses), even if such Contributor\n      has been advised of the possibility of such damages.\n\n   9. Accepting Warranty or Additional Liability. While redistributing\n      the Work or Derivative Works thereof, You may choose to offer,\n      and charge a fee for, acceptance of support, warranty, indemnity,\n      or other liability obligations and&#x2F;or rights consistent with this\n      License. However, in accepting such obligations, You may act only\n      on Your own behalf and on Your sole responsibility, not on behalf\n      of any other Contributor, and only if You agree to indemnify,\n      defend, and hold each Contributor harmless for any liability\n      incurred by, or claims asserted against, such Contributor by reason\n      of your accepting any such warranty or additional liability.\n\n   END OF TERMS AND CONDITIONS\n\n   APPENDIX: How to apply the Apache License to your work.\n\n      To apply the Apache License to your work, attach the following\n      boilerplate notice, with the fields enclosed by brackets &quot;[]&quot;\n      replaced with your own identifying information. (Don&#x27;t include\n      the brackets!) The text should be enclosed in the appropriate\n      comment syntax for the file format. We also recommend that a\n      file or class name and description of purpose be included on the\n      same &quot;printed page&quot; as the copyright notice for easier\n      identification within third-party archives.\n\n   Copyright 2013 Puppet Labs\n\n   Licensed under the Apache License, Version 2.0 (the &quot;License&quot;);\n   you may not use this file except in compliance with the License.\n   You may obtain a copy of the License at\n\n       http:&#x2F;&#x2F;www.apache.org&#x2F;licenses&#x2F;LICENSE-2.0\n\n   Unless required by applicable law or agreed to in writing, software\n   distributed under the License is distributed on an &quot;AS IS&quot; BASIS,\n   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n   See the License for the specific language governing permissions and\n   limitations under the License.\n</pre></section>",
##############################################
ruby-puppet-forge-2.3.2/spec/fixtures/v3/modules__owner=puppetlabs.json-1948-                  "name": "name",
ruby-puppet-forge-2.3.2/spec/fixtures/v3/modules__owner=puppetlabs.json:1949:                  "doc": "The postgresql parameter name to manage.  Values can match `/^[\\w\\.]+$/`."
ruby-puppet-forge-2.3.2/spec/fixtures/v3/modules__owner=puppetlabs.json-1950-                }
##############################################
ruby-puppet-forge-2.3.2/spec/fixtures/v3/modules__owner=puppetlabs.json-2126-        "downloads": 13123,
ruby-puppet-forge-2.3.2/spec/fixtures/v3/modules__owner=puppetlabs.json:2127:        "readme": "<section class=\"markdown\"><h1>postgresql</h1>\n\n<h2>Table of Contents</h2>\n\n<ol>\n<li><a href=\"#overview\">Overview - What is the PostgreSQL module?</a></li>\n<li><a href=\"#module-description\">Module Description - What does the module do?</a></li>\n<li><a href=\"#setup\">Setup - The basics of getting started with PostgreSQL module</a></li>\n<li><a href=\"#usage\">Usage - How to use the module for various tasks</a></li>\n<li><a href=\"#upgrading\">Upgrading - Guide for upgrading from older revisions of this module</a></li>\n<li><a href=\"#reference\">Reference - The classes, defines,functions and facts available in this module</a></li>\n<li><a href=\"#limitations\">Limitations - OS compatibility, etc.</a></li>\n<li><a href=\"#development\">Development - Guide for contributing to the module</a></li>\n<li><a href=\"#disclaimer\">Disclaimer - Licensing information</a></li>\n<li><a href=\"#transfer-notice\">Transfer Notice - Notice of authorship change</a></li>\n<li><a href=\"#contributors\">Contributors - List of module contributors</a></li>\n</ol>\n\n<h2>Overview</h2>\n\n<p>The PostgreSQL module allows you to easily manage postgres databases with Puppet.</p>\n\n<h2>Module Description</h2>\n\n<p>PostgreSQL is a high-performance, free, open-source relational database server. The postgresql module allows you to manage PostgreSQL packages and services on several operating systems, while also supporting basic management of PostgreSQL databases and users. The module offers support for managing firewall for postgres ports on RedHat-based distros, as well as support for basic management of common security settings.</p>\n\n<h2>Setup</h2>\n\n<p><strong>What puppetlabs-PostgreSQL affects:</strong></p>\n\n<ul>\n<li>package/service/configuration files for PostgreSQL</li>\n<li>listened-to ports</li>\n<li>system firewall (optional)</li>\n<li>IP and mask (optional)</li>\n</ul>\n\n<p><strong>Introductory Questions</strong></p>\n\n<p>The postgresql module offers many security configuration settings. Before getting started, you will want to consider:</p>\n\n<ul>\n<li>Do you want/need to allow remote connections?\n\n<ul>\n<li>If yes, what about TCP connections?</li>\n</ul></li>\n<li>Would you prefer to work around your current firewall settings or overwrite some of them?</li>\n<li>How restrictive do you want the database superuser&#39;s permissions to be?</li>\n</ul>\n\n<p>Your answers to these questions will determine which of the module&#39;s parameters you&#39;ll want to specify values for.</p>\n\n<h3>Configuring the server</h3>\n\n<p>The main configuration you&#39;ll need to do will be around the <code>postgresql::server</code> class. The default parameters are reasonable, but fairly restrictive regarding permissions for who can connect and from where. To manage a PostgreSQL server with sane defaults:</p>\n\n<pre><code>class { &#39;postgresql::server&#39;: }\n</code></pre>\n\n<p>For a more customized configuration:</p>\n\n<pre><code>class { &#39;postgresql::server&#39;:\n  ip_mask_deny_postgres_user =&gt; &#39;0.0.0.0/32&#39;,\n  ip_mask_allow_all_users    =&gt; &#39;0.0.0.0/0&#39;,\n  listen_addresses           =&gt; &#39;*&#39;,\n  ipv4acls                   =&gt; [&#39;hostssl all johndoe 192.168.0.0/24 cert&#39;],\n  manage_firewall            =&gt; true,\n  postgres_password          =&gt; &#39;TPSrep0rt!&#39;,\n}\n</code></pre>\n\n<p>Once you&#39;ve completed your configuration of <code>postgresql::server</code>, you can test out your settings from the command line:</p>\n\n<pre><code>$ psql -h localhost -U postgres\n$ psql -h my.postgres.server -U\n</code></pre>\n\n<p>If you get an error message from these commands, it means that your permissions are set in a way that restricts access from where you&#39;re trying to connect. That might be a good thing or a bad thing, depending on your goals.</p>\n\n<p>For more details about server configuration parameters consult the <a href=\"http://www.postgresql.org/docs/9.2/static/runtime-config.html\">PostgreSQL Runtime Configuration docs</a>.</p>\n\n<h2>Usage</h2>\n\n<h3>Creating a database</h3>\n\n<p>There are many ways to set up a postgres database using the <code>postgresql::server::db</code> class. For instance, to set up a database for PuppetDB:</p>\n\n<pre><code>class { &#39;postgresql::server&#39;: }\n\npostgresql::server::db { &#39;mydatabasename&#39;:\n  user     =&gt; &#39;mydatabaseuser&#39;,\n  password =&gt; postgresql_password(&#39;mydatabaseuser&#39;, &#39;mypassword&#39;),\n}\n</code></pre>\n\n<h3>Managing users, roles and permissions</h3>\n\n<p>To manage users, roles and permissions:</p>\n\n<pre><code>class { &#39;postgresql::server&#39;: }\n\npostgresql::server::role { &#39;marmot&#39;:\n  password_hash =&gt; postgresql_password(&#39;marmot&#39;, &#39;mypasswd&#39;),\n}\n\npostgresql::server::database_grant { &#39;test1&#39;:\n  privilege =&gt; &#39;ALL&#39;,\n  db        =&gt; &#39;test1&#39;,\n  role      =&gt; &#39;marmot&#39;,\n}\n\npostgresql::server::table_grant { &#39;my_table of test2&#39;:\n  privilege =&gt; &#39;ALL&#39;,\n  table     =&gt; &#39;my_table&#39;,\n  db        =&gt; &#39;test2&#39;,\n  role      =&gt; &#39;marmot&#39;,\n}\n</code></pre>\n\n<p>In this example, you would grant ALL privileges on the test1 database and on the <code>my_table</code> table of the test2 database to the user or group specified by dan.</p>\n\n<p>At this point, you would just need to plunk these database name/username/password values into your PuppetDB config files, and you are good to go.</p>\n\n<h2>Upgrading</h2>\n\n<h3>Upgrading from 2.x to version 3</h3>\n\n<p><em>Note:</em> if you are upgrading for 2.x, you <em>must</em> read this, as just about everything has changed.</p>\n\n<p>Version 3 was a major rewrite to fix some internal dependency issues, and to make the new Public API more clear. As a consequence a lot of things have changed for version 3 and older revisions that we will try to outline here.</p>\n\n<h4>Server specific objects now moved under <code>postgresql::server::</code> namespace</h4>\n\n<p>To restructure server specific elements under the <code>postgresql::server::</code> namespaces the following objects were renamed as such:</p>\n\n<ul>\n<li><code>postgresql::database</code>       -&gt; <code>postgresql::server::database</code></li>\n<li><code>postgresql::database_grant</code> -&gt; <code>postgresql::server::database_grant</code></li>\n<li><code>postgresql::db</code>             -&gt; <code>postgresql::server::db</code></li>\n<li><code>postgresql::grant</code>          -&gt; <code>postgresql::server::grant</code></li>\n<li><code>postgresql::pg_hba_rule</code>    -&gt; <code>postgresql::server::pg_hba_rule</code></li>\n<li><code>postgresql::plperl</code>         -&gt; <code>postgresql::server::plperl</code></li>\n<li><code>postgresql::contrib</code>        -&gt; <code>postgresql::server::contrib</code></li>\n<li><code>postgresql::role</code>           -&gt; <code>postgresql::server::role</code></li>\n<li><code>postgresql::table_grant</code>    -&gt; <code>postgresql::server::table_grant</code></li>\n<li><code>postgresql::tablespace</code>     -&gt; <code>postgresql::server::tablespace</code></li>\n</ul>\n\n<h4>New <code>postgresql::server::config_entry</code> resource for managing configuration</h4>\n\n<p>Previously we used the <code>file_line</code> resource to modify <code>postgresql.conf</code>. This new revision now adds a new resource named <code>postgresql::server::config_entry</code> for managing this file. For example:</p>\n\n<pre><code>postgresql::server::config_entry { &#39;check_function_bodies&#39;:\n  value =&gt; &#39;off&#39;,\n}\n</code></pre>\n\n<p>If you were using <code>file_line</code> for this purpose, you should change to this new methodology.</p>\n\n<h4><code>postgresql_puppet_extras.conf</code> has been removed</h4>\n\n<p>Now that we have a methodology for managing <code>postgresql.conf</code>, and due to concerns over the file management methodology using an <code>exec { &#39;touch ...&#39;: }</code> as a way to create an empty file the existing postgresql_puppet_extras.conf file is no longer managed by this module.</p>\n\n<p>If you wish to recreate this methodology yourself, use this pattern:</p>\n\n<pre><code>class { &#39;postgresql::server&#39;: }\n\n$extras = &quot;/tmp/include.conf&quot;\n\nfile { $extras:\n  content =&gt; &#39;max_connections = 123&#39;,\n  notify  =&gt; Class[&#39;postgresql::server::service&#39;],\n}-&gt;\npostgresql::server::config_entry { &#39;include&#39;:\n  value   =&gt; $extras,\n}\n</code></pre>\n\n<h4>All uses of the parameter <code>charset</code> changed to <code>encoding</code></h4>\n\n<p>Since PostgreSQL uses the terminology <code>encoding</code> not <code>charset</code> the parameter has been made consisent across all classes and resources.</p>\n\n<h4>The <code>postgresql</code> base class is no longer how you set globals</h4>\n\n<p>The old global override pattern was less then optimal so it has been fixed, however we decided to demark this properly by specifying these overrides in the class <code>postgresql::globals</code>. Consult the documentation for this class now to see what options are available.</p>\n\n<p>Also, some parameter elements have been moved between this and the <code>postgresql::server</code> class where it made sense.</p>\n\n<h4><code>config_hash</code> parameter collapsed for the <code>postgresql::server</code> class</h4>\n\n<p>Because the <code>config_hash</code> was really passing data through to what was in effect an internal class (<code>postgresql::config</code>). And since we don&#39;t want this kind of internal exposure the parameters were collapsed up into the <code>postgresql::server</code> class directly.</p>\n\n<h4>Lots of changes to &#39;private&#39; or &#39;undocumented&#39; classes</h4>\n\n<p>If you were using these before, these have changed names. You should only use what is documented in this README.md, and if you don&#39;t have what you need you should raise a patch to add that feature to a public API. All internal classes now have a comment at the top indicating them as private to make sure the message is clear that they are not supported as Public API.</p>\n\n<h4><code>pg_hba_conf_defaults</code> parameter included to turn off default pg_hba rules</h4>\n\n<p>The defaults should be good enough for most cases (if not raise a bug) but if you simply need an escape hatch, this setting will turn off the defaults. If you want to do this, it may affect the rest of the module so make sure you replace the rules with something that continues operation.</p>\n\n<h4><code>postgresql::database_user</code> has now been removed</h4>\n\n<p>Use <code>postgresql::server::role</code> instead.</p>\n\n<h4><code>postgresql::psql</code> resource has now been removed</h4>\n\n<p>Use <code>postgresql_psql</code> instead. In the future we may recreate this as a wrapper to add extra capability, but it will not match the old behaviour.</p>\n\n<h4><code>postgresql_default_version</code> fact has now been removed</h4>\n\n<p>It didn&#39;t make sense to have this logic in a fact any more, the logic has been moved into <code>postgresql::params</code>.</p>\n\n<h4><code>ripienaar/concat</code> is no longer used, instead we use <code>puppetlabs/concat</code></h4>\n\n<p>The older concat module is now deprecated and moved into the <code>puppetlabs/concat</code> namespace. Functionality is more or less identical, but you may need to intervene during the installing of this package - as both use the same <code>concat</code> namespace.</p>\n\n<h2>Reference</h2>\n\n<p>The postgresql module comes with many options for configuring the server. While you are unlikely to use all of the below settings, they allow you a decent amount of control over your security settings.</p>\n\n<p>Classes:</p>\n\n<ul>\n<li><a href=\"#class-postgresqlclient\">postgresql::client</a></li>\n<li><a href=\"#class-postgresqlglobals\">postgresql::globals</a></li>\n<li><a href=\"#class-postgresqllibdevel\">postgresql::lib::devel</a></li>\n<li><a href=\"#class-postgresqllibjava\">postgresql::lib::java</a></li>\n<li><a href=\"#class-postgresqllibpython\">postgresql::lib::python</a></li>\n<li><a href=\"#class-postgresqlserver\">postgresql::server</a></li>\n<li><a href=\"#class-postgresqlserverplperl\">postgresql::server::plperl</a></li>\n<li><a href=\"#class-postgresqlservercontrib\">postgresql::server::contrib</a></li>\n</ul>\n\n<p>Resources:</p>\n\n<ul>\n<li><a href=\"#resource-postgresqlserverconfigentry\">postgresql::server::config_entry</a></li>\n<li><a href=\"#resource-postgresqlserverdb\">postgresql::server::db</a></li>\n<li><a href=\"#resource-postgresqlserverdatabase\">postgresql::server::database</a></li>\n<li><a href=\"#resource-postgresqlserverdatabasegrant\">postgresql::server::database_grant</a></li>\n<li><a href=\"#resource-postgresqlserverpghbarule\">postgresql::server::pg_hba_rule</a></li>\n<li><a href=\"#resource-postgresqlserverrole\">postgresql::server::role</a></li>\n<li><a href=\"#resource-postgresqlservertablegrant\">postgresql::server::table_grant</a></li>\n<li><a href=\"#resource-postgresqlservertablespace\">postgresql::server::tablespace</a></li>\n<li><a href=\"#resource-postgresqlvalidatedbconnection\">postgresql::validate_db_connection</a></li>\n</ul>\n\n<p>Functions:</p>\n\n<ul>\n<li><a href=\"#function-postgresqlpassword\">postgresql_password</a></li>\n<li><a href=\"#function-postgresqlaclstoresourceshashaclarray-id-orderoffset\">postgresql_acls_to_resources_hash</a></li>\n</ul>\n\n<h3>Class: postgresql::globals</h3>\n\n<p><em>Note:</em> most server specific defaults should be overriden in the <code>postgresql::server</code> class. This class should only be used if you are using a non-standard OS or if you are changing elements such as <code>version</code> or <code>manage_package_repo</code> that can only be changed here.</p>\n\n<p>This class allows you to configure the main settings for this module in a global way, to be used by the other classes and defined resources. On its own it does nothing.</p>\n\n<p>For example, if you wanted to overwrite the default <code>locale</code> and <code>encoding</code> for all classes you could use the following combination:</p>\n\n<pre><code>class { &#39;postgresql::globals&#39;:\n  encoding =&gt; &#39;UTF8&#39;,\n  locale   =&gt; &#39;en_NG&#39;,\n}-&gt;\nclass { &#39;postgresql::server&#39;:\n}\n</code></pre>\n\n<p>That would make the <code>encoding</code> and <code>locale</code> the default for all classes and defined resources in this module.</p>\n\n<p>If you want to use the upstream PostgreSQL packaging, and be specific about the version you wish to download, you could use something like this:</p>\n\n<pre><code>class { &#39;postgresql::globals&#39;:\n  manage_package_repo =&gt; true,\n  version             =&gt; &#39;9.2&#39;,\n}-&gt;\nclass { &#39;postgresql::server&#39;: }\n</code></pre>\n\n<h4><code>client_package_name</code></h4>\n\n<p>This setting can be used to override the default postgresql client package name. If not specified, the module will use whatever package name is the default for your OS distro.</p>\n\n<h4><code>server_package_name</code></h4>\n\n<p>This setting can be used to override the default postgresql server package name. If not specified, the module will use whatever package name is the default for your OS distro.</p>\n\n<h4><code>contrib_package_name</code></h4>\n\n<p>This setting can be used to override the default postgresql contrib package name. If not specified, the module will use whatever package name is the default for your OS distro.</p>\n\n<h4><code>devel_package_name</code></h4>\n\n<p>This setting can be used to override the default postgresql devel package name. If not specified, the module will use whatever package name is the default for your OS distro.</p>\n\n<h4><code>java_package_name</code></h4>\n\n<p>This setting can be used to override the default postgresql java package name. If not specified, the module will use whatever package name is the default for your OS distro.</p>\n\n<h4><code>plperl_package_name</code></h4>\n\n<p>This setting can be used to override the default postgresql PL/perl package name. If not specified, the module will use whatever package name is the default for your OS distro.</p>\n\n<h4><code>python_package_name</code></h4>\n\n<p>This setting can be used to override the default postgresql Python package name. If not specified, the module will use whatever package name is the default for your OS distro.</p>\n\n<h4><code>service_name</code></h4>\n\n<p>This setting can be used to override the default postgresql service provider. If not specified, the module will use whatever service name is the default for your OS distro.</p>\n\n<h4><code>service_status</code></h4>\n\n<p>This setting can be used to override the default status check command for your PostgreSQL service. If not specified, the module will use whatever service name is the default for your OS distro.</p>\n\n<h4><code>default_database</code></h4>\n\n<p>This setting is used to specify the name of the default database to connect with. On most systems this will be &quot;postgres&quot;.</p>\n\n<h4><code>initdb_path</code></h4>\n\n<p>Path to the <code>initdb</code> command.</p>\n\n<h4><code>createdb_path</code></h4>\n\n<p>Path to the <code>createdb</code> command.</p>\n\n<h4><code>psql_path</code></h4>\n\n<p>Path to the <code>psql</code> command.</p>\n\n<h4><code>pg_hba_conf_path</code></h4>\n\n<p>Path to your <code>pg\\_hba.conf</code> file.</p>\n\n<h4><code>postgresql_conf_path</code></h4>\n\n<p>Path to your <code>postgresql.conf</code> file.</p>\n\n<h4><code>pg_hba_conf_defaults</code></h4>\n\n<p>If false, disables the defaults supplied with the module for <code>pg\\_hba.conf</code>. This is useful if you disagree with the defaults and wish to override them yourself. Be sure that your changes of course align with the rest of the module, as some access is required to perform basic <code>psql</code> operations for example.</p>\n\n<h4><code>datadir</code></h4>\n\n<p>This setting can be used to override the default postgresql data directory for the target platform. If not specified, the module will use whatever directory is the default for your OS distro.</p>\n\n<h4><code>confdir</code></h4>\n\n<p>This setting can be used to override the default postgresql configuration directory for the target platform. If not specified, the module will use whatever directory is the default for your OS distro.</p>\n\n<h4><code>bindir</code></h4>\n\n<p>This setting can be used to override the default postgresql binaries directory for the target platform. If not specified, the module will use whatever directory is the default for your OS distro.</p>\n\n<h4><code>user</code></h4>\n\n<p>This setting can be used to override the default postgresql super user and owner of postgresql related files in the file system. If not specified, the module will use the user name &#39;postgres&#39;.</p>\n\n<h4><code>group</code></h4>\n\n<p>This setting can be used to override the default postgresql user group to be used for related files in the file system. If not specified, the module will use the group name &#39;postgres&#39;.</p>\n\n<h4><code>version</code></h4>\n\n<p>The version of PostgreSQL to install/manage. This is a simple way of providing a specific version such as &#39;9.2&#39; or &#39;8.4&#39; for example.</p>\n\n<p>Defaults to your operating system default.</p>\n\n<h4><code>needs_initdb</code></h4>\n\n<p>This setting can be used to explicitly call the initdb operation after server package is installed and before the postgresql service is started. If not specified, the module will decide whether to call initdb or not depending on your OS distro.</p>\n\n<h4><code>encoding</code></h4>\n\n<p>This will set the default encoding encoding for all databases created with this module. On certain operating systems this will be used during the <code>template1</code> initialization as well so it becomes a default outside of the module as well. Defaults to the operating system default.</p>\n\n<h4><code>locale</code></h4>\n\n<p>This will set the default database locale for all databases created with this module. On certain operating systems this will be used during the <code>template1</code> initialization as well so it becomes a default outside of the module as well. Defaults to <code>undef</code> which is effectively <code>C</code>.</p>\n\n<h4><code>firewall_supported</code></h4>\n\n<p>This allows you to override the automated detection to see if your OS supports the <code>firewall</code> module.</p>\n\n<h4><code>manage_package_repo</code></h4>\n\n<p>If <code>true</code> this will setup the official PostgreSQL repositories on your host. Defaults to <code>false</code>.</p>\n\n<h3>Class: postgresql::server</h3>\n\n<p>The following list are options that you can set in the <code>config_hash</code> parameter of <code>postgresql::server</code>.</p>\n\n<h4><code>ensure</code></h4>\n\n<p>This value default to <code>present</code>. When set to <code>absent</code> it will remove all packages, configuration and data so use this with extreme caution.</p>\n\n<h4><code>version</code></h4>\n\n<p>This will set the version of the PostgreSQL software to install. Defaults to your operating systems default.</p>\n\n<h4><code>postgres_password</code></h4>\n\n<p>This value defaults to <code>undef</code>, meaning the super user account in the postgres database is a user called <code>postgres</code> and this account does not have a password. If you provide this setting, the module will set the password for the <code>postgres</code> user to your specified value.</p>\n\n<h4><code>package_name</code></h4>\n\n<p>The name of the package to use for installing the server software. Defaults to the default for your OS distro.</p>\n\n<h4><code>package_ensure</code></h4>\n\n<p>Value to pass through to the <code>package</code> resource when creating the server instance. Defaults to <code>undef</code>.</p>\n\n<h4><code>plperl_package_name</code></h4>\n\n<p>This sets the default package name for the PL/Perl extension. Defaults to utilising the operating system default.</p>\n\n<h4><code>service_name</code></h4>\n\n<p>This setting can be used to override the default postgresql service name. If not specified, the module will use whatever service name is the default for your OS distro.</p>\n\n<h4><code>service_name</code></h4>\n\n<p>This setting can be used to override the default postgresql service provider. If not specified, the module will use whatever service name is the default for your OS distro.</p>\n\n<h4><code>service_status</code></h4>\n\n<p>This setting can be used to override the default status check command for your PostgreSQL service. If not specified, the module will use whatever service name is the default for your OS distro.</p>\n\n<h4><code>default_database</code></h4>\n\n<p>This setting is used to specify the name of the default database to connect with. On most systems this will be &quot;postgres&quot;.</p>\n\n<h4><code>listen_addresses</code></h4>\n\n<p>This value defaults to <code>localhost</code>, meaning the postgres server will only accept connections from localhost. If you&#39;d like to be able to connect to postgres from remote machines, you can override this setting. A value of <code>*</code> will tell postgres to accept connections from any remote machine. Alternately, you can specify a comma-separated list of hostnames or IP addresses. (For more info, have a look at the <code>postgresql.conf</code> file from your system&#39;s postgres package).</p>\n\n<h4><code>ip_mask_deny_postgres_user</code></h4>\n\n<p>This value defaults to <code>0.0.0.0/0</code>. Sometimes it can be useful to block the superuser account from remote connections if you are allowing other database users to connect remotely. Set this to an IP and mask for which you want to deny connections by the postgres superuser account. So, e.g., the default value of <code>0.0.0.0/0</code> will match any remote IP and deny access, so the postgres user won&#39;t be able to connect remotely at all. Conversely, a value of <code>0.0.0.0/32</code> would not match any remote IP, and thus the deny rule will not be applied and the postgres user will be allowed to connect.</p>\n\n<h4><code>ip_mask_allow_all_users</code></h4>\n\n<p>This value defaults to <code>127.0.0.1/32</code>. By default, Postgres does not allow any database user accounts to connect via TCP from remote machines. If you&#39;d like to allow them to, you can override this setting. You might set it to <code>0.0.0.0/0</code> to allow database users to connect from any remote machine, or <code>192.168.0.0/16</code> to allow connections from any machine on your local 192.168 subnet.</p>\n\n<h4><code>ipv4acls</code></h4>\n\n<p>List of strings for access control for connection method, users, databases, IPv4 addresses; see <a href=\"http://www.postgresql.org/docs/9.2/static/auth-pg-hba-conf.html\">postgresql documentation</a> about <code>pg_hba.conf</code> for information (please note that the link will take you to documentation for the most recent version of Postgres, however links for earlier versions can be found on that page).</p>\n\n<h4><code>ipv6acls</code></h4>\n\n<p>List of strings for access control for connection method, users, databases, IPv6 addresses; see <a href=\"http://www.postgresql.org/docs/9.2/static/auth-pg-hba-conf.html\">postgresql documentation</a> about <code>pg_hba.conf</code> for information (please note that the link will take you to documentation for the most recent version of Postgres, however links for earlier versions can be found on that page).</p>\n\n<h4><code>inidb_path</code></h4>\n\n<p>Path to the <code>initdb</code> command.</p>\n\n<h4><code>createdb_path</code></h4>\n\n<p>Path to the <code>createdb</code> command.</p>\n\n<h4><code>psql_path</code></h4>\n\n<p>Path to the <code>psql</code> command.</p>\n\n<h4><code>pg_hba_conf_path</code></h4>\n\n<p>Path to your <code>pg\\_hba.conf</code> file.</p>\n\n<h4><code>postgresql_conf_path</code></h4>\n\n<p>Path to your <code>postgresql.conf</code> file.</p>\n\n<h4><code>pg_hba_conf_defaults</code></h4>\n\n<p>If false, disables the defaults supplied with the module for <code>pg\\_hba.conf</code>. This is useful if you di\nsagree with the defaults and wish to override them yourself. Be sure that your changes of course alig\nn with the rest of the module, as some access is required to perform basic <code>psql</code> operations for exam\nple.</p>\n\n<h4><code>user</code></h4>\n\n<p>This setting can be used to override the default postgresql super user and owner of postgresql related files in the file system. If not specified, the module will use the user name &#39;postgres&#39;.</p>\n\n<h4><code>group</code></h4>\n\n<p>This setting can be used to override the default postgresql user group to be used for related files in the file system. If not specified, the module will use the group name &#39;postgres&#39;.</p>\n\n<h4><code>needs_initdb</code></h4>\n\n<p>This setting can be used to explicitly call the initdb operation after server package is installed and before the postgresql service is started. If not specified, the module will decide whether to call initdb or not depending on your OS distro.</p>\n\n<h4><code>encoding</code></h4>\n\n<p>This will set the default encoding encoding for all databases created with this module. On certain operating systems this will be used during the <code>template1</code> initialization as well so it becomes a default outside of the module as well. Defaults to the operating system default.</p>\n\n<h4><code>locale</code></h4>\n\n<p>This will set the default database locale for all databases created with this module. On certain operating systems this will be used during the <code>template1</code> initialization as well so it becomes a default outside of the module as well. Defaults to <code>undef</code> which is effectively <code>C</code>.</p>\n\n<h4><code>manage_firewall</code></h4>\n\n<p>This value defaults to <code>false</code>. Many distros ship with a fairly restrictive firewall configuration which will block the port that postgres tries to listen on. If you&#39;d like for the puppet module to open this port for you (using the <a href=\"http://forge.puppetlabs.com/puppetlabs/firewall\">puppetlabs-firewall</a> module), change this value to true. Check the documentation for <code>puppetlabs/firewall</code> to ensure the rest of the global setup is applied, to ensure things like persistence and global rules are set correctly.</p>\n\n<h4><code>manage_pg_hba_conf</code></h4>\n\n<p>This value defaults to <code>true</code>. Whether or not manage the pg_hba.conf. If set to <code>true</code>, puppet will overwrite this file. If set to <code>false</code>, puppet will not modify the file.</p>\n\n<h3>Class: postgresql::client</h3>\n\n<p>This class installs postgresql client software. Alter the following parameters if you have a custom version you would like to install (Note: don&#39;t forget to make sure to add any necessary yum or apt repositories if specifying a custom version):</p>\n\n<h4><code>package_name</code></h4>\n\n<p>The name of the postgresql client package.</p>\n\n<h4><code>package_ensure</code></h4>\n\n<p>The ensure parameter passed on to postgresql client package resource.</p>\n\n<h3>Class: postgresql::server::contrib</h3>\n\n<p>Installs the postgresql contrib package.</p>\n\n<h4><code>package_name</code></h4>\n\n<p>The name of the postgresql client package.</p>\n\n<h4><code>package_ensure</code></h4>\n\n<p>The ensure parameter passed on to postgresql contrib package resource.</p>\n\n<h3>Class: postgresql::lib::devel</h3>\n\n<p>Installs the packages containing the development libraries for PostgreSQL.</p>\n\n<h4><code>package_ensure</code></h4>\n\n<p>Override for the <code>ensure</code> parameter during package installation. Defaults to <code>present</code>.</p>\n\n<h4><code>package_name</code></h4>\n\n<p>Overrides the default package name for the distribution you are installing to. Defaults to <code>postgresql-devel</code> or <code>postgresql&lt;version&gt;-devel</code> depending on your distro.</p>\n\n<h3>Class: postgresql::lib::java</h3>\n\n<p>This class installs postgresql bindings for Java (JDBC). Alter the following parameters if you have a custom version you would like to install (Note: don&#39;t forget to make sure to add any necessary yum or apt repositories if specifying a custom version):</p>\n\n<h4><code>package_name</code></h4>\n\n<p>The name of the postgresql java package.</p>\n\n<h4><code>package_ensure</code></h4>\n\n<p>The ensure parameter passed on to postgresql java package resource.</p>\n\n<h3>Class: postgresql::lib::python</h3>\n\n<p>This class installs the postgresql Python libraries. For customer requirements you can customise the following parameters:</p>\n\n<h4><code>package_name</code></h4>\n\n<p>The name of the postgresql python package.</p>\n\n<h4><code>package_ensure</code></h4>\n\n<p>The ensure parameter passed on to postgresql python package resource.</p>\n\n<h3>Class: postgresql::server::plperl</h3>\n\n<p>This class installs the PL/Perl procedural language for postgresql.</p>\n\n<h4><code>package_name</code></h4>\n\n<p>The name of the postgresql PL/Perl package.</p>\n\n<h4><code>package_ensure</code></h4>\n\n<p>The ensure parameter passed on to postgresql PL/Perl package resource.</p>\n\n<h3>Resource: postgresql::server::config_entry</h3>\n\n<p>This resource can be used to modify your <code>postgresql.conf</code> configuration file.</p>\n\n<p>Each resource maps to a line inside your <code>postgresql.conf</code> file, for example:</p>\n\n<pre><code>postgresql::server::config_entry { &#39;check_function_bodies&#39;:\n  value =&gt; &#39;off&#39;,\n}\n</code></pre>\n\n<h4><code>namevar</code></h4>\n\n<p>Name of the setting to change.</p>\n\n<h4><code>ensure</code></h4>\n\n<p>Set to <code>absent</code> to remove an entry.</p>\n\n<h4><code>value</code></h4>\n\n<p>Value for the setting.</p>\n\n<h3>Resource: postgresql::server::db</h3>\n\n<p>This is a convenience resource that creates a database, user and assigns necessary permissions in one go.</p>\n\n<p>For example, to create a database called <code>test1</code> with a corresponding user of the same name, you can use:</p>\n\n<pre><code>postgresql::server::db { &#39;test1&#39;:\n  user     =&gt; &#39;test1&#39;,\n  password =&gt; &#39;test1&#39;,\n}\n</code></pre>\n\n<h4><code>namevar</code></h4>\n\n<p>The namevar for the resource designates the name of the database.</p>\n\n<h4><code>user</code></h4>\n\n<p>User to create and assign access to the database upon creation. Mandatory.</p>\n\n<h4><code>password</code></h4>\n\n<p>Password for the created user. Mandatory.</p>\n\n<h4><code>encoding</code></h4>\n\n<p>Override the character set during creation of the database. Defaults to the default defined during installation.</p>\n\n<h4><code>locale</code></h4>\n\n<p>Override the locale during creation of the database. Defaults to the default defined during installation.</p>\n\n<h4><code>grant</code></h4>\n\n<p>Grant permissions during creation. Defaults to <code>ALL</code>.</p>\n\n<h4><code>tablespace</code></h4>\n\n<p>The name of the tablespace to allocate this database to. If not specifies, it defaults to the PostgreSQL default.</p>\n\n<h4><code>istemplate</code></h4>\n\n<p>Define database as a template. Defaults to <code>false</code>.</p>\n\n<h3>Resource: postgresql::server::database</h3>\n\n<p>This defined type can be used to create a database with no users and no permissions, which is a rare use case.</p>\n\n<h4><code>namevar</code></h4>\n\n<p>The name of the database to create.</p>\n\n<h4><code>dbname</code></h4>\n\n<p>The name of the database, defaults to the namevar.</p>\n\n<h4><code>owner</code></h4>\n\n<p>Name of the database user who should be set as the owner of the database. Defaults to the $user variable set in <code>postgresql::server</code> or <code>postgresql::globals</code>.</p>\n\n<h4><code>tablespace</code></h4>\n\n<p>Tablespace for where to create this database. Defaults to the defaults defined during PostgreSQL installation.</p>\n\n<h4><code>encoding</code></h4>\n\n<p>Override the character set during creation of the database. Defaults to the default defined during installation.</p>\n\n<h4><code>locale</code></h4>\n\n<p>Override the locale during creation of the database. Defaults to the default defined during installation.</p>\n\n<h4><code>istemplate</code></h4>\n\n<p>Define database as a template. Defaults to <code>false</code>.</p>\n\n<h3>Resource: postgresql::server::database_grant</h3>\n\n<p>This defined type manages grant based access privileges for users, wrapping the <code>postgresql::server::database_grant</code> for database specific permissions. Consult the PostgreSQL documentation for <code>grant</code> for more information.</p>\n\n<h4><code>namevar</code></h4>\n\n<p>Used to uniquely identify this resource, but functionality not used during grant.</p>\n\n<h4><code>privilege</code></h4>\n\n<p>Can be one of <code>SELECT</code>, <code>TEMPORARY</code>, <code>TEMP</code>, <code>CONNECT</code>. <code>ALL</code> is used as a synonym for <code>CREATE</code>. If you need to add multiple privileges, a space delimited string can be used.</p>\n\n<h4><code>db</code></h4>\n\n<p>Database to grant access to.</p>\n\n<h4><code>role</code></h4>\n\n<p>Role or user whom you are granting access for.</p>\n\n<h4><code>psql_db</code></h4>\n\n<p>Database to execute the grant against. This should not ordinarily be changed from the default, which is <code>postgres</code>.</p>\n\n<h4><code>psql_user</code></h4>\n\n<p>OS user for running <code>psql</code>. Defaults to the default user for the module, usually <code>postgres</code>.</p>\n\n<h3>Resource: postgresql::server::pg_hba_rule</h3>\n\n<p>This defined type allows you to create an access rule for <code>pg_hba.conf</code>. For more details see the <a href=\"http://www.postgresql.org/docs/8.2/static/auth-pg-hba-conf.html\">PostgreSQL documentation</a>.</p>\n\n<p>For example:</p>\n\n<pre><code>postgresql::server::pg_hba_rule { &#39;allow application network to access app database&#39;:\n  description =&gt; &quot;Open up postgresql for access from 200.1.2.0/24&quot;,\n  type =&gt; &#39;host&#39;,\n  database =&gt; &#39;app&#39;,\n  user =&gt; &#39;app&#39;,\n  address =&gt; &#39;200.1.2.0/24&#39;,\n  auth_method =&gt; &#39;md5&#39;,\n}\n</code></pre>\n\n<p>This would create a ruleset in <code>pg_hba.conf</code> similar to:</p>\n\n<pre><code># Rule Name: allow application network to access app database\n# Description: Open up postgresql for access from 200.1.2.0/24\n# Order: 150\nhost  app  app  200.1.2.0/24  md5\n</code></pre>\n\n<h4><code>namevar</code></h4>\n\n<p>A unique identifier or short description for this rule. The namevar doesn&#39;t provide any functional usage, but it is stored in the comments of the produced <code>pg_hba.conf</code> so the originating resource can be identified.</p>\n\n<h4><code>description</code></h4>\n\n<p>A longer description for this rule if required. Defaults to <code>none</code>. This description is placed in the comments above the rule in <code>pg_hba.conf</code>.</p>\n\n<h4><code>type</code></h4>\n\n<p>The type of rule, this is usually one of: <code>local</code>, <code>host</code>, <code>hostssl</code> or <code>hostnossl</code>.</p>\n\n<h4><code>database</code></h4>\n\n<p>A comma separated list of databases that this rule matches.</p>\n\n<h4><code>user</code></h4>\n\n<p>A comma separated list of database users that this rule matches.</p>\n\n<h4><code>address</code></h4>\n\n<p>If the type is not &#39;local&#39; you can provide a CIDR based address here for rule matching.</p>\n\n<h4><code>auth_method</code></h4>\n\n<p>The <code>auth_method</code> is described further in the <code>pg_hba.conf</code> documentation, but it provides the method that is used for authentication for the connection that this rule matches.</p>\n\n<h4><code>auth_option</code></h4>\n\n<p>For certain <code>auth_method</code> settings there are extra options that can be passed. Consult the PostgreSQL <code>pg_hba.conf</code> documentation for further details.</p>\n\n<h4><code>order</code></h4>\n\n<p>An order for placing the rule in <code>pg_hba.conf</code>. Defaults to <code>150</code>.</p>\n\n<h4><code>target</code></h4>\n\n<p>This provides the target for the rule, and is generally an internal only property. Use with caution.</p>\n\n<h3>Resource: postgresql::server::role</h3>\n\n<p>This resource creates a role or user in PostgreSQL.</p>\n\n<h4><code>namevar</code></h4>\n\n<p>The role name to create.</p>\n\n<h4><code>password_hash</code></h4>\n\n<p>The hash to use during password creation. If the password is not already pre-encrypted in a format that PostgreSQL supports, use the <code>postgresql_password</code> function to provide an MD5 hash here, for example:</p>\n\n<pre><code>postgresql::role { &quot;myusername&quot;:\n  password_hash =&gt; postgresql_password(&#39;myusername&#39;, &#39;mypassword&#39;),\n}\n</code></pre>\n\n<h4><code>createdb</code></h4>\n\n<p>Whether to grant the ability to create new databases with this role. Defaults to <code>false</code>.</p>\n\n<h4><code>createrole</code></h4>\n\n<p>Whether to grant the ability to create new roles with this role. Defaults to <code>false</code>.</p>\n\n<h4><code>login</code></h4>\n\n<p>Whether to grant login capability for the new role. Defaults to <code>false</code>.</p>\n\n<h4><code>superuser</code></h4>\n\n<p>Whether to grant super user capability for the new role. Defaults to <code>false</code>.</p>\n\n<h4><code>replication</code></h4>\n\n<p>If <code>true</code> provides replication capabilities for this role. Defaults to <code>false</code>.</p>\n\n<h4><code>connection_limit</code></h4>\n\n<p>Specifies how many concurrent connections the role can make. Defaults to <code>-1</code> meaning no limit.</p>\n\n<h4><code>username</code></h4>\n\n<p>The username of the role to create, defaults to <code>namevar</code>.</p>\n\n<h3>Resource: postgresql::server::table_grant</h3>\n\n<p>This defined type manages grant based access privileges for users. Consult the PostgreSQL documentation for <code>grant</code> for more information.</p>\n\n<h4><code>namevar</code></h4>\n\n<p>Used to uniquely identify this resource, but functionality not used during grant.</p>\n\n<h4><code>privilege</code></h4>\n\n<p>Can be one of <code>SELECT</code>, <code>INSERT</code>, <code>UPDATE</code>, <code>REFERENCES</code>. <code>ALL</code> is used as a synonym for <code>CREATE</code>. If you need to add multiple privileges, a space delimited string can be used.</p>\n\n<h4><code>table</code></h4>\n\n<p>Table to grant access on.</p>\n\n<h4><code>db</code></h4>\n\n<p>Database of table.</p>\n\n<h4><code>role</code></h4>\n\n<p>Role or user whom you are granting access for.</p>\n\n<h4><code>psql_db</code></h4>\n\n<p>Database to execute the grant against. This should not ordinarily be changed from the default, which is <code>postgres</code>.</p>\n\n<h4><code>psql_user</code></h4>\n\n<p>OS user for running <code>psql</code>. Defaults to the default user for the module, usually <code>postgres</code>.</p>\n\n<h3>Resource: postgresql::server::tablespace</h3>\n\n<p>This defined type can be used to create a tablespace. For example:</p>\n\n<pre><code>postgresql::tablespace { &#39;tablespace1&#39;:\n  location =&gt; &#39;/srv/space1&#39;,\n}\n</code></pre>\n\n<p>It will create the location if necessary, assigning it the same permissions as your\nPostgreSQL server.</p>\n\n<h4><code>namevar</code></h4>\n\n<p>The tablespace name to create.</p>\n\n<h4><code>location</code></h4>\n\n<p>The path to locate this tablespace.</p>\n\n<h4><code>owner</code></h4>\n\n<p>The default owner of the tablespace.</p>\n\n<h4><code>spcname</code></h4>\n\n<p>Name of the tablespace. Defaults to <code>namevar</code>.</p>\n\n<h3>Resource: postgresql::validate_db_connection</h3>\n\n<p>This resource can be utilised inside composite manifests to validate that a client has a valid connection with a remote PostgreSQL database. It can be ran from any node where the PostgreSQL client software is installed to validate connectivity before commencing other dependent tasks in your Puppet manifests, so it is often used when chained to other tasks such as: starting an application server, performing a database migration.</p>\n\n<p>Example usage:</p>\n\n<pre><code>postgresql::validate_db_connection { &#39;validate my postgres connection&#39;:\n  database_host           =&gt; &#39;my.postgres.host&#39;,\n  database_username       =&gt; &#39;mydbuser&#39;,\n  database_password       =&gt; &#39;mydbpassword&#39;,\n  database_name           =&gt; &#39;mydbname&#39;,\n}-&gt;\nexec { &#39;rake db:migrate&#39;:\n  cwd =&gt; &#39;/opt/myrubyapp&#39;,\n}\n</code></pre>\n\n<h4><code>namevar</code></h4>\n\n<p>Uniquely identify this resource, but functionally does nothing.</p>\n\n<h4><code>database_host</code></h4>\n\n<p>The hostname of the database you wish to test. Defaults to &#39;undef&#39; which generally uses the designated local unix socket.</p>\n\n<h4><code>database_port</code></h4>\n\n<p>Port to use when connecting. Default to &#39;undef&#39; which generally defaults to 5432 depending on your PostgreSQL packaging.</p>\n\n<h4><code>database_name</code></h4>\n\n<p>The name of the database you wish to test. Defaults to &#39;postgres&#39;.</p>\n\n<h4><code>database_username</code></h4>\n\n<p>Username to connect with. Defaults to &#39;undef&#39;, which when using a unix socket and ident auth will be the user you are running as. If the host is remote you must provide a username.</p>\n\n<h4><code>database_password</code></h4>\n\n<p>Password to connect with. Can be left blank, but that is not recommended.</p>\n\n<h4><code>run_as</code></h4>\n\n<p>The user to run the <code>psql</code> command with for authenticiation. This is important when trying to connect to a database locally using Unix sockets and <code>ident</code> authentication. It is not needed for remote testing.</p>\n\n<h4><code>sleep</code></h4>\n\n<p>Upon failure, sets the number of seconds to sleep for before trying again.</p>\n\n<h4><code>tries</code></h4>\n\n<p>Upon failure, sets the number of attempts before giving up and failing the resource.</p>\n\n<h4><code>create_db_first</code></h4>\n\n<p>This will ensure the database is created before running the test. This only really works if your test is local. Defaults to <code>true</code>.</p>\n\n<h3>Function: postgresql_password</h3>\n\n<p>If you need to generate a postgres encrypted password, use <code>postgresql_password</code>. You can call it from your production manifests if you don&#39;t mind them containing the clear text versions of your passwords, or you can call it from the command line and then copy and paste the encrypted password into your manifest:</p>\n\n<pre><code>$ puppet apply --execute &#39;notify { &quot;test&quot;: message =&gt; postgresql_password(&quot;username&quot;, &quot;password&quot;) }&#39;\n</code></pre>\n\n<h3>Function: postgresql_acls_to_resources_hash(acl_array, id, order_offset)</h3>\n\n<p>This internal function converts a list of <code>pg_hba.conf</code> based acls (passed in as an array of strings) to a format compatible with the <code>postgresql::pg_hba_rule</code> resource.</p>\n\n<p><strong>This function should only be used internally by the module</strong>.</p>\n\n<h2>Limitations</h2>\n\n<p>Works with versions of PostgreSQL from 8.1 through 9.2.</p>\n\n<p>Current it is only actively tested with the following operating systems:</p>\n\n<ul>\n<li>Debian 6.x and 7.x</li>\n<li>Centos 5.x and 6.x</li>\n<li>Ubuntu 10.04 and 12.04</li>\n</ul>\n\n<p>Although patches are welcome for making it work with other OS distros, it is considered best effort.</p>\n\n<h2>Development</h2>\n\n<p>Puppet Labs modules on the Puppet Forge are open projects, and community contributions are essential for keeping them great. We can&#39;t access the huge number of platforms and myriad of hardware, software, and deployment configurations that Puppet is intended to serve.</p>\n\n<p>We want to keep it as easy as possible to contribute changes so that our modules work in your environment. There are a few guidelines that we need contributors to follow so that we can have a chance of keeping on top of things.</p>\n\n<p>You can read the complete module contribution guide <a href=\"http://projects.puppetlabs.com/projects/module-site/wiki/Module_contributing\">on the Puppet Labs wiki.</a></p>\n\n<h3>Tests</h3>\n\n<p>There are two types of tests distributed with the module. Unit tests with rspec-puppet and system tests using rspec-system.</p>\n\n<p>For unit testing, make sure you have:</p>\n\n<ul>\n<li>rake</li>\n<li>bundler</li>\n</ul>\n\n<p>Install the necessary gems:</p>\n\n<pre><code>bundle install --path=vendor\n</code></pre>\n\n<p>And then run the unit tests:</p>\n\n<pre><code>bundle exec rake spec\n</code></pre>\n\n<p>The unit tests are ran in Travis-CI as well, if you want to see the results of your own tests regsiter the service hook through Travis-CI via the accounts section for your Github clone of this project.</p>\n\n<p>If you want to run the system tests, make sure you also have:</p>\n\n<ul>\n<li>vagrant &gt; 1.2.x</li>\n<li>Virtualbox &gt; 4.2.10</li>\n</ul>\n\n<p>Then run the tests using:</p>\n\n<pre><code>bundle exec rake spec:system\n</code></pre>\n\n<p>To run the tests on different operating systems, see the sets available in .nodeset.yml and run the specific set with the following syntax:</p>\n\n<pre><code>RSPEC_SET=debian-607-x64 bundle exec rake spec:system\n</code></pre>\n\n<h2>Transfer Notice</h2>\n\n<p>This Puppet module was originally authored by Inkling Systems. The maintainer preferred that Puppet Labs take ownership of the module for future improvement and maintenance as Puppet Labs is using it in the PuppetDB module.  Existing pull requests and issues were transferred over, please fork and continue to contribute here instead of Inkling.</p>\n\n<p>Previously: <a href=\"https://github.com/inkling/puppet-postgresql\">https://github.com/inkling/puppet-postgresql</a></p>\n\n<h2>Contributors</h2>\n\n<ul>\n<li>Andrew Moon</li>\n<li><a href=\"https://github.com/kennknowles\">Kenn Knowles</a> (<a href=\"https://twitter.com/KennKnowles\">@kennknowles</a>)</li>\n<li>Adrien Thebo</li>\n<li>Albert Koch</li>\n<li>Andreas Ntaflos</li>\n<li>Bret Comnes</li>\n<li>Brett Porter</li>\n<li>Chris Price</li>\n<li>dharwood</li>\n<li>Etienne Pelletier</li>\n<li>Florin Broasca</li>\n<li>Henrik</li>\n<li>Hunter Haugen</li>\n<li>Jari Bakken</li>\n<li>Jordi Boggiano</li>\n<li>Ken Barber</li>\n<li>nzakaria</li>\n<li>Richard Arends</li>\n<li>Spenser Gilliland</li>\n<li>stormcrow</li>\n<li>William Van Hevelingen</li>\n</ul>\n</section>",
ruby-puppet-forge-2.3.2/spec/fixtures/v3/modules__owner=puppetlabs.json:2128:        "changelog": "<section class=\"plaintext\"><pre>2013-11-05 - Version 3.2.0\n\nSummary:\n\nAdd&#x27;s support for Ubuntu 13.10 (and 14.04) as well as x, y, z.\n\nFeatures:\n- Add versions for Ubuntu 13.10 and 14.04.\n- Use default_database in validate_db_connection instead of a hardcoded\n&#x27;postgres&#x27;\n- Add globals&#x2F;params layering for default_database.\n- Allow specification of default database name.\n\nBugs:\n- Fixes to the README.\n\n\n2013-10-25 - Version 3.1.0\n\nSummary:\n\nThis is a minor feature and bug fix release.\n\nFirstly, the postgresql_psql type now includes a new parameter `search_path` which is equivalent to using `set search_path` which allows you to change the default schema search path.\n\nThe default version of Fedora 17 has now been added, so that Fedora 17 users can enjoy the module.\n\nAnd finally we&#x27;ve extended the capabilities of the defined type postgresql::validate_db_connection so that now it can handle retrying and sleeping between retries. This feature has been monopolized to fix a bug we were seeing with startup race conditions, but it can also be used by remote systems to &#x27;wait&#x27; for PostgreSQL to start before their Puppet run continues.\n\nFeatures:\n- Defined $default_version for Fedora 17 (Bret Comnes)\n- add search_path attribute to postgresql_psql resource (Jeremy Kitchen)\n- (GH-198) Add wait and retry capability to validate_db_connection (Ken Barber)\n\nBugs:\n- enabling defined postgres user password without resetting on every puppet run (jonoterc)\n- periods are valid in configuration variables also (Jeremy Kitchen)\n- Add zero length string to join() function (Jarl Stefansson)\n- add require of install to reload class (cdenneen)\n- (GH-198) Fix race condition on postgresql startup (Ken Barber)\n- Remove concat::setup for include in preparation for the next concat release (Ken Barber)\n\n\n2013-10-14 - Version 3.0.0\n\nFinal release of 3.0, enjoy!\n\n2013-10-14 - Version 3.0.0-rc3\n\nSummary:\n\nAdd a parameter to unmanage pg_hba.conf to fix a regression from 2.5, as well\nas allowing owner to be passed into x.\n\nFeatures:\n- `manage_pg_hba_conf` parameter added to control pg_hba.conf management.\n- `owner` parameter added to server::db.\n\n2013-10-09 - Version 3.0.0-rc2\n\nSummary:\n\nA few bugfixes have been found since -rc1.\n\nFixes:\n- Special case for $datadir on Amazon\n- Fix documentation about username&#x2F;password for the postgresql_hash function\n\n2013-10-01 - Version 3.0.0-rc1\n\nSummary:\n\nVersion 3 was a major rewrite to fix some internal dependency issues, and to\nmake the new Public API more clear. As a consequence a lot of things have\nchanged for version 3 and older revisions that we will try to outline here.\n\n(NOTE:  The format of this CHANGELOG differs to normal in an attempt to\nexplain the scope of changes)\n\n* Server specific objects now moved under `postgresql::server::` namespace:\n\nTo restructure server specific elements under the `postgresql::server::`\nnamespaces the following objects were renamed as such:\n\n`postgresql::database`       -&gt; `postgresql::server::database`\n`postgresql::database_grant` -&gt; `postgresql::server::database_grant`\n`postgresql::db`             -&gt; `postgresql::server::db`\n`postgresql::grant`          -&gt; `postgresql::server::grant`\n`postgresql::pg_hba_rule`    -&gt; `postgresql::server::pg_hba_rule`\n`postgresql::plperl`         -&gt; `postgresql::server::plperl`\n`postgresql::contrib`        -&gt; `postgresql::server::contrib`\n`postgresql::role`           -&gt; `postgresql::server::role`\n`postgresql::table_grant`    -&gt; `postgresql::server::table_grant`\n`postgresql::tablespace`     -&gt; `postgresql::server::tablespace`\n\n* New `postgresql::server::config_entry` resource for managing configuration:\n\nPreviously we used the `file_line` resource to modify `postgresql.conf`. This\nnew revision now adds a new resource named `postgresql::server::config_entry`\nfor managing this file. For example:\n\n```puppet\n    postgresql::server::config_entry { &#x27;check_function_bodies&#x27;:\n      value =&gt; &#x27;off&#x27;,\n    }\n```\n\nIf you were using `file_line` for this purpose, you should change to this new\nmethodology.\n\n* `postgresql_puppet_extras.conf` has been removed:\n\nNow that we have a methodology for managing `postgresql.conf`, and due to\nconcerns over the file management methodology using an `exec { &#x27;touch ...&#x27;: }`\nas a way to create an empty file the existing postgresql\\_puppet\\_extras.conf\nfile is no longer managed by this module.\n\nIf you wish to recreate this methodology yourself, use this pattern:\n\n```puppet\n    class { &#x27;postgresql::server&#x27;: }\n\n    $extras = &quot;&#x2F;tmp&#x2F;include.conf&quot;\n\n    file { $extras:\n      content =&gt; &#x27;max_connections = 123&#x27;,\n      notify  =&gt; Class[&#x27;postgresql::server::service&#x27;],\n    }-&gt;\n    postgresql::server::config_entry { &#x27;include&#x27;:\n      value   =&gt; $extras,\n    }\n```\n\n* All uses of the parameter `charset` changed to `encoding`:\n\nSince PostgreSQL uses the terminology `encoding` not `charset` the parameter\nhas been made consisent across all classes and resources.\n\n* The `postgresql` base class is no longer how you set globals:\n\nThe old global override pattern was less then optimal so it has been fixed,\nhowever we decided to demark this properly by specifying these overrides in\nthe class `postgresql::global`. Consult the documentation for this class now\nto see what options are available.\n\nAlso, some parameter elements have been moved between this and the\n`postgresql::server` class where it made sense.\n\n* `config_hash` parameter collapsed for the `postgresql::server` class:\n\nBecause the `config_hash` was really passing data through to what was in\neffect an internal class (`postgresql::config`). And since we don&#x27;t want this\nkind of internal exposure the parameters were collapsed up into the\n`postgresql::server` class directly.\n\n* Lots of changes to &#x27;private&#x27; or &#x27;undocumented&#x27; classes:\n\nIf you were using these before, these have changed names. You should only use\nwhat is documented in this README.md, and if you don&#x27;t have what you need you\nshould raise a patch to add that feature to a public API. All internal classes\nnow have a comment at the top indicating them as private to make sure the\nmessage is clear that they are not supported as Public API.\n\n* `pg_hba_conf_defaults` parameter included to turn off default pg\\_hba rules:\n\nThe defaults should be good enough for most cases (if not raise a bug) but if\nyou simply need an escape hatch, this setting will turn off the defaults. If\nyou want to do this, it may affect the rest of the module so make sure you\nreplace the rules with something that continues operation.\n\n* `postgresql::database_user` has now been removed:\n\nUse `postgresql::server::role` instead.\n\n* `postgresql::psql` resource has now been removed:\n\nUse `postgresql_psql` instead. In the future we may recreate this as a wrapper\nto add extra capability, but it will not match the old behaviour.\n\n* `postgresql_default_version` fact has now been removed:\n\nIt didn&#x27;t make sense to have this logic in a fact any more, the logic has been\nmoved into `postgresql::params`.\n\n* `ripienaar&#x2F;concat` is no longer used, instead we use `puppetlabs&#x2F;concat`:\n\nThe older concat module is now deprecated and moved into the\n`puppetlabs&#x2F;concat` namespace. Functionality is more or less identical, but\nyou may need to intervene during the installing of this package - as both use\nthe same `concat` namespace.\n\n2013-09-09 Release 2.5.0\n=======================\n\nSummary\n-------\n\nThe focus of this release is primarily to capture the fixes done to the\ntypes and providers to make sure refreshonly works properly and to set\nthe stage for the large scale refactoring work of 3.0.0.\n\nFeatures\n--------\n\nBugfixes \n--------\n- Use boolean for refreshonly.\n- Fix postgresql::plperl documentation.\n- Add two missing parameters to config::beforeservice\n- Style fixes\n\n\n2013-08-01 Release 2.4.1\n========================\n\nSummary\n-------\n\nThis minor bugfix release solves an idempotency issue when using plain text\npasswords for the password_hash parameter for the postgresql::role defined\ntype. Without this, users would continually see resource changes everytime\nyour run Puppet.\n\nBugfixes\n---------\n- Alter role call not idempotent with cleartext passwords (Ken Barber)\n\n2013-07-19 Release 2.4.0\n========================\n\nSummary\n-------\nThis updates adds the ability to change permissions on tables, create template\ndatabases from normal databases, manage PL-Perl&#x27;s postgres package, and\ndisable the management of `pg_hba.conf`.\n\nFeatures\n--------\n- Add `postgresql::table_grant` defined resource\n- Add `postgresql::plperl` class\n- Add `manage_pg_hba_conf` parameter to the `postgresql::config` class\n- Add `istemplate` parameter to the `postgresql::database` define\n\nBugfixes\n--------\n- Update `postgresql::role` class to be able to update roles when modified\ninstead of only on creation.\n- Update tests\n- Fix documentation of `postgresql::database_grant`\n\n2.3.0\n=====\n\nThis feature release includes the following changes:\n\n* Add a new parameter `owner` to the `database` type.  This can be used to\n  grant ownership of a new database to a specific user.  (Bruno Harbulot)\n* Add support for operating systems other than Debian&#x2F;RedHat, as long as the\n  user supplies custom values for all of the required paths, package names, etc.\n  (Chris Price)\n* Improved integration testing (Ken Barber)\n\n2.2.1\n=====\n\nThis release fixes a bug whereby one of our shell commands (psql) were not ran from a globally accessible directory. This was causing permission denied errors when the command attempted to change user without changing directory.\n\nUsers of previous versions might have seen this error:\n\n    Error: Error executing SQL; psql returned 256: &#x27;could not change directory to &quot;&#x2F;root&quot;\n\nThis patch should correct that.\n\n#### Detail Changes\n\n* Set &#x2F;tmp as default CWD for postgresql_psql\n\n2.2.0\n=====\n\nThis feature release introduces a number of new features and bug fixes.\n\nFirst of all it includes a new class named `postgresql::python` which provides you with a convenient way of install the python Postgresql client libraries.\n\n    class { &#x27;postgresql::python&#x27;:\n    }\n\nYou are now able to use `postgresql::database_user` without having to specify a password_hash, useful for different authentication mechanisms that do not need passwords (ie. cert, local etc.).\n\nWe&#x27;ve also provided a lot more advanced custom parameters now for greater control of your Postgresql installation. Consult the class documentation for PuppetDB in the README.\n\nThis release in particular has largely been contributed by the community members below, a big thanks to one and all.\n\n#### Detailed Changes\n\n* Add support for psycopg installation (Flaper Fesp and Dan Prince)\n* Added default PostgreSQL version for Ubuntu 13.04 (Kamil Szymanski)\n* Add ability to create users without a password (Bruno Harbulot)\n* Three Puppet 2.6 fixes (Dominic Cleal)\n* Add explicit call to concat::setup when creating concat file (Dominic Cleal)\n* Fix readme typo (Jordi Boggiano)\n* Update postgres_default_version for Ubuntu (Kamil Szymanski)\n* Allow to set connection for noew role (Kamil Szymanski)\n* Fix pg_hba_rule for postgres local access (Kamil Szymanski)\n* Fix versions for travis-ci (Ken Barber)\n* Add replication support (Jordi Boggiano)\n* Cleaned up and added unit tests (Ken Barber)\n* Generalization to provide more flexability in postgresql configuration (Karel Brezina)\n* Create dependent directory for sudoers so tests work on Centos 5 (Ken Barber)\n* Allow SQL commands to be run against a specific DB (Carlos Villela)\n* Drop trailing comma to support Puppet 2.6 (Michael Arnold)\n\n2.1.1\n=====\n\nThis release provides a bug fix for RHEL 5 and Centos 5 systems, or specifically systems using PostgreSQL 8.1 or older. On those systems one would have received the error:\n\n    Error: Could not start Service[postgresqld]: Execution of ‘&#x2F;sbin&#x2F;service postgresql start’ returned 1:\n\nAnd the postgresql log entry:\n\n    FATAL: unrecognized configuration parameter &quot;include&quot;\n\nThis bug is due to a new feature we had added in 2.1.0, whereby the `include` directive in `postgresql.conf` was not compatible. As a work-around we have added checks in our code to make sure systems running PostgreSQL 8.1 or older do not have this directive added.\n\n#### Detailed Changes\n\n2013-01-21 - Ken Barber &lt;ken@bob.sh&gt;\n* Only install `include` directive and included file on PostgreSQL &gt;= 8.2\n* Add system tests for Centos 5\n\n2.1.0\n=====\n\nThis release is primarily a feature release, introducing some new helpful constructs to the module.\n\nFor starters, we&#x27;ve added the line `include &#x27;postgresql_conf_extras.conf&#x27;` by default so extra parameters not managed by the module can be added by other tooling or by Puppet itself. This provides a useful escape-hatch for managing settings that are not currently managed by the module today.\n\nWe&#x27;ve added a new defined resource for managing your tablespace, so you can now create new tablespaces using the syntax:\n\n    postgresql::tablespace { &#x27;dbspace&#x27;:\n      location =&gt; &#x27;&#x2F;srv&#x2F;dbspace&#x27;,\n    }\n\nWe&#x27;ve added a locale parameter to the `postgresql` class, to provide a default. Also the parameter has been added to the `postgresql::database` and `postgresql::db` defined resources for changing the locale per database:\n\n    postgresql::db { &#x27;mydatabase&#x27;:\n      user     =&gt; &#x27;myuser&#x27;,\n      password =&gt; &#x27;mypassword&#x27;,\n      encoding =&gt; &#x27;UTF8&#x27;,\n      locale   =&gt; &#x27;en_NG&#x27;,\n    }\n\nThere is a new class for installing the necessary packages to provide the PostgreSQL JDBC client jars:\n\n    class { &#x27;postgresql::java&#x27;: }\n\nAnd we have a brand new defined resource for managing fine-grained rule sets within your pg_hba.conf access lists:\n\n    postgresql::pg_hba { &#x27;Open up postgresql for access from 200.1.2.0&#x2F;24&#x27;:\n      type =&gt; &#x27;host&#x27;,\n      database =&gt; &#x27;app&#x27;,\n      user =&gt; &#x27;app&#x27;,\n      address =&gt; &#x27;200.1.2.0&#x2F;24&#x27;,\n      auth_method =&gt; &#x27;md5&#x27;,\n    }\n\nFinally, we&#x27;ve also added Travis-CI support and unit tests to help us iterate faster with tests to reduce regression. The current URL for these tests is here: https:&#x2F;&#x2F;travis-ci.org&#x2F;puppetlabs&#x2F;puppet-postgresql. Instructions on how to run the unit tests available are provided in the README for the module.\n\nA big thanks to all those listed below who made this feature release possible :-).\n\n#### Detailed Changes\n\n2013-01-18 - Simão Fontes &lt;simaofontes@gmail.com&gt; &amp; Flaper Fesp &lt;flaper87@gmail.com&gt;\n* Remove trailing commas from params.pp property definition for Puppet 2.6.0 compatibility\n\n2013-01-18 - Lauren Rother &lt;lauren.rother@puppetlabs.com&gt;\n* Updated README.md to conform with best practices template\n\n2013-01-09 - Adrien Thebo &lt;git@somethingsinistral.net&gt;\n* Update postgresql_default_version to 9.1 for Debian 7.0\n\n2013-01-28 - Karel Brezina &lt;karel.brezina@gmail.com&gt;\n* Add support for tablespaces\n\n2013-01-16 - Chris Price &lt;chris@puppetlabs.com&gt; &amp; Karel Brezina &lt;karel.brezina@gmail.com&gt;\n* Provide support for an &#x27;include&#x27; config file &#x27;postgresql_conf_extras.conf&#x27; that users can modify manually or outside of the module.\n\n2013-01-31 - jv &lt;jeff@jeffvier.com&gt;\n* Fix typo in README.pp for postgresql::db example\n\n2013-02-03 - Ken Barber &lt;ken@bob.sh&gt;\n* Add unit tests and travis-ci support\n\n2013-02-02 - Ken Barber &lt;ken@bob.sh&gt;\n* Add locale parameter support to the &#x27;postgresql&#x27; class\n\n2013-01-21 - Michael Arnold &lt;github@razorsedge.org&gt;\n* Add a class for install the packages containing the PostgreSQL JDBC jar\n\n2013-02-06 - fhrbek &lt;filip.hbrek@gmail.com&gt;\n* Coding style fixes to reduce warnings in puppet-lint and Geppetto\n\n2013-02-10 - Ken Barber &lt;ken@bob.sh&gt;\n* Provide new defined resource for managing pg_hba.conf\n\n2013-02-11 - Ken Barber &lt;ken@bob.sh&gt;\n* Fix bug with reload of Postgresql on Redhat&#x2F;Centos\n\n2013-02-15 - Erik Dalén &lt;dalen@spotify.com&gt;\n* Fix more style issues to reduce warnings in puppet-lint and Geppetto\n\n2013-02-15 - Erik Dalén &lt;dalen@spotify.com&gt;\n* Fix case whereby we were modifying a hash after creation\n\n2.0.1\n=====\n\nMinor bugfix release.\n\n2013-01-16 - Chris Price &lt;chris@puppetlabs.com&gt;\n * Fix revoke command in database.pp to support postgres 8.1 (43ded42)\n\n2013-01-15 - Jordi Boggiano &lt;j.boggiano@seld.be&gt;\n * Add support for ubuntu 12.10 status (3504405)\n\n2.0.0\n=====\n\nMany thanks to the following people who contributed patches to this\nrelease:\n\n* Adrien Thebo\n* Albert Koch\n* Andreas Ntaflos\n* Brett Porter\n* Chris Price\n* dharwood\n* Etienne Pelletier\n* Florin Broasca\n* Henrik\n* Hunter Haugen\n* Jari Bakken\n* Jordi Boggiano\n* Ken Barber\n* nzakaria\n* Richard Arends\n* Spenser Gilliland\n* stormcrow\n* William Van Hevelingen\n\nNotable features:\n\n   * Add support for versions of postgres other than the system default version\n     (which varies depending on OS distro).  This includes optional support for\n     automatically managing the package repo for the &quot;official&quot; postgres yum&#x2F;apt\n     repos.  (Major thanks to Etienne Pelletier &lt;epelletier@maestrodev.com&gt; and\n     Ken Barber &lt;ken@bob.sh&gt; for their tireless efforts and patience on this\n     feature set!)  For example usage see `tests&#x2F;official-postgresql-repos.pp`.\n\n   * Add some support for Debian Wheezy and Ubuntu Quantal\n\n   * Add new `postgres_psql` type with a Ruby provider, to replace the old\n     exec-based `psql` type.  This gives us much more flexibility around\n     executing SQL statements and controlling their logging &#x2F; reports output.\n\n   * Major refactor of the &quot;spec&quot; tests--which are actually more like\n     acceptance tests.  We now support testing against multiple OS distros\n     via vagrant, and the framework is in place to allow us to very easily add\n     more distros.  Currently testing against Cent6 and Ubuntu 10.04.\n\n   * Fixed a bug that was preventing multiple databases from being owned by the\n     same user\n     (9adcd182f820101f5e4891b9f2ff6278dfad495c - Etienne Pelletier &lt;epelletier@maestrodev.com&gt;)\n\n   * Add support for ACLs for finer-grained control of user&#x2F;interface access\n     (b8389d19ad78b4fb66024897097b4ed7db241930 - dharwood &lt;harwoodd@cat.pdx.edu&gt;)\n\n   * Many other bug fixes and improvements!\n\n\n1.0.0\n=====\n2012-09-17 - Version 0.3.0 released\n\n2012-09-14 - Chris Price &lt;chris@puppetlabs.com&gt;\n * Add a type for validating a postgres connection (ce4a049)\n\n2012-08-25 - Jari Bakken &lt;jari.bakken@gmail.com&gt;\n * Remove trailing commas. (e6af5e5)\n\n2012-08-16 - Version 0.2.0 released\n</pre></section>",
ruby-puppet-forge-2.3.2/spec/fixtures/v3/modules__owner=puppetlabs.json-2129-        "license": "<section class=\"plaintext\"><pre>\n                                 Apache License\n                           Version 2.0, January 2004\n                        http:&#x2F;&#x2F;www.apache.org&#x2F;licenses&#x2F;\n\n   TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\n\n   1. Definitions.\n\n      &quot;License&quot; shall mean the terms and conditions for use, reproduction,\n      and distribution as defined by Sections 1 through 9 of this document.\n\n      &quot;Licensor&quot; shall mean the copyright owner or entity authorized by\n      the copyright owner that is granting the License.\n\n      &quot;Legal Entity&quot; shall mean the union of the acting entity and all\n      other entities that control, are controlled by, or are under common\n      control with that entity. For the purposes of this definition,\n      &quot;control&quot; means (i) the power, direct or indirect, to cause the\n      direction or management of such entity, whether by contract or\n      otherwise, or (ii) ownership of fifty percent (50%) or more of the\n      outstanding shares, or (iii) beneficial ownership of such entity.\n\n      &quot;You&quot; (or &quot;Your&quot;) shall mean an individual or Legal Entity\n      exercising permissions granted by this License.\n\n      &quot;Source&quot; form shall mean the preferred form for making modifications,\n      including but not limited to software source code, documentation\n      source, and configuration files.\n\n      &quot;Object&quot; form shall mean any form resulting from mechanical\n      transformation or translation of a Source form, including but\n      not limited to compiled object code, generated documentation,\n      and conversions to other media types.\n\n      &quot;Work&quot; shall mean the work of authorship, whether in Source or\n      Object form, made available under the License, as indicated by a\n      copyright notice that is included in or attached to the work\n      (an example is provided in the Appendix below).\n\n      &quot;Derivative Works&quot; shall mean any work, whether in Source or Object\n      form, that is based on (or derived from) the Work and for which the\n      editorial revisions, annotations, elaborations, or other modifications\n      represent, as a whole, an original work of authorship. For the purposes\n      of this License, Derivative Works shall not include works that remain\n      separable from, or merely link (or bind by name) to the interfaces of,\n      the Work and Derivative Works thereof.\n\n      &quot;Contribution&quot; shall mean any work of authorship, including\n      the original version of the Work and any modifications or additions\n      to that Work or Derivative Works thereof, that is intentionally\n      submitted to Licensor for inclusion in the Work by the copyright owner\n      or by an individual or Legal Entity authorized to submit on behalf of\n      the copyright owner. For the purposes of this definition, &quot;submitted&quot;\n      means any form of electronic, verbal, or written communication sent\n      to the Licensor or its representatives, including but not limited to\n      communication on electronic mailing lists, source code control systems,\n      and issue tracking systems that are managed by, or on behalf of, the\n      Licensor for the purpose of discussing and improving the Work, but\n      excluding communication that is conspicuously marked or otherwise\n      designated in writing by the copyright owner as &quot;Not a Contribution.&quot;\n\n      &quot;Contributor&quot; shall mean Licensor and any individual or Legal Entity\n      on behalf of whom a Contribution has been received by Licensor and\n      subsequently incorporated within the Work.\n\n   2. Grant of Copyright License. Subject to the terms and conditions of\n      this License, each Contributor hereby grants to You a perpetual,\n      worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n      copyright license to reproduce, prepare Derivative Works of,\n      publicly display, publicly perform, sublicense, and distribute the\n      Work and such Derivative Works in Source or Object form.\n\n   3. Grant of Patent License. Subject to the terms and conditions of\n      this License, each Contributor hereby grants to You a perpetual,\n      worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n      (except as stated in this section) patent license to make, have made,\n      use, offer to sell, sell, import, and otherwise transfer the Work,\n      where such license applies only to those patent claims licensable\n      by such Contributor that are necessarily infringed by their\n      Contribution(s) alone or by combination of their Contribution(s)\n      with the Work to which such Contribution(s) was submitted. If You\n      institute patent litigation against any entity (including a\n      cross-claim or counterclaim in a lawsuit) alleging that the Work\n      or a Contribution incorporated within the Work constitutes direct\n      or contributory patent infringement, then any patent licenses\n      granted to You under this License for that Work shall terminate\n      as of the date such litigation is filed.\n\n   4. Redistribution. You may reproduce and distribute copies of the\n      Work or Derivative Works thereof in any medium, with or without\n      modifications, and in Source or Object form, provided that You\n      meet the following conditions:\n\n      (a) You must give any other recipients of the Work or\n          Derivative Works a copy of this License; and\n\n      (b) You must cause any modified files to carry prominent notices\n          stating that You changed the files; and\n\n      (c) You must retain, in the Source form of any Derivative Works\n          that You distribute, all copyright, patent, trademark, and\n          attribution notices from the Source form of the Work,\n          excluding those notices that do not pertain to any part of\n          the Derivative Works; and\n\n      (d) If the Work includes a &quot;NOTICE&quot; text file as part of its\n          distribution, then any Derivative Works that You distribute must\n          include a readable copy of the attribution notices contained\n          within such NOTICE file, excluding those notices that do not\n          pertain to any part of the Derivative Works, in at least one\n          of the following places: within a NOTICE text file distributed\n          as part of the Derivative Works; within the Source form or\n          documentation, if provided along with the Derivative Works; or,\n          within a display generated by the Derivative Works, if and\n          wherever such third-party notices normally appear. The contents\n          of the NOTICE file are for informational purposes only and\n          do not modify the License. You may add Your own attribution\n          notices within Derivative Works that You distribute, alongside\n          or as an addendum to the NOTICE text from the Work, provided\n          that such additional attribution notices cannot be construed\n          as modifying the License.\n\n      You may add Your own copyright statement to Your modifications and\n      may provide additional or different license terms and conditions\n      for use, reproduction, or distribution of Your modifications, or\n      for any such Derivative Works as a whole, provided Your use,\n      reproduction, and distribution of the Work otherwise complies with\n      the conditions stated in this License.\n\n   5. Submission of Contributions. Unless You explicitly state otherwise,\n      any Contribution intentionally submitted for inclusion in the Work\n      by You to the Licensor shall be under the terms and conditions of\n      this License, without any additional terms or conditions.\n      Notwithstanding the above, nothing herein shall supersede or modify\n      the terms of any separate license agreement you may have executed\n      with Licensor regarding such Contributions.\n\n   6. Trademarks. This License does not grant permission to use the trade\n      names, trademarks, service marks, or product names of the Licensor,\n      except as required for reasonable and customary use in describing the\n      origin of the Work and reproducing the content of the NOTICE file.\n\n   7. Disclaimer of Warranty. Unless required by applicable law or\n      agreed to in writing, Licensor provides the Work (and each\n      Contributor provides its Contributions) on an &quot;AS IS&quot; BASIS,\n      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\n      implied, including, without limitation, any warranties or conditions\n      of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A\n      PARTICULAR PURPOSE. You are solely responsible for determining the\n      appropriateness of using or redistributing the Work and assume any\n      risks associated with Your exercise of permissions under this License.\n\n   8. Limitation of Liability. In no event and under no legal theory,\n      whether in tort (including negligence), contract, or otherwise,\n      unless required by applicable law (such as deliberate and grossly\n      negligent acts) or agreed to in writing, shall any Contributor be\n      liable to You for damages, including any direct, indirect, special,\n      incidental, or consequential damages of any character arising as a\n      result of this License or out of the use or inability to use the\n      Work (including but not limited to damages for loss of goodwill,\n      work stoppage, computer failure or malfunction, or any and all\n      other commercial damages or losses), even if such Contributor\n      has been advised of the possibility of such damages.\n\n   9. Accepting Warranty or Additional Liability. While redistributing\n      the Work or Derivative Works thereof, You may choose to offer,\n      and charge a fee for, acceptance of support, warranty, indemnity,\n      or other liability obligations and&#x2F;or rights consistent with this\n      License. However, in accepting such obligations, You may act only\n      on Your own behalf and on Your sole responsibility, not on behalf\n      of any other Contributor, and only if You agree to indemnify,\n      defend, and hold each Contributor harmless for any liability\n      incurred by, or claims asserted against, such Contributor by reason\n      of your accepting any such warranty or additional liability.\n\n   END OF TERMS AND CONDITIONS\n\n   APPENDIX: How to apply the Apache License to your work.\n\n      To apply the Apache License to your work, attach the following\n      boilerplate notice, with the fields enclosed by brackets &quot;[]&quot;\n      replaced with your own identifying information. (Don&#x27;t include\n      the brackets!)  The text should be enclosed in the appropriate\n      comment syntax for the file format. We also recommend that a\n      file or class name and description of purpose be included on the\n      same &quot;printed page&quot; as the copyright notice for easier\n      identification within third-party archives.\n\n   Copyright 2013 Puppet Labs\n\n   Licensed under the Apache License, Version 2.0 (the &quot;License&quot;);\n   you may not use this file except in compliance with the License.\n   You may obtain a copy of the License at\n\n       http:&#x2F;&#x2F;www.apache.org&#x2F;licenses&#x2F;LICENSE-2.0\n\n   Unless required by applicable law or agreed to in writing, software\n   distributed under the License is distributed on an &quot;AS IS&quot; BASIS,\n   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n   See the License for the specific language governing permissions and\n   limitations under the License.\n</pre></section>",
##############################################
ruby-puppet-forge-2.3.2/spec/fixtures/v3/modules__owner=puppetlabs.json-2414-                  "name": "revision",
ruby-puppet-forge-2.3.2/spec/fixtures/v3/modules__owner=puppetlabs.json:2415:                  "doc": "The revision of the repository  Values can match `/^\\S+$/`."
ruby-puppet-forge-2.3.2/spec/fixtures/v3/modules__owner=puppetlabs.json-2416-                }
##############################################
ruby-puppet-forge-2.3.2/spec/fixtures/v3/modules__owner=puppetlabs.json-2829-        "downloads": 6887,
ruby-puppet-forge-2.3.2/spec/fixtures/v3/modules__owner=puppetlabs.json:2830:        "readme": "<section class=\"markdown\"><h1>puppetdb</h1>\n\n<h4>Table of Contents</h4>\n\n<ol>\n<li><a href=\"#overview\">Overview - What is the PuppetDB module?</a></li>\n<li><a href=\"#module-description\">Module Description - What does the module do?</a></li>\n<li><a href=\"#setup\">Setup - The basics of getting started with PuppetDB module</a></li>\n<li><a href=\"#upgrading\">Upgrading - Guide for upgrading from older revisions of this module</a></li>\n<li><a href=\"#usage\">Usage - The classes and parameters available for configuration</a></li>\n<li><a href=\"#implementation\">Implementation - An under-the-hood peek at what the module is doing</a></li>\n<li><a href=\"#limitations\">Limitations - OS compatibility, etc.</a></li>\n<li><a href=\"#development\">Development - Guide for contributing to the module</a></li>\n<li><a href=\"#release-notes\">Release Notes - Notes on the most recent updates to the module</a></li>\n</ol>\n\n<h2>Overview</h2>\n\n<p>By guiding puppetdb setup and configuration with a puppet master, the PuppetDB module provides fast, streamlined access to data on puppetized infrastructure.</p>\n\n<h2>Module Description</h2>\n\n<p>The PuppetDB module provides a quick way to get started using PuppetDB, an open source inventory resource service that manages storage and retrieval of platform-generated data. The module will install PostgreSQL and PuppetDB if you don&#39;t have them, as well as set up the connection to puppet master. The module will also provide a dashboard you can use to view the current state of your system.</p>\n\n<p>For more information about PuppetDB <a href=\"http://docs.puppetlabs.com/puppetdb/\">please see the official PuppetDB documentation.</a></p>\n\n<h2>Setup</h2>\n\n<p><strong>What PuppetDB affects:</strong></p>\n\n<ul>\n<li>package/service/configuration files for PuppetDB</li>\n<li>package/service/configuration files for PostgreSQL (optional, but set as default)</li>\n<li>puppet master&#39;s runtime (via plugins)</li>\n<li>puppet master&#39;s configuration\n\n<ul>\n<li><strong>note</strong>: Using the <code>puppetdb::master::config</code> class will cause your routes.yaml file to be overwritten entirely (see <strong>Usage</strong> below for options and more information )</li>\n</ul></li>\n<li>system firewall (optional)</li>\n<li>listened-to ports</li>\n</ul>\n\n<p><strong>Introductory Questions</strong></p>\n\n<p>To begin using PuppetDB, you’ll have to make a few decisions:</p>\n\n<ul>\n<li>Which database back-end should I use?\n\n<ul>\n<li>PostgreSQL (default) or our embedded database</li>\n<li>Embedded database</li>\n<li><strong>note:</strong> We suggest using the embedded database only for experimental environments rather than production, as it does not scale well and can cause difficulty in migrating to PostgreSQL.</li>\n</ul></li>\n<li>Should I run the database on the same node that I run PuppetDB on?</li>\n<li>Should I run PuppetDB on the same node that I run my master on?</li>\n</ul>\n\n<p>The answers to those questions will be largely dependent on your answers to questions about your Puppet environment:</p>\n\n<ul>\n<li>How many nodes are you managing?</li>\n<li>What kind of hardware are you running on?</li>\n<li>Is your current load approaching the limits of your hardware?</li>\n</ul>\n\n<p>Depending on your answers to all of the questions above, you will likely fall under one of these set-up options:</p>\n\n<ol>\n<li><a href=\"#single-node-setup\">Single Node (Testing and Development)</a></li>\n<li><a href=\"#multiple-node-setup\">Multiple Node (Recommended)</a></li>\n</ol>\n\n<h3>Single Node Setup</h3>\n\n<p>This approach assumes you will use our default database (PostgreSQL) and run everything (PostgreSQL, PuppetDB, puppet master) all on the same node. This setup will be great for a testing or experimental environment. In this case, your manifest will look like:</p>\n\n<pre><code>node puppetmaster {\n  # Configure puppetdb and its underlying database\n  class { &#39;puppetdb&#39;: }\n  # Configure the puppet master to use puppetdb\n  class { &#39;puppetdb::master::config&#39;: }\n}\n</code></pre>\n\n<p>You can provide some parameters for these classes if you’d like more control, but that is literally all that it will take to get you up and running with the default configuration.</p>\n\n<h3>Multiple Node Setup</h3>\n\n<p>This approach is for those who prefer not to install PuppetDB on the same node as the puppet master. Your environment will be easier to scale if you are able to dedicate hardware to the individual system components. You may even choose to run the puppetdb server on a different node from the PostgreSQL database that it uses to store its data. So let’s have a look at what a manifest for that scenario might look like:</p>\n\n<p><strong>This is an example of a very basic 3-node setup for PuppetDB.</strong></p>\n\n<p>This node is our puppet master:</p>\n\n<pre><code>node puppet {\n  # Here we configure the puppet master to use PuppetDB,\n  # and tell it that the hostname is ‘puppetdb’\n  class { &#39;puppetdb::master::config&#39;:\n    puppetdb_server =&gt; &#39;puppetdb&#39;,\n  }\n}\n</code></pre>\n\n<p>This node is our postgres server:</p>\n\n<pre><code>node puppetdb-postgres {\n  # Here we install and configure postgres and the puppetdb\n  # database instance, and tell postgres that it should\n  # listen for connections to the hostname ‘puppetdb-postgres’\n  class { &#39;puppetdb::database::postgresql&#39;:\n    listen_addresses =&gt; &#39;puppetdb-postgres&#39;,\n  }\n}\n</code></pre>\n\n<p>This node is our main puppetdb server:</p>\n\n<pre><code>node puppetdb {\n  # Here we install and configure PuppetDB, and tell it where to\n  # find the postgres database.\n  class { &#39;puppetdb::server&#39;:\n    database_host =&gt; &#39;puppetdb-postgres&#39;,\n  }\n}\n</code></pre>\n\n<p>This should be all it takes to get a 3-node, distributed installation of PuppetDB up and running. Note that, if you prefer, you could easily move two of these classes to a single node and end up with a 2-node setup instead.</p>\n\n<h3>Beginning with PuppetDB</h3>\n\n<p>Whether you choose a single node development setup or a multi-node setup, a basic setup of PuppetDB will cause: PostgreSQL to install on the node if it’s not already there; PuppetDB postgres database instance and user account to be created; the postgres connection to be validated and, if successful, PuppetDB to be installed and configured; PuppetDB connection to be validated and, if successful, the puppet master config files to be modified to use PuppetDB; and the puppet master to be restarted so that it will pick up the config changes.</p>\n\n<p>If your logging level is set to INFO or finer, you should start seeing PuppetDB-related log messages appear in both your puppet master log and your puppetdb log as subsequent agent runs occur.</p>\n\n<p>If you’d prefer to use PuppetDB’s embedded database rather than PostgreSQL, have a look at the database parameter on the puppetdb class:</p>\n\n<pre><code>class { &#39;puppetdb&#39;:\n  database =&gt; &#39;embedded&#39;,\n}\n</code></pre>\n\n<p>The embedded database can be useful for testing and very small production environments, but it is not recommended for production environments since it consumes a great deal of memory as your number of nodes increase.</p>\n\n<h3>Cross-node Dependencies</h3>\n\n<p>It is worth noting that there are some cross-node dependencies, which means that the first time you add the module&#39;s configurations to your manifests, you may see a few failed puppet runs on the affected nodes.</p>\n\n<p>PuppetDB handles cross-node dependencies by taking a sort of “eventual consistency” approach. There’s nothing that the module can do to control the order in which your nodes check in, but the module can check to verify that the services it depends on are up and running before it makes configuration changes--so that’s what it does.</p>\n\n<p>When your puppet master node checks in, it will validate the connectivity to the puppetdb server before it applies its changes to the puppet master config files. If it can’t connect to puppetdb, then the puppet run will fail and the previous config files will be left intact. This prevents your master from getting into a broken state where all incoming puppet runs fail because the master is configured to use a puppetdb server that doesn’t  exist yet. The same strategy is used to handle the dependency between the puppetdb server and the postgres server.</p>\n\n<p>Hence the failed puppet runs. These failures should be limited to 1 failed run on the puppetdb node, and up to 2 failed runs on the puppet master node. After that, all of the dependencies should be satisfied and your puppet runs should start to succeed again.</p>\n\n<p>You can also manually trigger puppet runs on the nodes in the correct order (Postgres, PuppetDB, puppet master), which will avoid any failed runs.</p>\n\n<h2>Upgrading</h2>\n\n<h3>Upgrading from 2.x to version 3.x</h3>\n\n<p>For this release a major dependency has changed. The module <code>pupppetlabs/postgresql</code> must now be version 3.x. Upgrading the module should upgrade the <code>puppetlabs/postgresql</code> module for you, but if another module has a fixed dependency that module will have to be fixed before you can continue.</p>\n\n<p>Some other changes include:</p>\n\n<ul>\n<li>The parameter <code>manage_redhat_firewall</code> for the class <code>puppetdb</code> has now been removed completely in favor of <code>open_postgres_port</code> and <code>open_ssl_listen_port</code>.</li>\n<li>The parameter <code>manage_redhat_firewall</code> for the class <code>puppetdb::database::postgresql</code>, has now been renamed to <code>manage_firewall</code>.</li>\n<li>The parameter <code>manage_redhat_firewall</code> for the class <code>puppetdb::server</code> has now been removed completely in favor of <code>open_listen_port</code> and <code>open_ssl_listen_port</code>.</li>\n<li>The internal class: <code>puppetdb::database::postgresql_db</code> has been removed. If you were using this, it is now defunct.</li>\n<li>The class <code>puppetdb::server::firewall</code> has been marked as private, do not use it directly.</li>\n<li>The class <code>puppetdb::server::jetty_ini</code> and <code>puppetdb::server::database_ini</code> have been marked as private, do not use it directly.</li>\n</ul>\n\n<h3>Upgrading from 1.x to version 2.x</h3>\n\n<p>A major dependency has been changed, so now when you upgrade to 2.0 the dependency <code>cprice404/inifile</code> has been replaced with <code>puppetlabs/inifile</code>. This may interfer with other modules as they may depend on the old <code>cprice404/inifile</code> instead, so upgrading should be done with caution. Check that your other modules use the newer <code>puppetlabs/inifile</code> module as interoperation with the old <code>cprice404/inifile</code> module will no longer be supported by this module.</p>\n\n<p>Depending on how you install your modules, changing the dependency may require manual intervention. Double check your modules contains the newer <code>puppetlabs/inifile</code> after installing this latest module.</p>\n\n<p>Otherwise, all existing parameters from 1.x should still work correctly.</p>\n\n<h2>Usage</h2>\n\n<p>PuppetDB supports a large number of configuration options for both configuring the puppetdb service and connecting that service to the puppet master.</p>\n\n<h3>puppetdb</h3>\n\n<p>The <code>puppetdb</code> class is intended as a high-level abstraction (sort of an &#39;all-in-one&#39; class) to help simplify the process of getting your puppetdb server up and running. It wraps the slightly-lower-level classes <code>puppetdb::server</code> and <code>puppetdb::database::*</code>, and it&#39;ll get you up and running with everything you need (including database setup and management) on the server side.  For maximum configurability, you may choose not to use this class.  You may prefer to use the <code>puppetdb::server</code> class directly, or manage your puppetdb setup on your own.</p>\n\n<p>You must declare the class to use it:</p>\n\n<pre><code>class { &#39;puppetdb&#39;: }\n</code></pre>\n\n<p><strong>Parameters within <code>puppetdb</code>:</strong></p>\n\n<h4><code>listen_address</code></h4>\n\n<p>The address that the web server should bind to for HTTP requests (defaults to <code>localhost</code>.&#39;0.0.0.0&#39; = all).</p>\n\n<h4><code>listen_port</code></h4>\n\n<p>The port on which the puppetdb web server should accept HTTP requests (defaults to &#39;8080&#39;).</p>\n\n<h4><code>open_listen_port</code></h4>\n\n<p>If true, open the http_listen_port on the firewall (defaults to false).</p>\n\n<h4><code>ssl_listen_address</code></h4>\n\n<p>The address that the web server should bind to for HTTPS requests (defaults to <code>$::clientcert</code>). Set to &#39;0.0.0.0&#39; to listen on all addresses.</p>\n\n<h4><code>ssl_listen_port</code></h4>\n\n<p>The port on which the puppetdb web server should accept HTTPS requests (defaults to &#39;8081&#39;).</p>\n\n<h4><code>disable_ssl</code></h4>\n\n<p>If true, the puppetdb web server will only serve HTTP and not HTTPS requests (defaults to false).</p>\n\n<h4><code>open_ssl_listen_port</code></h4>\n\n<p>If true, open the ssl_listen_port on the firewall (defaults to true).</p>\n\n<h4><code>database</code></h4>\n\n<p>Which database backend to use; legal values are <code>postgres</code> (default) or <code>embedded</code>. The <code>embedded</code> db can be used for very small installations or for testing, but is not recommended for use in production environments. For more info, see the <a href=\"http://docs.puppetlabs.com/puppetdb/\">puppetdb docs</a>.</p>\n\n<h4><code>database_port</code></h4>\n\n<p>The port that the database server listens on (defaults to <code>5432</code>; ignored for <code>embedded</code> db).</p>\n\n<h4><code>database_username</code></h4>\n\n<p>The name of the database user to connect as (defaults to <code>puppetdb</code>; ignored for <code>embedded</code> db).</p>\n\n<h4><code>database_password</code></h4>\n\n<p>The password for the database user (defaults to <code>puppetdb</code>; ignored for <code>embedded</code> db).</p>\n\n<h4><code>database_name</code></h4>\n\n<p>The name of the database instance to connect to (defaults to <code>puppetdb</code>; ignored for <code>embedded</code> db).</p>\n\n<h4><code>database_ssl</code></h4>\n\n<p>If true, puppetdb will use SSL to connect to the postgres database (defaults to false; ignored for <code>embedded</code> db).\nSetting up proper trust- and keystores has to be managed outside of the puppetdb module.</p>\n\n<h4><code>node_ttl</code></h4>\n\n<p>The length of time a node can go without receiving any new data before it&#39;s automatically deactivated.  (defaults to &#39;0&#39;, which disables auto-deactivation). This option is supported in PuppetDB &gt;= 1.1.0.</p>\n\n<h4><code>node_purge_ttl</code></h4>\n\n<p>The length of time a node can be deactivated before it&#39;s deleted from the database. (defaults to &#39;0&#39;, which disables purging). This option is supported in PuppetDB &gt;= 1.2.0.</p>\n\n<h4><code>report_ttl</code></h4>\n\n<p>The length of time reports should be stored before being deleted. (defaults to &#39;7d&#39;, which is a 7-day period). This option is supported in PuppetDB &gt;= 1.1.0.</p>\n\n<h4><code>gc_interval</code></h4>\n\n<p>This controls how often, in minutes, to compact the database. The compaction process reclaims space and deletes unnecessary rows. If not supplied, the default is every 60 minutes. This option is supported in PuppetDB &gt;= 0.9.</p>\n\n<h4><code>log_slow_statements</code></h4>\n\n<p>This sets the number of seconds before an SQL query is considered &quot;slow.&quot; Slow SQL queries are logged as warnings, to assist in debugging and tuning. Note PuppetDB does not interrupt slow queries; it simply reports them after they complete.</p>\n\n<p>The default value is 10 seconds. A value of 0 will disable logging of slow queries. This option is supported in PuppetDB &gt;= 1.1.</p>\n\n<h4><code>conn_max_age</code></h4>\n\n<p>The maximum time (in minutes), for a pooled connection to remain unused before it is closed off.</p>\n\n<p>If not supplied, we default to 60 minutes. This option is supported in PuppetDB &gt;= 1.1.</p>\n\n<h4><code>conn_keep_alive</code></h4>\n\n<p>This sets the time (in minutes), for a connection to remain idle before sending a test query to the DB. This is useful to prevent a DB from timing out connections on its end.</p>\n\n<p>If not supplied, we default to 45 minutes. This option is supported in PuppetDB &gt;= 1.1.</p>\n\n<h4><code>conn_lifetime</code></h4>\n\n<p>The maximum time (in minutes) a pooled connection should remain open. Any connections older than this setting will be closed off. Connections currently in use will not be affected until they are returned to the pool.</p>\n\n<p>If not supplied, we won&#39;t terminate connections based on their age alone. This option is supported in PuppetDB &gt;= 1.4.</p>\n\n<h4><code>puppetdb_package</code></h4>\n\n<p>The puppetdb package name in the package manager.</p>\n\n<h4><code>puppetdb_version</code></h4>\n\n<p>The version of the <code>puppetdb</code> package that should be installed.  You may specify an explicit version number, &#39;present&#39;, or &#39;latest&#39; (defaults to &#39;present&#39;).</p>\n\n<h4><code>puppetdb_service</code></h4>\n\n<p>The name of the puppetdb service.</p>\n\n<h4><code>puppetdb_service_status</code></h4>\n\n<p>Sets whether the service should be running or stopped. When set to stopped the service doesn&#39;t start on boot either. Valid values are &#39;true&#39;, &#39;running&#39;, &#39;false&#39;, and &#39;stopped&#39;.</p>\n\n<h4><code>confdir</code></h4>\n\n<p>The puppetdb configuration directory (defaults to <code>/etc/puppetdb/conf.d</code>).</p>\n\n<h4><code>java_args</code></h4>\n\n<p>Java VM options used for overriding default Java VM options specified in PuppetDB package (defaults to <code>{}</code>). See <a href=\"http://docs.puppetlabs.com/puppetdb/1.1/configure.html\">PuppetDB Configuration</a> to get more details about the current defaults.</p>\n\n<p>Example: to set <code>-Xmx512m -Xms256m</code> options use <code>{ &#39;-Xmx&#39; =&gt; &#39;512m&#39;, &#39;-Xms&#39; =&gt; &#39;256m&#39; }</code></p>\n\n<h3>puppetdb:server</h3>\n\n<p>The <code>puppetdb::server</code> class manages the puppetdb server independently of the underlying database that it depends on. It will manage the puppetdb package, service, config files, etc., but will still allow you to manage the database (e.g. postgresql) however you see fit.</p>\n\n<pre><code>class { &#39;puppetdb::server&#39;:\n  database_host =&gt; &#39;puppetdb-postgres&#39;,\n}\n</code></pre>\n\n<p><strong>Parameters within <code>puppetdb::server</code>:</strong></p>\n\n<p>Uses the same parameters as <code>puppetdb</code>, with one addition:</p>\n\n<h4><code>database_host</code></h4>\n\n<p>The hostname or IP address of the database server (defaults to <code>localhost</code>; ignored for <code>embedded</code> db).</p>\n\n<h3>puppetdb::master::config</h3>\n\n<p>The <code>puppetdb::master::config</code> class directs your puppet master to use PuppetDB, which means that this class should be used on your puppet master node. It’ll verify that it can successfully communicate with your puppetdb server, and then configure your master to use PuppetDB.</p>\n\n<p>Using this class involves allowing the module to manipulate your puppet configuration files; in particular: puppet.conf and routes.yaml. The puppet.conf changes are supplemental and should not affect any of your existing settings, but the routes.yaml file will be overwritten entirely. If you have an existing routes.yaml file, you will want to take care to use the manage_routes parameter of this class to prevent the module from managing that file, and you’ll need to manage it yourself.</p>\n\n<pre><code>class { &#39;puppetdb::master::config&#39;:\n  puppetdb_server =&gt; &#39;my.host.name&#39;,\n  puppetdb_port   =&gt; 8081,\n}\n</code></pre>\n\n<p><strong>Parameters within <code>puppetdb::master::config</code>:</strong></p>\n\n<h4><code>puppetdb_server</code></h4>\n\n<p>The dns name or ip of the puppetdb server (defaults to the certname of the current node).</p>\n\n<h4><code>puppetdb_port</code></h4>\n\n<p>The port that the puppetdb server is running on (defaults to 8081).</p>\n\n<h4><code>puppetdb_soft_write_failure</code></h4>\n\n<p>Boolean to fail in a soft-manner if PuppetDB is not accessable for command submission (defaults to false).</p>\n\n<h4><code>manage_routes</code></h4>\n\n<p>If true, the module will overwrite the puppet master&#39;s routes file to configure it to use PuppetDB (defaults to true).</p>\n\n<h4><code>manage_storeconfigs</code></h4>\n\n<p>If true, the module will manage the puppet master&#39;s storeconfig settings (defaults to true).</p>\n\n<h4><code>manage_report_processor</code></h4>\n\n<p>If true, the module will manage the &#39;reports&#39; field in the puppet.conf file to enable or disable the puppetdb report processor.  Defaults to &#39;false&#39;.</p>\n\n<h4><code>manage_config</code></h4>\n\n<p>If true, the module will store values from puppetdb_server and puppetdb_port parameters in the puppetdb configuration file.\nIf false, an existing puppetdb configuration file will be used to retrieve server and port values.</p>\n\n<h4><code>strict_validation</code></h4>\n\n<p>If true, the module will fail if puppetdb is not reachable, otherwise it will preconfigure puppetdb without checking.</p>\n\n<h4><code>enable_reports</code></h4>\n\n<p>Ignored unless <code>manage_report_processor</code> is <code>true</code>, in which case this setting will determine whether or not the puppetdb report processor is enabled (<code>true</code>) or disabled (<code>false</code>) in the puppet.conf file.</p>\n\n<h4><code>puppet_confdir</code></h4>\n\n<p>Puppet&#39;s config directory (defaults to <code>/etc/puppet</code>).</p>\n\n<h4><code>puppet_conf</code></h4>\n\n<p>Puppet&#39;s config file (defaults to <code>/etc/puppet/puppet.conf</code>).</p>\n\n<h4><code>puppetdb_version</code></h4>\n\n<p>The version of the <code>puppetdb</code> package that should be installed. You may specify an explicit version number, &#39;present&#39;, or &#39;latest&#39; (defaults to &#39;present&#39;).</p>\n\n<h4><code>terminus_package</code></h4>\n\n<p>Name of the package to use that represents the PuppetDB terminus code.</p>\n\n<h4><code>puppet_service_name</code></h4>\n\n<p>Name of the service that represents Puppet. You can change this to <code>apache2</code> or <code>httpd</code> depending on your operating system, if you plan on having Puppet run using Apache/Passenger for example.</p>\n\n<h4><code>puppetdb_startup_timeout</code></h4>\n\n<p>The maximum amount of time that the module should wait for PuppetDB to start up. This is most important during the initial install of PuppetDB (defaults to 15 seconds).</p>\n\n<h4><code>restart_puppet</code></h4>\n\n<p>If true, the module will restart the puppet master when PuppetDB configuration files are changed by the module.  The default is &#39;true&#39;.  If set to &#39;false&#39;, you must restart the service manually in order to pick up changes to the config files (other than <code>puppet.conf</code>).</p>\n\n<h3>puppetdb::database::postgresql</h3>\n\n<p>The <code>puppetdb::database::postgresql</code> class manages a postgresql server for use by PuppetDB. It can manage the postgresql packages and service, as well as creating and managing the puppetdb database and database user accounts.</p>\n\n<pre><code>class { &#39;puppetdb::database::postgresql&#39;:\n  listen_addresses =&gt; &#39;my.postgres.host.name&#39;,\n}\n</code></pre>\n\n<h4><code>listen_addresses</code></h4>\n\n<p>The <code>listen_address</code> is a comma-separated list of hostnames or IP addresses on which the postgres server should listen for incoming connections. This defaults to <code>localhost</code>. This parameter maps directly to postgresql&#39;s <code>listen_addresses</code> config option; use a <code>*</code> to allow connections on any accessible address.</p>\n\n<h4><code>manage_firewall</code></h4>\n\n<p>If set to <code>true</code> this will enable open the local firewall for PostgreSQL protocol access. Defaults to <code>false</code>.</p>\n\n<h4><code>database_name</code></h4>\n\n<p>Sets the name of the database. Defaults to <code>puppetdb</code>.</p>\n\n<h4><code>database_username</code></h4>\n\n<p>Creates a user for access the database. Defaults to <code>puppetdb</code>.</p>\n\n<h4><code>database_password</code></h4>\n\n<p>Sets the password for the database user above. Defaults to <code>puppetdb</code>.</p>\n\n<h2>Implementation</h2>\n\n<h3>Resource overview</h3>\n\n<p>In addition to the classes and variables mentioned above, PuppetDB includes:</p>\n\n<p><strong>puppetdb::master::routes</strong></p>\n\n<p>Configures the puppet master to use PuppetDB as the facts terminus. <em>WARNING</em>: the current implementation simply overwrites your routes.yaml file; if you have an existing routes.yaml file that you are using for other purposes, you should <em>not</em> use this.</p>\n\n<pre><code>class { &#39;puppetdb::master::routes&#39;:\n  puppet_confdir =&gt; &#39;/etc/puppet&#39;\n}\n</code></pre>\n\n<p><strong>puppetdb::master::storeconfigs</strong></p>\n\n<p>Configures the puppet master to enable storeconfigs and to use PuppetDB as the storeconfigs backend.</p>\n\n<pre><code>class { &#39;puppetdb::master::storeconfigs&#39;:\n  puppet_conf =&gt; &#39;/etc/puppet/puppet.conf&#39;\n}\n</code></pre>\n\n<p><strong>puppetdb::server::validate_db</strong></p>\n\n<p>Validates that a successful database connection can be established between the node on which this resource is run and the specified puppetdb database instance (host/port/user/password/database name).</p>\n\n<pre><code>puppetdb::server::validate_db { &#39;validate my puppetdb database connection&#39;:\n  database_host     =&gt; &#39;my.postgres.host&#39;,\n  database_username =&gt; &#39;mydbuser&#39;,\n  database_password =&gt; &#39;mydbpassword&#39;,\n  database_name     =&gt; &#39;mydbname&#39;,\n}\n</code></pre>\n\n<h3>Custom Types</h3>\n\n<p><strong>puppetdb_conn_validator</strong></p>\n\n<p>Verifies that a connection can be successfully established between a node and the puppetdb server. Its primary use is as a precondition to prevent configuration changes from being applied if the puppetdb server cannot be reached, but it could potentially be used for other purposes such as monitoring.</p>\n\n<h2>Limitations</h2>\n\n<p>Currently, PuppetDB is compatible with:</p>\n\n<pre><code>Puppet Version: 2.7+\n</code></pre>\n\n<p>Platforms:</p>\n\n<ul>\n<li>RHEL6</li>\n<li>Debian6</li>\n<li>Ubuntu 10.04</li>\n<li>Archlinux</li>\n</ul>\n\n<h2>Development</h2>\n\n<p>Puppet Labs modules on the Puppet Forge are open projects, and community contributions are essential for keeping them great. We can’t access the huge number of platforms and myriad of hardware, software, and deployment configurations that Puppet is intended to serve.</p>\n\n<p>We want to keep it as easy as possible to contribute changes so that our modules work in your environment. There are a few guidelines that we need contributors to follow so that we can have a chance of keeping on top of things.</p>\n\n<p>You can read the complete module contribution guide <a href=\"http://projects.puppetlabs.com/projects/module-site/wiki/Module_contributing\">on the Puppet Labs wiki.</a></p>\n</section>",
ruby-puppet-forge-2.3.2/spec/fixtures/v3/modules__owner=puppetlabs.json-2831-        "changelog": "<section class=\"plaintext\"><pre>## puppetlabs-puppetdb changelog\n\nRelease notes for the puppetlabs-puppetdb module.\n\n------------------------------------------\n\n#### 3.0.0 - 2013&#x2F;10&#x2F;27\n\nThis major release changes the main dependency for the postgresql module from\nversion 2.5.x to 3.x. Since the postgresql module is not backwards compatible,\nthis release is also not backwards compatible. As a consequence we have taken\nsome steps to deprecate some of the older functionality:\n\n* The parameter manage_redhat_firewall for the class puppetdb has now been removed completely in favor of open_postgres_port and open_ssl_listen_port.\n* The parameter manage_redhat_firewall for the class puppetdb::database::postgresql, has now been renamed to manage_firewall.\n* The parameter manage_redhat_firewall for the class puppetdb::server has now been removed completely in favor of open_listen_port and open_ssl_listen_port.\n* The internal class: puppetdb::database::postgresql_db has been removed. If you were using this, it is now defunct.\n* The class puppetdb::server::firewall has been marked as private, do not use it directly.\n* The class puppetdb::server::jetty_ini and puppetdb::server::database_ini have been marked as private, do not use it directly.\n\nAll of this is documented in the upgrade portion of the README.\n\nAdditionally some features have been included in this release as well:\n\n* soft_write_failure can now be enabled in your puppetdb.conf with this\n  module to handle failing silently when your PuppetDB is not available\n  during writes.\n* There is a new switch to enable SSL connectivity to PostgreSQL. While this\n  functionality is only in its infancy this is a good start.\n\nDetailed Changes:\n\n* FM-103: Add metadata.json to all modules. (Ashley Penney)\n* Add soft_write_failure to puppetdb.conf (Garrett Honeycutt)\n* Add switch to configure database SSL connection (Stefan Dietrich)\n* (GH-91) Update to use rspec-system-puppet 2.x (Ken Barber)\n* (GH-93) Switch to using puppetlabs-postgresql 3.x (Ken Barber)\n* Fix copyright and project notice (Ken Barber)\n* Adjust memory for PuppetDB tests to avoid OOM killer (Ken Barber)\n* Ensure ntpdate executes early during testing (Ken Barber)\n\n------------------------------------------\n\n#### 2.0.0 - 2013&#x2F;10&#x2F;04\n\nThis major release changes the main dependency for the inifile module from\nthe deprecated `cprice404&#x2F;inifile` to `puppetlabs&#x2F;inifile` to remove\ndeprecation warnings and to move onto the latest and greatest implementation\nof that code.\n\nIts a major release, because it may affect other dependencies since modules\ncannot have overlapping second part dependencies (that is inifile cannot be from\ntwo different locations).\n\nIt also adds the parameter `puppetdb_service_status` to the class `puppetdb` to\nallow users to specify whether the module manages the puppetdb service for you.\n\nThe `database_password` parameter is now optional, and initial Arch Linux\nsupport has been added.\n\nDetailed Changes:\n\n* (GH-73) Switch to puppetlabs&#x2F;inifile from cprice&#x2F;inifile (Ken Barber)\n* Make database_password an optional parameter (Nick Lewis)\n* add archlinux support (Niels Abspoel)\n* Added puppetdb service control (Akos Hencz)\n\n------------------------------------------\n\n#### 1.6.0 - 2013&#x2F;08&#x2F;07\n\nThis minor feature release provides extra parameters for new configuration\nitems available in PuppetDB 1.4, and also provides some older parameters\nthat were missed previously:\n\n* gc_interval\n* log_slow_statements\n* conn_max_age\n* conn_keep_alive\n* conn_lifetime\n\nConsult the README.md file, or the PuppetDB documentation for more details.\n\n------------------------------------------\n\n#### 1.5.0 - 2013&#x2F;07&#x2F;18\n\nThis minor feature release provides the following new functionality:\n\n* The module is now capable of managing PuppetDB on SUSE systems\n  for which PuppetDB packages are available\n* The ruby code for validating the PuppetDB connection now\n  supports validating on a non-SSL HTTP port.\n\n------------------------------------------\n\n#### 1.4.0 - 2013&#x2F;05&#x2F;13\n\nThis feature release provides support for managing the puppetdb report\nprocessor on your master.\n\nTo enable the report processor, you can do something like this:\n\n    class { &#x27;puppetdb::master::config&#x27;:\n        manage_report_processor =&gt; true,\n        enable_reports =&gt; true\n    }\n\nThis will add the &#x27;puppetdb&#x27; report processor to the list of `reports`\ninside your master&#x27;s `puppet.conf` file.\n\n------------------------------------------\n\n#### 1.3.0 - 2013&#x2F;05&#x2F;13\n\nThis feature release provides us with a few new features for the PuppetDB\nmodule.\n\nYou can now disable SSL when using the `puppetdb` class by using the new\nparameter `disable_ssl`:\n\n    class { &#x27;puppetdb&#x27;:\n      disable_ssl =&gt; true,\n    }\n\nThis will remove the SSL settings from your `jetty.ini` configuration file\ndisabling any SSL communication. This is useful when you want to offload SSL\nto another web server, such as Apache or Nginx.\n\nWe have now added an option `java_args` for passing in Java options to\nPuppetDB. The format is a hash that is passed in when declaring the use of the\n`puppetdb` class:\n\n    class { &#x27;puppetdb&#x27;:\n      java_args =&gt; {\n        &#x27;-Xmx&#x27; =&gt; &#x27;512m&#x27;,\n        &#x27;-Xms&#x27; =&gt; &#x27;256m&#x27;,\n      }\n    }\n\nAlso, the default `report-ttl` was set to `14d` in PuppetDB to align it with an\nupcoming PE release, so we&#x27;ve also reflected that default here now.\n\nAnd finally we&#x27;ve fixed the issue whereby the options `report_ttl`, `node_ttl`,\n`node_purge_ttl` and `gc_interval` were not making the correct changes. On top\nof that you can now set these values to zero in the module, and the correct\ntime modifier (`s`, `m`, `h` etc.) will automatically get applied for you.\n\nBehind the scenes we&#x27;ve also added system and unit testing, which was\npreviously non-existent. This should help us reduce regression going forward.\n\nThanks to all the contributing developers in the list below that made this\nrelease possible :-).\n\n#### Changes\n\n* Allows for 0 _ttl&#x27;s without time signifier and enables tests (Garrett Honeycutt)\n* Add option to disable SSL in Jetty, including tests and documentation (Christian Berg)\n* Cleaned up ghoneycutt&#x27;s code a tad (Ken Barber)\n* the new settings report_ttl, node_ttl and node_purge_ttl were added but they are not working, this fixes it (fsalum)\n* Also fix gc_interval (Ken Barber)\n* Support for remote puppetdb (Filip Hrbek)\n* Added support for Java VM options (Karel Brezina)\n* Add initial rspec-system tests and scaffolding (Ken Barber)\n\n------------------------------------------\n\n#### 1.2.1 - 2013&#x2F;04&#x2F;08\n\nThis is a minor bugfix that solves the PuppetDB startup exception:\n\n    java.lang.AssertionError: Assert failed: (string? s)\n\nThis was due to the default `node-ttl` and `node-purge-ttl` settings not having a time suffix by default. These settings required &#x27;s&#x27;, &#x27;m&#x27;, &#x27;d&#x27; etc. to be suffixed, even if they are zero.\n\n#### Changes\n\n* (Ken Barber) Add &#x27;s&#x27; suffix to period settings to avoid exceptions in PuppetDB\n\n------------------------------------------\n\n#### 1.2.0 - 2013&#x2F;04&#x2F;05\n\nThis release is primarily about providing full configuration file support in the module for PuppetDB 1.2.0. (The alignment of version is a coincidence I assure you :-).\n\nThis feature release adds the following new configuration parameters to the main `puppetdb` class:\n\n* node_ttl\n* node_purge_ttl (available in &gt;=1.2.0)\n* report_ttl\n\nConsult the README for futher details about these new configurable items.\n\n##### Changes\n\n* (Nick Lewis) Add params and ini settings for node&#x2F;purge&#x2F;report ttls and document them\n\n------------------------------------------\n\n1.1.5\n=====\n\n2013-02-13 - Karel Brezina\n * Fix database creation so database_username, database_password and\n   database_name are correctly passed during database creation.\n\n2013-01-29 - Lauren Rother\n * Change README to conform to new style and various other README improvements\n\n2013-01-17 - Chris Price\n * Improve documentation in init.pp\n\n------------------------------------------\n\n1.1.4\n=====\n\nThis is a bugfix release, mostly around fixing backward-compatibility for the\ndeprecated `manage_redhat_firewall` parameter.  It wasn&#x27;t actually entirely\nbackwards-compatible in the 1.1.3 release.\n\n2013-01-17 - Chris Price &lt;chris@puppetlabs.com&gt;\n * Fix backward compatibility of `manage_redhat_firewall` parameter (de20b44)\n\n2013-01-16 - Chris Price &lt;chris@puppetlabs.com&gt;\n * Fix deprecation warnings around manage_redhat_firewall (448f8bc)\n\n------------------------------------------\n\n1.1.3\n=====\n\nThis is mostly a maintenance release, to update the module dependencies to newer\nversions in preparation for some new features.  This release does include some nice\nadditions around the ability to set the listen address for the HTTP port on Jetty\nand manage the firewall for that port.  Thanks very much to Drew Blessing for those\nsubmissions!\n\n2013-01-15 - Chris Price &lt;chris@puppetlabs.com&gt;\n * Update Modulefile for 1.1.3 release (updates dependencies\n   on postgres and inifile modules to the latest versions) (76bfd9e)\n\n2012-12-19 - Garrett Honeycutt &lt;garrett@puppetlabs.com&gt;\n * (#18228) updates README for style (fd2e990)\n\n2012-11-29 - Drew Blessing &lt;Drew.Blessing@Buckle.com&gt;\n * 17594 - Fixes suggested by cprice-puppet (0cf9632)\n\n2012-11-14 - Drew Blessing &lt;Drew.Blessing@Buckle.com&gt;\n * Adjust examples in tests to include new port params (0afc276)\n\n2012-11-13 - Drew Blessing &lt;Drew.Blessing@Buckle.com&gt;\n * 17594 - PuppetDB - Add ability to set standard host listen address and open firewall\n\n------------------------------------------\n\n1.1.2\n=====\n\n2012-10-26 - Chris Price &lt;chris@puppetlabs.com&gt; (1.1.2)\n * 1.1.2 release\n\n2012-10-26 - Chris Price &lt;chris@puppetlabs.com&gt;\n * Add some more missing `inherit`s for `puppetdb::params` (a72cc7c)\n\n2012-10-26 - Chris Price &lt;chris@puppetlabs.com&gt; (1.1.2)\n * 1.1.1 release\n\n2012-10-26 - Chris Price &lt;chris@puppetlabs.com&gt; (1.1.1)\n * Add missing `inherit` for `puppetdb::params` (ea9b379)\n\n2012-10-24 - Chris Price &lt;chris@puppetlabs.com&gt;\n * 1.1.0 release\n\n2012-10-24 - Chris Price &lt;chris@puppetlabs.com&gt; (1.1.0)\n * Update postgres dependency to puppetlabs&#x2F;postgresql (bea79b4)\n\n2012-10-17 - Reid Vandewiele &lt;reid@puppetlabs.com&gt; (1.1.0)\n * Fix embedded db setup in Puppet Enterprise (bf0ab45)\n\n2012-10-17 - Chris Price &lt;chris@puppetlabs.com&gt; (1.1.0)\n * Update manifests&#x2F;master&#x2F;config.pp (b119a30)\n\n2012-10-16 - Chris Price &lt;chris@puppetlabs.com&gt; (1.1.0)\n * Make puppetdb startup timeout configurable (783b595)\n\n2012-10-01 - Hunter Haugen &lt;h.haugen@gmail.com&gt; (1.1.0)\n * Add condition to detect PE installations and provide different parameters (63f1c52)\n\n2012-10-01 - Hunter Haugen &lt;h.haugen@gmail.com&gt; (1.1.0)\n * Add example manifest code for pe puppet master (a598edc)\n\n2012-10-01 - Chris Price &lt;chris@puppetlabs.com&gt; (1.1.0)\n * Update comments and docs w&#x2F;rt PE params (b5df5d9)\n\n2012-10-01 - Hunter Haugen &lt;h.haugen@gmail.com&gt; (1.1.0)\n * Adding pe_puppetdb tests class (850e039)\n\n2012-09-28 - Hunter Haugen &lt;h.haugen@gmail.com&gt; (1.1.0)\n * Add parameters to enable usage of enterprise versions of PuppetDB (df6f7cc)\n\n2012-09-23 - Chris Price &lt;chris@puppetlabs.com&gt;\n * 1.0.3 release\n\n2012-09-23 - Chris Price &lt;chris@puppetlabs.com&gt;\n * Add a parameter for restarting puppet master (179b337)\n\n2012-09-21 - Chris Price &lt;chris@puppetlabs.com&gt;\n * 1.0.2 release\n\n2012-09-21 - Chris Price &lt;chris@puppetlabs.com&gt;\n * Pass &#x27;manage_redhat_firewall&#x27; param through to postgres (f21740b)\n\n2012-09-20 - Chris Price &lt;chris@puppetlabs.com&gt;\n * 1.0.1 release\n\n2012-09-20 - Garrett Honeycutt &lt;garrett@puppetlabs.com&gt;\n * complies with style guide (1aab5d9)\n\n2012-09-19 - Chris Price &lt;chris@puppetlabs.com&gt;\n * Fix invalid subname in database.ini (be683b7)\n\n2011-09-18 Chris Price &lt;chris@puppetlabs.com&gt; - 1.0.0\n* Initial 1.0.0 release\n</pre></section>",
##############################################
ruby-puppet-forge-2.3.2/spec/fixtures/v3/modules__owner=puppetlabs.json-3431-        "readme": null,
ruby-puppet-forge-2.3.2/spec/fixtures/v3/modules__owner=puppetlabs.json:3432:        "changelog": "<section class=\"plaintext\"><pre>2013-08-14 - Release 0.1.0\n\nFeatures:\n- Support osfamily  instead of using `$operatingsystem`. Note that\nAmazon Linux is RedHat osfamily on facter version 1.7\n\n2011-06-03 - Dan Bode &lt;dan@puppetlabs.com&gt; - 0.0.3\n* committed source to git\n* added tests\n</pre></section>",
ruby-puppet-forge-2.3.2/spec/fixtures/v3/modules__owner=puppetlabs.json-3433-        "license": "<section class=\"plaintext\"><pre>                                 Apache License\n                           Version 2.0, January 2004\n                        http:&#x2F;&#x2F;www.apache.org&#x2F;licenses&#x2F;\n\n   TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\n\n   1. Definitions.\n\n      &quot;License&quot; shall mean the terms and conditions for use, reproduction,\n      and distribution as defined by Sections 1 through 9 of this document.\n\n      &quot;Licensor&quot; shall mean the copyright owner or entity authorized by\n      the copyright owner that is granting the License.\n\n      &quot;Legal Entity&quot; shall mean the union of the acting entity and all\n      other entities that control, are controlled by, or are under common\n      control with that entity. For the purposes of this definition,\n      &quot;control&quot; means (i) the power, direct or indirect, to cause the\n      direction or management of such entity, whether by contract or\n      otherwise, or (ii) ownership of fifty percent (50%) or more of the\n      outstanding shares, or (iii) beneficial ownership of such entity.\n\n      &quot;You&quot; (or &quot;Your&quot;) shall mean an individual or Legal Entity\n      exercising permissions granted by this License.\n\n      &quot;Source&quot; form shall mean the preferred form for making modifications,\n      including but not limited to software source code, documentation\n      source, and configuration files.\n\n      &quot;Object&quot; form shall mean any form resulting from mechanical\n      transformation or translation of a Source form, including but\n      not limited to compiled object code, generated documentation,\n      and conversions to other media types.\n\n      &quot;Work&quot; shall mean the work of authorship, whether in Source or\n      Object form, made available under the License, as indicated by a\n      copyright notice that is included in or attached to the work\n      (an example is provided in the Appendix below).\n\n      &quot;Derivative Works&quot; shall mean any work, whether in Source or Object\n      form, that is based on (or derived from) the Work and for which the\n      editorial revisions, annotations, elaborations, or other modifications\n      represent, as a whole, an original work of authorship. For the purposes\n      of this License, Derivative Works shall not include works that remain\n      separable from, or merely link (or bind by name) to the interfaces of,\n      the Work and Derivative Works thereof.\n\n      &quot;Contribution&quot; shall mean any work of authorship, including\n      the original version of the Work and any modifications or additions\n      to that Work or Derivative Works thereof, that is intentionally\n      submitted to Licensor for inclusion in the Work by the copyright owner\n      or by an individual or Legal Entity authorized to submit on behalf of\n      the copyright owner. For the purposes of this definition, &quot;submitted&quot;\n      means any form of electronic, verbal, or written communication sent\n      to the Licensor or its representatives, including but not limited to\n      communication on electronic mailing lists, source code control systems,\n      and issue tracking systems that are managed by, or on behalf of, the\n      Licensor for the purpose of discussing and improving the Work, but\n      excluding communication that is conspicuously marked or otherwise\n      designated in writing by the copyright owner as &quot;Not a Contribution.&quot;\n\n      &quot;Contributor&quot; shall mean Licensor and any individual or Legal Entity\n      on behalf of whom a Contribution has been received by Licensor and\n      subsequently incorporated within the Work.\n\n   2. Grant of Copyright License. Subject to the terms and conditions of\n      this License, each Contributor hereby grants to You a perpetual,\n      worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n      copyright license to reproduce, prepare Derivative Works of,\n      publicly display, publicly perform, sublicense, and distribute the\n      Work and such Derivative Works in Source or Object form.\n\n   3. Grant of Patent License. Subject to the terms and conditions of\n      this License, each Contributor hereby grants to You a perpetual,\n      worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n      (except as stated in this section) patent license to make, have made,\n      use, offer to sell, sell, import, and otherwise transfer the Work,\n      where such license applies only to those patent claims licensable\n      by such Contributor that are necessarily infringed by their\n      Contribution(s) alone or by combination of their Contribution(s)\n      with the Work to which such Contribution(s) was submitted. If You\n      institute patent litigation against any entity (including a\n      cross-claim or counterclaim in a lawsuit) alleging that the Work\n      or a Contribution incorporated within the Work constitutes direct\n      or contributory patent infringement, then any patent licenses\n      granted to You under this License for that Work shall terminate\n      as of the date such litigation is filed.\n\n   4. Redistribution. You may reproduce and distribute copies of the\n      Work or Derivative Works thereof in any medium, with or without\n      modifications, and in Source or Object form, provided that You\n      meet the following conditions:\n\n      (a) You must give any other recipients of the Work or\n          Derivative Works a copy of this License; and\n\n      (b) You must cause any modified files to carry prominent notices\n          stating that You changed the files; and\n\n      (c) You must retain, in the Source form of any Derivative Works\n          that You distribute, all copyright, patent, trademark, and\n          attribution notices from the Source form of the Work,\n          excluding those notices that do not pertain to any part of\n          the Derivative Works; and\n\n      (d) If the Work includes a &quot;NOTICE&quot; text file as part of its\n          distribution, then any Derivative Works that You distribute must\n          include a readable copy of the attribution notices contained\n          within such NOTICE file, excluding those notices that do not\n          pertain to any part of the Derivative Works, in at least one\n          of the following places: within a NOTICE text file distributed\n          as part of the Derivative Works; within the Source form or\n          documentation, if provided along with the Derivative Works; or,\n          within a display generated by the Derivative Works, if and\n          wherever such third-party notices normally appear. The contents\n          of the NOTICE file are for informational purposes only and\n          do not modify the License. You may add Your own attribution\n          notices within Derivative Works that You distribute, alongside\n          or as an addendum to the NOTICE text from the Work, provided\n          that such additional attribution notices cannot be construed\n          as modifying the License.\n\n      You may add Your own copyright statement to Your modifications and\n      may provide additional or different license terms and conditions\n      for use, reproduction, or distribution of Your modifications, or\n      for any such Derivative Works as a whole, provided Your use,\n      reproduction, and distribution of the Work otherwise complies with\n      the conditions stated in this License.\n\n   5. Submission of Contributions. Unless You explicitly state otherwise,\n      any Contribution intentionally submitted for inclusion in the Work\n      by You to the Licensor shall be under the terms and conditions of\n      this License, without any additional terms or conditions.\n      Notwithstanding the above, nothing herein shall supersede or modify\n      the terms of any separate license agreement you may have executed\n      with Licensor regarding such Contributions.\n\n   6. Trademarks. This License does not grant permission to use the trade\n      names, trademarks, service marks, or product names of the Licensor,\n      except as required for reasonable and customary use in describing the\n      origin of the Work and reproducing the content of the NOTICE file.\n\n   7. Disclaimer of Warranty. Unless required by applicable law or\n      agreed to in writing, Licensor provides the Work (and each\n      Contributor provides its Contributions) on an &quot;AS IS&quot; BASIS,\n      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\n      implied, including, without limitation, any warranties or conditions\n      of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A\n      PARTICULAR PURPOSE. You are solely responsible for determining the\n      appropriateness of using or redistributing the Work and assume any\n      risks associated with Your exercise of permissions under this License.\n\n   8. Limitation of Liability. In no event and under no legal theory,\n      whether in tort (including negligence), contract, or otherwise,\n      unless required by applicable law (such as deliberate and grossly\n      negligent acts) or agreed to in writing, shall any Contributor be\n      liable to You for damages, including any direct, indirect, special,\n      incidental, or consequential damages of any character arising as a\n      result of this License or out of the use or inability to use the\n      Work (including but not limited to damages for loss of goodwill,\n      work stoppage, computer failure or malfunction, or any and all\n      other commercial damages or losses), even if such Contributor\n      has been advised of the possibility of such damages.\n\n   9. Accepting Warranty or Additional Liability. While redistributing\n      the Work or Derivative Works thereof, You may choose to offer,\n      and charge a fee for, acceptance of support, warranty, indemnity,\n      or other liability obligations and&#x2F;or rights consistent with this\n      License. However, in accepting such obligations, You may act only\n      on Your own behalf and on Your sole responsibility, not on behalf\n      of any other Contributor, and only if You agree to indemnify,\n      defend, and hold each Contributor harmless for any liability\n      incurred by, or claims asserted against, such Contributor by reason\n      of your accepting any such warranty or additional liability.\n\n   END OF TERMS AND CONDITIONS\n\n   APPENDIX: How to apply the Apache License to your work.\n\n      To apply the Apache License to your work, attach the following\n      boilerplate notice, with the fields enclosed by brackets &quot;[]&quot;\n      replaced with your own identifying information. (Don&#x27;t include\n      the brackets!) The text should be enclosed in the appropriate\n      comment syntax for the file format. We also recommend that a\n      file or class name and description of purpose be included on the\n      same &quot;printed page&quot; as the copyright notice for easier\n      identification within third-party archives.\n\n   Copyright [yyyy] [name of copyright owner]\n\n   Licensed under the Apache License, Version 2.0 (the &quot;License&quot;);\n   you may not use this file except in compliance with the License.\n   You may obtain a copy of the License at\n\n       http:&#x2F;&#x2F;www.apache.org&#x2F;licenses&#x2F;LICENSE-2.0\n\n   Unless required by applicable law or agreed to in writing, software\n   distributed under the License is distributed on an &quot;AS IS&quot; BASIS,\n   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n   See the License for the specific language governing permissions and\n   limitations under the License.\n</pre></section>",
##############################################
ruby-puppet-forge-2.3.2/spec/fixtures/v3/modules__owner=puppetlabs.json-3517-                  "name": "name",
ruby-puppet-forge-2.3.2/spec/fixtures/v3/modules__owner=puppetlabs.json:3518:                  "doc": "Name of exchange  Values can match `/^\\S*@\\S+$/`."
ruby-puppet-forge-2.3.2/spec/fixtures/v3/modules__owner=puppetlabs.json-3519-                },
##############################################
ruby-puppet-forge-2.3.2/spec/fixtures/v3/modules__owner=puppetlabs.json-3521-                  "name": "type",
ruby-puppet-forge-2.3.2/spec/fixtures/v3/modules__owner=puppetlabs.json:3522:                  "doc": "Exchange type to be set *on creation*  Values can match `/^\\S+$/`."
ruby-puppet-forge-2.3.2/spec/fixtures/v3/modules__owner=puppetlabs.json-3523-                },
##############################################
ruby-puppet-forge-2.3.2/spec/fixtures/v3/modules__owner=puppetlabs.json-3525-                  "name": "user",
ruby-puppet-forge-2.3.2/spec/fixtures/v3/modules__owner=puppetlabs.json:3526:                  "doc": "The user to use to connect to rabbitmq  Values can match `/^\\S+$/`."
ruby-puppet-forge-2.3.2/spec/fixtures/v3/modules__owner=puppetlabs.json-3527-                },
##############################################
ruby-puppet-forge-2.3.2/spec/fixtures/v3/modules__owner=puppetlabs.json-3551-                  "name": "name",
ruby-puppet-forge-2.3.2/spec/fixtures/v3/modules__owner=puppetlabs.json:3552:                  "doc": "  Values can match `/^\\S+$/`."
ruby-puppet-forge-2.3.2/spec/fixtures/v3/modules__owner=puppetlabs.json-3553-                }
##############################################
ruby-puppet-forge-2.3.2/spec/fixtures/v3/modules__owner=puppetlabs.json-3577-                  "name": "name",
ruby-puppet-forge-2.3.2/spec/fixtures/v3/modules__owner=puppetlabs.json:3578:                  "doc": "Name of user  Values can match `/^\\S+$/`."
ruby-puppet-forge-2.3.2/spec/fixtures/v3/modules__owner=puppetlabs.json-3579-                },
##############################################
ruby-puppet-forge-2.3.2/spec/fixtures/v3/modules__owner=puppetlabs.json-3615-                  "name": "name",
ruby-puppet-forge-2.3.2/spec/fixtures/v3/modules__owner=puppetlabs.json:3616:                  "doc": "combination of user@vhost to grant privileges to  Values can match `/^\\S+@\\S+$/`."
ruby-puppet-forge-2.3.2/spec/fixtures/v3/modules__owner=puppetlabs.json-3617-                }
##############################################
ruby-puppet-forge-2.3.2/spec/fixtures/v3/modules__owner=puppetlabs.json-3637-                  "name": "name",
ruby-puppet-forge-2.3.2/spec/fixtures/v3/modules__owner=puppetlabs.json:3638:                  "doc": "  Values can match `/^\\S+$/`."
ruby-puppet-forge-2.3.2/spec/fixtures/v3/modules__owner=puppetlabs.json-3639-                }
##############################################
ruby-puppet-forge-2.3.2/spec/fixtures/v3/modules/puppetlabs-apache.json-313-    "downloads": 6389,
ruby-puppet-forge-2.3.2/spec/fixtures/v3/modules/puppetlabs-apache.json:314:    "readme": "<section class=\"markdown\"><h1>apache</h1>\n\n<p><a href=\"https://travis-ci.org/puppetlabs/puppetlabs-apache\"><img src=\"https://travis-ci.org/puppetlabs/puppetlabs-apache.png?branch=master\" alt=\"Build Status\"></a></p>\n\n<h4>Table of Contents</h4>\n\n<ol>\n<li><a href=\"#overview\">Overview - What is the Apache module?</a></li>\n<li><a href=\"#module-description\">Module Description - What does the module do?</a></li>\n<li><a href=\"#setup\">Setup - The basics of getting started with Apache</a>\n\n<ul>\n<li><a href=\"#beginning-with-apache\">Beginning with Apache - Installation</a></li>\n<li><a href=\"#configure-a-virtual-host\">Configure a Virtual Host - Basic options for getting started</a></li>\n</ul></li>\n<li><a href=\"#usage\">Usage - The classes, defined types, and their parameters available for configuration</a>\n\n<ul>\n<li><a href=\"#classes-and-defined-types\">Classes and Defined Types</a>\n\n<ul>\n<li><a href=\"#class-apache\">Class: apache</a></li>\n<li><a href=\"#classes-apachemodname\">Classes: apache::mod::*</a></li>\n<li><a href=\"#defined-type-apachevhost\">Defined Type: apache::vhost</a></li>\n</ul></li>\n<li><a href=\"#virtual-host-examples\">Virtual Host Examples - Demonstrations of some configuration options</a></li>\n</ul></li>\n<li><a href=\"#implementation\">Implementation - An under-the-hood peek at what the module is doing</a>\n\n<ul>\n<li><a href=\"#classes-and-defined-types\">Classes and Defined Types</a></li>\n<li><a href=\"#templates\">Templates</a></li>\n</ul></li>\n<li><a href=\"#limitations\">Limitations - OS compatibility, etc.</a></li>\n<li><a href=\"#development\">Development - Guide for contributing to the module</a></li>\n<li><a href=\"#release-notes\">Release Notes - Notes on the most recent updates to the module</a></li>\n</ol>\n\n<h2>Overview</h2>\n\n<p>The Apache module allows you to set up virtual hosts and manage web services with minimal effort.</p>\n\n<h2>Module Description</h2>\n\n<p>Apache is a widely-used web server, and this module provides a simplified way of creating configurations to manage your infrastructure. This includes the ability to configure and manage a range of different virtual host setups, as well as a streamlined way to install and configure Apache modules.</p>\n\n<h2>Setup</h2>\n\n<p><strong>What Apache affects:</strong></p>\n\n<ul>\n<li>configuration files and directories (created and written to)\n\n<ul>\n<li><strong>NOTE</strong>: Configurations that are <em>not</em> managed by Puppet will be purged.</li>\n</ul></li>\n<li>package/service/configuration files for Apache</li>\n<li>Apache modules</li>\n<li>virtual hosts</li>\n<li>listened-to ports</li>\n<li><code>/etc/make.conf</code> on FreeBSD</li>\n</ul>\n\n<h3>Beginning with Apache</h3>\n\n<p>To install Apache with the default parameters</p>\n\n<pre lang=\"puppet\"><code>    class { &#39;apache&#39;:  }\n</code></pre>\n\n<p>The defaults are determined by your operating system (e.g. Debian systems have one set of defaults, RedHat systems have another). These defaults will work well in a testing environment, but are not suggested for production. To establish customized parameters</p>\n\n<pre lang=\"puppet\"><code>    class { &#39;apache&#39;:\n      default_mods        =&gt; false,\n      default_confd_files =&gt; false,\n    }\n</code></pre>\n\n<h3>Configure a virtual host</h3>\n\n<p>Declaring the <code>apache</code> class will create a default virtual host by setting up a vhost on port 80, listening on all interfaces and serving <code>$apache::docroot</code>.</p>\n\n<pre lang=\"puppet\"><code>    class { &#39;apache&#39;: }\n</code></pre>\n\n<p>To configure a very basic, name-based virtual host</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;first.example.com&#39;:\n      port    =&gt; &#39;80&#39;,\n      docroot =&gt; &#39;/var/www/first&#39;,\n    }\n</code></pre>\n\n<p><em>Note:</em> The default priority is 15. If nothing matches this priority, the alphabetically first name-based vhost will be used. This is also true if you pass a higher priority and no names match anything else.</p>\n\n<p>A slightly more complicated example, which moves the docroot owner/group</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;second.example.com&#39;:\n      port          =&gt; &#39;80&#39;,\n      docroot       =&gt; &#39;/var/www/second&#39;,\n      docroot_owner =&gt; &#39;third&#39;,\n      docroot_group =&gt; &#39;third&#39;,\n    }\n</code></pre>\n\n<p>To set up a virtual host with SSL and default SSL certificates</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;ssl.example.com&#39;:\n      port    =&gt; &#39;443&#39;,\n      docroot =&gt; &#39;/var/www/ssl&#39;,\n      ssl     =&gt; true,\n    }\n</code></pre>\n\n<p>To set up a virtual host with SSL and specific SSL certificates</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;fourth.example.com&#39;:\n      port     =&gt; &#39;443&#39;,\n      docroot  =&gt; &#39;/var/www/fourth&#39;,\n      ssl      =&gt; true,\n      ssl_cert =&gt; &#39;/etc/ssl/fourth.example.com.cert&#39;,\n      ssl_key  =&gt; &#39;/etc/ssl/fourth.example.com.key&#39;,\n    }\n</code></pre>\n\n<p>To set up a virtual host with IP address different than &#39;*&#39;</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;subdomain.example.com&#39;:\n      ip      =&gt; &#39;127.0.0.1&#39;,\n      port    =&gt; &#39;80&#39;,\n      docrout =&gt; &#39;/var/www/subdomain&#39;,\n    }\n</code></pre>\n\n<p>To set up a virtual host with wildcard alias for subdomain mapped to same named directory\n<code>http://examle.com.loc =&gt; /var/www/example.com</code></p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;subdomain.loc&#39;:\n      vhost_name =&gt; &#39;*&#39;,\n      port       =&gt; &#39;80&#39;,\n      virtual_docroot&#39; =&gt; &#39;/var/www/%-2+&#39;,\n      docroot          =&gt; &#39;/var/www&#39;,\n      serveraliases    =&gt; [&#39;*.loc&#39;,],\n    }\n</code></pre>\n\n<p>To set up a virtual host with suPHP</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;suphp.example.com&#39;:\n      port                =&gt; &#39;80&#39;,\n      docroot             =&gt; &#39;/home/appuser/myphpapp&#39;,\n      suphp_addhandler    =&gt; &#39;x-httpd-php&#39;,\n      suphp_engine        =&gt; &#39;on&#39;,\n      suphp_configpath    =&gt; &#39;/etc/php5/apache2&#39;,\n      directories         =&gt; { path =&gt; &#39;/home/appuser/myphpapp&#39;,\n        &#39;suphp&#39;           =&gt; { user =&gt; &#39;myappuser&#39;, group =&gt; &#39;myappgroup&#39; },\n      }\n    }\n</code></pre>\n\n<p>To set up a virtual host with WSGI</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;wsgi.example.com&#39;:\n      port                        =&gt; &#39;80&#39;,\n      docroot                     =&gt; &#39;/var/www/pythonapp&#39;,\n      wsgi_daemon_process         =&gt; &#39;wsgi&#39;,\n      wsgi_daemon_process_options =&gt;\n        { processes =&gt; &#39;2&#39;, threads =&gt; &#39;15&#39;, display-name =&gt; &#39;%{GROUP}&#39; },\n      wsgi_process_group          =&gt; &#39;wsgi&#39;,\n      wsgi_script_aliases         =&gt; { &#39;/&#39; =&gt; &#39;/var/www/demo.wsgi&#39; },\n    }\n</code></pre>\n\n<p>Starting 2.2.16, httpd supports <a href=\"https://httpd.apache.org/docs/2.2/mod/mod_dir.html#fallbackresource\">FallbackResource</a> which is a simple replace for common RewriteRules:</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;wordpress.example.com&#39;:\n      port                =&gt; &#39;80&#39;,\n      docroot             =&gt; &#39;/var/www/wordpress&#39;,\n      fallbackresource    =&gt; &#39;/index.php&#39;,\n    }\n</code></pre>\n\n<p>Please note that the <code>disabled</code> argument to FallbackResource is only supported since 2.2.24.</p>\n\n<p>To see a list of all virtual host parameters, <a href=\"#defined-type-apachevhost\">please go here</a>. To see an extensive list of virtual host examples <a href=\"#virtual-host-examples\">please look here</a>.</p>\n\n<h2>Usage</h2>\n\n<h3>Classes and Defined Types</h3>\n\n<p>This module modifies Apache configuration files and directories and will purge any configuration not managed by Puppet. Configuration of Apache should be managed by Puppet, as non-puppet configuration files can cause unexpected failures.</p>\n\n<p>It is possible to temporarily disable full Puppet management by setting the <code>purge_configs</code> parameter within the base <code>apache</code> class to &#39;false&#39;. This option should only be used as a temporary means of saving and relocating customized configurations.</p>\n\n<h4>Class: <code>apache</code></h4>\n\n<p>The Apache module&#39;s primary class, <code>apache</code>, guides the basic setup of Apache on your system.</p>\n\n<p>You may establish a default vhost in this class, the <code>vhost</code> class, or both. You may add additional vhost configurations for specific virtual hosts using a declaration of the <code>vhost</code> type.</p>\n\n<p><strong>Parameters within <code>apache</code>:</strong></p>\n\n<h5><code>default_mods</code></h5>\n\n<p>Sets up Apache with default settings based on your OS. Defaults to &#39;true&#39;, set to &#39;false&#39; for customized configuration.</p>\n\n<h5><code>default_vhost</code></h5>\n\n<p>Sets up a default virtual host. Defaults to &#39;true&#39;, set to &#39;false&#39; to set up <a href=\"#configure-a-virtual-host\">customized virtual hosts</a>.</p>\n\n<h5><code>default_confd_files</code></h5>\n\n<p>Generates default set of include-able apache configuration files under  <code>${apache::confd_dir}</code> directory. These configuration files correspond to what is usually installed with apache package on given platform.</p>\n\n<h5><code>default_ssl_vhost</code></h5>\n\n<p>Sets up a default SSL virtual host. Defaults to &#39;false&#39;.</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;default-ssl&#39;:\n      port            =&gt; 443,\n      ssl             =&gt; true,\n      docroot         =&gt; $docroot,\n      scriptalias     =&gt; $scriptalias,\n      serveradmin     =&gt; $serveradmin,\n      access_log_file =&gt; &quot;ssl_${access_log_file}&quot;,\n      }\n</code></pre>\n\n<p>SSL vhosts only respond to HTTPS queries.</p>\n\n<h5><code>default_ssl_cert</code></h5>\n\n<p>The default SSL certification, which is automatically set based on your operating system  (<code>/etc/pki/tls/certs/localhost.crt</code> for RedHat, <code>/etc/ssl/certs/ssl-cert-snakeoil.pem</code> for Debian, <code>/usr/local/etc/apache22/server.crt</code> for FreeBSD). This default will work out of the box but must be updated with your specific certificate information before being used in production.</p>\n\n<h5><code>default_ssl_key</code></h5>\n\n<p>The default SSL key, which is automatically set based on your operating system (<code>/etc/pki/tls/private/localhost.key</code> for RedHat, <code>/etc/ssl/private/ssl-cert-snakeoil.key</code> for Debian, <code>/usr/local/etc/apache22/server.key</code> for FreeBSD). This default will work out of the box but must be updated with your specific certificate information before being used in production.</p>\n\n<h5><code>default_ssl_chain</code></h5>\n\n<p>The default SSL chain, which is automatically set to &#39;undef&#39;. This default will work out of the box but must be updated with your specific certificate information before being used in production.</p>\n\n<h5><code>default_ssl_ca</code></h5>\n\n<p>The default certificate authority, which is automatically set to &#39;undef&#39;. This default will work out of the box but must be updated with your specific certificate information before being used in production.</p>\n\n<h5><code>default_ssl_crl_path</code></h5>\n\n<p>The default certificate revocation list path, which is automatically set to &#39;undef&#39;. This default will work out of the box but must be updated with your specific certificate information before being used in production.</p>\n\n<h5><code>default_ssl_crl</code></h5>\n\n<p>The default certificate revocation list to use, which is automatically set to &#39;undef&#39;. This default will work out of the box but must be updated with your specific certificate information before being used in production.</p>\n\n<h5><code>service_name</code></h5>\n\n<p>Name of apache service to run. Defaults to: <code>&#39;httpd&#39;</code> on RedHat, <code>&#39;apache2&#39;</code> on Debian, and <code>&#39;apache22&#39;</code> on FreeBSD.</p>\n\n<h5><code>service_enable</code></h5>\n\n<p>Determines whether the &#39;httpd&#39; service is enabled when the machine is booted. Defaults to &#39;true&#39;.</p>\n\n<h5><code>service_ensure</code></h5>\n\n<p>Determines whether the service should be running. Can be set to &#39;undef&#39; which is useful when you want to let the service be managed by some other application like pacemaker. Defaults to &#39;running&#39;.</p>\n\n<h5><code>purge_configs</code></h5>\n\n<p>Removes all other apache configs and vhosts, which is automatically set to true. Setting this to false is a stopgap measure to allow the apache module to coexist with existing or otherwise managed configuration. It is recommended that you move your configuration entirely to resources within this module.</p>\n\n<h5><code>serveradmin</code></h5>\n\n<p>Sets the server administrator. Defaults to &#39;root@localhost&#39;.</p>\n\n<h5><code>servername</code></h5>\n\n<p>Sets the servername. Defaults to fqdn provided by facter.</p>\n\n<h5><code>server_root</code></h5>\n\n<p>A value to be set as <code>ServerRoot</code> in main configuration file (<code>httpd.conf</code>). Defaults to <code>/etc/httpd</code> on RedHat, <code>/etc/apache2</code> on Debian and <code>/usr/local</code> on FreeBSD.</p>\n\n<h5><code>sendfile</code></h5>\n\n<p>Makes Apache use the Linux kernel &#39;sendfile&#39; to serve static files. Defaults to &#39;On&#39;.</p>\n\n<h5><code>server_root</code></h5>\n\n<p>A value to be set as <code>ServerRoot</code> in main configuration file (<code>httpd.conf</code>). Defaults to <code>/etc/httpd</code> on RedHat and <code>/etc/apache2</code> on Debian.</p>\n\n<h5><code>error_documents</code></h5>\n\n<p>Enables custom error documents. Defaults to &#39;false&#39;.</p>\n\n<h5><code>httpd_dir</code></h5>\n\n<p>Changes the base location of the configuration directories used for the service. This is useful for specially repackaged HTTPD builds but may have unintended consequences when used in combination with the default distribution packages. Default is based on your OS.</p>\n\n<h5><code>confd_dir</code></h5>\n\n<p>Changes the location of the configuration directory your custom configuration files are placed in. Default is based on your OS.</p>\n\n<h5><code>vhost_dir</code></h5>\n\n<p>Changes the location of the configuration directory your virtual host configuration files are placed in. Default is based on your OS.</p>\n\n<h5><code>mod_dir</code></h5>\n\n<p>Changes the location of the configuration directory your Apache modules configuration files are placed in. Default is based on your OS.</p>\n\n<h5><code>mpm_module</code></h5>\n\n<p>Configures which mpm module is loaded and configured for the httpd process by the <code>apache::mod::event</code>, <code>apache::mod::itk</code>, <code>apache::mod::peruser</code>, <code>apache::mod::prefork</code> and <code>apache::mod::worker</code> classes. Must be set to <code>false</code> to explicitly declare <code>apache::mod::event</code>, <code>apache::mod::itk</code>, <code>apache::mod::peruser</code>,  <code>apache::mod::prefork</code> or <code>apache::mod::worker</code> classes with parameters. All possible values are <code>event</code>, <code>itk</code>, <code>peruser</code>, <code>prefork</code>, <code>worker</code> (valid values depend on agent&#39;s OS), or the boolean <code>false</code>. Defaults to <code>prefork</code> on RedHat and FreeBSD and <code>worker</code> on Debian. Note: on FreeBSD switching between different mpm modules is quite difficult (but possible). Before changing <code>$mpm_module</code> one has to deinstall all packages that depend on currently installed <code>apache</code>.</p>\n\n<h5><code>conf_template</code></h5>\n\n<p>Setting this allows you to override the template used for the main apache configuration file.  This is a potentially risky thing to do as this module has been built around the concept of a minimal configuration file with most of the configuration coming in the form of conf.d/ entries.  Defaults to &#39;apache/httpd.conf.erb&#39;.</p>\n\n<h5><code>keepalive</code></h5>\n\n<p>Setting this allows you to enable persistent connections.</p>\n\n<h5><code>keepalive_timeout</code></h5>\n\n<p>Amount of time the server will wait for subsequent requests on a persistent connection. Defaults to &#39;15&#39;.</p>\n\n<h5><code>logroot</code></h5>\n\n<p>Changes the location of the directory Apache log files are placed in. Defaut is based on your OS.</p>\n\n<h5><code>log_level</code></h5>\n\n<p>Changes the verbosity level of the error log. Defaults to &#39;warn&#39;. Valid values are <code>emerg</code>, <code>alert</code>, <code>crit</code>, <code>error</code>, <code>warn</code>, <code>notice</code>, <code>info</code> or <code>debug</code>.</p>\n\n<h5><code>ports_file</code></h5>\n\n<p>Changes the name of the file containing Apache ports configuration. Default is <code>${conf_dir}/ports.conf</code>.</p>\n\n<h5><code>server_tokens</code></h5>\n\n<p>Controls how much information Apache sends to the browser about itself and the operating system. See Apache documentation for &#39;ServerTokens&#39;. Defaults to &#39;OS&#39;.</p>\n\n<h5><code>server_signature</code></h5>\n\n<p>Allows the configuration of a trailing footer line under server-generated documents. See Apache documentation for &#39;ServerSignature&#39;. Defaults to &#39;On&#39;.</p>\n\n<h5><code>trace_enable</code></h5>\n\n<p>Controls, how TRACE requests per RFC 2616 are handled. See Apache documentation for &#39;TraceEnable&#39;. Defaults to &#39;On&#39;.</p>\n\n<h5><code>manage_user</code></h5>\n\n<p>Setting this to false will avoid the user resource to be created by this module. This is useful when you already have a user created in another puppet module and that you want to used it to run apache. Without this, it would result in a duplicate resource error.</p>\n\n<h5><code>manage_group</code></h5>\n\n<p>Setting this to false will avoid the group resource to be created by this module. This is useful when you already have a group created in another puppet module and that you want to used it for apache. Without this, it would result in a duplicate resource error.</p>\n\n<h5><code>package_ensure</code></h5>\n\n<p>Allow control over the package ensure statement. This is useful if you want to make sure apache is always at the latest version or whether it is only installed.</p>\n\n<h4>Class: <code>apache::default_mods</code></h4>\n\n<p>Installs default Apache modules based on what OS you are running</p>\n\n<pre lang=\"puppet\"><code>    class { &#39;apache::default_mods&#39;: }\n</code></pre>\n\n<h4>Defined Type: <code>apache::mod</code></h4>\n\n<p>Used to enable arbitrary Apache httpd modules for which there is no specific <code>apache::mod::[name]</code> class. The <code>apache::mod</code> defined type will also install the required packages to enable the module, if any.</p>\n\n<pre lang=\"puppet\"><code>    apache::mod { &#39;rewrite&#39;: }\n    apache::mod { &#39;ldap&#39;: }\n</code></pre>\n\n<h4>Classes: <code>apache::mod::[name]</code></h4>\n\n<p>There are many <code>apache::mod::[name]</code> classes within this module that can be declared using <code>include</code>:</p>\n\n<ul>\n<li><code>alias</code></li>\n<li><code>auth_basic</code></li>\n<li><code>auth_kerb</code></li>\n<li><code>autoindex</code></li>\n<li><code>cache</code></li>\n<li><code>cgi</code></li>\n<li><code>cgid</code></li>\n<li><code>dav</code></li>\n<li><code>dav_fs</code></li>\n<li><code>dav_svn</code></li>\n<li><code>deflate</code></li>\n<li><code>dev</code></li>\n<li><code>dir</code>*</li>\n<li><code>disk_cache</code></li>\n<li><code>event</code></li>\n<li><code>fastcgi</code></li>\n<li><code>fcgid</code></li>\n<li><code>headers</code></li>\n<li><code>info</code></li>\n<li><code>itk</code></li>\n<li><code>ldap</code></li>\n<li><code>mime</code></li>\n<li><code>mime_magic</code>*</li>\n<li><code>mpm_event</code></li>\n<li><code>negotiation</code></li>\n<li><code>nss</code>*</li>\n<li><code>passenger</code>*</li>\n<li><code>perl</code></li>\n<li><code>peruser</code></li>\n<li><code>php</code> (requires <a href=\"#mpm_module\"><code>mpm_module</code></a> set to <code>prefork</code>)</li>\n<li><code>prefork</code>*</li>\n<li><code>proxy</code>*</li>\n<li><code>proxy_ajp</code></li>\n<li><code>proxy_html</code></li>\n<li><code>proxy_http</code></li>\n<li><code>python</code></li>\n<li><code>reqtimeout</code></li>\n<li><code>rewrite</code></li>\n<li><code>rpaf</code>*</li>\n<li><code>setenvif</code></li>\n<li><code>ssl</code>* (see <a href=\"#class-apachemodssl\">apache::mod::ssl</a> below)</li>\n<li><code>status</code>*</li>\n<li><code>suphp</code></li>\n<li><code>userdir</code>*</li>\n<li><code>vhost_alias</code></li>\n<li><code>worker</code>*</li>\n<li><code>wsgi</code> (see <a href=\"#class-apachemodwsgi\">apache::mod::wsgi</a> below)</li>\n<li><code>xsendfile</code></li>\n</ul>\n\n<p>Modules noted with a * indicate that the module has settings and, thus, a template that includes parameters. These parameters control the module&#39;s configuration. Most of the time, these parameters will not require any configuration or attention.</p>\n\n<p>The modules mentioned above, and other Apache modules that have templates, will cause template files to be dropped along with the mod install, and the module will not work without the template. Any mod without a template will install package but drop no files.</p>\n\n<h4>Class: <code>apache::mod::ssl</code></h4>\n\n<p>Installs Apache SSL capabilities and utilizes <code>ssl.conf.erb</code> template. These are the defaults:</p>\n\n<pre lang=\"puppet\"><code>    class { &#39;apache::mod::ssl&#39;:\n      ssl_compression =&gt; false,\n      ssl_options     =&gt; [ &#39;StdEnvVars&#39; ],\n  }\n</code></pre>\n\n<p>To <em>use</em> SSL with a virtual host, you must either set the<code>default_ssl_vhost</code> parameter in <code>apache</code> to &#39;true&#39; or set the <code>ssl</code> parameter in <code>apache::vhost</code> to &#39;true&#39;.</p>\n\n<h4>Class: <code>apache::mod::wsgi</code></h4>\n\n<pre lang=\"puppet\"><code>    class { &#39;apache::mod::wsgi&#39;:\n      wsgi_socket_prefix =&gt; &quot;\\${APACHE_RUN_DIR}WSGI&quot;,\n      wsgi_python_home   =&gt; &#39;/path/to/virtenv&#39;,\n      wsgi_python_path   =&gt; &#39;/path/to/virtenv/site-packages&#39;,\n    }\n</code></pre>\n\n<h4>Defined Type: <code>apache::vhost</code></h4>\n\n<p>The Apache module allows a lot of flexibility in the set up and configuration of virtual hosts. This flexibility is due, in part, to <code>vhost</code>&#39;s setup as a defined resource type, which allows it to be evaluated multiple times with different parameters.</p>\n\n<p>The <code>vhost</code> defined type allows you to have specialized configurations for virtual hosts that have requirements outside of the defaults. You can set up a default vhost within the base <code>apache</code> class as well as set a customized vhost setup as default. Your customized vhost (priority 10) will be privileged over the base class vhost (15).</p>\n\n<p>If you have a series of specific configurations and do not want a base <code>apache</code> class default vhost, make sure to set the base class default host to &#39;false&#39;.</p>\n\n<pre lang=\"puppet\"><code>    class { &#39;apache&#39;:\n      default_vhost =&gt; false,\n    }\n</code></pre>\n\n<p><strong>Parameters within <code>apache::vhost</code>:</strong></p>\n\n<p>The default values for each parameter will vary based on operating system and type of virtual host.</p>\n\n<h5><code>access_log</code></h5>\n\n<p>Specifies whether <code>*_access.log</code> directives should be configured. Valid values are &#39;true&#39; and &#39;false&#39;. Defaults to &#39;true&#39;.</p>\n\n<h5><code>access_log_file</code></h5>\n\n<p>Points to the <code>*_access.log</code> file. Defaults to &#39;undef&#39;.</p>\n\n<h5><code>access_log_pipe</code></h5>\n\n<p>Specifies a pipe to send access log messages to. Defaults to &#39;undef&#39;.</p>\n\n<h5><code>access_log_syslog</code></h5>\n\n<p>Sends all access log messages to syslog. Defaults to &#39;undef&#39;.</p>\n\n<h5><code>access_log_format</code></h5>\n\n<p>Specifies either a LogFormat nickname or custom format string for access log. Defaults to &#39;undef&#39;.</p>\n\n<h5><code>add_listen</code></h5>\n\n<p>Determines whether the vhost creates a listen statement. The default value is &#39;true&#39;.</p>\n\n<p>Setting <code>add_listen</code> to &#39;false&#39; stops the vhost from creating a listen statement, and this is important when you combine vhosts that are not passed an <code>ip</code> parameter with vhosts that <em>are</em> passed the <code>ip</code> parameter.</p>\n\n<h5><code>aliases</code></h5>\n\n<p>Passes a list of hashes to the vhost to create <code>Alias</code> or <code>AliasMatch</code> statements as per the <a href=\"http://httpd.apache.org/docs/current/mod/mod_alias.html\"><code>mod_alias</code> documentation</a>. Each hash is expected to be of the form:</p>\n\n<pre><code>aliases =&gt; [\n  { aliasmatch =&gt; &#39;^/image/(.*)\\.jpg$&#39;, path =&gt; &#39;/files/jpg.images/$1.jpg&#39; }\n  { alias      =&gt; &#39;/image&#39;,             path =&gt; &#39;/ftp/pub/image&#39; },\n],\n</code></pre>\n\n<p>For <code>Alias</code> and <code>AliasMatch</code> to work, each will need a corresponding <code>&lt;Directory /path/to/directory&gt;</code> or <code>&lt;Location /path/to/directory&gt;</code> block. The <code>Alias</code> and <code>AliasMatch</code> directives are created in the order specified in the <code>aliases</code> paramter. As described in the <a href=\"http://httpd.apache.org/docs/current/mod/mod_alias.html\"><code>mod_alias</code> documentation</a> more specific <code>Alias</code> or <code>AliasMatch</code> directives should come before the more general ones to avoid shadowing.</p>\n\n<p><strong>Note:</strong> If <code>apache::mod::passenger</code> is loaded and <code>PassengerHighPerformance true</code> is set, then <code>Alias</code> may have issues honouring the <code>PassengerEnabled off</code> statement. See <a href=\"http://www.conandalton.net/2010/06/passengerenabled-off-not-working.html\">this article</a> for details.</p>\n\n<h5><code>block</code></h5>\n\n<p>Specifies the list of things Apache will block access to. The default is an empty set, &#39;[]&#39;. Currently, the only option is &#39;scm&#39;, which blocks web access to .svn, .git and .bzr directories. To add to this, please see the <a href=\"#development\">Development</a> section.</p>\n\n<h5><code>custom_fragment</code></h5>\n\n<p>Pass a string of custom configuration directives to be placed at the end of the vhost configuration.</p>\n\n<h5><code>default_vhost</code></h5>\n\n<p>Sets a given <code>apache::vhost</code> as the default to serve requests that do not match any other <code>apache::vhost</code> definitions. The default value is &#39;false&#39;.</p>\n\n<h5><code>directories</code></h5>\n\n<p>Passes a list of hashes to the vhost to create <code>&lt;Directory /path/to/directory&gt;...&lt;/Directory&gt;</code> directive blocks as per the <a href=\"http://httpd.apache.org/docs/2.2/mod/core.html#directory\">Apache core documentation</a>.  The <code>path</code> key is required in these hashes. An optional <code>provider</code> defaults to <code>directory</code>.  Usage will typically look like:</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;sample.example.net&#39;:\n      docroot     =&gt; &#39;/path/to/directory&#39;,\n      directories =&gt; [\n        { path =&gt; &#39;/path/to/directory&#39;, &lt;directive&gt; =&gt; &lt;value&gt; },\n        { path =&gt; &#39;/path/to/another/directory&#39;, &lt;directive&gt; =&gt; &lt;value&gt; },\n      ],\n    }\n</code></pre>\n\n<p><em>Note:</em> At least one directory should match <code>docroot</code> parameter, once you start declaring directories <code>apache::vhost</code> assumes that all required <code>&lt;Directory&gt;</code> blocks will be declared.</p>\n\n<p><em>Note:</em> If not defined a single default <code>&lt;Directory&gt;</code> block will be created that matches the <code>docroot</code> parameter.</p>\n\n<p><code>provider</code> can be set to any of <code>directory</code>, <code>files</code>, or <code>location</code>. If the <a href=\"https://httpd.apache.org/docs/2.2/mod/core.html#files\">pathspec starts with a <code>~</code></a>, httpd will interpret this as the equivalent of <code>DirectoryMatch</code>, <code>FilesMatch</code>, or <code>LocationMatch</code>, respectively.</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;files.example.net&#39;:\n      docroot     =&gt; &#39;/var/www/files&#39;,\n      directories =&gt; [\n        { path =&gt; &#39;~ (\\.swp|\\.bak|~)$&#39;, &#39;provider&#39; =&gt; &#39;files&#39;, &#39;deny&#39; =&gt; &#39;from all&#39; },\n      ],\n    }\n</code></pre>\n\n<p>The directives will be embedded within the <code>Directory</code> (<code>Files</code>, or <code>Location</code>) directive block, missing directives should be undefined and not be added, resulting in their default vaules in Apache. Currently this is the list of supported directives:</p>\n\n<h6><code>addhandlers</code></h6>\n\n<p>Sets <code>AddHandler</code> directives as per the <a href=\"http://httpd.apache.org/docs/2.2/mod/mod_mime.html#addhandler\">Apache Core documentation</a>. Accepts a list of hashes of the form <code>{ handler =&gt; &#39;handler-name&#39;, extensions =&gt; [&#39;extension&#39;]}</code>. Note that <code>extensions</code> is a list of extenstions being handled by the handler.\nAn example:</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;sample.example.net&#39;:\n      docroot     =&gt; &#39;/path/to/directory&#39;,\n      directories =&gt; [ { path =&gt; &#39;/path/to/directory&#39;,\n        addhandlers =&gt; [ { handler =&gt; &#39;cgi-script&#39;, extensions =&gt; [&#39;.cgi&#39;]} ],\n      } ],\n    }\n</code></pre>\n\n<h6><code>allow</code></h6>\n\n<p>Sets an <code>Allow</code> directive as per the <a href=\"http://httpd.apache.org/docs/2.2/mod/mod_authz_host.html#allow\">Apache Core documentation</a>. An example:</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;sample.example.net&#39;:\n      docroot     =&gt; &#39;/path/to/directory&#39;,\n      directories =&gt; [ { path =&gt; &#39;/path/to/directory&#39;, allow =&gt; &#39;from example.org&#39; } ],\n    }\n</code></pre>\n\n<h6><code>allow_override</code></h6>\n\n<p>Sets the usage of <code>.htaccess</code> files as per the <a href=\"http://httpd.apache.org/docs/2.2/mod/core.html#allowoverride\">Apache core documentation</a>. Should accept in the form of a list or a string. An example:</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;sample.example.net&#39;:\n      docroot     =&gt; &#39;/path/to/directory&#39;,\n      directories =&gt; [ { path =&gt; &#39;/path/to/directory&#39;, allow_override =&gt; [&#39;AuthConfig&#39;, &#39;Indexes&#39;] } ],\n    }\n</code></pre>\n\n<h6><code>deny</code></h6>\n\n<p>Sets an <code>Deny</code> directive as per the <a href=\"http://httpd.apache.org/docs/2.2/mod/mod_authz_host.html#deny\">Apache Core documentation</a>. An example:</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;sample.example.net&#39;:\n      docroot     =&gt; &#39;/path/to/directory&#39;,\n      directories =&gt; [ { path =&gt; &#39;/path/to/directory&#39;, deny =&gt; &#39;from example.org&#39; } ],\n    }\n</code></pre>\n\n<h6><code>error_documents</code></h6>\n\n<p>A list of hashes which can be used to override the <a href=\"https://httpd.apache.org/docs/2.2/mod/core.html#errordocument\">ErrorDocument</a> settings for this directory. Example:</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;sample.example.net&#39;:\n      directories =&gt; [ { path =&gt; &#39;/srv/www&#39;\n        error_documents =&gt; [\n          { &#39;error_code&#39; =&gt; &#39;503&#39;, &#39;document&#39; =&gt; &#39;/service-unavail&#39; },\n        ],\n      }]\n    }\n</code></pre>\n\n<h6><code>headers</code></h6>\n\n<p>Adds lines for <code>Header</code> directives as per the <a href=\"http://httpd.apache.org/docs/2.2/mod/mod_headers.html#header\">Apache Header documentation</a>. An example:</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;sample.example.net&#39;:\n      docroot     =&gt; &#39;/path/to/directory&#39;,\n      directories =&gt; {\n        path    =&gt; &#39;/path/to/directory&#39;,\n        headers =&gt; &#39;Set X-Robots-Tag &quot;noindex, noarchive, nosnippet&quot;&#39;,\n      },\n    }\n</code></pre>\n\n<h6><code>options</code></h6>\n\n<p>Lists the options for the given <code>&lt;Directory&gt;</code> block</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;sample.example.net&#39;:\n      docroot     =&gt; &#39;/path/to/directory&#39;,\n      directories =&gt; [ { path =&gt; &#39;/path/to/directory&#39;, options =&gt; [&#39;Indexes&#39;,&#39;FollowSymLinks&#39;,&#39;MultiViews&#39;] }],\n    }\n</code></pre>\n\n<h6><code>index_options</code></h6>\n\n<p>Styles the list</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;sample.example.net&#39;:\n      docroot     =&gt; &#39;/path/to/directory&#39;,\n      directories =&gt; [ { path =&gt; &#39;/path/to/directory&#39;, options =&gt; [&#39;Indexes&#39;,&#39;FollowSymLinks&#39;,&#39;MultiViews&#39;], index_options =&gt; [&#39;IgnoreCase&#39;, &#39;FancyIndexing&#39;, &#39;FoldersFirst&#39;, &#39;NameWidth=*&#39;, &#39;DescriptionWidth=*&#39;, &#39;SuppressHTMLPreamble&#39;] }],\n    }\n</code></pre>\n\n<h6><code>index_order_default</code></h6>\n\n<p>Sets the order of the list </p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;sample.example.net&#39;:\n      docroot     =&gt; &#39;/path/to/directory&#39;,\n      directories =&gt; [ { path =&gt; &#39;/path/to/directory&#39;, order =&gt; &#39;Allow,Deny&#39;, index_order_default =&gt; [&#39;Descending&#39;, &#39;Date&#39;]}, ],\n    }\n</code></pre>\n\n<h6><code>order</code></h6>\n\n<p>Sets the order of processing <code>Allow</code> and <code>Deny</code> statements as per <a href=\"http://httpd.apache.org/docs/2.2/mod/mod_authz_host.html#order\">Apache core documentation</a>. An example:</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;sample.example.net&#39;:\n      docroot     =&gt; &#39;/path/to/directory&#39;,\n      directories =&gt; [ { path =&gt; &#39;/path/to/directory&#39;, order =&gt; &#39;Allow,Deny&#39; } ],\n    }\n</code></pre>\n\n<h6><code>auth_type</code></h6>\n\n<p>Sets the value for <code>AuthType</code> as per the <a href=\"https://httpd.apache.org/docs/2.2/mod/core.html#authtype\">Apache AuthType\ndocumentation</a>.</p>\n\n<h6><code>auth_name</code></h6>\n\n<p>Sets the value for <code>AuthName</code> as per the <a href=\"https://httpd.apache.org/docs/2.2/mod/core.html#authname\">Apache AuthName\ndocumentation</a>.</p>\n\n<h6><code>auth_digest_algorithm</code></h6>\n\n<p>Sets the value for <code>AuthDigestAlgorithm</code> as per the <a href=\"https://httpd.apache.org/docs/2.2/mod/mod_auth_digest.html#authdigestalgorithm\">Apache\nAuthDigestAlgorithm\ndocumentation</a></p>\n\n<h6><code>auth_digest_domain</code></h6>\n\n<p>Sets the value for <code>AuthDigestDomain</code> as per the <a href=\"https://httpd.apache.org/docs/2.2/mod/mod_auth_digest.html#authdigestdomain\">Apache AuthDigestDomain\ndocumentation</a>.</p>\n\n<h6><code>auth_digest_nonce_lifetime</code></h6>\n\n<p>Sets the value for <code>AuthDigestNonceLifetime</code> as per the <a href=\"https://httpd.apache.org/docs/2.2/mod/mod_auth_digest.html#authdigestnoncelifetime\">Apache\nAuthDigestNonceLifetime\ndocumentation</a></p>\n\n<h6><code>auth_digest_provider</code></h6>\n\n<p>Sets the value for <code>AuthDigestProvider</code> as per the <a href=\"https://httpd.apache.org/docs/2.2/mod/mod_auth_digest.html#authdigestprovider\">Apache AuthDigestProvider\ndocumentation</a>.</p>\n\n<h6><code>auth_digest_qop</code></h6>\n\n<p>Sets the value for <code>AuthDigestQop</code> as per the <a href=\"https://httpd.apache.org/docs/2.2/mod/mod_auth_digest.html#authdigestqop\">Apache AuthDigestQop\ndocumentation</a>.</p>\n\n<h6><code>auth_digest_shmem_size</code></h6>\n\n<p>Sets the value for <code>AuthAuthDigestShmemSize</code> as per the <a href=\"https://httpd.apache.org/docs/2.2/mod/mod_auth_digest.html#authdigestshmemsize\">Apache AuthDigestShmemSize\ndocumentation</a>.</p>\n\n<h6><code>auth_basic_authoritative</code></h6>\n\n<p>Sets the value for <code>AuthBasicAuthoritative</code> as per the <a href=\"https://httpd.apache.org/docs/2.2/mod/mod_auth_basic.html#authbasicauthoritative\">Apache\nAuthBasicAuthoritative\ndocumentation</a>.</p>\n\n<h6><code>auth_basic_fake</code></h6>\n\n<p>Sets the value for <code>AuthBasicFake</code> as per the <a href=\"https://httpd.apache.org/docs/trunk/mod/mod_auth_basic.html#authbasicfake\">Apache AuthBasicFake\ndocumentation</a>.</p>\n\n<h6><code>auth_basic_provider</code></h6>\n\n<p>Sets the value for <code>AuthBasicProvider</code> as per the <a href=\"https://httpd.apache.org/docs/2.2/mod/mod_auth_basic.html#authbasicprovider\">Apache AuthBasicProvider\ndocumentation</a>.</p>\n\n<h6><code>auth_user_file</code></h6>\n\n<p>Sets the value for <code>AuthUserFile</code> as per the <a href=\"https://httpd.apache.org/docs/2.2/mod/mod_authn_file.html#authuserfile\">Apache AuthUserFile\ndocumentation</a>.</p>\n\n<h6><code>auth_require</code></h6>\n\n<p>Sets the value for <code>AuthName</code> as per the <a href=\"https://httpd.apache.org/docs/2.2/mod/core.html#require\">Apache Require\ndocumentation</a></p>\n\n<h6><code>passenger_enabled</code></h6>\n\n<p>Sets the value for the <code>PassengerEnabled</code> directory to <code>on</code> or <code>off</code> as per the <a href=\"http://www.modrails.com/documentation/Users%20guide%20Apache.html#PassengerEnabled\">Passenger documentation</a>.</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;sample.example.net&#39;:\n      docroot     =&gt; &#39;/path/to/directory&#39;,\n      directories =&gt; [ { path =&gt; &#39;/path/to/directory&#39;, passenger_enabled =&gt; &#39;off&#39; } ],\n    }\n</code></pre>\n\n<p><strong>Note:</strong> This directive requires <code>apache::mod::passenger</code> to be active, Apache may not start with an unrecognised directive without it.</p>\n\n<p><strong>Note:</strong> Be aware that there is an <a href=\"http://www.conandalton.net/2010/06/passengerenabled-off-not-working.html\">issue</a> using the <code>PassengerEnabled</code> directive with the <code>PassengerHighPerformance</code> directive.</p>\n\n<h6><code>ssl_options</code></h6>\n\n<p>String or list of <a href=\"https://httpd.apache.org/docs/2.2/mod/mod_ssl.html#ssloptions\"><code>SSLOptions</code></a> for the given <code>&lt;Directory&gt;</code> block. This overrides, or refines the <a href=\"https://httpd.apache.org/docs/2.2/mod/mod_ssl.html#ssloptions\"><code>SSLOptions</code></a> of the parent block (either vhost, or server).</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;secure.example.net&#39;:\n      docroot     =&gt; &#39;/path/to/directory&#39;,\n      directories =&gt; [\n        { path =&gt; &#39;/path/to/directory&#39;, ssl_options =&gt; &#39;+ExportCertData&#39; }\n        { path =&gt; &#39;/path/to/different/dir&#39;, ssl_options =&gt; [ &#39;-StdEnvVars&#39;, &#39;+ExportCertData&#39;] },\n      ],\n    }\n</code></pre>\n\n<h6><code>suphp</code></h6>\n\n<p>An array containing two values: User and group for the <a href=\"http://www.suphp.org/DocumentationView.html?file=apache/CONFIG\">suPHP_UserGroup</a> setting.\nThis directive must be used with <code>suphp_engine =&gt; on</code> in the vhost declaration. This directive only works in <code>&lt;Directory&gt;</code> or <code>&lt;Location&gt;</code>.</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;secure.example.net&#39;:\n      docroot     =&gt; &#39;/path/to/directory&#39;,\n      directories =&gt; [\n        { path =&gt; &#39;/path/to/directory&#39;, suphp =&gt; { user =&gt;  &#39;myappuser&#39;, group =&gt; &#39;myappgroup&#39; }\n      ],\n    }\n</code></pre>\n\n<h6><code>custom_fragment</code></h6>\n\n<p>Pass a string of custom configuration directives to be placed at the end of the\ndirectory configuration.</p>\n\n<h5><code>directoryindex</code></h5>\n\n<p>Set a DirectoryIndex directive, to set the list of resources to look for, when the client requests an index of the directory by specifying a / at the end of the directory name..</p>\n\n<h5><code>docroot</code></h5>\n\n<p>Provides the DocumentRoot directive, identifying the directory Apache serves files from.</p>\n\n<h5><code>docroot_group</code></h5>\n\n<p>Sets group access to the docroot directory. Defaults to &#39;root&#39;.</p>\n\n<h5><code>docroot_owner</code></h5>\n\n<p>Sets individual user access to the docroot directory. Defaults to &#39;root&#39;.</p>\n\n<h5><code>error_log</code></h5>\n\n<p>Specifies whether <code>*_error.log</code> directives should be configured. Defaults to &#39;true&#39;.</p>\n\n<h5><code>error_log_file</code></h5>\n\n<p>Points to the <code>*_error.log</code> file. Defaults to &#39;undef&#39;.</p>\n\n<h5><code>error_log_pipe</code></h5>\n\n<p>Specifies a pipe to send error log messages to. Defaults to &#39;undef&#39;.</p>\n\n<h5><code>error_log_syslog</code></h5>\n\n<p>Sends all error log messages to syslog. Defaults to &#39;undef&#39;.</p>\n\n<h5><code>error_documents</code></h5>\n\n<p>A list of hashes which can be used to override the <a href=\"https://httpd.apache.org/docs/2.2/mod/core.html#errordocument\">ErrorDocument</a> settings for this vhost. Defaults to <code>[]</code>. Example:</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;sample.example.net&#39;:\n      error_documents =&gt; [\n        { &#39;error_code&#39; =&gt; &#39;503&#39;, &#39;document&#39; =&gt; &#39;/service-unavail&#39; },\n        { &#39;error_code&#39; =&gt; &#39;407&#39;, &#39;document&#39; =&gt; &#39;https://example.com/proxy/login&#39; },\n      ],\n    }\n</code></pre>\n\n<h5><code>ensure</code></h5>\n\n<p>Specifies if the vhost file is present or absent.</p>\n\n<h5><code>fastcgi_server</code></h5>\n\n<p>Specifies the filename as an external FastCGI application. Defaults to &#39;undef&#39;.</p>\n\n<h5><code>fastcgi_socket</code></h5>\n\n<p>Filename used to communicate with the web server.  Defaults to &#39;undef&#39;.</p>\n\n<h5><code>fastcgi_dir</code></h5>\n\n<p>Directory to enable for FastCGI.  Defaults to &#39;undef&#39;.</p>\n\n<h5><code>additional_includes</code></h5>\n\n<p>Specifies paths to additional static vhost-specific Apache configuration files.\nThis option is useful when you need to implement a unique and/or custom\nconfiguration not supported by this module.</p>\n\n<h5><code>ip</code></h5>\n\n<p>The IP address the vhost listens on. Defaults to &#39;undef&#39;.</p>\n\n<h5><code>ip_based</code></h5>\n\n<p>Enables an IP-based vhost. This parameter inhibits the creation of a NameVirtualHost directive, since those are used to funnel requests to name-based vhosts. Defaults to &#39;false&#39;.</p>\n\n<h5><code>logroot</code></h5>\n\n<p>Specifies the location of the virtual host&#39;s logfiles. Defaults to <code>/var/log/&lt;apache log location&gt;/</code>.</p>\n\n<h5><code>log_level</code></h5>\n\n<p>Specifies the verbosity level of the error log. Defaults to <code>warn</code> for the global server configuration and can be overridden on a per-vhost basis using this parameter. Valid value for <code>log_level</code> is one of <code>emerg</code>, <code>alert</code>, <code>crit</code>, <code>error</code>, <code>warn</code>, <code>notice</code>, <code>info</code> or <code>debug</code>.</p>\n\n<h5><code>no_proxy_uris</code></h5>\n\n<p>Specifies URLs you do not want to proxy. This parameter is meant to be used in combination with <code>proxy_dest</code>.</p>\n\n<h5><code>options</code></h5>\n\n<p>Lists the options for the given virtual host</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;site.name.fdqn&#39;:\n      …\n      options =&gt; [&#39;Indexes&#39;,&#39;FollowSymLinks&#39;,&#39;MultiViews&#39;],\n    }\n</code></pre>\n\n<h5><code>override</code></h5>\n\n<p>Sets the overrides for the given virtual host. Accepts an array of AllowOverride arguments.</p>\n\n<h5><code>port</code></h5>\n\n<p>Sets the port the host is configured on.</p>\n\n<h5><code>priority</code></h5>\n\n<p>Sets the relative load-order for Apache httpd VirtualHost configuration files. Defaults to &#39;25&#39;.</p>\n\n<p>If nothing matches the priority, the first name-based vhost will be used. Likewise, passing a higher priority will cause the alphabetically first name-based vhost to be used if no other names match.</p>\n\n<p><em>Note</em>: You should not need to use this parameter. However, if you do use it, be aware that the <code>default_vhost</code> parameter for <code>apache::vhost</code> passes a priority of &#39;15&#39;.</p>\n\n<h5><code>proxy_dest</code></h5>\n\n<p>Specifies the destination address of a proxypass configuration. Defaults to &#39;undef&#39;.</p>\n\n<h5><code>proxy_pass</code></h5>\n\n<p>Specifies an array of path =&gt; uri for a proxypass configuration. Defaults to &#39;undef&#39;.</p>\n\n<p>Example:</p>\n\n<pre lang=\"puppet\"><code>$proxy_pass = [\n  { &#39;path&#39; =&gt; &#39;/a&#39;, &#39;url&#39; =&gt; &#39;http://backend-a/&#39; },\n  { &#39;path&#39; =&gt; &#39;/b&#39;, &#39;url&#39; =&gt; &#39;http://backend-b/&#39; },\n  { &#39;path&#39; =&gt; &#39;/c&#39;, &#39;url&#39; =&gt; &#39;http://backend-a/c&#39; }\n]\n\napache::vhost { &#39;site.name.fdqn&#39;:\n  …\n  proxy_pass       =&gt; $proxy_pass,\n}\n</code></pre>\n\n<h5><code>rack_base_uris</code></h5>\n\n<p>Specifies the resource identifiers for a rack configuration. The file paths specified will be listed as rack application roots for passenger/rack in the <code>_rack.erb</code> template. Defaults to &#39;undef&#39;.</p>\n\n<h5><code>redirect_dest</code></h5>\n\n<p>Specifies the address to redirect to. Defaults to &#39;undef&#39;.</p>\n\n<h5><code>redirect_source</code></h5>\n\n<p>Specifies the source items? that will redirect to the destination specified in <code>redirect_dest</code>. If more than one item for redirect is supplied, the source and destination must be the same length, and the items are order-dependent.</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;site.name.fdqn&#39;:\n      …\n      redirect_source =&gt; [&#39;/images&#39;,&#39;/downloads&#39;],\n      redirect_dest =&gt; [&#39;http://img.example.com/&#39;,&#39;http://downloads.example.com/&#39;],\n    }\n</code></pre>\n\n<h5><code>redirect_status</code></h5>\n\n<p>Specifies the status to append to the redirect. Defaults to &#39;undef&#39;.</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;site.name.fdqn&#39;:\n      …\n      redirect_status =&gt; [&#39;temp&#39;,&#39;permanent&#39;],\n    }\n</code></pre>\n\n<h5><code>request_headers</code></h5>\n\n<p>Specifies additional request headers.</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;site.name.fdqn&#39;:\n      …\n      request_headers =&gt; [\n        &#39;append MirrorID &quot;mirror 12&quot;&#39;,\n        &#39;unset MirrorID&#39;,\n      ],\n    }\n</code></pre>\n\n<h5><code>rewrite_base</code></h5>\n\n<p>Limits the <code>rewrite_rule</code> to the specified base URL. Defaults to &#39;undef&#39;.</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;site.name.fdqn&#39;:\n      …\n      rewrite_rule =&gt; &#39;^index\\.html$ welcome.html&#39;,\n      rewrite_base =&gt; &#39;/blog/&#39;,\n    }\n</code></pre>\n\n<p>The above example would limit the index.html -&gt; welcome.html rewrite to only something inside of <a href=\"http://example.com/blog/\">http://example.com/blog/</a>.</p>\n\n<h5><code>rewrite_cond</code></h5>\n\n<p>Rewrites a URL via <code>rewrite_rule</code> based on the truth of specified conditions. For example</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;site.name.fdqn&#39;:\n      …\n      rewrite_cond =&gt; &#39;%{HTTP_USER_AGENT} ^MSIE&#39;,\n    }\n</code></pre>\n\n<p>will rewrite URLs only if the visitor is using IE. Defaults to &#39;undef&#39;.</p>\n\n<p><em>Note</em>: At the moment, each vhost is limited to a single list of rewrite conditions. In the future, you will be able to specify multiple <code>rewrite_cond</code> and <code>rewrite_rules</code> per vhost, so that different conditions get different rewrites.</p>\n\n<h5><code>rewrite_rule</code></h5>\n\n<p>Creates URL rewrite rules. Defaults to &#39;undef&#39;. This parameter allows you to specify, for example, that anyone trying to access index.html will be served welcome.html.</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;site.name.fdqn&#39;:\n      …\n      rewrite_rule =&gt; &#39;^index\\.html$ welcome.html&#39;,\n    }\n</code></pre>\n\n<h5><code>scriptalias</code></h5>\n\n<p>Defines a directory of CGI scripts to be aliased to the path &#39;/cgi-bin&#39;</p>\n\n<h5><code>scriptaliases</code></h5>\n\n<p>Passes a list of hashes to the vhost to create <code>ScriptAlias</code> or <code>ScriptAliasMatch</code> statements as per the <a href=\"http://httpd.apache.org/docs/current/mod/mod_alias.html\"><code>mod_alias</code> documentation</a>. Each hash is expected to be of the form:</p>\n\n<pre lang=\"puppet\"><code>    scriptaliases =&gt; [\n      {\n        alias =&gt; &#39;/myscript&#39;,\n        path  =&gt; &#39;/usr/share/myscript&#39;,\n      },\n      {\n        aliasmatch =&gt; &#39;^/foo(.*)&#39;,\n        path       =&gt; &#39;/usr/share/fooscripts$1&#39;,\n      },\n      {\n        aliasmatch =&gt; &#39;^/bar/(.*)&#39;,\n        path       =&gt; &#39;/usr/share/bar/wrapper.sh/$1&#39;,\n      },\n      {\n        alias =&gt; &#39;/neatscript&#39;,\n        path  =&gt; &#39;/usr/share/neatscript&#39;,\n      },\n    ]\n</code></pre>\n\n<p>These directives are created in the order specified. As with <code>Alias</code> and <code>AliasMatch</code> directives the more specific aliases should come before the more general ones to avoid shadowing.</p>\n\n<h5><code>serveradmin</code></h5>\n\n<p>Specifies the email address Apache will display when it renders one of its error pages.</p>\n\n<h5><code>serveraliases</code></h5>\n\n<p>Sets the server aliases of the site.</p>\n\n<h5><code>servername</code></h5>\n\n<p>Sets the primary name of the virtual host.</p>\n\n<h5><code>setenv</code></h5>\n\n<p>Used by HTTPD to set environment variables for vhosts. Defaults to &#39;[]&#39;.</p>\n\n<h5><code>setenvif</code></h5>\n\n<p>Used by HTTPD to conditionally set environment variables for vhosts. Defaults to &#39;[]&#39;.</p>\n\n<h5><code>ssl</code></h5>\n\n<p>Enables SSL for the virtual host. SSL vhosts only respond to HTTPS queries. Valid values are &#39;true&#39; or &#39;false&#39;.</p>\n\n<h5><code>ssl_ca</code></h5>\n\n<p>Specifies the certificate authority.</p>\n\n<h5><code>ssl_cert</code></h5>\n\n<p>Specifies the SSL certification.</p>\n\n<h5><code>ssl_protocol</code></h5>\n\n<p>Specifies the SSL Protocol (SSLProtocol).</p>\n\n<h5><code>ssl_cipher</code></h5>\n\n<p>Specifies the SSLCipherSuite.</p>\n\n<h5><code>ssl_honorcipherorder</code></h5>\n\n<p>Sets SSLHonorCipherOrder directive, used to prefer the server&#39;s cipher preference order</p>\n\n<h5><code>ssl_certs_dir</code></h5>\n\n<p>Specifies the location of the SSL certification directory. Defaults to <code>/etc/ssl/certs</code> on Debian and <code>/etc/pki/tls/certs</code> on RedHat.</p>\n\n<h5><code>ssl_chain</code></h5>\n\n<p>Specifies the SSL chain.</p>\n\n<h5><code>ssl_crl</code></h5>\n\n<p>Specifies the certificate revocation list to use.</p>\n\n<h5><code>ssl_crl_path</code></h5>\n\n<p>Specifies the location of the certificate revocation list.</p>\n\n<h5><code>ssl_key</code></h5>\n\n<p>Specifies the SSL key.</p>\n\n<h5><code>ssl_verify_client</code></h5>\n\n<p>Sets <code>SSLVerifyClient</code> directives as per the <a href=\"http://httpd.apache.org/docs/2.2/mod/mod_ssl.html#sslverifyclient\">Apache Core documentation</a>. Defaults to undef.\nAn example:</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;sample.example.net&#39;:\n      …\n      ssl_verify_client =&gt; &#39;optional&#39;,\n    }\n</code></pre>\n\n<h5><code>ssl_verify_depth</code></h5>\n\n<p>Sets <code>SSLVerifyDepth</code> directives as per the <a href=\"http://httpd.apache.org/docs/2.2/mod/mod_ssl.html#sslverifydepth\">Apache Core documentation</a>. Defaults to undef.\nAn example:</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;sample.example.net&#39;:\n      …\n      ssl_verify_depth =&gt; 1,\n    }\n</code></pre>\n\n<h5><code>ssl_options</code></h5>\n\n<p>Sets <code>SSLOptions</code> directives as per the <a href=\"http://httpd.apache.org/docs/2.2/mod/mod_ssl.html#ssloptions\">Apache Core documentation</a>. This is the global setting for the vhost and can be a string or an array. Defaults to undef. A single string example:</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;sample.example.net&#39;:\n      …\n      ssl_options =&gt; &#39;+ExportCertData&#39;,\n    }\n</code></pre>\n\n<p>An array of strings example:</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;sample.example.net&#39;:\n      …\n      ssl_options =&gt; [ &#39;+StrictRequire&#39;, &#39;+ExportCertData&#39; ],\n    }\n</code></pre>\n\n<h5><code>ssl_proxyengine</code></h5>\n\n<p>Specifies whether to use <code>SSLProxyEngine</code> or not. Defaults to <code>false</code>.</p>\n\n<h5><code>vhost_name</code></h5>\n\n<p>This parameter is for use with name-based virtual hosting. Defaults to &#39;*&#39;.</p>\n\n<h5><code>itk</code></h5>\n\n<p>Hash containing infos to configure itk as per the <a href=\"http://mpm-itk.sesse.net/\">ITK documentation</a>.</p>\n\n<p>Keys could be:</p>\n\n<ul>\n<li>user + group</li>\n<li>assignuseridexpr</li>\n<li>assigngroupidexpr</li>\n<li>maxclientvhost</li>\n<li>nice</li>\n<li>limituidrange (Linux 3.5.0 or newer)</li>\n<li>limitgidrange (Linux 3.5.0 or newer)</li>\n</ul>\n\n<p>Usage will typically look like:</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;sample.example.net&#39;:\n      docroot     =&gt; &#39;/path/to/directory&#39;,\n      itk =&gt; {\n        user  =&gt; &#39;someuser&#39;,\n        group =&gt; &#39;somegroup&#39;,\n      },\n    }\n</code></pre>\n\n<h3>Virtual Host Examples</h3>\n\n<p>The Apache module allows you to set up pretty much any configuration of virtual host you might desire. This section will address some common configurations. Please see the <a href=\"https://github.com/puppetlabs/puppetlabs-apache/tree/master/tests\">Tests section</a> for even more examples.</p>\n\n<p>Configure a vhost with a server administrator</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;third.example.com&#39;:\n      port        =&gt; &#39;80&#39;,\n      docroot     =&gt; &#39;/var/www/third&#39;,\n      serveradmin =&gt; &#39;admin@example.com&#39;,\n    }\n</code></pre>\n\n<hr>\n\n<p>Set up a vhost with aliased servers</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;sixth.example.com&#39;:\n      serveraliases =&gt; [\n        &#39;sixth.example.org&#39;,\n        &#39;sixth.example.net&#39;,\n      ],\n      port          =&gt; &#39;80&#39;,\n      docroot       =&gt; &#39;/var/www/fifth&#39;,\n    }\n</code></pre>\n\n<hr>\n\n<p>Configure a vhost with a cgi-bin</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;eleventh.example.com&#39;:\n      port        =&gt; &#39;80&#39;,\n      docroot     =&gt; &#39;/var/www/eleventh&#39;,\n      scriptalias =&gt; &#39;/usr/lib/cgi-bin&#39;,\n    }\n</code></pre>\n\n<hr>\n\n<p>Set up a vhost with a rack configuration</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;fifteenth.example.com&#39;:\n      port           =&gt; &#39;80&#39;,\n      docroot        =&gt; &#39;/var/www/fifteenth&#39;,\n      rack_base_uris =&gt; [&#39;/rackapp1&#39;, &#39;/rackapp2&#39;],\n    }\n</code></pre>\n\n<hr>\n\n<p>Set up a mix of SSL and non-SSL vhosts at the same domain</p>\n\n<pre lang=\"puppet\"><code>    #The non-ssl vhost\n    apache::vhost { &#39;first.example.com non-ssl&#39;:\n      servername =&gt; &#39;first.example.com&#39;,\n      port       =&gt; &#39;80&#39;,\n      docroot    =&gt; &#39;/var/www/first&#39;,\n    }\n\n    #The SSL vhost at the same domain\n    apache::vhost { &#39;first.example.com ssl&#39;:\n      servername =&gt; &#39;first.example.com&#39;,\n      port       =&gt; &#39;443&#39;,\n      docroot    =&gt; &#39;/var/www/first&#39;,\n      ssl        =&gt; true,\n    }\n</code></pre>\n\n<hr>\n\n<p>Configure a vhost to redirect non-SSL connections to SSL</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;sixteenth.example.com non-ssl&#39;:\n      servername      =&gt; &#39;sixteenth.example.com&#39;,\n      port            =&gt; &#39;80&#39;,\n      docroot         =&gt; &#39;/var/www/sixteenth&#39;,\n      redirect_status =&gt; &#39;permanent&#39;\n      redirect_dest   =&gt; &#39;https://sixteenth.example.com/&#39;\n    }\n    apache::vhost { &#39;sixteenth.example.com ssl&#39;:\n      servername =&gt; &#39;sixteenth.example.com&#39;,\n      port       =&gt; &#39;443&#39;,\n      docroot    =&gt; &#39;/var/www/sixteenth&#39;,\n      ssl        =&gt; true,\n    }\n</code></pre>\n\n<hr>\n\n<p>Set up IP-based vhosts on any listen port and have them respond to requests on specific IP addresses. In this example, we will set listening on ports 80 and 81. This is required because the example vhosts are not declared with a port parameter.</p>\n\n<pre lang=\"puppet\"><code>    apache::listen { &#39;80&#39;: }\n    apache::listen { &#39;81&#39;: }\n</code></pre>\n\n<p>Then we will set up the IP-based vhosts</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;first.example.com&#39;:\n      ip       =&gt; &#39;10.0.0.10&#39;,\n      docroot  =&gt; &#39;/var/www/first&#39;,\n      ip_based =&gt; true,\n    }\n    apache::vhost { &#39;second.example.com&#39;:\n      ip       =&gt; &#39;10.0.0.11&#39;,\n      docroot  =&gt; &#39;/var/www/second&#39;,\n      ip_based =&gt; true,\n    }\n</code></pre>\n\n<hr>\n\n<p>Configure a mix of name-based and IP-based vhosts. First, we will add two IP-based vhosts on 10.0.0.10, one SSL and one non-SSL</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;The first IP-based vhost, non-ssl&#39;:\n      servername =&gt; &#39;first.example.com&#39;,\n      ip         =&gt; &#39;10.0.0.10&#39;,\n      port       =&gt; &#39;80&#39;,\n      ip_based   =&gt; true,\n      docroot    =&gt; &#39;/var/www/first&#39;,\n    }\n    apache::vhost { &#39;The first IP-based vhost, ssl&#39;:\n      servername =&gt; &#39;first.example.com&#39;,\n      ip         =&gt; &#39;10.0.0.10&#39;,\n      port       =&gt; &#39;443&#39;,\n      ip_based   =&gt; true,\n      docroot    =&gt; &#39;/var/www/first-ssl&#39;,\n      ssl        =&gt; true,\n    }\n</code></pre>\n\n<p>Then, we will add two name-based vhosts listening on 10.0.0.20</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;second.example.com&#39;:\n      ip      =&gt; &#39;10.0.0.20&#39;,\n      port    =&gt; &#39;80&#39;,\n      docroot =&gt; &#39;/var/www/second&#39;,\n    }\n    apache::vhost { &#39;third.example.com&#39;:\n      ip      =&gt; &#39;10.0.0.20&#39;,\n      port    =&gt; &#39;80&#39;,\n      docroot =&gt; &#39;/var/www/third&#39;,\n    }\n</code></pre>\n\n<p>If you want to add two name-based vhosts so that they will answer on either 10.0.0.10 or 10.0.0.20, you <strong>MUST</strong> declare <code>add_listen =&gt; &#39;false&#39;</code> to disable the otherwise automatic &#39;Listen 80&#39;, as it will conflict with the preceding IP-based vhosts.</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;fourth.example.com&#39;:\n      port       =&gt; &#39;80&#39;,\n      docroot    =&gt; &#39;/var/www/fourth&#39;,\n      add_listen =&gt; false,\n    }\n    apache::vhost { &#39;fifth.example.com&#39;:\n      port       =&gt; &#39;80&#39;,\n      docroot    =&gt; &#39;/var/www/fifth&#39;,\n      add_listen =&gt; false,\n    }\n</code></pre>\n\n<h2>Implementation</h2>\n\n<h3>Classes and Defined Types</h3>\n\n<h4>Class: <code>apache::dev</code></h4>\n\n<p>Installs Apache development libraries</p>\n\n<pre lang=\"puppet\"><code>    class { &#39;apache::dev&#39;: }\n</code></pre>\n\n<p>On FreeBSD you&#39;re required to define <code>apache::package</code> or <code>apache</code> class before <code>apache::dev</code>.</p>\n\n<h4>Defined Type: <code>apache::listen</code></h4>\n\n<p>Controls which ports Apache binds to for listening based on the title:</p>\n\n<pre lang=\"puppet\"><code>    apache::listen { &#39;80&#39;: }\n    apache::listen { &#39;443&#39;: }\n</code></pre>\n\n<p>Declaring this defined type will add all <code>Listen</code> directives to the <code>ports.conf</code> file in the Apache httpd configuration directory.  <code>apache::listen</code> titles should always take the form of: <code>&lt;port&gt;</code>, <code>&lt;ipv4&gt;:&lt;port&gt;</code>, or <code>[&lt;ipv6&gt;]:&lt;port&gt;</code></p>\n\n<p>Apache httpd requires that <code>Listen</code> directives must be added for every port. The <code>apache::vhost</code> defined type will automatically add <code>Listen</code> directives unless the <code>apache::vhost</code> is passed <code>add_listen =&gt; false</code>.</p>\n\n<h4>Defined Type: <code>apache::namevirtualhost</code></h4>\n\n<p>Enables named-based hosting of a virtual host</p>\n\n<pre lang=\"puppet\"><code>    class { &#39;apache::namevirtualhost`: }\n</code></pre>\n\n<p>Declaring this defined type will add all <code>NameVirtualHost</code> directives to the <code>ports.conf</code> file in the Apache https configuration directory. <code>apache::namevirtualhost</code> titles should always take the form of: <code>*</code>, <code>*:&lt;port&gt;</code>, <code>_default_:&lt;port&gt;</code>, <code>&lt;ip&gt;</code>, or <code>&lt;ip&gt;:&lt;port&gt;</code>.</p>\n\n<h4>Defined Type: <code>apache::balancermember</code></h4>\n\n<p>Define members of a proxy_balancer set (mod_proxy_balancer). Very useful when using exported resources.</p>\n\n<p>On every app server you can export a balancermember like this:</p>\n\n<pre lang=\"puppet\"><code>      @@apache::balancermember { &quot;${::fqdn}-puppet00&quot;:\n        balancer_cluster =&gt; &#39;puppet00&#39;,\n        url              =&gt; &quot;ajp://${::fqdn}:8009&quot;\n        options          =&gt; [&#39;ping=5&#39;, &#39;disablereuse=on&#39;, &#39;retry=5&#39;, &#39;ttl=120&#39;],\n      }\n</code></pre>\n\n<p>And on the proxy itself you create the balancer cluster using the defined type apache::balancer:</p>\n\n<pre lang=\"puppet\"><code>      apache::balancer { &#39;puppet00&#39;: }\n</code></pre>\n\n<p>If you need to use ProxySet in the balncer config you can do as so:</p>\n\n<pre lang=\"puppet\"><code>      apache::balancer { &#39;puppet01&#39;:\n        proxy_set =&gt; {&#39;stickysession&#39; =&gt; &#39;JSESSIONID&#39;},\n      }\n</code></pre>\n\n<h3>Templates</h3>\n\n<p>The Apache module relies heavily on templates to enable the <code>vhost</code> and <code>apache::mod</code> defined types. These templates are built based on Facter facts around your operating system. Unless explicitly called out, most templates are not meant for configuration.</p>\n\n<h2>Limitations</h2>\n\n<p>This has been tested on Ubuntu Precise, Debian Wheezy, CentOS 5.8, and FreeBSD 9.1.</p>\n\n<h2>Development</h2>\n\n<h3>Overview</h3>\n\n<p>Puppet Labs modules on the Puppet Forge are open projects, and community contributions are essential for keeping them great. We can’t access the huge number of platforms and myriad of hardware, software, and deployment configurations that Puppet is intended to serve.</p>\n\n<p>We want to keep it as easy as possible to contribute changes so that our modules work in your environment. There are a few guidelines that we need contributors to follow so that we can have a chance of keeping on top of things.</p>\n\n<p>You can read the complete module contribution guide <a href=\"http://projects.puppetlabs.com/projects/module-site/wiki/Module_contributing\">on the Puppet Labs wiki.</a></p>\n\n<h3>Running tests</h3>\n\n<p>This project contains tests for both <a href=\"http://rspec-puppet.com/\">rspec-puppet</a> and <a href=\"https://github.com/puppetlabs/rspec-system\">rspec-system</a> to verify functionality. For in-depth information please see their respective documentation.</p>\n\n<p>Quickstart:</p>\n\n<pre><code>gem install bundler\nbundle install\nbundle exec rake spec\nbundle exec rake spec:system\n</code></pre>\n\n<h2>Copyright and License</h2>\n\n<p>Copyright (C) 2012 <a href=\"https://www.puppetlabs.com/\">Puppet Labs</a> Inc</p>\n\n<p>Puppet Labs can be contacted at: <a href=\"mailto:info@puppetlabs.com\">info@puppetlabs.com</a></p>\n\n<p>Licensed under the Apache License, Version 2.0 (the &quot;License&quot;);\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at</p>\n\n<p><a href=\"http://www.apache.org/licenses/LICENSE-2.0\">http://www.apache.org/licenses/LICENSE-2.0</a></p>\n\n<p>Unless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an &quot;AS IS&quot; BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.</p>\n</section>",
ruby-puppet-forge-2.3.2/spec/fixtures/v3/modules/puppetlabs-apache.json-315-    "changelog": "<section class=\"markdown\"><h2>2013-12-05 Release 0.10.0</h2>\n\n<h3>Summary:</h3>\n\n<p>This release adds FreeBSD osfamily support and various other improvements to some mods.</p>\n\n<h3>Features:</h3>\n\n<ul>\n<li>Add suPHP_UserGroup directive to directory context</li>\n<li>Add support for ScriptAliasMatch directives</li>\n<li>Set SSLOptions StdEnvVars in server context</li>\n<li>No implicit <Directory> entry for ScriptAlias path</li>\n<li>Add support for overriding ErrorDocument</li>\n<li>Add support for AliasMatch directives</li>\n<li>Disable default &quot;allow from all&quot; in vhost-directories</li>\n<li>Add WSGIPythonPath as an optional parameter to mod_wsgi. </li>\n<li>Add mod_rpaf support</li>\n<li>Add directives: IndexOptions, IndexOrderDefault</li>\n<li>Add ability to include additional external configurations in vhost</li>\n<li>need to use the provider variable not the provider key value from the directory hash for matches</li>\n<li>Support for FreeBSD and few other features</li>\n<li>Add new params to apache::mod::mime class</li>\n<li>Allow apache::mod to specify module id and path</li>\n<li>added $server_root parameter</li>\n<li>Add Allow and ExtendedStatus support to mod_status</li>\n<li>Expand vhost/_directories.pp directive support</li>\n<li>Add initial support for nss module (no directives in vhost template yet)</li>\n<li>added peruser and event mpms</li>\n<li>added $service_name parameter</li>\n<li>add parameter for TraceEnable</li>\n<li>Make LogLevel configurable for server and vhost</li>\n<li>Add documentation about $ip</li>\n<li>Add ability to pass ip (instead of wildcard) in default vhost files</li>\n</ul>\n\n<h3>Bugfixes:</h3>\n\n<ul>\n<li>Don&#39;t listen on port or set NameVirtualHost for non-existent vhost</li>\n<li>only apply Directory defaults when provider is a directory</li>\n<li>Working mod_authnz_ldap support on Debian/Ubuntu</li>\n</ul>\n\n<h2>2013-09-06 Release 0.9.0</h2>\n\n<h3>Summary:</h3>\n\n<p>This release adds more parameters to the base apache class and apache defined\nresource to make the module more flexible. It also adds or enhances SuPHP,\nWSGI, and Passenger mod support, and support for the ITK mpm module.</p>\n\n<h3>Backwards-incompatible Changes:</h3>\n\n<ul>\n<li>Remove many default mods that are not normally needed.</li>\n<li>Remove <code>rewrite_base</code> <code>apache::vhost</code> parameter; did not work anyway.</li>\n<li>Specify dependencies on stdlib &gt;=2.4.0 (this was already the case, but\nmaking explicit)</li>\n<li>Deprecate <code>a2mod</code> in favor of the <code>apache::mod::*</code> classes and <code>apache::mod</code>\ndefined resource.</li>\n</ul>\n\n<h3>Features:</h3>\n\n<ul>\n<li><code>apache</code> class\n\n<ul>\n<li>Add <code>httpd_dir</code> parameter to change the location of the configuration\nfiles.</li>\n<li>Add <code>logroot</code> parameter to change the logroot</li>\n<li>Add <code>ports_file</code> parameter to changes the <code>ports.conf</code> file location</li>\n<li>Add <code>keepalive</code> parameter to enable persistent connections</li>\n<li>Add <code>keepalive_timeout</code> parameter to change the timeout</li>\n<li>Update <code>default_mods</code> to be able to take an array of mods to enable.</li>\n</ul></li>\n<li><code>apache::vhost</code>\n\n<ul>\n<li>Add <code>wsgi_daemon_process</code>, <code>wsgi_daemon_process_options</code>,\n<code>wsgi_process_group</code>, and <code>wsgi_script_aliases</code> parameters for per-vhost\nWSGI configuration.</li>\n<li>Add <code>access_log_syslog</code> parameter to enable syslogging.</li>\n<li>Add <code>error_log_syslog</code> parameter to enable syslogging of errors.</li>\n<li>Add <code>directories</code> hash parameter. Please see README for documentation.</li>\n<li>Add <code>sslproxyengine</code> parameter to enable SSLProxyEngine</li>\n<li>Add <code>suphp_addhandler</code>, <code>suphp_engine</code>, and <code>suphp_configpath</code> for\nconfiguring SuPHP.</li>\n<li>Add <code>custom_fragment</code> parameter to allow for arbitrary apache\nconfiguration injection. (Feature pull requests are prefered over using\nthis, but it is available in a pinch.)</li>\n</ul></li>\n<li>Add <code>apache::mod::suphp</code> class for configuring SuPHP.</li>\n<li>Add <code>apache::mod::itk</code> class for configuring ITK mpm module.</li>\n<li>Update <code>apache::mod::wsgi</code> class for global WSGI configuration with\n<code>wsgi_socket_prefix</code> and <code>wsgi_python_home</code> parameters.</li>\n<li>Add README.passenger.md to document the <code>apache::mod::passenger</code> usage.\nAdded <code>passenger_high_performance</code>, <code>passenger_pool_idle_time</code>,\n<code>passenger_max_requests</code>, <code>passenger_stat_throttle_rate</code>, <code>rack_autodetect</code>,\nand <code>rails_autodetect</code> parameters.</li>\n<li>Separate the httpd service resource into a new <code>apache::service</code> class for\ndependency chaining of <code>Class[&#39;apache&#39;] -&gt; &lt;resource&gt; ~&gt;\nClass[&#39;apache::service&#39;]</code></li>\n<li>Added <code>apache::mod::proxy_balancer</code> class for <code>apache::balancer</code></li>\n</ul>\n\n<h3>Bugfixes:</h3>\n\n<ul>\n<li>Change dependency to puppetlabs-concat</li>\n<li>Fix ruby 1.9 bug for <code>a2mod</code></li>\n<li>Change servername to be <code>$::hostname</code> if there is no <code>$::fqdn</code></li>\n<li>Make <code>/etc/ssl/certs</code> the default ssl certs directory for RedHat non-5.</li>\n<li>Make <code>php</code> the default php package for RedHat non-5.</li>\n<li>Made <code>aliases</code> able to take a single alias hash instead of requiring an\narray.</li>\n</ul>\n\n<h2>2013-07-26 Release 0.8.1</h2>\n\n<h3>Bugfixes:</h3>\n\n<ul>\n<li>Update <code>apache::mpm_module</code> detection for worker/prefork</li>\n<li>Update <code>apache::mod::cgi</code> and <code>apache::mod::cgid</code> detection for\nworker/prefork</li>\n</ul>\n\n<h2>2013-07-16 Release 0.8.0</h2>\n\n<h3>Features:</h3>\n\n<ul>\n<li>Add <code>servername</code> parameter to <code>apache</code> class</li>\n<li>Add <code>proxy_set</code> parameter to <code>apache::balancer</code> define</li>\n</ul>\n\n<h3>Bugfixes:</h3>\n\n<ul>\n<li>Fix ordering for multiple <code>apache::balancer</code> clusters</li>\n<li>Fix symlinking for sites-available on Debian-based OSs</li>\n<li>Fix dependency ordering for recursive confdir management</li>\n<li>Fix <code>apache::mod::*</code> to notify the service on config change</li>\n<li>Documentation updates</li>\n</ul>\n\n<h2>2013-07-09 Release 0.7.0</h2>\n\n<h3>Changes:</h3>\n\n<ul>\n<li>Essentially rewrite the module -- too many to list</li>\n<li><code>apache::vhost</code> has many abilities -- see README.md for details</li>\n<li><code>apache::mod::*</code> classes provide httpd mod-loading capabilities</li>\n<li><code>apache</code> base class is much more configurable</li>\n</ul>\n\n<h3>Bugfixes:</h3>\n\n<ul>\n<li>Many. And many more to come</li>\n</ul>\n\n<h2>2013-03-2 Release 0.6.0</h2>\n\n<ul>\n<li>update travis tests (add more supported versions)</li>\n<li>add access log_parameter</li>\n<li>make purging of vhost dir configurable</li>\n</ul>\n\n<h2>2012-08-24 Release 0.4.0</h2>\n\n<h3>Changes:</h3>\n\n<ul>\n<li><code>include apache</code> is now required when using <code>apache::mod::*</code></li>\n</ul>\n\n<h3>Bugfixes:</h3>\n\n<ul>\n<li>Fix syntax for validate_re</li>\n<li>Fix formatting in vhost template</li>\n<li><p>Fix spec tests such that they pass</p>\n\n<p>2012-05-08 Puppet Labs <a href=\"mailto:info@puppetlabs.com\">info@puppetlabs.com</a> - 0.0.4\ne62e362 Fix broken tests for ssl, vhost, vhost::*\n42c6363 Changes to match style guide and pass puppet-lint without error\n42bc8ba changed name =&gt; path for file resources in order to name namevar by it&#39;s name\n72e13de One end too much\n0739641 style guide fixes: &#39;true&#39; &lt;&gt; true, $operatingsystem needs to be $::operatingsystem, etc.\n273f94d fix tests\na35ede5 (#13860) Make a2enmod/a2dismo commands optional\n98d774e (#13860) Autorequire Package[&#39;httpd&#39;]\n05fcec5 (#13073) Add missing puppet spec tests\n541afda (#6899) Remove virtual a2mod definition\n976cb69 (#13072) Move mod python and wsgi package names to params\n323915a (#13060) Add .gitignore to repo\nfdf40af (#13060) Remove pkg directory from source tree\nfd90015 Add LICENSE file and update the ModuleFile\nd3d0d23 Re-enable local php class\nd7516c7 Make management of firewalls configurable for vhosts\n60f83ba Explicitly lookup scope of apache_name in templates.\nf4d287f (#12581) Add explicit ordering for vdir directory\n88a2ac6 (#11706) puppetlabs-apache depends on puppetlabs-firewall\na776a8b (#11071) Fix to work with latest firewall module\n2b79e8b (#11070) Add support for Scientific Linux\n405b3e9 Fix for a2mod\n57b9048 Commit apache::vhost::redirect Manifest\n8862d01 Commit apache::vhost::proxy Manifest\nd5c1fd0 Commit apache::mod::wsgi Manifest\na825ac7 Commit apache::mod::python Manifest\nb77062f Commit Templates\n9a51b4a Vhost File Declarations\n6cf7312 Defaults for Parameters\n6a5b11a Ensure installed\nf672e46 a2mod fix\n8a56ee9 add pthon support to apache</p></li>\n</ul>\n</section>",
##############################################
ruby-puppet-forge-2.3.2/spec/fixtures/v3/releases.json-304-      "downloads": 628084,
ruby-puppet-forge-2.3.2/spec/fixtures/v3/releases.json:305:      "readme": "<section class=\"markdown\"><h1>Puppet Labs Standard Library</h1>\n\n<p><a href=\"https://travis-ci.org/puppetlabs/puppetlabs-stdlib\"><img src=\"https://travis-ci.org/puppetlabs/puppetlabs-stdlib.png?branch=master\" alt=\"Build Status\"></a></p>\n\n<p>This module provides a &quot;standard library&quot; of resources for developing Puppet\nModules.  This modules will include the following additions to Puppet</p>\n\n<ul>\n<li>Stages</li>\n<li>Facts</li>\n<li>Functions</li>\n<li>Defined resource types</li>\n<li>Types</li>\n<li>Providers</li>\n</ul>\n\n<p>This module is officially curated and provided by Puppet Labs.  The modules\nPuppet Labs writes and distributes will make heavy use of this standard\nlibrary.</p>\n\n<p>To report or research a bug with any part of this module, please go to\n<a href=\"http://projects.puppetlabs.com/projects/stdlib\">http://projects.puppetlabs.com/projects/stdlib</a></p>\n\n<h1>Versions</h1>\n\n<p>This module follows semver.org (v1.0.0) versioning guidelines.  The standard\nlibrary module is released as part of <a href=\"http://puppetlabs.com/puppet/puppet-enterprise/\">Puppet\nEnterprise</a> and as a result\nolder versions of Puppet Enterprise that Puppet Labs still supports will have\nbugfix maintenance branches periodically &quot;merged up&quot; into master.  The current\nlist of integration branches are:</p>\n\n<ul>\n<li>v2.1.x (v2.1.1 released in PE 1)</li>\n<li>v2.2.x (Never released as part of PE, only to the Forge)</li>\n<li>v2.3.x (Released in PE 2)</li>\n<li>v3.0.x (Never released as part of PE, only to the Forge)</li>\n<li>v4.0.x (Drops support for Puppet 2.7)</li>\n<li>master (mainline development branch)</li>\n</ul>\n\n<p>The first Puppet Enterprise version including the stdlib module is Puppet\nEnterprise 1.2.</p>\n\n<h1>Compatibility</h1>\n\n<table><thead>\n<tr>\n<th align=\"left\">Puppet Versions</th>\n<th align=\"center\">&lt; 2.6</th>\n<th align=\"center\">2.6</th>\n<th align=\"center\">2.7</th>\n<th align=\"center\">3.x</th>\n</tr>\n</thead><tbody>\n<tr>\n<td align=\"left\"><strong>stdlib 2.x</strong></td>\n<td align=\"center\">no</td>\n<td align=\"center\"><strong>yes</strong></td>\n<td align=\"center\"><strong>yes</strong></td>\n<td align=\"center\">no</td>\n</tr>\n<tr>\n<td align=\"left\"><strong>stdlib 3.x</strong></td>\n<td align=\"center\">no</td>\n<td align=\"center\">no</td>\n<td align=\"center\"><strong>yes</strong></td>\n<td align=\"center\"><strong>yes</strong></td>\n</tr>\n<tr>\n<td align=\"left\"><strong>stdlib 4.x</strong></td>\n<td align=\"center\">no</td>\n<td align=\"center\">no</td>\n<td align=\"center\">no</td>\n<td align=\"center\"><strong>yes</strong></td>\n</tr>\n</tbody></table>\n\n<p>The stdlib module does not work with Puppet versions released prior to Puppet\n2.6.0.</p>\n\n<h2>stdlib 2.x</h2>\n\n<p>All stdlib releases in the 2.0 major version support Puppet 2.6 and Puppet 2.7.</p>\n\n<h2>stdlib 3.x</h2>\n\n<p>The 3.0 major release of stdlib drops support for Puppet 2.6.  Stdlib 3.x\nsupports Puppet 2 and Puppet 3.</p>\n\n<h2>stdlib 4.x</h2>\n\n<p>The 4.0 major release of stdlib drops support for Puppet 2.7.  Stdlib 4.x\nsupports Puppet 3.  Notably, ruby 1.8.5 is no longer supported though ruby\n1.8.7, 1.9.3, and 2.0.0 are fully supported.</p>\n\n<h1>Functions</h1>\n\n<h2>abs</h2>\n\n<p>Returns the absolute value of a number, for example -34.56 becomes\n34.56. Takes a single integer and float value as an argument.</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>any2array</h2>\n\n<p>This converts any object to an array containing that object. Empty argument\nlists are converted to an empty array. Arrays are left untouched. Hashes are\nconverted to arrays of alternating keys and values.</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>bool2num</h2>\n\n<p>Converts a boolean to a number. Converts the values:\nfalse, f, 0, n, and no to 0\ntrue, t, 1, y, and yes to 1\n    Requires a single boolean or string as an input.</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>capitalize</h2>\n\n<p>Capitalizes the first letter of a string or array of strings.\nRequires either a single string or an array as an input.</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>chomp</h2>\n\n<p>Removes the record separator from the end of a string or an array of\nstrings, for example <code>hello\\n</code> becomes <code>hello</code>.\nRequires a single string or array as an input.</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>chop</h2>\n\n<p>Returns a new string with the last character removed. If the string ends\nwith <code>\\r\\n</code>, both characters are removed. Applying chop to an empty\nstring returns an empty string. If you wish to merely remove record\nseparators then you should use the <code>chomp</code> function.\nRequires a string or array of strings as input.</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>concat</h2>\n\n<p>Appends the contents of array 2 onto array 1.</p>\n\n<p><em>Example:</em></p>\n\n<pre><code>concat([&#39;1&#39;,&#39;2&#39;,&#39;3&#39;],[&#39;4&#39;,&#39;5&#39;,&#39;6&#39;])\n</code></pre>\n\n<p>Would result in:</p>\n\n<p>[&#39;1&#39;,&#39;2&#39;,&#39;3&#39;,&#39;4&#39;,&#39;5&#39;,&#39;6&#39;]</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>count</h2>\n\n<p>Takes an array as first argument and an optional second argument.\nCount the number of elements in array that matches second argument.\nIf called with only an array it counts the number of elements that are not nil/undef.</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>defined_with_params</h2>\n\n<p>Takes a resource reference and an optional hash of attributes.</p>\n\n<p>Returns true if a resource with the specified attributes has already been added\nto the catalog, and false otherwise.</p>\n\n<pre><code>user { &#39;dan&#39;:\n  ensure =&gt; present,\n}\n\nif ! defined_with_params(User[dan], {&#39;ensure&#39; =&gt; &#39;present&#39; }) {\n  user { &#39;dan&#39;: ensure =&gt; present, }\n}\n</code></pre>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>delete</h2>\n\n<p>Deletes all instances of a given element from an array, substring from a\nstring, or key from a hash.</p>\n\n<p><em>Examples:</em></p>\n\n<pre><code>delete([&#39;a&#39;,&#39;b&#39;,&#39;c&#39;,&#39;b&#39;], &#39;b&#39;)\nWould return: [&#39;a&#39;,&#39;c&#39;]\n\ndelete({&#39;a&#39;=&gt;1,&#39;b&#39;=&gt;2,&#39;c&#39;=&gt;3}, &#39;b&#39;)\nWould return: {&#39;a&#39;=&gt;1,&#39;c&#39;=&gt;3}\n\ndelete(&#39;abracadabra&#39;, &#39;bra&#39;)\nWould return: &#39;acada&#39;\n</code></pre>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>delete_at</h2>\n\n<p>Deletes a determined indexed value from an array.</p>\n\n<p><em>Examples:</em></p>\n\n<pre><code>delete_at([&#39;a&#39;,&#39;b&#39;,&#39;c&#39;], 1)\n</code></pre>\n\n<p>Would return: [&#39;a&#39;,&#39;c&#39;]</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>dirname</h2>\n\n<p>Returns the <code>dirname</code> of a path.</p>\n\n<p><em>Examples:</em></p>\n\n<pre><code>dirname(&#39;/path/to/a/file.ext&#39;)\n</code></pre>\n\n<p>Would return: &#39;/path/to/a&#39;</p>\n\n<h2>downcase</h2>\n\n<p>Converts the case of a string or all strings in an array to lower case.</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>empty</h2>\n\n<p>Returns true if the variable is empty.</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>ensure_packages</h2>\n\n<p>Takes a list of packages and only installs them if they don&#39;t already exist.</p>\n\n<ul>\n<li><em>Type</em>: statement</li>\n</ul>\n\n<h2>ensure_resource</h2>\n\n<p>Takes a resource type, title, and a list of attributes that describe a\nresource.</p>\n\n<pre><code>user { &#39;dan&#39;:\n  ensure =&gt; present,\n}\n</code></pre>\n\n<p>This example only creates the resource if it does not already exist:</p>\n\n<pre><code>ensure_resource(&#39;user, &#39;dan&#39;, {&#39;ensure&#39; =&gt; &#39;present&#39; })\n</code></pre>\n\n<p>If the resource already exists but does not match the specified parameters,\nthis function will attempt to recreate the resource leading to a duplicate\nresource definition error.</p>\n\n<p>An array of resources can also be passed in and each will be created with\nthe type and parameters specified if it doesn&#39;t already exist.</p>\n\n<pre><code>ensure_resource(&#39;user&#39;, [&#39;dan&#39;,&#39;alex&#39;], {&#39;ensure&#39; =&gt; &#39;present&#39;})\n</code></pre>\n\n<ul>\n<li><em>Type</em>: statement</li>\n</ul>\n\n<h2>flatten</h2>\n\n<p>This function flattens any deeply nested arrays and returns a single flat array\nas a result.</p>\n\n<p><em>Examples:</em></p>\n\n<pre><code>flatten([&#39;a&#39;, [&#39;b&#39;, [&#39;c&#39;]]])\n</code></pre>\n\n<p>Would return: [&#39;a&#39;,&#39;b&#39;,&#39;c&#39;]</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>floor</h2>\n\n<p>Returns the largest integer less or equal to the argument.\nTakes a single numeric value as an argument.</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>fqdn_rotate</h2>\n\n<p>Rotates an array a random number of times based on a nodes fqdn.</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>get_module_path</h2>\n\n<p>Returns the absolute path of the specified module for the current\nenvironment.</p>\n\n<p>Example:\n  $module_path = get_module_path(&#39;stdlib&#39;)</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>getparam</h2>\n\n<p>Takes a resource reference and name of the parameter and\nreturns value of resource&#39;s parameter.</p>\n\n<p><em>Examples:</em></p>\n\n<pre><code>define example_resource($param) {\n}\n\nexample_resource { &quot;example_resource_instance&quot;:\n    param =&gt; &quot;param_value&quot;\n}\n\ngetparam(Example_resource[&quot;example_resource_instance&quot;], &quot;param&quot;)\n</code></pre>\n\n<p>Would return: param_value</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>getvar</h2>\n\n<p>Lookup a variable in a remote namespace.</p>\n\n<p>For example:</p>\n\n<pre><code>$foo = getvar(&#39;site::data::foo&#39;)\n# Equivalent to $foo = $site::data::foo\n</code></pre>\n\n<p>This is useful if the namespace itself is stored in a string:</p>\n\n<pre><code>$datalocation = &#39;site::data&#39;\n$bar = getvar(&quot;${datalocation}::bar&quot;)\n# Equivalent to $bar = $site::data::bar\n</code></pre>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>grep</h2>\n\n<p>This function searches through an array and returns any elements that match\nthe provided regular expression.</p>\n\n<p><em>Examples:</em></p>\n\n<pre><code>grep([&#39;aaa&#39;,&#39;bbb&#39;,&#39;ccc&#39;,&#39;aaaddd&#39;], &#39;aaa&#39;)\n</code></pre>\n\n<p>Would return:</p>\n\n<pre><code>[&#39;aaa&#39;,&#39;aaaddd&#39;]\n</code></pre>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>has_interface_with</h2>\n\n<p>Returns boolean based on kind and value:</p>\n\n<ul>\n<li>macaddress</li>\n<li>netmask</li>\n<li>ipaddress</li>\n<li>network</li>\n</ul>\n\n<p>has_interface_with(&quot;macaddress&quot;, &quot;x:x:x:x:x:x&quot;)\nhas_interface_with(&quot;ipaddress&quot;, &quot;127.0.0.1&quot;)    =&gt; true\netc.</p>\n\n<p>If no &quot;kind&quot; is given, then the presence of the interface is checked:\nhas_interface_with(&quot;lo&quot;)                        =&gt; true</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>has_ip_address</h2>\n\n<p>Returns true if the client has the requested IP address on some interface.</p>\n\n<p>This function iterates through the &#39;interfaces&#39; fact and checks the\n&#39;ipaddress_IFACE&#39; facts, performing a simple string comparison.</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>has_ip_network</h2>\n\n<p>Returns true if the client has an IP address within the requested network.</p>\n\n<p>This function iterates through the &#39;interfaces&#39; fact and checks the\n&#39;network_IFACE&#39; facts, performing a simple string comparision.</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>has_key</h2>\n\n<p>Determine if a hash has a certain key value.</p>\n\n<p>Example:</p>\n\n<pre><code>$my_hash = {&#39;key_one&#39; =&gt; &#39;value_one&#39;}\nif has_key($my_hash, &#39;key_two&#39;) {\n  notice(&#39;we will not reach here&#39;)\n}\nif has_key($my_hash, &#39;key_one&#39;) {\n  notice(&#39;this will be printed&#39;)\n}\n</code></pre>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>hash</h2>\n\n<p>This function converts an array into a hash.</p>\n\n<p><em>Examples:</em></p>\n\n<pre><code>hash([&#39;a&#39;,1,&#39;b&#39;,2,&#39;c&#39;,3])\n</code></pre>\n\n<p>Would return: {&#39;a&#39;=&gt;1,&#39;b&#39;=&gt;2,&#39;c&#39;=&gt;3}</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>is_array</h2>\n\n<p>Returns true if the variable passed to this function is an array.</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>is_domain_name</h2>\n\n<p>Returns true if the string passed to this function is a syntactically correct domain name.</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>is_float</h2>\n\n<p>Returns true if the variable passed to this function is a float.</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>is_function_available</h2>\n\n<p>This function accepts a string as an argument, determines whether the\nPuppet runtime has access to a function by that name.  It returns a\ntrue if the function exists, false if not.</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>is_hash</h2>\n\n<p>Returns true if the variable passed to this function is a hash.</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>is_integer</h2>\n\n<p>Returns true if the variable returned to this string is an integer.</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>is_ip_address</h2>\n\n<p>Returns true if the string passed to this function is a valid IP address.</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>is_mac_address</h2>\n\n<p>Returns true if the string passed to this function is a valid mac address.</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>is_numeric</h2>\n\n<p>Returns true if the variable passed to this function is a number.</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>is_string</h2>\n\n<p>Returns true if the variable passed to this function is a string.</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>join</h2>\n\n<p>This function joins an array into a string using a seperator.</p>\n\n<p><em>Examples:</em></p>\n\n<pre><code>join([&#39;a&#39;,&#39;b&#39;,&#39;c&#39;], &quot;,&quot;)\n</code></pre>\n\n<p>Would result in: &quot;a,b,c&quot;</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>join_keys_to_values</h2>\n\n<p>This function joins each key of a hash to that key&#39;s corresponding value with a\nseparator. Keys and values are cast to strings. The return value is an array in\nwhich each element is one joined key/value pair.</p>\n\n<p><em>Examples:</em></p>\n\n<pre><code>join_keys_to_values({&#39;a&#39;=&gt;1,&#39;b&#39;=&gt;2}, &quot; is &quot;)\n</code></pre>\n\n<p>Would result in: [&quot;a is 1&quot;,&quot;b is 2&quot;]</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>keys</h2>\n\n<p>Returns the keys of a hash as an array.</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>loadyaml</h2>\n\n<p>Load a YAML file containing an array, string, or hash, and return the data\nin the corresponding native data type.</p>\n\n<p>For example:</p>\n\n<pre><code>$myhash = loadyaml(&#39;/etc/puppet/data/myhash.yaml&#39;)\n</code></pre>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>lstrip</h2>\n\n<p>Strips leading spaces to the left of a string.</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>max</h2>\n\n<p>Returns the highest value of all arguments.\nRequires at least one argument.</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>member</h2>\n\n<p>This function determines if a variable is a member of an array.</p>\n\n<p><em>Examples:</em></p>\n\n<pre><code>member([&#39;a&#39;,&#39;b&#39;], &#39;b&#39;)\n</code></pre>\n\n<p>Would return: true</p>\n\n<pre><code>member([&#39;a&#39;,&#39;b&#39;], &#39;c&#39;)\n</code></pre>\n\n<p>Would return: false</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>merge</h2>\n\n<p>Merges two or more hashes together and returns the resulting hash.</p>\n\n<p>For example:</p>\n\n<pre><code>$hash1 = {&#39;one&#39; =&gt; 1, &#39;two&#39;, =&gt; 2}\n$hash2 = {&#39;two&#39; =&gt; &#39;dos&#39;, &#39;three&#39;, =&gt; &#39;tres&#39;}\n$merged_hash = merge($hash1, $hash2)\n# The resulting hash is equivalent to:\n# $merged_hash =  {&#39;one&#39; =&gt; 1, &#39;two&#39; =&gt; &#39;dos&#39;, &#39;three&#39; =&gt; &#39;tres&#39;}\n</code></pre>\n\n<p>When there is a duplicate key, the key in the rightmost hash will &quot;win.&quot;</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>min</h2>\n\n<p>Returns the lowest value of all arguments.\nRequires at least one argument.</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>num2bool</h2>\n\n<p>This function converts a number or a string representation of a number into a\ntrue boolean. Zero or anything non-numeric becomes false. Numbers higher then 0\nbecome true.</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>parsejson</h2>\n\n<p>This function accepts JSON as a string and converts into the correct Puppet\nstructure.</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>parseyaml</h2>\n\n<p>This function accepts YAML as a string and converts it into the correct\nPuppet structure.</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>pick</h2>\n\n<p>This function is similar to a coalesce function in SQL in that it will return\nthe first value in a list of values that is not undefined or an empty string\n(two things in Puppet that will return a boolean false value). Typically,\nthis function is used to check for a value in the Puppet Dashboard/Enterprise\nConsole, and failover to a default value like the following:</p>\n\n<pre><code>$real_jenkins_version = pick($::jenkins_version, &#39;1.449&#39;)\n</code></pre>\n\n<p>The value of $real_jenkins_version will first look for a top-scope variable\ncalled &#39;jenkins_version&#39; (note that parameters set in the Puppet Dashboard/\nEnterprise Console are brought into Puppet as top-scope variables), and,\nfailing that, will use a default value of 1.449.</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>prefix</h2>\n\n<p>This function applies a prefix to all elements in an array.</p>\n\n<p><em>Examples:</em></p>\n\n<pre><code>prefix([&#39;a&#39;,&#39;b&#39;,&#39;c&#39;], &#39;p&#39;)\n</code></pre>\n\n<p>Will return: [&#39;pa&#39;,&#39;pb&#39;,&#39;pc&#39;]</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>range</h2>\n\n<p>When given range in the form of (start, stop) it will extrapolate a range as\nan array.</p>\n\n<p><em>Examples:</em></p>\n\n<pre><code>range(&quot;0&quot;, &quot;9&quot;)\n</code></pre>\n\n<p>Will return: [0,1,2,3,4,5,6,7,8,9]</p>\n\n<pre><code>range(&quot;00&quot;, &quot;09&quot;)\n</code></pre>\n\n<p>Will return: <a href=\"Zero%20padded%20strings%20are%20converted%20to%0Aintegers%20automatically\">0,1,2,3,4,5,6,7,8,9</a></p>\n\n<pre><code>range(&quot;a&quot;, &quot;c&quot;)\n</code></pre>\n\n<p>Will return: [&quot;a&quot;,&quot;b&quot;,&quot;c&quot;]</p>\n\n<pre><code>range(&quot;host01&quot;, &quot;host10&quot;)\n</code></pre>\n\n<p>Will return: [&quot;host01&quot;, &quot;host02&quot;, ..., &quot;host09&quot;, &quot;host10&quot;]</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>reject</h2>\n\n<p>This function searches through an array and rejects all elements that match\nthe provided regular expression.</p>\n\n<p><em>Examples:</em></p>\n\n<pre><code>reject([&#39;aaa&#39;,&#39;bbb&#39;,&#39;ccc&#39;,&#39;aaaddd&#39;], &#39;aaa&#39;)\n</code></pre>\n\n<p>Would return:</p>\n\n<pre><code>[&#39;bbb&#39;,&#39;ccc&#39;]\n</code></pre>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>reverse</h2>\n\n<p>Reverses the order of a string or array.</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>rstrip</h2>\n\n<p>Strips leading spaces to the right of the string.</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>shuffle</h2>\n\n<p>Randomizes the order of a string or array elements.</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>size</h2>\n\n<p>Returns the number of elements in a string or array.</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>sort</h2>\n\n<p>Sorts strings and arrays lexically.</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>squeeze</h2>\n\n<p>Returns a new string where runs of the same character that occur in this set\nare replaced by a single character.</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>str2bool</h2>\n\n<p>This converts a string to a boolean. This attempt to convert strings that\ncontain things like: y, 1, t, true to &#39;true&#39; and strings that contain things\nlike: 0, f, n, false, no to &#39;false&#39;.</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>str2saltedsha512</h2>\n\n<p>This converts a string to a salted-SHA512 password hash (which is used for\nOS X versions &gt;= 10.7). Given any simple string, you will get a hex version\nof a salted-SHA512 password hash that can be inserted into your Puppet\nmanifests as a valid password attribute.</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>strftime</h2>\n\n<p>This function returns formatted time.</p>\n\n<p><em>Examples:</em></p>\n\n<p>To return the time since epoch:</p>\n\n<pre><code>strftime(&quot;%s&quot;)\n</code></pre>\n\n<p>To return the date:</p>\n\n<pre><code>strftime(&quot;%Y-%m-%d&quot;)\n</code></pre>\n\n<p><em>Format meaning:</em></p>\n\n<pre><code>%a - The abbreviated weekday name (``Sun&#39;&#39;)\n%A - The  full  weekday  name (``Sunday&#39;&#39;)\n%b - The abbreviated month name (``Jan&#39;&#39;)\n%B - The  full  month  name (``January&#39;&#39;)\n%c - The preferred local date and time representation\n%C - Century (20 in 2009)\n%d - Day of the month (01..31)\n%D - Date (%m/%d/%y)\n%e - Day of the month, blank-padded ( 1..31)\n%F - Equivalent to %Y-%m-%d (the ISO 8601 date format)\n%h - Equivalent to %b\n%H - Hour of the day, 24-hour clock (00..23)\n%I - Hour of the day, 12-hour clock (01..12)\n%j - Day of the year (001..366)\n%k - hour, 24-hour clock, blank-padded ( 0..23)\n%l - hour, 12-hour clock, blank-padded ( 0..12)\n%L - Millisecond of the second (000..999)\n%m - Month of the year (01..12)\n%M - Minute of the hour (00..59)\n%n - Newline (\n</code></pre>\n\n<p>)\n    %N - Fractional seconds digits, default is 9 digits (nanosecond)\n            %3N  millisecond (3 digits)\n            %6N  microsecond (6 digits)\n            %9N  nanosecond (9 digits)\n    %p - Meridian indicator (<code>AM&#39;&#39;  or</code>PM&#39;&#39;)\n    %P - Meridian indicator (<code>am&#39;&#39;  or</code>pm&#39;&#39;)\n    %r - time, 12-hour (same as %I:%M:%S %p)\n    %R - time, 24-hour (%H:%M)\n    %s - Number of seconds since 1970-01-01 00:00:00 UTC.\n    %S - Second of the minute (00..60)\n    %t - Tab character (    )\n    %T - time, 24-hour (%H:%M:%S)\n    %u - Day of the week as a decimal, Monday being 1. (1..7)\n    %U - Week  number  of the current year,\n            starting with the first Sunday as the first\n            day of the first week (00..53)\n    %v - VMS date (%e-%b-%Y)\n    %V - Week number of year according to ISO 8601 (01..53)\n    %W - Week  number  of the current year,\n            starting with the first Monday as the first\n            day of the first week (00..53)\n    %w - Day of the week (Sunday is 0, 0..6)\n    %x - Preferred representation for the date alone, no time\n    %X - Preferred representation for the time alone, no date\n    %y - Year without a century (00..99)\n    %Y - Year with century\n    %z - Time zone as  hour offset from UTC (e.g. +0900)\n    %Z - Time zone name\n    %% - Literal ``%&#39;&#39; character</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>strip</h2>\n\n<p>This function removes leading and trailing whitespace from a string or from\nevery string inside an array.</p>\n\n<p><em>Examples:</em></p>\n\n<pre><code>strip(&quot;    aaa   &quot;)\n</code></pre>\n\n<p>Would result in: &quot;aaa&quot;</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>suffix</h2>\n\n<p>This function applies a suffix to all elements in an array.</p>\n\n<p><em>Examples:</em></p>\n\n<pre><code>suffix([&#39;a&#39;,&#39;b&#39;,&#39;c&#39;], &#39;p&#39;)\n</code></pre>\n\n<p>Will return: [&#39;ap&#39;,&#39;bp&#39;,&#39;cp&#39;]</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>swapcase</h2>\n\n<p>This function will swap the existing case of a string.</p>\n\n<p><em>Examples:</em></p>\n\n<pre><code>swapcase(&quot;aBcD&quot;)\n</code></pre>\n\n<p>Would result in: &quot;AbCd&quot;</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>time</h2>\n\n<p>This function will return the current time since epoch as an integer.</p>\n\n<p><em>Examples:</em></p>\n\n<pre><code>time()\n</code></pre>\n\n<p>Will return something like: 1311972653</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>to_bytes</h2>\n\n<p>Converts the argument into bytes, for example 4 kB becomes 4096.\nTakes a single string value as an argument.</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>type</h2>\n\n<p>Returns the type when passed a variable. Type can be one of:</p>\n\n<ul>\n<li>string</li>\n<li>array</li>\n<li>hash</li>\n<li>float</li>\n<li>integer</li>\n<li><p>boolean</p></li>\n<li><p><em>Type</em>: rvalue</p></li>\n</ul>\n\n<h2>unique</h2>\n\n<p>This function will remove duplicates from strings and arrays.</p>\n\n<p><em>Examples:</em></p>\n\n<pre><code>unique(&quot;aabbcc&quot;)\n</code></pre>\n\n<p>Will return:</p>\n\n<pre><code>abc\n</code></pre>\n\n<p>You can also use this with arrays:</p>\n\n<pre><code>unique([&quot;a&quot;,&quot;a&quot;,&quot;b&quot;,&quot;b&quot;,&quot;c&quot;,&quot;c&quot;])\n</code></pre>\n\n<p>This returns:</p>\n\n<pre><code>[&quot;a&quot;,&quot;b&quot;,&quot;c&quot;]\n</code></pre>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>upcase</h2>\n\n<p>Converts a string or an array of strings to uppercase.</p>\n\n<p><em>Examples:</em></p>\n\n<pre><code>upcase(&quot;abcd&quot;)\n</code></pre>\n\n<p>Will return:</p>\n\n<pre><code>ASDF\n</code></pre>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>uriescape</h2>\n\n<p>Urlencodes a string or array of strings.\nRequires either a single string or an array as an input.</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>validate_absolute_path</h2>\n\n<p>Validate the string represents an absolute path in the filesystem.  This function works\nfor windows and unix style paths.</p>\n\n<p>The following values will pass:</p>\n\n<pre><code>$my_path = &quot;C:/Program Files (x86)/Puppet Labs/Puppet&quot;\nvalidate_absolute_path($my_path)\n$my_path2 = &quot;/var/lib/puppet&quot;\nvalidate_absolute_path($my_path2)\n</code></pre>\n\n<p>The following values will fail, causing compilation to abort:</p>\n\n<pre><code>validate_absolute_path(true)\nvalidate_absolute_path([ &#39;var/lib/puppet&#39;, &#39;/var/foo&#39; ])\nvalidate_absolute_path([ &#39;/var/lib/puppet&#39;, &#39;var/foo&#39; ])\n$undefined = undef\nvalidate_absolute_path($undefined)\n</code></pre>\n\n<ul>\n<li><em>Type</em>: statement</li>\n</ul>\n\n<h2>validate_array</h2>\n\n<p>Validate that all passed values are array data structures. Abort catalog\ncompilation if any value fails this check.</p>\n\n<p>The following values will pass:</p>\n\n<pre><code>$my_array = [ &#39;one&#39;, &#39;two&#39; ]\nvalidate_array($my_array)\n</code></pre>\n\n<p>The following values will fail, causing compilation to abort:</p>\n\n<pre><code>validate_array(true)\nvalidate_array(&#39;some_string&#39;)\n$undefined = undef\nvalidate_array($undefined)\n</code></pre>\n\n<ul>\n<li><em>Type</em>: statement</li>\n</ul>\n\n<h2>validate_augeas</h2>\n\n<p>Perform validation of a string using an Augeas lens\nThe first argument of this function should be a string to\ntest, and the second argument should be the name of the Augeas lens to use.\nIf Augeas fails to parse the string with the lens, the compilation will\nabort with a parse error.</p>\n\n<p>A third argument can be specified, listing paths which should\nnot be found in the file. The <code>$file</code> variable points to the location\nof the temporary file being tested in the Augeas tree.</p>\n\n<p>For example, if you want to make sure your passwd content never contains\na user <code>foo</code>, you could write:</p>\n\n<pre><code>validate_augeas($passwdcontent, &#39;Passwd.lns&#39;, [&#39;$file/foo&#39;])\n</code></pre>\n\n<p>Or if you wanted to ensure that no users used the &#39;/bin/barsh&#39; shell,\nyou could use:</p>\n\n<pre><code>validate_augeas($passwdcontent, &#39;Passwd.lns&#39;, [&#39;$file/*[shell=&quot;/bin/barsh&quot;]&#39;]\n</code></pre>\n\n<p>If a fourth argument is specified, this will be the error message raised and\nseen by the user.</p>\n\n<p>A helpful error message can be returned like this:</p>\n\n<pre><code>validate_augeas($sudoerscontent, &#39;Sudoers.lns&#39;, [], &#39;Failed to validate sudoers content with Augeas&#39;)\n</code></pre>\n\n<ul>\n<li><em>Type</em>: statement</li>\n</ul>\n\n<h2>validate_bool</h2>\n\n<p>Validate that all passed values are either true or false. Abort catalog\ncompilation if any value fails this check.</p>\n\n<p>The following values will pass:</p>\n\n<pre><code>$iamtrue = true\nvalidate_bool(true)\nvalidate_bool(true, true, false, $iamtrue)\n</code></pre>\n\n<p>The following values will fail, causing compilation to abort:</p>\n\n<pre><code>$some_array = [ true ]\nvalidate_bool(&quot;false&quot;)\nvalidate_bool(&quot;true&quot;)\nvalidate_bool($some_array)\n</code></pre>\n\n<ul>\n<li><em>Type</em>: statement</li>\n</ul>\n\n<h2>validate_cmd</h2>\n\n<p>Perform validation of a string with an external command.\nThe first argument of this function should be a string to\ntest, and the second argument should be a path to a test command\ntaking a file as last argument. If the command, launched against\na tempfile containing the passed string, returns a non-null value,\ncompilation will abort with a parse error.</p>\n\n<p>If a third argument is specified, this will be the error message raised and\nseen by the user.</p>\n\n<p>A helpful error message can be returned like this:</p>\n\n<p>Example:</p>\n\n<pre><code>validate_cmd($sudoerscontent, &#39;/usr/sbin/visudo -c -f&#39;, &#39;Visudo failed to validate sudoers content&#39;)\n</code></pre>\n\n<ul>\n<li><em>Type</em>: statement</li>\n</ul>\n\n<h2>validate_hash</h2>\n\n<p>Validate that all passed values are hash data structures. Abort catalog\ncompilation if any value fails this check.</p>\n\n<p>The following values will pass:</p>\n\n<pre><code>$my_hash = { &#39;one&#39; =&gt; &#39;two&#39; }\nvalidate_hash($my_hash)\n</code></pre>\n\n<p>The following values will fail, causing compilation to abort:</p>\n\n<pre><code>validate_hash(true)\nvalidate_hash(&#39;some_string&#39;)\n$undefined = undef\nvalidate_hash($undefined)\n</code></pre>\n\n<ul>\n<li><em>Type</em>: statement</li>\n</ul>\n\n<h2>validate_re</h2>\n\n<p>Perform simple validation of a string against one or more regular\nexpressions. The first argument of this function should be a string to\ntest, and the second argument should be a stringified regular expression\n(without the // delimiters) or an array of regular expressions.  If none\nof the regular expressions match the string passed in, compilation will\nabort with a parse error.</p>\n\n<p>If a third argument is specified, this will be the error message raised and\nseen by the user.</p>\n\n<p>The following strings will validate against the regular expressions:</p>\n\n<pre><code>validate_re(&#39;one&#39;, &#39;^one$&#39;)\nvalidate_re(&#39;one&#39;, [ &#39;^one&#39;, &#39;^two&#39; ])\n</code></pre>\n\n<p>The following strings will fail to validate, causing compilation to abort:</p>\n\n<pre><code>validate_re(&#39;one&#39;, [ &#39;^two&#39;, &#39;^three&#39; ])\n</code></pre>\n\n<p>A helpful error message can be returned like this:</p>\n\n<pre><code>validate_re($::puppetversion, &#39;^2.7&#39;, &#39;The $puppetversion fact value does not match 2.7&#39;)\n</code></pre>\n\n<ul>\n<li><em>Type</em>: statement</li>\n</ul>\n\n<h2>validate_slength</h2>\n\n<p>Validate that the first argument is a string (or an array of strings), and\nless/equal to than the length of the second argument.  It fails if the first\nargument is not a string or array of strings, and if arg 2 is not convertable\nto a number.</p>\n\n<p>The following values will pass:</p>\n\n<p>validate_slength(&quot;discombobulate&quot;,17)\n  validate_slength([&quot;discombobulate&quot;,&quot;moo&quot;],17)</p>\n\n<p>The following valueis will not:</p>\n\n<p>validate_slength(&quot;discombobulate&quot;,1)\n  validate_slength([&quot;discombobulate&quot;,&quot;thermometer&quot;],5)</p>\n\n<ul>\n<li><em>Type</em>: statement</li>\n</ul>\n\n<h2>validate_string</h2>\n\n<p>Validate that all passed values are string data structures. Abort catalog\ncompilation if any value fails this check.</p>\n\n<p>The following values will pass:</p>\n\n<pre><code>$my_string = &quot;one two&quot;\nvalidate_string($my_string, &#39;three&#39;)\n</code></pre>\n\n<p>The following values will fail, causing compilation to abort:</p>\n\n<pre><code>validate_string(true)\nvalidate_string([ &#39;some&#39;, &#39;array&#39; ])\n$undefined = undef\nvalidate_string($undefined)\n</code></pre>\n\n<ul>\n<li><em>Type</em>: statement</li>\n</ul>\n\n<h2>values</h2>\n\n<p>When given a hash this function will return the values of that hash.</p>\n\n<p><em>Examples:</em></p>\n\n<pre><code>$hash = {\n  &#39;a&#39; =&gt; 1,\n  &#39;b&#39; =&gt; 2,\n  &#39;c&#39; =&gt; 3,\n}\nvalues($hash)\n</code></pre>\n\n<p>This example would return:</p>\n\n<pre><code>[1,2,3]\n</code></pre>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>values_at</h2>\n\n<p>Finds value inside an array based on location.</p>\n\n<p>The first argument is the array you want to analyze, and the second element can\nbe a combination of:</p>\n\n<ul>\n<li>A single numeric index</li>\n<li>A range in the form of &#39;start-stop&#39; (eg. 4-9)</li>\n<li>An array combining the above</li>\n</ul>\n\n<p><em>Examples</em>:</p>\n\n<pre><code>values_at([&#39;a&#39;,&#39;b&#39;,&#39;c&#39;], 2)\n</code></pre>\n\n<p>Would return [&#39;c&#39;].</p>\n\n<pre><code>values_at([&#39;a&#39;,&#39;b&#39;,&#39;c&#39;], [&quot;0-1&quot;])\n</code></pre>\n\n<p>Would return [&#39;a&#39;,&#39;b&#39;].</p>\n\n<pre><code>values_at([&#39;a&#39;,&#39;b&#39;,&#39;c&#39;,&#39;d&#39;,&#39;e&#39;], [0, &quot;2-3&quot;])\n</code></pre>\n\n<p>Would return [&#39;a&#39;,&#39;c&#39;,&#39;d&#39;].</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>zip</h2>\n\n<p>Takes one element from first array and merges corresponding elements from second array. This generates a sequence of n-element arrays, where n is one more than the count of arguments.</p>\n\n<p><em>Example:</em></p>\n\n<pre><code>zip([&#39;1&#39;,&#39;2&#39;,&#39;3&#39;],[&#39;4&#39;,&#39;5&#39;,&#39;6&#39;])\n</code></pre>\n\n<p>Would result in:</p>\n\n<pre><code>[&quot;1&quot;, &quot;4&quot;], [&quot;2&quot;, &quot;5&quot;], [&quot;3&quot;, &quot;6&quot;]\n</code></pre>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<p><em>This page autogenerated on 2013-04-11 13:54:25 -0700</em></p>\n</section>",
ruby-puppet-forge-2.3.2/spec/fixtures/v3/releases.json-306-      "changelog": "<section class=\"plaintext\"><pre>2013-05-06 - Jeff McCune &lt;jeff@puppetlabs.com&gt; - 4.1.0\n * (#20582) Restore facter_dot_d to stdlib for PE users (3b887c8)\n * (maint) Update Gemfile with GEM_FACTER_VERSION (f44d535)\n\n2013-05-06 - Alex Cline &lt;acline@us.ibm.com&gt; - 4.1.0\n * Terser method of string to array conversion courtesy of ethooz. (d38bce0)\n\n2013-05-06 - Alex Cline &lt;acline@us.ibm.com&gt; 4.1.0\n * Refactor ensure_resource expectations (b33cc24)\n\n2013-05-06 - Alex Cline &lt;acline@us.ibm.com&gt; 4.1.0\n * Changed str-to-array conversion and removed abbreviation. (de253db)\n\n2013-05-03 - Alex Cline &lt;acline@us.ibm.com&gt; 4.1.0\n * (#20548) Allow an array of resource titles to be passed into the ensure_resource function (e08734a)\n\n2013-05-02 - Raphaël Pinson &lt;raphael.pinson@camptocamp.com&gt; - 4.1.0\n * Add a dirname function (2ba9e47)\n\n2013-04-29 - Mark Smith-Guerrero &lt;msmithgu@gmail.com&gt; - 4.1.0\n * (maint) Fix a small typo in hash() description (928036a)\n\n2013-04-12 - Jeff McCune &lt;jeff@puppetlabs.com&gt; - 4.0.2\n * Update user information in gemspec to make the intent of the Gem clear.\n\n2013-04-11 - Jeff McCune &lt;jeff@puppetlabs.com&gt; - 4.0.1\n * Fix README function documentation (ab3e30c)\n\n2013-04-11 - Jeff McCune &lt;jeff@puppetlabs.com&gt; - 4.0.0\n * stdlib 4.0 drops support with Puppet 2.7\n * stdlib 4.0 preserves support with Puppet 3\n\n2013-04-11 - Jeff McCune &lt;jeff@puppetlabs.com&gt; - 4.0.0\n * Add ability to use puppet from git via bundler (9c5805f)\n\n2013-04-10 - Jeff McCune &lt;jeff@puppetlabs.com&gt; - 4.0.0\n * (maint) Make stdlib usable as a Ruby GEM (e81a45e)\n\n2013-04-10 - Erik Dalén &lt;dalen@spotify.com&gt; - 4.0.0\n * Add a count function (f28550e)\n\n2013-03-31 - Amos Shapira &lt;ashapira@atlassian.com&gt; - 4.0.0\n * (#19998) Implement any2array (7a2fb80)\n\n2013-03-29 - Steve Huff &lt;shuff@vecna.org&gt; - 4.0.0\n * (19864) num2bool match fix (8d217f0)\n\n2013-03-20 - Erik Dalén &lt;dalen@spotify.com&gt; - 4.0.0\n * Allow comparisons of Numeric and number as String (ff5dd5d)\n\n2013-03-26 - Richard Soderberg &lt;rsoderberg@mozilla.com&gt; - 4.0.0\n * add suffix function to accompany the prefix function (88a93ac)\n\n2013-03-19 - Kristof Willaert &lt;kristof.willaert@gmail.com&gt; - 4.0.0\n * Add floor function implementation and unit tests (0527341)\n\n2012-04-03 - Eric Shamow &lt;eric@puppetlabs.com&gt; - 4.0.0\n * (#13610) Add is_function_available to stdlib (961dcab)\n\n2012-12-17 - Justin Lambert &lt;jlambert@eml.cc&gt; - 4.0.0\n * str2bool should return a boolean if called with a boolean (5d5a4d4)\n\n2012-10-23 - Uwe Stuehler &lt;ustuehler@team.mobile.de&gt; - 4.0.0\n * Fix number of arguments check in flatten() (e80207b)\n\n2013-03-11 - Jeff McCune &lt;jeff@puppetlabs.com&gt; - 4.0.0\n * Add contributing document (96e19d0)\n\n2013-03-04 - Raphaël Pinson &lt;raphael.pinson@camptocamp.com&gt; - 4.0.0\n * Add missing documentation for validate_augeas and validate_cmd to README.markdown (a1510a1)\n\n2013-02-14 - Joshua Hoblitt &lt;jhoblitt@cpan.org&gt; - 4.0.0\n * (#19272) Add has_element() function (95cf3fe)\n\n2013-02-07 - Raphaël Pinson &lt;raphael.pinson@camptocamp.com&gt; - 4.0.0\n * validate_cmd(): Use Puppet::Util::Execution.execute when available (69248df)\n\n2012-12-06 - Raphaël Pinson &lt;raphink@gmail.com&gt; - 4.0.0\n * Add validate_augeas function (3a97c23)\n\n2012-12-06 - Raphaël Pinson &lt;raphink@gmail.com&gt; - 4.0.0\n * Add validate_cmd function (6902cc5)\n\n2013-01-14 - David Schmitt &lt;david@dasz.at&gt; - 4.0.0\n * Add geppetto project definition (b3fc0a3)\n\n2013-01-02 - Jaka Hudoklin &lt;jakahudoklin@gmail.com&gt; - 4.0.0\n * Add getparam function to get defined resource parameters (20e0e07)\n\n2013-01-05 - Jeff McCune &lt;jeff@puppetlabs.com&gt; - 4.0.0\n * (maint) Add Travis CI Support (d082046)\n\n2012-12-04 - Jeff McCune &lt;jeff@puppetlabs.com&gt; - 4.0.0\n * Clarify that stdlib 3 supports Puppet 3 (3a6085f)\n\n2012-11-30 - Erik Dalén &lt;dalen@spotify.com&gt; - 4.0.0\n * maint: style guideline fixes (7742e5f)\n\n2012-11-09 - James Fryman &lt;james@frymanet.com&gt; - 4.0.0\n * puppet-lint cleanup (88acc52)\n\n2012-11-06 - Joe Julian &lt;me@joejulian.name&gt; - 4.0.0\n * Add function, uriescape, to URI.escape strings. Redmine #17459 (fd52b8d)\n\n2012-09-18 - Chad Metcalf &lt;chad@wibidata.com&gt; - 3.2.0\n * Add an ensure_packages function. (8a8c09e)\n\n2012-11-23 - Erik Dalén &lt;dalen@spotify.com&gt; - 3.2.0\n * (#17797) min() and max() functions (9954133)\n\n2012-05-23 - Peter Meier &lt;peter.meier@immerda.ch&gt; - 3.2.0\n * (#14670) autorequire a file_line resource&#x27;s path (dfcee63)\n\n2012-11-19 - Joshua Harlan Lifton &lt;lifton@puppetlabs.com&gt; - 3.2.0\n * Add join_keys_to_values function (ee0f2b3)\n\n2012-11-17 - Joshua Harlan Lifton &lt;lifton@puppetlabs.com&gt; - 3.2.0\n * Extend delete function for strings and hashes (7322e4d)\n\n2012-08-03 - Gary Larizza &lt;gary@puppetlabs.com&gt; - 3.2.0\n * Add the pick() function (ba6dd13)\n\n2012-03-20 - Wil Cooley &lt;wcooley@pdx.edu&gt; - 3.2.0\n * (#13974) Add predicate functions for interface facts (f819417)\n\n2012-11-06 - Joe Julian &lt;me@joejulian.name&gt; - 3.2.0\n * Add function, uriescape, to URI.escape strings. Redmine #17459 (70f4a0e)\n\n2012-10-25 - Jeff McCune &lt;jeff@puppetlabs.com&gt; - 3.1.1\n * (maint) Fix spec failures resulting from Facter API changes (97f836f)\n\n2012-10-23 - Matthaus Owens &lt;matthaus@puppetlabs.com&gt; - 3.1.0\n * Add PE facts to stdlib (cdf3b05)\n\n2012-08-16 - Jeff McCune &lt;jeff@puppetlabs.com&gt; - 3.0.1\n * Fix accidental removal of facts_dot_d.rb in 3.0.0 release\n\n2012-08-16 - Jeff McCune &lt;jeff@puppetlabs.com&gt; - 3.0.0\n * stdlib 3.0 drops support with Puppet 2.6\n * stdlib 3.0 preserves support with Puppet 2.7\n\n2012-08-07 - Dan Bode &lt;dan@puppetlabs.com&gt; - 3.0.0\n * Add function ensure_resource and defined_with_params (ba789de)\n\n2012-07-10 - Hailee Kenney &lt;hailee@puppetlabs.com&gt; - 3.0.0\n * (#2157) Remove facter_dot_d for compatibility with external facts (f92574f)\n\n2012-04-10 - Chris Price &lt;chris@puppetlabs.com&gt; - 3.0.0\n * (#13693) moving logic from local spec_helper to puppetlabs_spec_helper (85f96df)\n\n2012-10-25 - Jeff McCune &lt;jeff@puppetlabs.com&gt; - 2.5.1\n * (maint) Fix spec failures resulting from Facter API changes (97f836f)\n\n2012-10-23 - Matthaus Owens &lt;matthaus@puppetlabs.com&gt; - 2.5.0\n * Add PE facts to stdlib (cdf3b05)\n\n2012-08-15 - Dan Bode &lt;dan@puppetlabs.com&gt; - 2.5.0\n * Explicitly load functions used by ensure_resource (9fc3063)\n\n2012-08-13 - Dan Bode &lt;dan@puppetlabs.com&gt; - 2.5.0\n * Add better docs about duplicate resource failures (97d327a)\n\n2012-08-13 - Dan Bode &lt;dan@puppetlabs.com&gt; - 2.5.0\n * Handle undef for parameter argument (4f8b133)\n\n2012-08-07 - Dan Bode &lt;dan@puppetlabs.com&gt; - 2.5.0\n * Add function ensure_resource and defined_with_params (a0cb8cd)\n\n2012-08-20 - Jeff McCune &lt;jeff@puppetlabs.com&gt; - 2.5.0\n * Disable tests that fail on 2.6.x due to #15912 (c81496e)\n\n2012-08-20 - Jeff McCune &lt;jeff@puppetlabs.com&gt; - 2.5.0\n * (Maint) Fix mis-use of rvalue functions as statements (4492913)\n\n2012-08-20 - Jeff McCune &lt;jeff@puppetlabs.com&gt; - 2.5.0\n * Add .rspec file to repo root (88789e8)\n\n2012-06-07 - Chris Price &lt;chris@puppetlabs.com&gt; - 2.4.0\n * Add support for a &#x27;match&#x27; parameter to file_line (a06c0d8)\n\n2012-08-07 - Erik Dalén &lt;dalen@spotify.com&gt; - 2.4.0\n * (#15872) Add to_bytes function (247b69c)\n\n2012-07-19 - Jeff McCune &lt;jeff@puppetlabs.com&gt; - 2.4.0\n * (Maint) use PuppetlabsSpec::PuppetInternals.scope (master) (deafe88)\n\n2012-07-10 - Hailee Kenney &lt;hailee@puppetlabs.com&gt; - 2.4.0\n * (#2157) Make facts_dot_d compatible with external facts (5fb0ddc)\n\n2012-03-16 - Steve Traylen &lt;steve.traylen@cern.ch&gt; - 2.4.0\n * (#13205) Rotate array&#x2F;string randomley based on fqdn, fqdn_rotate() (fef247b)\n\n2012-05-22 - Peter Meier &lt;peter.meier@immerda.ch&gt; - 2.3.3\n * fix regression in #11017 properly (f0a62c7)\n\n2012-05-10 - Jeff McCune &lt;jeff@puppetlabs.com&gt; - 2.3.3\n * Fix spec tests using the new spec_helper (7d34333)\n\n2012-05-10 - Puppet Labs &lt;support@puppetlabs.com&gt; - 2.3.2\n * Make file_line default to ensure =&gt; present (1373e70)\n * Memoize file_line spec instance variables (20aacc5)\n * Fix spec tests using the new spec_helper (1ebfa5d)\n * (#13595) initialize_everything_for_tests couples modules Puppet ver (3222f35)\n * (#13439) Fix MRI 1.9 issue with spec_helper (15c5fd1)\n * (#13439) Fix test failures with Puppet 2.6.x (665610b)\n * (#13439) refactor spec helper for compatibility with both puppet 2.7 and master (82194ca)\n * (#13494) Specify the behavior of zero padded strings (61891bb)\n\n2012-03-29 Puppet Labs &lt;support@puppetlabs.com&gt; - 2.1.3\n* (#11607) Add Rakefile to enable spec testing\n* (#12377) Avoid infinite loop when retrying require json\n\n2012-03-13 Puppet Labs &lt;support@puppetlabs.com&gt; - 2.3.1\n* (#13091) Fix LoadError bug with puppet apply and puppet_vardir fact\n\n2012-03-12 Puppet Labs &lt;support@puppetlabs.com&gt; - 2.3.0\n* Add a large number of new Puppet functions\n* Backwards compatibility preserved with 2.2.x\n\n2011-12-30 Puppet Labs &lt;support@puppetlabs.com&gt; - 2.2.1\n* Documentation only release for the Forge\n\n2011-12-30 Puppet Labs &lt;support@puppetlabs.com&gt; - 2.1.2\n* Documentation only release for PE 2.0.x\n\n2011-11-08 Puppet Labs &lt;support@puppetlabs.com&gt; - 2.2.0\n* #10285 - Refactor json to use pson instead.\n* Maint  - Add watchr autotest script\n* Maint  - Make rspec tests work with Puppet 2.6.4\n* #9859  - Add root_home fact and tests\n\n2011-08-18 Puppet Labs &lt;support@puppetlabs.com&gt; - 2.1.1\n* Change facts.d paths to match Facter 2.0 paths.\n* &#x2F;etc&#x2F;facter&#x2F;facts.d\n* &#x2F;etc&#x2F;puppetlabs&#x2F;facter&#x2F;facts.d\n\n2011-08-17 Puppet Labs &lt;support@puppetlabs.com&gt; - 2.1.0\n* Add R.I. Pienaar&#x27;s facts.d custom facter fact\n* facts defined in &#x2F;etc&#x2F;facts.d and &#x2F;etc&#x2F;puppetlabs&#x2F;facts.d are\n  automatically loaded now.\n\n2011-08-04 Puppet Labs &lt;support@puppetlabs.com&gt; - 2.0.0\n* Rename whole_line to file_line\n* This is an API change and as such motivating a 2.0.0 release according to semver.org.\n\n2011-08-04 Puppet Labs &lt;support@puppetlabs.com&gt; - 1.1.0\n* Rename append_line to whole_line\n* This is an API change and as such motivating a 1.1.0 release.\n\n2011-08-04 Puppet Labs &lt;support@puppetlabs.com&gt; - 1.0.0\n* Initial stable release\n* Add validate_array and validate_string functions\n* Make merge() function work with Ruby 1.8.5\n* Add hash merging function\n* Add has_key function\n* Add loadyaml() function\n* Add append_line native\n\n2011-06-21 Jeff McCune &lt;jeff@puppetlabs.com&gt; - 0.1.7\n* Add validate_hash() and getvar() functions\n\n2011-06-15 Jeff McCune &lt;jeff@puppetlabs.com&gt; - 0.1.6\n* Add anchor resource type to provide containment for composite classes\n\n2011-06-03 Jeff McCune &lt;jeff@puppetlabs.com&gt; - 0.1.5\n* Add validate_bool() function to stdlib\n\n0.1.4 2011-05-26 Jeff McCune &lt;jeff@puppetlabs.com&gt;\n* Move most stages after main\n\n0.1.3 2011-05-25 Jeff McCune &lt;jeff@puppetlabs.com&gt;\n* Add validate_re() function\n\n0.1.2 2011-05-24 Jeff McCune &lt;jeff@puppetlabs.com&gt;\n* Update to add annotated tag\n\n0.1.1 2011-05-24 Jeff McCune &lt;jeff@puppetlabs.com&gt;\n* Add stdlib::stages class with a standard set of stages\n</pre></section>",
##############################################
ruby-puppet-forge-2.3.2/spec/fixtures/v3/releases.json-741-                "name": "chain",
ruby-puppet-forge-2.3.2/spec/fixtures/v3/releases.json:742:                "doc": "      Name of the chain to use. Can be one of the built-ins:\n\n      * INPUT\n      * FORWARD\n      * OUTPUT\n      * PREROUTING\n      * POSTROUTING\n\n      Or you can provide a user-based chain.\n\n      The default value is 'INPUT'.\n  Values can match `/^[a-zA-Z0-9\\-_]+$/`.  Requires features iptables."
ruby-puppet-forge-2.3.2/spec/fixtures/v3/releases.json-743-              },
##############################################
ruby-puppet-forge-2.3.2/spec/fixtures/v3/releases.json-753-                "name": "iniface",
ruby-puppet-forge-2.3.2/spec/fixtures/v3/releases.json:754:                "doc": "      Input interface to filter on.\n  Values can match `/^[a-zA-Z0-9\\-\\._\\+]+$/`.  Requires features interface_match."
ruby-puppet-forge-2.3.2/spec/fixtures/v3/releases.json-755-              },
##############################################
ruby-puppet-forge-2.3.2/spec/fixtures/v3/releases.json-757-                "name": "outiface",
ruby-puppet-forge-2.3.2/spec/fixtures/v3/releases.json:758:                "doc": "      Output interface to filter on.\n  Values can match `/^[a-zA-Z0-9\\-\\._\\+]+$/`.  Requires features interface_match."
ruby-puppet-forge-2.3.2/spec/fixtures/v3/releases.json-759-              },
##############################################
ruby-puppet-forge-2.3.2/spec/fixtures/v3/releases.json-797-                "name": "burst",
ruby-puppet-forge-2.3.2/spec/fixtures/v3/releases.json:798:                "doc": "      Rate limiting burst value (per second) before limit checks apply.\n  Values can match `/^\\d+$/`.  Requires features rate_limiting."
ruby-puppet-forge-2.3.2/spec/fixtures/v3/releases.json-799-              },
##############################################
ruby-puppet-forge-2.3.2/spec/fixtures/v3/releases.json-827-                "name": "name",
ruby-puppet-forge-2.3.2/spec/fixtures/v3/releases.json:828:                "doc": "      The canonical name of the rule. This name is also used for ordering\n      so make sure you prefix the rule with a number:\n\n          000 this runs first\n          999 this runs last\n\n      Depending on the provider, the name of the rule can be stored using\n      the comment feature of the underlying firewall subsystem.\n  Values can match `/^\\d+[[:alpha:][:digit:][:punct:][:space:]]+$/`."
ruby-puppet-forge-2.3.2/spec/fixtures/v3/releases.json-829-              },
##############################################
ruby-puppet-forge-2.3.2/spec/fixtures/v3/releases.json-1210-      "downloads": 51733,
ruby-puppet-forge-2.3.2/spec/fixtures/v3/releases.json:1211:      "readme": "<section class=\"markdown\"><h1>Puppet Labs Standard Library</h1>\n\n<p>This module provides a &quot;standard library&quot; of resources for developing Puppet\nModules.  This modules will include the following additions to Puppet</p>\n\n<ul>\n<li>Stages</li>\n<li>Facts</li>\n<li>Functions</li>\n<li>Defined resource types</li>\n<li>Types</li>\n<li>Providers</li>\n</ul>\n\n<p>This module is officially curated and provided by Puppet Labs.  The modules\nPuppet Labs writes and distributes will make heavy use of this standard\nlibrary.</p>\n\n<p>To report or research a bug with any part of this module, please go to\n<a href=\"http://projects.puppetlabs.com/projects/stdlib\">http://projects.puppetlabs.com/projects/stdlib</a></p>\n\n<h1>Versions</h1>\n\n<p>This module follows semver.org (v1.0.0) versioning guidelines.  The standard\nlibrary module is released as part of <a href=\"http://puppetlabs.com/puppet/puppet-enterprise/\">Puppet\nEnterprise</a> and as a result\nolder versions of Puppet Enterprise that Puppet Labs still supports will have\nbugfix maintenance branches periodically &quot;merged up&quot; into master.  The current\nlist of integration branches are:</p>\n\n<ul>\n<li>v2.1.x (v2.1.1 released in PE 1.2, 1.2.1, 1.2.3, 1.2.4)</li>\n<li>v2.2.x (Never released as part of PE, only to the Forge)</li>\n<li>v2.3.x (Released in PE 2.5.x)</li>\n<li>master (mainline development branch)</li>\n</ul>\n\n<p>The first Puppet Enterprise version including the stdlib module is Puppet\nEnterprise 1.2.</p>\n\n<h1>Compatibility</h1>\n\n<p>The stdlib module does not work with Puppet versions released prior to Puppet\n2.6.0.</p>\n\n<h2>stdlib 2.x</h2>\n\n<p>All stdlib releases in the 2.0 major version support Puppet 2.6 and Puppet 2.7.</p>\n\n<h2>stdlib 3.x</h2>\n\n<p>The 3.0 major release of stdlib drops support for Puppet 2.6.  Stdlib 3.x\nsupports Puppet 2.7.</p>\n\n<h1>Functions</h1>\n\n<h2>abs</h2>\n\n<p>Returns the absolute value of a number, for example -34.56 becomes 34.56. Takes\na single integer and float value as an argument.</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>bool2num</h2>\n\n<p>Converts a boolean to a number. Converts the values:\nfalse, f, 0, n, and no to 0\ntrue, t, 1, y, and yes to 1\n    Requires a single boolean or string as an input.</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>capitalize</h2>\n\n<p>Capitalizes the first letter of a string or array of strings.\nRequires either a single string or an array as an input.</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>chomp</h2>\n\n<p>Removes the record separator from the end of a string or an array of strings,\nfor example <code>hello\\n</code> becomes <code>hello</code>.  Requires a single string or array as an\ninput.</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>chop</h2>\n\n<p>Returns a new string with the last character removed. If the string ends\nwith <code>\\r\\n</code>, both characters are removed. Applying chop to an empty\nstring returns an empty string. If you wish to merely remove record\nseparators then you should use the <code>chomp</code> function.\nRequires a string or array of strings as input.</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>defined_with_params</h2>\n\n<p>Takes a resource reference and an optional hash of attributes.</p>\n\n<p>Returns true if a resource with the specified attributes has already been added\nto the catalog, and false otherwise.</p>\n\n<pre><code>user { &#39;dan&#39;:\n  ensure =&gt; present,\n}\n\nif ! defined_with_params(User[dan], {&#39;ensure&#39; =&gt; &#39;present&#39; }) {\n  user { &#39;dan&#39;: ensure =&gt; present, }\n}\n</code></pre>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>delete</h2>\n\n<p>Deletes a selected element from an array.</p>\n\n<p><em>Examples:</em></p>\n\n<pre><code>delete([&#39;a&#39;,&#39;b&#39;,&#39;c&#39;], &#39;b&#39;)\n</code></pre>\n\n<p>Would return: [&#39;a&#39;,&#39;c&#39;]</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>delete_at</h2>\n\n<p>Deletes a determined indexed value from an array.</p>\n\n<p><em>Examples:</em></p>\n\n<pre><code>delete_at([&#39;a&#39;,&#39;b&#39;,&#39;c&#39;], 1)\n</code></pre>\n\n<p>Would return: [&#39;a&#39;,&#39;c&#39;]</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>downcase</h2>\n\n<p>Converts the case of a string or all strings in an array to lower case.</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>empty</h2>\n\n<p>Returns true if the variable is empty.</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>ensure_resource</h2>\n\n<p>Takes a resource type, title, and a list of attributes that describe a\nresource.</p>\n\n<pre><code>user { &#39;dan&#39;:\n  ensure =&gt; present,\n}\n</code></pre>\n\n<p>This example only creates the resource if it does not already exist:</p>\n\n<pre><code>ensure_resource(&#39;user, &#39;dan&#39;, {&#39;ensure&#39; =&gt; &#39;present&#39; })\n</code></pre>\n\n<p>If the resource already exists but does not match the specified parameters,\nthis function will attempt to recreate the resource leading to a duplicate\nresource definition error.</p>\n\n<ul>\n<li><em>Type</em>: statement</li>\n</ul>\n\n<h2>flatten</h2>\n\n<p>This function flattens any deeply nested arrays and returns a single flat array\nas a result.</p>\n\n<p><em>Examples:</em></p>\n\n<pre><code>flatten([&#39;a&#39;, [&#39;b&#39;, [&#39;c&#39;]]])\n</code></pre>\n\n<p>Would return: [&#39;a&#39;,&#39;b&#39;,&#39;c&#39;]</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>fqdn_rotate</h2>\n\n<p>Rotates an array a random number of times based on a nodes fqdn.</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>get_module_path</h2>\n\n<p>Returns the absolute path of the specified module for the current\nenvironment.</p>\n\n<p>Example:\n  $module_path = get_module_path(&#39;stdlib&#39;)</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>getvar</h2>\n\n<p>Lookup a variable in a remote namespace.</p>\n\n<p>For example:</p>\n\n<pre><code>$foo = getvar(&#39;site::data::foo&#39;)\n# Equivalent to $foo = $site::data::foo\n</code></pre>\n\n<p>This is useful if the namespace itself is stored in a string:</p>\n\n<pre><code>$datalocation = &#39;site::data&#39;\n$bar = getvar(&quot;${datalocation}::bar&quot;)\n# Equivalent to $bar = $site::data::bar\n</code></pre>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>grep</h2>\n\n<p>This function searches through an array and returns any elements that match\nthe provided regular expression.</p>\n\n<p><em>Examples:</em></p>\n\n<pre><code>grep([&#39;aaa&#39;,&#39;bbb&#39;,&#39;ccc&#39;,&#39;aaaddd&#39;], &#39;aaa&#39;)\n</code></pre>\n\n<p>Would return:</p>\n\n<pre><code>[&#39;aaa&#39;,&#39;aaaddd&#39;]\n</code></pre>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>has_key</h2>\n\n<p>Determine if a hash has a certain key value.</p>\n\n<p>Example:</p>\n\n<pre><code>$my_hash = {&#39;key_one&#39; =&gt; &#39;value_one&#39;}\nif has_key($my_hash, &#39;key_two&#39;) {\n  notice(&#39;we will not reach here&#39;)\n}\nif has_key($my_hash, &#39;key_one&#39;) {\n  notice(&#39;this will be printed&#39;)\n}\n</code></pre>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>hash</h2>\n\n<p>This function converts and array into a hash.</p>\n\n<p><em>Examples:</em></p>\n\n<pre><code>hash([&#39;a&#39;,1,&#39;b&#39;,2,&#39;c&#39;,3])\n</code></pre>\n\n<p>Would return: {&#39;a&#39;=&gt;1,&#39;b&#39;=&gt;2,&#39;c&#39;=&gt;3}</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>is_array</h2>\n\n<p>Returns true if the variable passed to this function is an array.</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>is_domain_name</h2>\n\n<p>Returns true if the string passed to this function is a syntactically correct domain name.</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>is_float</h2>\n\n<p>Returns true if the variable passed to this function is a float.</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>is_hash</h2>\n\n<p>Returns true if the variable passed to this function is a hash.</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>is_integer</h2>\n\n<p>Returns true if the variable returned to this string is an integer.</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>is_ip_address</h2>\n\n<p>Returns true if the string passed to this function is a valid IP address.</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>is_mac_address</h2>\n\n<p>Returns true if the string passed to this function is a valid mac address.</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>is_numeric</h2>\n\n<p>Returns true if the variable passed to this function is a number.</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>is_string</h2>\n\n<p>Returns true if the variable passed to this function is a string.</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>join</h2>\n\n<p>This function joins an array into a string using a seperator.</p>\n\n<p><em>Examples:</em></p>\n\n<pre><code>join([&#39;a&#39;,&#39;b&#39;,&#39;c&#39;], &quot;,&quot;)\n</code></pre>\n\n<p>Would result in: &quot;a,b,c&quot;</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>keys</h2>\n\n<p>Returns the keys of a hash as an array.</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>loadyaml</h2>\n\n<p>Load a YAML file containing an array, string, or hash, and return the data\nin the corresponding native data type.</p>\n\n<p>For example:</p>\n\n<pre><code>$myhash = loadyaml(&#39;/etc/puppet/data/myhash.yaml&#39;)\n</code></pre>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>lstrip</h2>\n\n<p>Strips leading spaces to the left of a string.</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>member</h2>\n\n<p>This function determines if a variable is a member of an array.</p>\n\n<p><em>Examples:</em></p>\n\n<pre><code>member([&#39;a&#39;,&#39;b&#39;], &#39;b&#39;)\n</code></pre>\n\n<p>Would return: true</p>\n\n<pre><code>member([&#39;a&#39;,&#39;b&#39;], &#39;c&#39;)\n</code></pre>\n\n<p>Would return: false</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>merge</h2>\n\n<p>Merges two or more hashes together and returns the resulting hash.</p>\n\n<p>For example:</p>\n\n<pre><code>$hash1 = {&#39;one&#39; =&gt; 1, &#39;two&#39;, =&gt; 2}\n$hash2 = {&#39;two&#39; =&gt; &#39;dos&#39;, &#39;three&#39;, =&gt; &#39;tres&#39;}\n$merged_hash = merge($hash1, $hash2)\n# The resulting hash is equivalent to:\n# $merged_hash =  {&#39;one&#39; =&gt; 1, &#39;two&#39; =&gt; &#39;dos&#39;, &#39;three&#39; =&gt; &#39;tres&#39;}\n</code></pre>\n\n<p>When there is a duplicate key, the key in the rightmost hash will &quot;win.&quot;</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>num2bool</h2>\n\n<p>This function converts a number into a true boolean. Zero becomes false. Numbers\nhigher then 0 become true.</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>parsejson</h2>\n\n<p>This function accepts JSON as a string and converts into the correct Puppet\nstructure.</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>parseyaml</h2>\n\n<p>This function accepts YAML as a string and converts it into the correct\nPuppet structure.</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>prefix</h2>\n\n<p>This function applies a prefix to all elements in an array.</p>\n\n<p><em>Examles:</em></p>\n\n<pre><code>prefix([&#39;a&#39;,&#39;b&#39;,&#39;c&#39;], &#39;p&#39;)\n</code></pre>\n\n<p>Will return: [&#39;pa&#39;,&#39;pb&#39;,&#39;pc&#39;]</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>range</h2>\n\n<p>When given range in the form of (start, stop) it will extrapolate a range as\nan array.</p>\n\n<p><em>Examples:</em></p>\n\n<pre><code>range(&quot;0&quot;, &quot;9&quot;)\n</code></pre>\n\n<p>Will return: [0,1,2,3,4,5,6,7,8,9]</p>\n\n<pre><code>range(&quot;00&quot;, &quot;09&quot;)\n</code></pre>\n\n<p>Will return: <a href=\"Zero%20padded%20strings%20are%20converted%20to%0Aintegers%20automatically\">0,1,2,3,4,5,6,7,8,9</a></p>\n\n<pre><code>range(&quot;a&quot;, &quot;c&quot;)\n</code></pre>\n\n<p>Will return: [&quot;a&quot;,&quot;b&quot;,&quot;c&quot;]</p>\n\n<pre><code>range(&quot;host01&quot;, &quot;host10&quot;)\n</code></pre>\n\n<p>Will return: [&quot;host01&quot;, &quot;host02&quot;, ..., &quot;host09&quot;, &quot;host10&quot;]</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>reverse</h2>\n\n<p>Reverses the order of a string or array.</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>rstrip</h2>\n\n<p>Strips leading spaces to the right of the string.</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>shuffle</h2>\n\n<p>Randomizes the order of a string or array elements.</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>size</h2>\n\n<p>Returns the number of elements in a string or array.</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>sort</h2>\n\n<p>Sorts strings and arrays lexically.</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>squeeze</h2>\n\n<p>Returns a new string where runs of the same character that occur in this set\nare replaced by a single character.</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>str2bool</h2>\n\n<p>This converts a string to a boolean. This attempt to convert strings that\ncontain things like: y, 1, t, true to &#39;true&#39; and strings that contain things\nlike: 0, f, n, false, no to &#39;false&#39;.</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>str2saltedsha512</h2>\n\n<p>This converts a string to a salted-SHA512 password hash (which is used for OS X\nversions &gt;= 10.7). Given any simple string, you will get a hex version of a\nsalted-SHA512 password hash that can be inserted into your Puppet manifests as\na valid password attribute.</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>strftime</h2>\n\n<p>This function returns formatted time.</p>\n\n<p><em>Examples:</em></p>\n\n<p>To return the time since epoch:</p>\n\n<pre><code>strftime(&quot;%s&quot;)\n</code></pre>\n\n<p>To return the date:</p>\n\n<pre><code>strftime(&quot;%Y-%m-%d&quot;)\n</code></pre>\n\n<p><em>Format meaning:</em></p>\n\n<pre><code>%a - The abbreviated weekday name (``Sun&#39;&#39;)\n%A - The  full  weekday  name (``Sunday&#39;&#39;)\n%b - The abbreviated month name (``Jan&#39;&#39;)\n%B - The  full  month  name (``January&#39;&#39;)\n%c - The preferred local date and time representation\n%C - Century (20 in 2009)\n%d - Day of the month (01..31)\n%D - Date (%m/%d/%y)\n%e - Day of the month, blank-padded ( 1..31)\n%F - Equivalent to %Y-%m-%d (the ISO 8601 date format)\n%h - Equivalent to %b\n%H - Hour of the day, 24-hour clock (00..23)\n%I - Hour of the day, 12-hour clock (01..12)\n%j - Day of the year (001..366)\n%k - hour, 24-hour clock, blank-padded ( 0..23)\n%l - hour, 12-hour clock, blank-padded ( 0..12)\n%L - Millisecond of the second (000..999)\n%m - Month of the year (01..12)\n%M - Minute of the hour (00..59)\n%n - Newline (\n</code></pre>\n\n<p>)\n    %N - Fractional seconds digits, default is 9 digits (nanosecond)\n            %3N  millisecond (3 digits)\n            %6N  microsecond (6 digits)\n            %9N  nanosecond (9 digits)\n    %p - Meridian indicator (<code>AM&#39;&#39;  or</code>PM&#39;&#39;)\n    %P - Meridian indicator (<code>am&#39;&#39;  or</code>pm&#39;&#39;)\n    %r - time, 12-hour (same as %I:%M:%S %p)\n    %R - time, 24-hour (%H:%M)\n    %s - Number of seconds since 1970-01-01 00:00:00 UTC.\n    %S - Second of the minute (00..60)\n    %t - Tab character (    )\n    %T - time, 24-hour (%H:%M:%S)\n    %u - Day of the week as a decimal, Monday being 1. (1..7)\n    %U - Week  number  of the current year,\n            starting with the first Sunday as the first\n            day of the first week (00..53)\n    %v - VMS date (%e-%b-%Y)\n    %V - Week number of year according to ISO 8601 (01..53)\n    %W - Week  number  of the current year,\n            starting with the first Monday as the first\n            day of the first week (00..53)\n    %w - Day of the week (Sunday is 0, 0..6)\n    %x - Preferred representation for the date alone, no time\n    %X - Preferred representation for the time alone, no date\n    %y - Year without a century (00..99)\n    %Y - Year with century\n    %z - Time zone as  hour offset from UTC (e.g. +0900)\n    %Z - Time zone name\n    %% - Literal ``%&#39;&#39; character</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>strip</h2>\n\n<p>This function removes leading and trailing whitespace from a string or from\nevery string inside an array.</p>\n\n<p><em>Examples:</em></p>\n\n<pre><code>strip(&quot;    aaa   &quot;)\n</code></pre>\n\n<p>Would result in: &quot;aaa&quot;</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>swapcase</h2>\n\n<p>This function will swap the existing case of a string.</p>\n\n<p><em>Examples:</em></p>\n\n<pre><code>swapcase(&quot;aBcD&quot;)\n</code></pre>\n\n<p>Would result in: &quot;AbCd&quot;</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>time</h2>\n\n<p>This function will return the current time since epoch as an integer.</p>\n\n<p><em>Examples:</em></p>\n\n<pre><code>time()\n</code></pre>\n\n<p>Will return something like: 1311972653</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>to_bytes</h2>\n\n<p>Converts the argument into bytes, for example 4 kB becomes 4096.\nTakes a single string value as an argument.</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>type</h2>\n\n<p>Returns the type when passed a variable. Type can be one of:</p>\n\n<ul>\n<li>string</li>\n<li>array</li>\n<li>hash</li>\n<li>float</li>\n<li>integer</li>\n<li><p>boolean</p></li>\n<li><p><em>Type</em>: rvalue</p></li>\n</ul>\n\n<h2>unique</h2>\n\n<p>This function will remove duplicates from strings and arrays.</p>\n\n<p><em>Examples:</em></p>\n\n<pre><code>unique(&quot;aabbcc&quot;)\n</code></pre>\n\n<p>Will return:</p>\n\n<pre><code>abc\n</code></pre>\n\n<p>You can also use this with arrays:</p>\n\n<pre><code>unique([&quot;a&quot;,&quot;a&quot;,&quot;b&quot;,&quot;b&quot;,&quot;c&quot;,&quot;c&quot;])\n</code></pre>\n\n<p>This returns:</p>\n\n<pre><code>[&quot;a&quot;,&quot;b&quot;,&quot;c&quot;]\n</code></pre>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>upcase</h2>\n\n<p>Converts a string or an array of strings to uppercase.</p>\n\n<p><em>Examples:</em></p>\n\n<pre><code>upcase(&quot;abcd&quot;)\n</code></pre>\n\n<p>Will return:</p>\n\n<pre><code>ABCD\n</code></pre>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>validate_absolute_path</h2>\n\n<p>Validate the string represents an absolute path in the filesystem.  This function works\nfor windows and unix style paths.</p>\n\n<p>The following values will pass:</p>\n\n<pre><code>$my_path = &quot;C:/Program Files (x86)/Puppet Labs/Puppet&quot;\nvalidate_absolute_path($my_path)\n$my_path2 = &quot;/var/lib/puppet&quot;\nvalidate_absolute_path($my_path2)\n</code></pre>\n\n<p>The following values will fail, causing compilation to abort:</p>\n\n<pre><code>validate_absolute_path(true)\nvalidate_absolute_path([ &#39;var/lib/puppet&#39;, &#39;/var/foo&#39; ])\nvalidate_absolute_path([ &#39;/var/lib/puppet&#39;, &#39;var/foo&#39; ])\n$undefined = undef\nvalidate_absolute_path($undefined)\n</code></pre>\n\n<ul>\n<li><em>Type</em>: statement</li>\n</ul>\n\n<h2>validate_array</h2>\n\n<p>Validate that all passed values are array data structures. Abort catalog\ncompilation if any value fails this check.</p>\n\n<p>The following values will pass:</p>\n\n<pre><code>$my_array = [ &#39;one&#39;, &#39;two&#39; ]\nvalidate_array($my_array)\n</code></pre>\n\n<p>The following values will fail, causing compilation to abort:</p>\n\n<pre><code>validate_array(true)\nvalidate_array(&#39;some_string&#39;)\n$undefined = undef\nvalidate_array($undefined)\n</code></pre>\n\n<ul>\n<li><em>Type</em>: statement</li>\n</ul>\n\n<h2>validate_bool</h2>\n\n<p>Validate that all passed values are either true or false. Abort catalog\ncompilation if any value fails this check.</p>\n\n<p>The following values will pass:</p>\n\n<pre><code>$iamtrue = true\nvalidate_bool(true)\nvalidate_bool(true, true, false, $iamtrue)\n</code></pre>\n\n<p>The following values will fail, causing compilation to abort:</p>\n\n<pre><code>$some_array = [ true ]\nvalidate_bool(&quot;false&quot;)\nvalidate_bool(&quot;true&quot;)\nvalidate_bool($some_array)\n</code></pre>\n\n<ul>\n<li><em>Type</em>: statement</li>\n</ul>\n\n<h2>validate_hash</h2>\n\n<p>Validate that all passed values are hash data structures. Abort catalog\ncompilation if any value fails this check.</p>\n\n<p>The following values will pass:</p>\n\n<pre><code>$my_hash = { &#39;one&#39; =&gt; &#39;two&#39; }\nvalidate_hash($my_hash)\n</code></pre>\n\n<p>The following values will fail, causing compilation to abort:</p>\n\n<pre><code>validate_hash(true)\nvalidate_hash(&#39;some_string&#39;)\n$undefined = undef\nvalidate_hash($undefined)\n</code></pre>\n\n<ul>\n<li><em>Type</em>: statement</li>\n</ul>\n\n<h2>validate_re</h2>\n\n<p>Perform simple validation of a string against one or more regular\nexpressions. The first argument of this function should be a string to\ntest, and the second argument should be a stringified regular expression\n(without the // delimiters) or an array of regular expressions.  If none\nof the regular expressions match the string passed in, compilation will\nabort with a parse error.</p>\n\n<p>If a third argument is specified, this will be the error message raised and\nseen by the user.</p>\n\n<p>The following strings will validate against the regular expressions:</p>\n\n<pre><code>validate_re(&#39;one&#39;, &#39;^one$&#39;)\nvalidate_re(&#39;one&#39;, [ &#39;^one&#39;, &#39;^two&#39; ])\n</code></pre>\n\n<p>The following strings will fail to validate, causing compilation to abort:</p>\n\n<pre><code>validate_re(&#39;one&#39;, [ &#39;^two&#39;, &#39;^three&#39; ])\n</code></pre>\n\n<p>A helpful error message can be returned like this:</p>\n\n<pre><code>validate_re($::puppetversion, &#39;^2.7&#39;, &#39;The $puppetversion fact value does not match 2.7&#39;)\n</code></pre>\n\n<ul>\n<li><em>Type</em>: statement</li>\n</ul>\n\n<h2>validate_slength</h2>\n\n<p>Validate that the first argument is a string (or an array of strings), and\nless/equal to than the length of the second argument.  It fails if the first\nargument is not a string or array of strings, and if arg 2 is not convertable\nto a number.</p>\n\n<p>The following values will pass:</p>\n\n<p>validate_slength(&quot;discombobulate&quot;,17)\n  validate_slength([&quot;discombobulate&quot;,&quot;moo&quot;],17)</p>\n\n<p>The following valueis will not:</p>\n\n<p>validate_slength(&quot;discombobulate&quot;,1)\n  validate_slength([&quot;discombobulate&quot;,&quot;thermometer&quot;],5)</p>\n\n<ul>\n<li><em>Type</em>: statement</li>\n</ul>\n\n<h2>validate_string</h2>\n\n<p>Validate that all passed values are string data structures. Abort catalog\ncompilation if any value fails this check.</p>\n\n<p>The following values will pass:</p>\n\n<pre><code>$my_string = &quot;one two&quot;\nvalidate_string($my_string, &#39;three&#39;)\n</code></pre>\n\n<p>The following values will fail, causing compilation to abort:</p>\n\n<pre><code>validate_string(true)\nvalidate_string([ &#39;some&#39;, &#39;array&#39; ])\n$undefined = undef\nvalidate_string($undefined)\n</code></pre>\n\n<ul>\n<li><em>Type</em>: statement</li>\n</ul>\n\n<h2>values</h2>\n\n<p>When given a hash this function will return the values of that hash.</p>\n\n<p><em>Examples:</em></p>\n\n<pre><code>$hash = {\n  &#39;a&#39; =&gt; 1,\n  &#39;b&#39; =&gt; 2,\n  &#39;c&#39; =&gt; 3,\n}\nvalues($hash)\n</code></pre>\n\n<p>This example would return:</p>\n\n<pre><code>[1,2,3]\n</code></pre>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>values_at</h2>\n\n<p>Finds value inside an array based on location.</p>\n\n<p>The first argument is the array you want to analyze, and the second element can\nbe a combination of:</p>\n\n<ul>\n<li>A single numeric index</li>\n<li>A range in the form of &#39;start-stop&#39; (eg. 4-9)</li>\n<li>An array combining the above</li>\n</ul>\n\n<p><em>Examples</em>:</p>\n\n<pre><code>values_at([&#39;a&#39;,&#39;b&#39;,&#39;c&#39;], 2)\n</code></pre>\n\n<p>Would return [&#39;c&#39;].</p>\n\n<pre><code>values_at([&#39;a&#39;,&#39;b&#39;,&#39;c&#39;], [&quot;0-1&quot;])\n</code></pre>\n\n<p>Would return [&#39;a&#39;,&#39;b&#39;].</p>\n\n<pre><code>values_at([&#39;a&#39;,&#39;b&#39;,&#39;c&#39;,&#39;d&#39;,&#39;e&#39;], [0, &quot;2-3&quot;])\n</code></pre>\n\n<p>Would return [&#39;a&#39;,&#39;c&#39;,&#39;d&#39;].</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>zip</h2>\n\n<p>Takes one element from first array and merges corresponding elements from second array. This generates a sequence of n-element arrays, where n is one more than the count of arguments.</p>\n\n<p><em>Example:</em></p>\n\n<pre><code>zip([&#39;1&#39;,&#39;2&#39;,&#39;3&#39;],[&#39;4&#39;,&#39;5&#39;,&#39;6&#39;])\n</code></pre>\n\n<p>Would result in:</p>\n\n<pre><code>[&quot;1&quot;, &quot;4&quot;], [&quot;2&quot;, &quot;5&quot;], [&quot;3&quot;, &quot;6&quot;]\n</code></pre>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n</section>",
ruby-puppet-forge-2.3.2/spec/fixtures/v3/releases.json-1212-      "changelog": "<section class=\"plaintext\"><pre>2012-11-28 - Peter Meier &lt;peter.meier@immerda.ch&gt; - 3.2.0\n * Add reject() function (a79b2cd)\n\n2012-09-18 - Chad Metcalf &lt;chad@wibidata.com&gt; - 3.2.0\n * Add an ensure_packages function. (8a8c09e)\n\n2012-11-23 - Erik Dalén &lt;dalen@spotify.com&gt; - 3.2.0\n * (#17797) min() and max() functions (9954133)\n\n2012-05-23 - Peter Meier &lt;peter.meier@immerda.ch&gt; - 3.2.0\n * (#14670) autorequire a file_line resource&#x27;s path (dfcee63)\n\n2012-11-19 - Joshua Harlan Lifton &lt;lifton@puppetlabs.com&gt; - 3.2.0\n * Add join_keys_to_values function (ee0f2b3)\n\n2012-11-17 - Joshua Harlan Lifton &lt;lifton@puppetlabs.com&gt; - 3.2.0\n * Extend delete function for strings and hashes (7322e4d)\n\n2012-08-03 - Gary Larizza &lt;gary@puppetlabs.com&gt; - 3.2.0\n * Add the pick() function (ba6dd13)\n\n2012-03-20 - Wil Cooley &lt;wcooley@pdx.edu&gt; - 3.2.0\n * (#13974) Add predicate functions for interface facts (f819417)\n\n2012-11-06 - Joe Julian &lt;me@joejulian.name&gt; - 3.2.0\n * Add function, uriescape, to URI.escape strings. Redmine #17459 (70f4a0e)\n\n2012-10-25 - Jeff McCune &lt;jeff@puppetlabs.com&gt; - 3.1.1\n * (maint) Fix spec failures resulting from Facter API changes (97f836f)\n\n2012-10-23 - Matthaus Owens &lt;matthaus@puppetlabs.com&gt; - 3.1.0\n * Add PE facts to stdlib (cdf3b05)\n\n2012-08-16 - Jeff McCune &lt;jeff@puppetlabs.com&gt; - 3.0.1\n * Fix accidental removal of facts_dot_d.rb in 3.0.0 release\n\n2012-08-16 - Jeff McCune &lt;jeff@puppetlabs.com&gt; - 3.0.0\n * stdlib 3.0 drops support with Puppet 2.6\n * stdlib 3.0 preserves support with Puppet 2.7\n\n2012-08-07 - Dan Bode &lt;dan@puppetlabs.com&gt; - 3.0.0\n * Add function ensure_resource and defined_with_params (ba789de)\n\n2012-07-10 - Hailee Kenney &lt;hailee@puppetlabs.com&gt; - 3.0.0\n * (#2157) Remove facter_dot_d for compatibility with external facts (f92574f)\n\n2012-04-10 - Chris Price &lt;chris@puppetlabs.com&gt; - 3.0.0\n * (#13693) moving logic from local spec_helper to puppetlabs_spec_helper (85f96df)\n\n2012-10-25 - Jeff McCune &lt;jeff@puppetlabs.com&gt; - 2.5.1\n * (maint) Fix spec failures resulting from Facter API changes (97f836f)\n\n2012-10-23 - Matthaus Owens &lt;matthaus@puppetlabs.com&gt; - 2.5.0\n * Add PE facts to stdlib (cdf3b05)\n\n2012-08-15 - Dan Bode &lt;dan@puppetlabs.com&gt; - 2.5.0\n * Explicitly load functions used by ensure_resource (9fc3063)\n\n2012-08-13 - Dan Bode &lt;dan@puppetlabs.com&gt; - 2.5.0\n * Add better docs about duplicate resource failures (97d327a)\n\n2012-08-13 - Dan Bode &lt;dan@puppetlabs.com&gt; - 2.5.0\n * Handle undef for parameter argument (4f8b133)\n\n2012-08-07 - Dan Bode &lt;dan@puppetlabs.com&gt; - 2.5.0\n * Add function ensure_resource and defined_with_params (a0cb8cd)\n\n2012-08-20 - Jeff McCune &lt;jeff@puppetlabs.com&gt; - 2.5.0\n * Disable tests that fail on 2.6.x due to #15912 (c81496e)\n\n2012-08-20 - Jeff McCune &lt;jeff@puppetlabs.com&gt; - 2.5.0\n * (Maint) Fix mis-use of rvalue functions as statements (4492913)\n\n2012-08-20 - Jeff McCune &lt;jeff@puppetlabs.com&gt; - 2.5.0\n * Add .rspec file to repo root (88789e8)\n\n2012-06-07 - Chris Price &lt;chris@puppetlabs.com&gt; - 2.4.0\n * Add support for a &#x27;match&#x27; parameter to file_line (a06c0d8)\n\n2012-08-07 - Erik Dalén &lt;dalen@spotify.com&gt; - 2.4.0\n * (#15872) Add to_bytes function (247b69c)\n\n2012-07-19 - Jeff McCune &lt;jeff@puppetlabs.com&gt; - 2.4.0\n * (Maint) use PuppetlabsSpec::PuppetInternals.scope (master) (deafe88)\n\n2012-07-10 - Hailee Kenney &lt;hailee@puppetlabs.com&gt; - 2.4.0\n * (#2157) Make facts_dot_d compatible with external facts (5fb0ddc)\n\n2012-03-16 - Steve Traylen &lt;steve.traylen@cern.ch&gt; - 2.4.0\n * (#13205) Rotate array&#x2F;string randomley based on fqdn, fqdn_rotate() (fef247b)\n\n2012-05-22 - Peter Meier &lt;peter.meier@immerda.ch&gt; - 2.3.3\n * fix regression in #11017 properly (f0a62c7)\n\n2012-05-10 - Jeff McCune &lt;jeff@puppetlabs.com&gt; - 2.3.3\n * Fix spec tests using the new spec_helper (7d34333)\n\n2012-05-10 - Puppet Labs &lt;support@puppetlabs.com&gt; - 2.3.2\n * Make file_line default to ensure =&gt; present (1373e70)\n * Memoize file_line spec instance variables (20aacc5)\n * Fix spec tests using the new spec_helper (1ebfa5d)\n * (#13595) initialize_everything_for_tests couples modules Puppet ver (3222f35)\n * (#13439) Fix MRI 1.9 issue with spec_helper (15c5fd1)\n * (#13439) Fix test failures with Puppet 2.6.x (665610b)\n * (#13439) refactor spec helper for compatibility with both puppet 2.7 and master (82194ca)\n * (#13494) Specify the behavior of zero padded strings (61891bb)\n\n2012-03-29 Puppet Labs &lt;support@puppetlabs.com&gt; - 2.1.3\n* (#11607) Add Rakefile to enable spec testing\n* (#12377) Avoid infinite loop when retrying require json\n\n2012-03-13 Puppet Labs &lt;support@puppetlabs.com&gt; - 2.3.1\n* (#13091) Fix LoadError bug with puppet apply and puppet_vardir fact\n\n2012-03-12 Puppet Labs &lt;support@puppetlabs.com&gt; - 2.3.0\n* Add a large number of new Puppet functions\n* Backwards compatibility preserved with 2.2.x\n\n2011-12-30 Puppet Labs &lt;support@puppetlabs.com&gt; - 2.2.1\n* Documentation only release for the Forge\n\n2011-12-30 Puppet Labs &lt;support@puppetlabs.com&gt; - 2.1.2\n* Documentation only release for PE 2.0.x\n\n2011-11-08 Puppet Labs &lt;support@puppetlabs.com&gt; - 2.2.0\n* #10285 - Refactor json to use pson instead.\n* Maint  - Add watchr autotest script\n* Maint  - Make rspec tests work with Puppet 2.6.4\n* #9859  - Add root_home fact and tests\n\n2011-08-18 Puppet Labs &lt;support@puppetlabs.com&gt; - 2.1.1\n* Change facts.d paths to match Facter 2.0 paths.\n* &#x2F;etc&#x2F;facter&#x2F;facts.d\n* &#x2F;etc&#x2F;puppetlabs&#x2F;facter&#x2F;facts.d\n\n2011-08-17 Puppet Labs &lt;support@puppetlabs.com&gt; - 2.1.0\n* Add R.I. Pienaar&#x27;s facts.d custom facter fact\n* facts defined in &#x2F;etc&#x2F;facts.d and &#x2F;etc&#x2F;puppetlabs&#x2F;facts.d are\n  automatically loaded now.\n\n2011-08-04 Puppet Labs &lt;support@puppetlabs.com&gt; - 2.0.0\n* Rename whole_line to file_line\n* This is an API change and as such motivating a 2.0.0 release according to semver.org.\n\n2011-08-04 Puppet Labs &lt;support@puppetlabs.com&gt; - 1.1.0\n* Rename append_line to whole_line\n* This is an API change and as such motivating a 1.1.0 release.\n\n2011-08-04 Puppet Labs &lt;support@puppetlabs.com&gt; - 1.0.0\n* Initial stable release\n* Add validate_array and validate_string functions\n* Make merge() function work with Ruby 1.8.5\n* Add hash merging function\n* Add has_key function\n* Add loadyaml() function\n* Add append_line native\n\n2011-06-21 Jeff McCune &lt;jeff@puppetlabs.com&gt; - 0.1.7\n* Add validate_hash() and getvar() functions\n\n2011-06-15 Jeff McCune &lt;jeff@puppetlabs.com&gt; - 0.1.6\n* Add anchor resource type to provide containment for composite classes\n\n2011-06-03 Jeff McCune &lt;jeff@puppetlabs.com&gt; - 0.1.5\n* Add validate_bool() function to stdlib\n\n0.1.4 2011-05-26 Jeff McCune &lt;jeff@puppetlabs.com&gt;\n* Move most stages after main\n\n0.1.3 2011-05-25 Jeff McCune &lt;jeff@puppetlabs.com&gt;\n* Add validate_re() function\n\n0.1.2 2011-05-24 Jeff McCune &lt;jeff@puppetlabs.com&gt;\n* Update to add annotated tag\n\n0.1.1 2011-05-24 Jeff McCune &lt;jeff@puppetlabs.com&gt;\n* Add stdlib::stages class with a standard set of stages\n</pre></section>",
##############################################
ruby-puppet-forge-2.3.2/spec/fixtures/v3/releases.json-1679-              {
ruby-puppet-forge-2.3.2/spec/fixtures/v3/releases.json:1680:                "doc": "      The canonical name of the rule. This name is also used for ordering\n      so make sure you prefix the rule with a number:\n\n          000 this runs first\n          999 this runs last\n\n      Depending on the provider, the name of the rule can be stored using\n      the comment feature of the underlying firewall subsystem.\n  Values can match `/^\\d+[[:alpha:][:digit:][:punct:][:space:]]+$/`.",
ruby-puppet-forge-2.3.2/spec/fixtures/v3/releases.json-1681-                "name": "name"
##############################################
ruby-puppet-forge-2.3.2/spec/fixtures/v3/releases.json-1723-              {
ruby-puppet-forge-2.3.2/spec/fixtures/v3/releases.json:1724:                "doc": "      Name of the chain to use. Can be one of the built-ins:\n\n      * INPUT\n      * FORWARD\n      * OUTPUT\n      * PREROUTING\n      * POSTROUTING\n\n      Or you can provide a user-based chain.\n\n      The default value is 'INPUT'.\n  Values can match `/^[a-zA-Z0-9\\-_]+$/`.  Requires features iptables.",
ruby-puppet-forge-2.3.2/spec/fixtures/v3/releases.json-1725-                "name": "chain"
##############################################
ruby-puppet-forge-2.3.2/spec/fixtures/v3/releases.json-1735-              {
ruby-puppet-forge-2.3.2/spec/fixtures/v3/releases.json:1736:                "doc": "      Input interface to filter on.\n  Values can match `/^[a-zA-Z0-9\\-_]+$/`.  Requires features interface_match.",
ruby-puppet-forge-2.3.2/spec/fixtures/v3/releases.json-1737-                "name": "iniface"
##############################################
ruby-puppet-forge-2.3.2/spec/fixtures/v3/releases.json-1739-              {
ruby-puppet-forge-2.3.2/spec/fixtures/v3/releases.json:1740:                "doc": "      Output interface to filter on.\n  Values can match `/^[a-zA-Z0-9\\-_]+$/`.  Requires features interface_match.",
ruby-puppet-forge-2.3.2/spec/fixtures/v3/releases.json-1741-                "name": "outiface"
##############################################
ruby-puppet-forge-2.3.2/spec/fixtures/v3/releases.json-1779-              {
ruby-puppet-forge-2.3.2/spec/fixtures/v3/releases.json:1780:                "doc": "      Rate limiting burst value (per second) before limit checks apply.\n  Values can match `/^\\d+$/`.  Requires features rate_limiting.",
ruby-puppet-forge-2.3.2/spec/fixtures/v3/releases.json-1781-                "name": "burst"
##############################################
ruby-puppet-forge-2.3.2/spec/fixtures/v3/releases.json-1812-      "downloads": 21894,
ruby-puppet-forge-2.3.2/spec/fixtures/v3/releases.json:1813:      "readme": "<section class=\"markdown\"><h2>puppetlabs-firewall module</h2>\n\n<h2>User Guide</h2>\n\n<h3>Overview</h3>\n\n<p>This type provides the capability to manage firewall rules within \npuppet.</p>\n\n<p>Current support includes:</p>\n\n<ul>\n<li>iptables</li>\n<li>ip6tables</li>\n</ul>\n\n<h3>Disclaimer</h3>\n\n<p>Warning! While this software is written in the best interest of quality it has\nnot been formally tested by our QA teams. Use at your own risk, but feel free\nto enjoy and perhaps improve it while you do.</p>\n\n<p>Please see the included Apache Software License for more legal details\nregarding warranty.</p>\n\n<p>Also as this is a 0.x release the API is still in flux and may change. Make sure\nyou read the release notes before upgrading.</p>\n\n<h3>Downloading</h3>\n\n<p>If you are intending to use this module it is recommended you obtain this from the\nforge and not Github:</p>\n\n<pre><code>http://forge.puppetlabs.com/puppetlabs/firewall\n</code></pre>\n\n<p>The forge releases are vetted releases. Using code from Github means you are\naccessing a development version or early release of the code.</p>\n\n<h3>Installation</h3>\n\n<p>Using the puppet-module gem, you can install it into your Puppet&#39;s \nmodule path. If you are not sure where your module path is try \nthis command:</p>\n\n<pre><code>puppet --configprint modulepath\n</code></pre>\n\n<p>Firstly change into that directory. For example:</p>\n\n<pre><code>cd /etc/puppet/modules\n</code></pre>\n\n<p>Then run the module tool:</p>\n\n<pre><code>puppet-module install puppetlabs-firewall\n</code></pre>\n\n<p>This module uses both Ruby based providers so your Puppet configuration\n(ie. puppet.conf) must include the following items:</p>\n\n<pre><code>[agent]\npluginsync = true\n</code></pre>\n\n<p>The module will not operate normally without these features enabled for the\nclient.</p>\n\n<p>If you are using environments or with certain versions of Puppet you may\nneed to run Puppet on the master first:</p>\n\n<pre><code>puppet agent -t --pluginsync --environment production\n</code></pre>\n\n<p>You may also need to restart Apache, although this shouldn&#39;t always be the\ncase.</p>\n\n<h3>Examples</h3>\n\n<p>Basic accept ICMP request example:</p>\n\n<pre><code>firewall { &quot;000 accept all icmp requests&quot;:\n  proto =&gt; &quot;icmp&quot;,\n  action =&gt; &quot;accept&quot;,\n}\n</code></pre>\n\n<p>Drop all:</p>\n\n<pre><code>firewall { &quot;999 drop all other requests&quot;:\n  action =&gt; &quot;drop&quot;,\n}\n</code></pre>\n\n<p>Source NAT example (perfect for a virtualization host):</p>\n\n<pre><code>firewall { &#39;100 snat for network foo2&#39;:\n  chain  =&gt; &#39;POSTROUTING&#39;,\n  jump   =&gt; &#39;MASQUERADE&#39;,\n  proto  =&gt; &#39;all&#39;,\n  outiface =&gt; &quot;eth0&quot;,\n  source =&gt; [&#39;10.1.2.0/24&#39;],\n  table  =&gt; &#39;nat&#39;,\n}\n</code></pre>\n\n<p>You can make firewall rules persistent with the following iptables example:</p>\n\n<pre><code>exec { &quot;persist-firewall&quot;:\n  command =&gt; $operatingsystem ? {\n    &quot;debian&quot; =&gt; &quot;/sbin/iptables-save &gt; /etc/iptables/rules.v4&quot;,\n    /(RedHat|CentOS)/ =&gt; &quot;/sbin/iptables-save &gt; /etc/sysconfig/iptables&quot;,\n  }\n  refreshonly =&gt; true,\n}\nFirewall {\n  notify =&gt; Exec[&quot;persist-firewall&quot;]\n}\n</code></pre>\n\n<p>If you wish to ensure any reject rules are executed last, try using stages.\nThe following example shows the creation of a class which is where your\nlast rules should run, this however should belong in a puppet module.</p>\n\n<pre><code>class my_fw::drop {\n  iptables { &quot;999 drop all&quot;:\n    action =&gt; &quot;drop&quot;\n  }\n}\n\nstage { pre: before =&gt; Stage[main] }\nstage { post: require =&gt; Stage[main] }\n\nclass { &quot;my_fw::drop&quot;: stage =&gt; &quot;post&quot; }\n</code></pre>\n\n<p>By placing the &#39;my_fw::drop&#39; class in the post stage it will always be inserted\nlast thereby avoiding locking you out before the accept rules are inserted.</p>\n\n<h3>Further documentation</h3>\n\n<p>More documentation is available from the forge for each release:</p>\n\n<pre><code>&lt;http://forge.puppetlabs.com/puppetlabs/firewall&gt;\n</code></pre>\n\n<p>Or you can access the inline documentation:</p>\n\n<pre><code>puppet describe firewall\n</code></pre>\n\n<p>Or:</p>\n\n<pre><code>puppet doc -r type\n</code></pre>\n\n<p>(and search for firewall).</p>\n\n<h3>Bugs</h3>\n\n<p>Bugs can be reported in the Puppetlabs Redmine project:</p>\n\n<pre><code>&lt;http://projects.puppetlabs.com/projects/modules/&gt;\n</code></pre>\n\n<h2>Developer Guide</h2>\n\n<h3>Contributing</h3>\n\n<p>Make sure you read CONTRIBUTING.md before contributing.</p>\n\n<p>Currently we support:</p>\n\n<ul>\n<li>iptables</li>\n<li>ip6tables</li>\n</ul>\n\n<p>But plans are to support lots of other firewall implementations:</p>\n\n<ul>\n<li>FreeBSD (ipf)</li>\n<li>Mac OS X (ipfw)</li>\n<li>OpenBSD (pf)</li>\n<li>Cisco (ASA and basic access lists)</li>\n</ul>\n\n<p>If you have knowledge in these technology, know how to code and wish to contribute \nto this project we would welcome the help.</p>\n\n<h3>Testing</h3>\n\n<p>Make sure you have:</p>\n\n<pre><code>rake\n</code></pre>\n\n<p>Install the necessary gems:</p>\n\n<pre><code>gem install rspec\n</code></pre>\n\n<p>And run the tests from the root of the source code:</p>\n\n<pre><code>rake test\n</code></pre>\n</section>",
ruby-puppet-forge-2.3.2/spec/fixtures/v3/releases.json-1814-      "changelog": null,
##############################################
ruby-puppet-forge-2.3.2/spec/fixtures/v3/releases.json-1988-      "downloads": 20981,
ruby-puppet-forge-2.3.2/spec/fixtures/v3/releases.json:1989:      "readme": "<section class=\"markdown\"><h1>Puppi: Puppet Knowledge to the CLI</h1>\n\n<p>Puppi One and Puppi module written by Alessandro Franceschi / al @ lab42.it</p>\n\n<p>Puppi Gem by Celso Fernandez / Zertico</p>\n\n<p>Source: <a href=\"http://www.example42.com\">http://www.example42.com</a></p>\n\n<p>Licence: Apache 2</p>\n\n<p>Puppi is a Puppet module and a CLI command.\nIt&#39;s data is entirely driven by Puppet code.\nIt can be used to standardize and automate the deployment of web applications\nor to provides quick and standard commands to query and check your system&#39;s resources</p>\n\n<p>Its structure provides FULL flexibility on the actions required for virtually any kind of\napplication deployment and information gathering.</p>\n\n<p>The module provides:</p>\n\n<ul>\n<li><p>Old-Gen and Next-Gen Puppi implementation</p></li>\n<li><p>A set of scripts that can be used in chain to automate any kind of deployment</p></li>\n<li><p>Puppet defines that make it easy to prepare a puppi set of commands for a project deployment</p></li>\n<li><p>Puppet defines to populate the output of the different actions</p></li>\n</ul>\n\n<h2>HOW TO INSTALL</h2>\n\n<p>Download Puppi from GitHub and place it in your modules directory: </p>\n\n<pre><code>   git clone https://github.com/example42/puppi.git /etc/puppet/modules/puppi\n</code></pre>\n\n<p>To use the Puppi &quot;Original, old and widely tested&quot; version, just declare or include the puppi class</p>\n\n<pre><code>   class { &#39;puppi&#39;: }\n</code></pre>\n\n<p>To test the Next-Gen version you can perform the following command. Please note that this module is\nnot stable yet:\n        class { &#39;puppi&#39;:\n          version =&gt; &#39;2&#39;,\n        }</p>\n\n<p>If you have resources conflicts, do not install automatically the Puppi dependencies (commands and packages)</p>\n\n<pre><code>    class { &#39;puppi&#39;:\n      install_dependencies =&gt; false,\n    }\n</code></pre>\n\n<h2>HOW TO USE</h2>\n\n<p>Once Puppi is installed you can use it to:</p>\n\n<ul>\n<li><p>Easily define in Puppet manifests Web Applications deploy procedures. For example:</p>\n\n<pre><code>puppi::project::war { &quot;myapp&quot;:\n    source           =&gt; &quot;http://repo.example42.com/deploy/prod/myapp.war&quot;,\n    deploy_root      =&gt; &quot;/opt/tomcat/myapp/webapps&quot;,\n}\n</code></pre></li>\n<li><p>Integrate with your modules for puppi check, info and log </p></li>\n<li><p>Enable Example42 modules integration</p></li>\n</ul>\n\n<h2>HOW TO USE WITH EXAMPLE42 MODULES</h2>\n\n<p>The Example42 modules provide (optional) Puppi integration.\nOnce enabled for each module you have puppi check, info and log commands.</p>\n\n<p>To eanble Puppi in OldGen Modules, set in the scope these variables:</p>\n\n<pre><code>    $puppi = yes   # Enables puppi integration.\n    $monitor = yes # Enables automatic monitoring \n    $monitor_tool = &quot;puppi&quot; # Sets puppi as monitoring tool\n</code></pre>\n\n<p>For the NextGen modules set the same parameters via Hiera, at Top Scope or as class arguments:</p>\n\n<pre><code>    class { &#39;openssh&#39;:\n      puppi        =&gt; yes, \n      monitor      =&gt; yes,\n      monitor_tool =&gt; &#39;puppi&#39;, \n    }\n</code></pre>\n\n<h2>USAGE OF THE PUPPI COMMAND (OLD GEN)</h2>\n\n<pre><code>    puppi &lt;action&gt; &lt;project_name&gt; [ -options ]\n</code></pre>\n\n<p>The puppi command has these possibile actions:</p>\n\n<p>First time initialization of the defined project (if available)\n        puppi init <project></p>\n\n<p>Deploy the specified project\n        puppi deploy <project></p>\n\n<p>Rollback to a previous deploy state\n        puppi rollback <project></p>\n\n<p>Run local checks on system and applications\n        puppi check</p>\n\n<p>Tail system or application logs\n        puppi log</p>\n\n<p>Show system information (for all or only the specified topic)\n        puppi info [topic]</p>\n\n<p>Show things to do (or done) manually on the system (not done via Puppet)\n        puppi todo</p>\n\n<p>In the deploy/rollback/init actions, puppi runs the commands in /etc/puppi/projects/$project/$action, logs their status and then run the commands in /etc/puppi/projects/$project/report to provide reporting, in whatever, pluggable, way.</p>\n\n<p>You can also provide some options:</p>\n\n<ul>\n<li><p>-f : Force puppi commands execution also on CRITICAL errors</p></li>\n<li><p>-i : Interactively ask confirmation for every command</p></li>\n<li><p>-t : Test mode. Just show the commands that should be executed without doing anything</p></li>\n<li><p>-d <yes|full>: Debug mode. Show debugging info during execution</p></li>\n<li><p>-o &quot;parameter=value parameter2=value2&quot; : Set manual options to override defaults. The options must be in parameter=value syntax, separated by spaces and inside double quotes.</p></li>\n</ul>\n\n<p>Some common puppi commnds when you log for an application deployment:</p>\n\n<pre><code>    puppi check\n    puppi log &amp;    # (More readable if done on another window)\n    puppi deploy myapp\n    puppi check\n    puppi info myapp\n</code></pre>\n\n<h2>THE PUPPI MODULE</h2>\n\n<p>The set of commands needed for each of these actions are entirely managed with specific\nPuppet &quot;basic defines&quot;:</p>\n\n<p>Create the main project structure. One or more different deployment projects can exist on a node.\n        puppi::project</p>\n\n<p>Create a single command to be placed in the init sequence. It&#39;s not required for every project.\n        puppi::initialize</p>\n\n<p>Create a single command to be placed in the deploy sequence. More than one is generally needed for each project.\n        puppi::deploy</p>\n\n<p>Create a single command to be placed in the rollback sequence. More than one is generally needed for each project.\n        puppi::rollback</p>\n\n<p>Create a single check (based on Nagios plugins) for a project or for the whole host (host wide checks are auto generated by Example42 monitor module)\n        puppi::check</p>\n\n<p>Create a reporting command to be placed in the report sequence.\n        puppi::report</p>\n\n<p>Create a log filename entry for a project or the whole hosts.\n        puppi::log</p>\n\n<p>Create an info entry with the commands used to provide info on a topic\n        puppi::info</p>\n\n<p>Read details in the relevant READMEs</p>\n\n<h2>FILE PATHS (all of them are provided, and can be configured, in the puppi module):</h2>\n\n<p>A link to the actual version of puppi enabled\n        /usr/sbin/puppi</p>\n\n<p>The original puppi bash command.\n        /usr/sbin/puppi.one</p>\n\n<p>Puppi (one) main config file. Various puppi wide paths are defined here.\n        /etc/puppi/puppi.conf</p>\n\n<p>Directory where by default all the host wide checks can be placed. If you use the Example42 monitor module and have &quot;puppi&quot; as $monitor_tool, this directory is automatically filled with Nagios plugins based checks.\n        /etc/puppi/checks/ ($checksdir)</p>\n\n<p>Directory that containts projects subdirs, with the commands to be run for deploy, rollback and check actions. They are completely built (and purged) by the Puppet module.\n        /etc/puppi/projects/ ($projectsdir)</p>\n\n<p>The general-use scripts directory, these are used by the above commands and may require one or more arguments.\n        /etc/puppi/scripts/ ($scriptsdir)</p>\n\n<p>The general-use directory where files are placed which contain the log paths to be used by puppi log\n        /etc/puppi/logs/ ($logssdir)</p>\n\n<p>The general-use directory where files are placed which contain the log paths to be used by puppi log\n        /etc/puppi/info/ ($infodir)</p>\n\n<p>Where all data to rollback is placed.\n        /var/lib/puppi/archive/ ($archivedir)</p>\n\n<p>Where logs and reports of the different commands are placed.\n        /var/log/puppi/ ($logdir)</p>\n\n<p>Temporary, scratchable, directory where Puppi places temporary files.\n        /tmp/puppi/ ($workdir)</p>\n\n<p>A runtime configuration file, which is used by all all the the scripts invoked by puppi to read and write dynamic variables at runtime. This is necessary to mantain &quot;state&quot; information that changes on every puppi run (such as the deploy datetime, used for backups).\n        /tmp/puppi/$project/config</p>\n\n<h2>HOW TO CUSTOMIZE</h2>\n\n<p>It should be clear that with puppi you have full flexibility in the definition of a deployment \nprocedure, since the puppi command is basically a wrapper that executes arbitrary scripts with\na given sequence, in pure KISS logic.</p>\n\n<p>The advantanges though, are various:</p>\n\n<ul>\n<li><p>You have a common syntax to manage deploys and rollbacks on an host</p></li>\n<li><p>In your Puppet manifests, you can set in simple, coherent and still flexible and customizable\ndefines all the elements, you need for your application deployments. \nThink about it: with just a Puppet define you build the whole deploy logic</p></li>\n<li><p>Reporting for each deploy/rollback is built-in and extensible </p></li>\n<li><p>Automatic checks can be built in the deploy procedure</p></li>\n<li><p>You have a common, growing, set of general-use scripts for typical actions</p></li>\n<li><p>You have quick and useful command to see what&#39;s happening on the system (puppi check, log, info)</p></li>\n</ul>\n\n<p>There are different parts where you can customize the behaviour of puppi:</p>\n\n<ul>\n<li><p>The set of general-use scripts in /etc/puppi/scripts/ ( this directory is filled with the content\nof puppi/files/scripts/ ) can/should be enhanced. These can be arbitrary scripts in whatever\nlanguage. If you want to follow puppi&#39;s logic, though, consider that they should import the\ncommon and runtime configuration files and have an exit code logic similar to the one of\nNagios plugins: 0 is OK, 1 is WARNING, 2 is CRITICAL. Note that by default a script that \nexits with WARNING doesn&#39;t block the deploy procedure, on the other hand, if a script exits\nwith CRITICAL (exit 2) by default it blocks the procedure.\nTake a second, also, to explore the runtime config file created by the puppi command that\ncontains variables that can be set and used by the scripts invoked by puppi.</p></li>\n<li><p>The custom project defines that describe deploy templates. These are placed in\npuppi/manifests/project/ and can request all the arguments you want to feed your scripts with.\nGenerally is a good idea to design a standard enough template that can be used for all the \ncases where the deployment procedure involves similar steps. Consider also that you can handle\nexceptions with variables (see the $loadbalancer_ip usage in puppi/manifests/project/maven.pp)</p></li>\n</ul>\n\n<h2>(NO) DEPENDENCIES AND CONFLICTS</h2>\n\n<p>Puppi is self contained. It doesn&#39;t require other modules.\n(And is required by all Example42 modules).</p>\n\n<p>For correct functionality by default some extra packages are installed.\nIf you have conflicts with your existing modules, set the argument:\n  install_dependencies =&gt; false</p>\n</section>",
ruby-puppet-forge-2.3.2/spec/fixtures/v3/releases.json-1990-      "changelog": null,
##############################################
ruby-puppet-forge-2.3.2/spec/fixtures/v3/releases.json-2120-                "name": "revision",
ruby-puppet-forge-2.3.2/spec/fixtures/v3/releases.json:2121:                "doc": "The revision of the repository  Values can match `/^\\S+$/`."
ruby-puppet-forge-2.3.2/spec/fixtures/v3/releases.json-2122-              }
##############################################
ruby-puppet-forge-2.3.2/spec/fixtures/v3/releases.json-2319-                "name": "charset",
ruby-puppet-forge-2.3.2/spec/fixtures/v3/releases.json:2320:                "doc": "The characterset to use for a database  Values can match `/^\\S+$/`."
ruby-puppet-forge-2.3.2/spec/fixtures/v3/releases.json-2321-              }
##############################################
ruby-puppet-forge-2.3.2/spec/fixtures/v3/releases.json-2465-      "readme": "<section class=\"markdown\"><h1>Mysql module for Puppet</h1>\n\n<p>This module manages mysql on Linux (RedHat/Debian) distros. A native mysql provider implements database resource type to handle database, database user, and database permission.</p>\n\n<p>Pluginsync needs to be enabled for this module to function properly.\nRead more about pluginsync in our <a href=\"http://docs.puppetlabs.com/guides/plugins_in_modules.html#enabling-pluginsync\">docs</a></p>\n\n<h2>Description</h2>\n\n<p>This module uses the fact osfamily which is supported by Facter 1.6.1+. If you do not have facter 1.6.1 in your environment, the following manifests will provide the same functionality in site.pp (before declaring any node):</p>\n\n<pre><code>if ! $::osfamily {\n  case $::operatingsystem {\n    &#39;RedHat&#39;, &#39;Fedora&#39;, &#39;CentOS&#39;, &#39;Scientific&#39;, &#39;SLC&#39;, &#39;Ascendos&#39;, &#39;CloudLinux&#39;, &#39;PSBM&#39;, &#39;OracleLinux&#39;, &#39;OVS&#39;, &#39;OEL&#39;: {\n      $osfamily = &#39;RedHat&#39;\n    }\n    &#39;ubuntu&#39;, &#39;debian&#39;: {\n      $osfamily = &#39;Debian&#39;\n    }\n    &#39;SLES&#39;, &#39;SLED&#39;, &#39;OpenSuSE&#39;, &#39;SuSE&#39;: {\n      $osfamily = &#39;Suse&#39;\n    }\n    &#39;Solaris&#39;, &#39;Nexenta&#39;: {\n      $osfamily = &#39;Solaris&#39;\n    }\n    default: {\n      $osfamily = $::operatingsystem\n    }\n  }\n}\n</code></pre>\n\n<p>This module depends on creates_resources function which is introduced in Puppet 2.7. Users on puppet 2.6 can use the following module which provides this functionality:</p>\n\n<p><a href=\"http://github.com/puppetlabs/puppetlabs-create_resources\">http://github.com/puppetlabs/puppetlabs-create_resources</a></p>\n\n<p>This module is based on work by David Schmitt. The following contributor have contributed patches to this module (beyond Puppet Labs):</p>\n\n<ul>\n<li>Christian G. Warden</li>\n<li>Daniel Black</li>\n<li>Justin Ellison</li>\n<li>Lowe Schmidt</li>\n<li>Matthias Pigulla</li>\n<li>William Van Hevelingen</li>\n<li>Michael Arnold</li>\n</ul>\n\n<h2>Usage</h2>\n\n<h3>mysql</h3>\n\n<p>Installs the mysql-client package.</p>\n\n<pre><code>class { &#39;mysql&#39;: }\n</code></pre>\n\n<h3>mysql::java</h3>\n\n<p>Installs mysql bindings for java.</p>\n\n<pre><code>class { &#39;mysql::java&#39;: }\n</code></pre>\n\n<h3>mysql::python</h3>\n\n<p>Installs mysql bindings for python.</p>\n\n<pre><code>class { &#39;mysql::python&#39;: }\n</code></pre>\n\n<h3>mysql::ruby</h3>\n\n<p>Installs mysql bindings for ruby.</p>\n\n<pre><code>class { &#39;mysql::ruby&#39;: }\n</code></pre>\n\n<h3>mysql::server</h3>\n\n<p>Installs mysql-server packages, configures my.cnf and starts mysqld service:</p>\n\n<pre><code>class { &#39;mysql::server&#39;:\n  config_hash =&gt; { &#39;root_password&#39; =&gt; &#39;foo&#39; }\n}\n</code></pre>\n\n<p>Database login information stored in <code>/root/.my.cnf</code>.</p>\n\n<h3>mysql::db</h3>\n\n<p>Creates a database with a user and assign some privileges.</p>\n\n<pre><code>mysql::db { &#39;mydb&#39;:\n  user     =&gt; &#39;myuser&#39;,\n  password =&gt; &#39;mypass&#39;,\n  host     =&gt; &#39;localhost&#39;,\n  grant    =&gt; [&#39;all&#39;],\n}\n</code></pre>\n\n<h3>mysql::backup</h3>\n\n<p>Installs a mysql backup script, cronjob, and priviledged backup user.</p>\n\n<pre><code>class { &#39;mysql::backup&#39;:\n  backupuser     =&gt; &#39;myuser&#39;,\n  backuppassword =&gt; &#39;mypassword&#39;,\n  backupdir      =&gt; &#39;/tmp/backups&#39;,\n}\n</code></pre>\n\n<h3>Providers for database types:</h3>\n\n<p>MySQL provider supports puppet resources command:</p>\n\n<pre><code>$ puppet resource database\ndatabase { &#39;information_schema&#39;:\n  ensure  =&gt; &#39;present&#39;,\n  charset =&gt; &#39;utf8&#39;,\n}\ndatabase { &#39;mysql&#39;:\n  ensure  =&gt; &#39;present&#39;,\n  charset =&gt; &#39;latin1&#39;,\n}\n</code></pre>\n\n<p>The custom resources can be used in any other manifests:</p>\n\n<pre><code>database { &#39;mydb&#39;:\n  charset =&gt; &#39;latin1&#39;,\n}\n\ndatabase_user { &#39;bob@localhost&#39;:\n  password_hash =&gt; mysql_password(&#39;foo&#39;)\n}\n\ndatabase_grant { &#39;user@localhost/database&#39;:\n  privileges =&gt; [&#39;all&#39;] ,\n  # Or specify individual privileges with columns from the mysql.db table:\n  # privileges =&gt; [&#39;Select_priv&#39;, &#39;Insert_priv&#39;, &#39;Update_priv&#39;, &#39;Delete_priv&#39;]\n}\n</code></pre>\n\n<p>A resource default can be specified to handle dependency:</p>\n\n<pre><code>Database {\n  require =&gt; Class[&#39;mysql::server&#39;],\n}\n</code></pre>\n</section>",
ruby-puppet-forge-2.3.2/spec/fixtures/v3/releases.json:2466:      "changelog": "<section class=\"plaintext\"><pre>2013-01-11 - Version 0.6.1\n* Fix providers when &#x2F;root&#x2F;.my.cnf is absent\n\n2013-01-09 - Version 0.6.0\n* Add `mysql::server::config` define for specific config directives\n* Add `mysql::php` class for php support\n* Add `backupcompress` parameter to `mysql::backup`\n* Add `restart` parameter to `mysql::config`\n* Add `purge_conf_dir` parameter to `mysql::config`\n* Add `manage_service` parameter to `mysql::server`\n* Add syslog logging support via the `log_error` parameter\n* Add initial SuSE support\n* Fix remove non-localhost root user when fqdn != hostname\n* Fix dependency in `mysql::server::monitor`\n* Fix .my.cnf path for root user and root password\n* Fix ipv6 support for users\n* Fix &#x2F; update various spec tests\n* Fix typos\n* Fix lint warnings\n\n2012-08-23 - Version 0.5.0\n* Add puppetlabs&#x2F;stdlib as requirement\n* Add validation for mysql privs in provider\n* Add `pidfile` parameter to mysql::config\n* Add `ensure` parameter to mysql::db\n* Add Amazon linux support\n* Change `bind_address` parameter to be optional in my.cnf template\n* Fix quoting root passwords\n\n2012-07-24 - Version 0.4.0\n* Fix various bugs regarding database names\n* FreeBSD support\n* Allow specifying the storage engine\n* Add a backup class\n* Add a security class to purge default accounts\n\n2012-05-03 - Version 0.3.0\n* #14218 Query the database for available privileges\n* Add mysql::java class for java connector installation\n* Use correct error log location on different distros\n* Fix set_mysql_rootpw to properly depend on my.cnf\n\n2012-04-11 - Version 0.2.0\n\n2012-03-19 - William Van Hevelingen &lt;blkperl@cat.pdx.edu&gt;\n* (#13203) Add ssl support (f7e0ea5)\n\n2012-03-18 - Nan Liu &lt;nan@puppetlabs.com&gt;\n* Travis ci before script needs success exit code. (0ea463b)\n\n2012-03-18 - Nan Liu &lt;nan@puppetlabs.com&gt;\n* Fix Puppet 2.6 compilation issues. (9ebbbc4)\n\n2012-03-16 - Nan Liu &lt;nan@puppetlabs.com&gt;\n* Add travis.ci for testing multiple puppet versions. (33c72ef)\n\n2012-03-15 - William Van Hevelingen &lt;blkperl@cat.pdx.edu&gt;\n* (#13163) Datadir should be configurable (f353fc6)\n\n2012-03-16 - Nan Liu &lt;nan@puppetlabs.com&gt;\n* Document create_resources dependency. (558a59c)\n\n2012-03-16 - Nan Liu &lt;nan@puppetlabs.com&gt;\n* Fix spec test issues related to error message. (eff79b5)\n\n2012-03-16 - Nan Liu &lt;nan@puppetlabs.com&gt;\n* Fix mysql service on Ubuntu. (72da2c5)\n\n2012-03-16 - Dan Bode &lt;dan@puppetlabs.com&gt;\n* Add more spec test coverage (55e399d)\n\n2012-03-16 - Nan Liu &lt;nan@puppetlabs.com&gt;\n* (#11963) Fix spec test due to path changes. (1700349)\n\n2012-03-07 - François Charlier &lt;fcharlier@ploup.net&gt;\n* Add a test to check path for &#x27;mysqld-restart&#x27; (b14c7d1)\n\n2012-03-07 - François Charlier &lt;fcharlier@ploup.net&gt;\n* Fix path for &#x27;mysqld-restart&#x27; (1a9ae6b)\n\n2012-03-15 - Dan Bode &lt;dan@puppetlabs.com&gt;\n* Add rspec-puppet tests for mysql::config (907331a)\n\n2012-03-15 - Dan Bode &lt;dan@puppetlabs.com&gt;\n* Moved class dependency between sever and config to server (da62ad6)\n\n2012-03-14 - Dan Bode &lt;dan@puppetlabs.com&gt;\n* Notify mysql restart from set_mysql_rootpw exec (0832a2c)\n\n2012-03-15 - Nan Liu &lt;nan@puppetlabs.com&gt;\n* Add documentation related to osfamily fact. (8265d28)\n\n2012-03-14 - Dan Bode &lt;dan@puppetlabs.com&gt;\n* Mention osfamily value in failure message (e472d3b)\n\n2012-03-14 - Dan Bode &lt;dan@puppetlabs.com&gt;\n* Fix bug when querying for all database users (015490c)\n\n2012-02-09 - Nan Liu &lt;nan@puppetlabs.com&gt;\n* Major refactor of mysql module. (b1f90fd)\n\n2012-01-11 - Justin Ellison &lt;justin.ellison@buckle.com&gt;\n* Ruby and Python&#x27;s MySQL libraries are named differently on different distros. (1e926b4)\n\n2012-01-11 - Justin Ellison &lt;justin.ellison@buckle.com&gt;\n* Per @ghoneycutt, we should fail explicitly and explain why. (09af083)\n\n2012-01-11 - Justin Ellison &lt;justin.ellison@buckle.com&gt;\n* Removing duplicate declaration (7513d03)\n\n2012-01-10 - Justin Ellison &lt;justin.ellison@buckle.com&gt;\n* Use socket value from params class instead of hardcoding. (663e97c)\n\n2012-01-10 - Justin Ellison &lt;justin.ellison@buckle.com&gt;\n* Instead of hardcoding the config file target, pull it from mysql::params (031a47d)\n\n2012-01-10 - Justin Ellison &lt;justin.ellison@buckle.com&gt;\n* Moved $socket to within the case to toggle between distros.  Added a $config_file variable to allow per-distro config file destinations. (360eacd)\n\n2012-01-10 - Justin Ellison &lt;justin.ellison@buckle.com&gt;\n* Pretty sure this is a bug, 99% of Linux distros out there won&#x27;t ever hit the default. (3462e6b)\n\n2012-02-09 - William Van Hevelingen &lt;blkperl@cat.pdx.edu&gt;\n* Changed the README to use markdown (3b7dfeb)\n\n2012-02-04 - Daniel Black &lt;grooverdan@users.sourceforge.net&gt;\n* (#12412) mysqltuner.pl update (b809e6f)\n\n2011-11-17 - Matthias Pigulla &lt;mp@webfactory.de&gt;\n* (#11363) Add two missing privileges to grant: event_priv, trigger_priv (d15c9d1)\n\n2011-12-20 - Jeff McCune &lt;jeff@puppetlabs.com&gt;\n* (minor) Fixup typos in Modulefile metadata (a0ed6a1)\n\n2011-12-19 - Carl Caum &lt;carl@carlcaum.com&gt;\n* Only notify Exec to import sql if sql is given (0783c74)\n\n2011-12-19 - Carl Caum &lt;carl@carlcaum.com&gt;\n* (#11508) Only load sql_scripts on DB creation (e3b9fd9)\n\n2011-12-13 - Justin Ellison &lt;justin.ellison@buckle.com&gt;\n* Require not needed due to implicit dependencies (3058feb)\n\n2011-12-13 - Justin Ellison &lt;justin.ellison@buckle.com&gt;\n* Bug #11375: puppetlabs-mysql fails on CentOS&#x2F;RHEL (a557b8d)\n\n2011-06-03 - Dan Bode &lt;dan@puppetlabs.com&gt; - 0.0.1\n* initial commit\n</pre></section>",
ruby-puppet-forge-2.3.2/spec/fixtures/v3/releases.json-2467-      "license": "<section class=\"plaintext\"><pre>                                 Apache License\n                           Version 2.0, January 2004\n                        http:&#x2F;&#x2F;www.apache.org&#x2F;licenses&#x2F;\n\n   TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\n\n   1. Definitions.\n\n      &quot;License&quot; shall mean the terms and conditions for use, reproduction,\n      and distribution as defined by Sections 1 through 9 of this document.\n\n      &quot;Licensor&quot; shall mean the copyright owner or entity authorized by\n      the copyright owner that is granting the License.\n\n      &quot;Legal Entity&quot; shall mean the union of the acting entity and all\n      other entities that control, are controlled by, or are under common\n      control with that entity. For the purposes of this definition,\n      &quot;control&quot; means (i) the power, direct or indirect, to cause the\n      direction or management of such entity, whether by contract or\n      otherwise, or (ii) ownership of fifty percent (50%) or more of the\n      outstanding shares, or (iii) beneficial ownership of such entity.\n\n      &quot;You&quot; (or &quot;Your&quot;) shall mean an individual or Legal Entity\n      exercising permissions granted by this License.\n\n      &quot;Source&quot; form shall mean the preferred form for making modifications,\n      including but not limited to software source code, documentation\n      source, and configuration files.\n\n      &quot;Object&quot; form shall mean any form resulting from mechanical\n      transformation or translation of a Source form, including but\n      not limited to compiled object code, generated documentation,\n      and conversions to other media types.\n\n      &quot;Work&quot; shall mean the work of authorship, whether in Source or\n      Object form, made available under the License, as indicated by a\n      copyright notice that is included in or attached to the work\n      (an example is provided in the Appendix below).\n\n      &quot;Derivative Works&quot; shall mean any work, whether in Source or Object\n      form, that is based on (or derived from) the Work and for which the\n      editorial revisions, annotations, elaborations, or other modifications\n      represent, as a whole, an original work of authorship. For the purposes\n      of this License, Derivative Works shall not include works that remain\n      separable from, or merely link (or bind by name) to the interfaces of,\n      the Work and Derivative Works thereof.\n\n      &quot;Contribution&quot; shall mean any work of authorship, including\n      the original version of the Work and any modifications or additions\n      to that Work or Derivative Works thereof, that is intentionally\n      submitted to Licensor for inclusion in the Work by the copyright owner\n      or by an individual or Legal Entity authorized to submit on behalf of\n      the copyright owner. For the purposes of this definition, &quot;submitted&quot;\n      means any form of electronic, verbal, or written communication sent\n      to the Licensor or its representatives, including but not limited to\n      communication on electronic mailing lists, source code control systems,\n      and issue tracking systems that are managed by, or on behalf of, the\n      Licensor for the purpose of discussing and improving the Work, but\n      excluding communication that is conspicuously marked or otherwise\n      designated in writing by the copyright owner as &quot;Not a Contribution.&quot;\n\n      &quot;Contributor&quot; shall mean Licensor and any individual or Legal Entity\n      on behalf of whom a Contribution has been received by Licensor and\n      subsequently incorporated within the Work.\n\n   2. Grant of Copyright License. Subject to the terms and conditions of\n      this License, each Contributor hereby grants to You a perpetual,\n      worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n      copyright license to reproduce, prepare Derivative Works of,\n      publicly display, publicly perform, sublicense, and distribute the\n      Work and such Derivative Works in Source or Object form.\n\n   3. Grant of Patent License. Subject to the terms and conditions of\n      this License, each Contributor hereby grants to You a perpetual,\n      worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n      (except as stated in this section) patent license to make, have made,\n      use, offer to sell, sell, import, and otherwise transfer the Work,\n      where such license applies only to those patent claims licensable\n      by such Contributor that are necessarily infringed by their\n      Contribution(s) alone or by combination of their Contribution(s)\n      with the Work to which such Contribution(s) was submitted. If You\n      institute patent litigation against any entity (including a\n      cross-claim or counterclaim in a lawsuit) alleging that the Work\n      or a Contribution incorporated within the Work constitutes direct\n      or contributory patent infringement, then any patent licenses\n      granted to You under this License for that Work shall terminate\n      as of the date such litigation is filed.\n\n   4. Redistribution. You may reproduce and distribute copies of the\n      Work or Derivative Works thereof in any medium, with or without\n      modifications, and in Source or Object form, provided that You\n      meet the following conditions:\n\n      (a) You must give any other recipients of the Work or\n          Derivative Works a copy of this License; and\n\n      (b) You must cause any modified files to carry prominent notices\n          stating that You changed the files; and\n\n      (c) You must retain, in the Source form of any Derivative Works\n          that You distribute, all copyright, patent, trademark, and\n          attribution notices from the Source form of the Work,\n          excluding those notices that do not pertain to any part of\n          the Derivative Works; and\n\n      (d) If the Work includes a &quot;NOTICE&quot; text file as part of its\n          distribution, then any Derivative Works that You distribute must\n          include a readable copy of the attribution notices contained\n          within such NOTICE file, excluding those notices that do not\n          pertain to any part of the Derivative Works, in at least one\n          of the following places: within a NOTICE text file distributed\n          as part of the Derivative Works; within the Source form or\n          documentation, if provided along with the Derivative Works; or,\n          within a display generated by the Derivative Works, if and\n          wherever such third-party notices normally appear. The contents\n          of the NOTICE file are for informational purposes only and\n          do not modify the License. You may add Your own attribution\n          notices within Derivative Works that You distribute, alongside\n          or as an addendum to the NOTICE text from the Work, provided\n          that such additional attribution notices cannot be construed\n          as modifying the License.\n\n      You may add Your own copyright statement to Your modifications and\n      may provide additional or different license terms and conditions\n      for use, reproduction, or distribution of Your modifications, or\n      for any such Derivative Works as a whole, provided Your use,\n      reproduction, and distribution of the Work otherwise complies with\n      the conditions stated in this License.\n\n   5. Submission of Contributions. Unless You explicitly state otherwise,\n      any Contribution intentionally submitted for inclusion in the Work\n      by You to the Licensor shall be under the terms and conditions of\n      this License, without any additional terms or conditions.\n      Notwithstanding the above, nothing herein shall supersede or modify\n      the terms of any separate license agreement you may have executed\n      with Licensor regarding such Contributions.\n\n   6. Trademarks. This License does not grant permission to use the trade\n      names, trademarks, service marks, or product names of the Licensor,\n      except as required for reasonable and customary use in describing the\n      origin of the Work and reproducing the content of the NOTICE file.\n\n   7. Disclaimer of Warranty. Unless required by applicable law or\n      agreed to in writing, Licensor provides the Work (and each\n      Contributor provides its Contributions) on an &quot;AS IS&quot; BASIS,\n      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\n      implied, including, without limitation, any warranties or conditions\n      of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A\n      PARTICULAR PURPOSE. You are solely responsible for determining the\n      appropriateness of using or redistributing the Work and assume any\n      risks associated with Your exercise of permissions under this License.\n\n   8. Limitation of Liability. In no event and under no legal theory,\n      whether in tort (including negligence), contract, or otherwise,\n      unless required by applicable law (such as deliberate and grossly\n      negligent acts) or agreed to in writing, shall any Contributor be\n      liable to You for damages, including any direct, indirect, special,\n      incidental, or consequential damages of any character arising as a\n      result of this License or out of the use or inability to use the\n      Work (including but not limited to damages for loss of goodwill,\n      work stoppage, computer failure or malfunction, or any and all\n      other commercial damages or losses), even if such Contributor\n      has been advised of the possibility of such damages.\n\n   9. Accepting Warranty or Additional Liability. While redistributing\n      the Work or Derivative Works thereof, You may choose to offer,\n      and charge a fee for, acceptance of support, warranty, indemnity,\n      or other liability obligations and&#x2F;or rights consistent with this\n      License. However, in accepting such obligations, You may act only\n      on Your own behalf and on Your sole responsibility, not on behalf\n      of any other Contributor, and only if You agree to indemnify,\n      defend, and hold each Contributor harmless for any liability\n      incurred by, or claims asserted against, such Contributor by reason\n      of your accepting any such warranty or additional liability.\n\n   END OF TERMS AND CONDITIONS\n\n   APPENDIX: How to apply the Apache License to your work.\n\n      To apply the Apache License to your work, attach the following\n      boilerplate notice, with the fields enclosed by brackets &quot;[]&quot;\n      replaced with your own identifying information. (Don&#x27;t include\n      the brackets!) The text should be enclosed in the appropriate\n      comment syntax for the file format. We also recommend that a\n      file or class name and description of purpose be included on the\n      same &quot;printed page&quot; as the copyright notice for easier\n      identification within third-party archives.\n\n   Copyright [yyyy] [name of copyright owner]\n\n   Licensed under the Apache License, Version 2.0 (the &quot;License&quot;);\n   you may not use this file except in compliance with the License.\n   You may obtain a copy of the License at\n\n       http:&#x2F;&#x2F;www.apache.org&#x2F;licenses&#x2F;LICENSE-2.0\n\n   Unless required by applicable law or agreed to in writing, software\n   distributed under the License is distributed on an &quot;AS IS&quot; BASIS,\n   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n   See the License for the specific language governing permissions and\n   limitations under the License.\n</pre></section>",
##############################################
ruby-puppet-forge-2.3.2/spec/fixtures/v3/releases.json-2737-      "downloads": 18449,
ruby-puppet-forge-2.3.2/spec/fixtures/v3/releases.json:2738:      "readme": "<section class=\"markdown\"><h1>apache</h1>\n\n<p><a href=\"https://travis-ci.org/puppetlabs/puppetlabs-apache\"><img src=\"https://travis-ci.org/puppetlabs/puppetlabs-apache.png?branch=master\" alt=\"Build Status\"></a></p>\n\n<h4>Table of Contents</h4>\n\n<ol>\n<li><a href=\"#overview\">Overview - What is the Apache module?</a></li>\n<li><a href=\"#module-description\">Module Description - What does the module do?</a></li>\n<li><a href=\"#setup\">Setup - The basics of getting started with Apache</a>\n\n<ul>\n<li><a href=\"#beginning-with-apache\">Beginning with Apache - Installation</a></li>\n<li><a href=\"#configure-a-virtual-host\">Configure a Virtual Host - Basic options for getting started</a></li>\n</ul></li>\n<li><a href=\"#usage\">Usage - The classes, defined types, and their parameters available for configuration</a>\n\n<ul>\n<li><a href=\"#classes-and-defined-types\">Classes and Defined Types</a>\n\n<ul>\n<li><a href=\"#class-apache\">Class: apache</a></li>\n<li><a href=\"#classes-apachemodname\">Classes: apache::mod::*</a></li>\n<li><a href=\"#defined-type-apachevhost\">Defined Type: apache::vhost</a></li>\n</ul></li>\n<li><a href=\"#virtual-host-examples\">Virtual Host Examples - Demonstrations of some configuration options</a></li>\n</ul></li>\n<li><a href=\"#implementation\">Implementation - An under-the-hood peek at what the module is doing</a>\n\n<ul>\n<li><a href=\"#classes-and-defined-types\">Classes and Defined Types</a></li>\n<li><a href=\"#templates\">Templates</a></li>\n</ul></li>\n<li><a href=\"#limitations\">Limitations - OS compatibility, etc.</a></li>\n<li><a href=\"#development\">Development - Guide for contributing to the module</a></li>\n<li><a href=\"#release-notes\">Release Notes - Notes on the most recent updates to the module</a></li>\n</ol>\n\n<h2>Overview</h2>\n\n<p>The Apache module allows you to set up virtual hosts and manage web services with minimal effort.</p>\n\n<h2>Module Description</h2>\n\n<p>Apache is a widely-used web server, and this module provides a simplified way of creating configurations to manage your infrastructure. This includes the ability to configure and manage a range of different virtual host setups, as well as a streamlined way to install and configure Apache modules.</p>\n\n<h2>Setup</h2>\n\n<p><strong>What Apache affects:</strong></p>\n\n<ul>\n<li>configuration files and directories (created and written to)\n\n<ul>\n<li><strong>NOTE</strong>: Configurations that are <em>not</em> managed by Puppet will be purged.</li>\n</ul></li>\n<li>package/service/configuration files for Apache</li>\n<li>Apache modules</li>\n<li>virtual hosts</li>\n<li>listened-to ports</li>\n</ul>\n\n<h3>Beginning with Apache</h3>\n\n<p>To install Apache with the default parameters</p>\n\n<pre lang=\"puppet\"><code>    class { &#39;apache&#39;:  }\n</code></pre>\n\n<p>The defaults are determined by your operating system (e.g. Debian systems have one set of defaults, RedHat systems have another). These defaults will work well in a testing environment, but are not suggested for production. To establish customized parameters</p>\n\n<pre lang=\"puppet\"><code>    class { &#39;apache&#39;:\n      default_mods =&gt; false,\n    }\n</code></pre>\n\n<h3>Configure a virtual host</h3>\n\n<p>Declaring the <code>apache</code> class will create a default virtual host by setting up a vhost on port 80, listening on all interfaces and serving <code>$apache::docroot</code>.</p>\n\n<pre lang=\"puppet\"><code>    class { &#39;apache&#39;: }\n</code></pre>\n\n<p>To configure a very basic, name-based virtual host</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;first.example.com&#39;:\n      port    =&gt; &#39;80&#39;,\n      docroot =&gt; &#39;/var/www/first&#39;,\n    }\n</code></pre>\n\n<p><em>Note:</em> The default priority is 15. If nothing matches this priority, the alphabetically first name-based vhost will be used. This is also true if you pass a higher priority and no names match anything else.</p>\n\n<p>A slightly more complicated example, which moves the docroot owner/group</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;second.example.com&#39;:\n      port          =&gt; &#39;80&#39;,\n      docroot       =&gt; &#39;/var/www/second&#39;,\n      docroot_owner =&gt; &#39;third&#39;,\n      docroot_group =&gt; &#39;third&#39;,\n    }\n</code></pre>\n\n<p>To set up a virtual host with SSL and default SSL certificates</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;ssl.example.com&#39;:\n      port    =&gt; &#39;443&#39;,\n      docroot =&gt; &#39;/var/www/ssl&#39;,\n      ssl     =&gt; true,\n    }\n</code></pre>\n\n<p>To set up a virtual host with SSL and specific SSL certificates</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;fourth.example.com&#39;:\n      port     =&gt; &#39;443&#39;,\n      docroot  =&gt; &#39;/var/www/fourth&#39;,\n      ssl      =&gt; true,\n      ssl_cert =&gt; &#39;/etc/ssl/fourth.example.com.cert&#39;,\n      ssl_key  =&gt; &#39;/etc/ssl/fourth.example.com.key&#39;,\n    }\n</code></pre>\n\n<p>To set up a virtual host with wildcard alias for subdomain mapped to same named directory\n<code>http://examle.com.loc =&gt; /var/www/example.com</code></p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;subdomain.loc&#39;:\n      vhost_name =&gt; &#39;*&#39;,\n      port       =&gt; &#39;80&#39;,\n      virtual_docroot&#39; =&gt; &#39;/var/www/%-2+&#39;,\n      docroot          =&gt; &#39;/var/www&#39;,\n      serveraliases    =&gt; [&#39;*.loc&#39;,],\n    }\n</code></pre>\n\n<p>To set up a virtual host with suPHP</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;suphp.example.com&#39;:\n      port                =&gt; &#39;80&#39;,\n      docroot             =&gt; &#39;/home/appuser/myphpapp&#39;,\n      suphp_addhandler    =&gt; &#39;x-httpd-php&#39;,\n      suphp_engine        =&gt; &#39;on&#39;,\n      suphp_configpath    =&gt; &#39;/etc/php5/apache2&#39;,\n    }\n</code></pre>\n\n<p>To set up a virtual host with WSGI</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;wsgi.example.com&#39;:\n      port                        =&gt; &#39;80&#39;,\n      docroot                     =&gt; &#39;/var/www/pythonapp&#39;,\n      wsgi_daemon_process         =&gt; &#39;wsgi&#39;,\n      wsgi_daemon_process_options =&gt;\n        { processes =&gt; &#39;2&#39;, threads =&gt; &#39;15&#39;, display-name =&gt; &#39;%{GROUP}&#39; },\n      wsgi_process_group          =&gt; &#39;wsgi&#39;,\n      wsgi_script_aliases         =&gt; { &#39;/&#39; =&gt; &#39;/var/www/demo.wsgi&#39; },\n    }\n</code></pre>\n\n<p>To see a list of all virtual host parameters, <a href=\"#defined-type-apachevhost\">please go here</a>. To see an extensive list of virtual host examples <a href=\"#virtual-host-examples\">please look here</a>.</p>\n\n<h2>Usage</h2>\n\n<h3>Classes and Defined Types</h3>\n\n<p>This module modifies Apache configuration files and directories and will purge any configuration not managed by Puppet. Configuration of Apache should be managed by Puppet, as non-puppet configuration files can cause unexpected failures.</p>\n\n<p>It is possible to temporarily disable full Puppet management by setting the <code>purge_configs</code> parameter within the base <code>apache</code> class to &#39;false&#39;. This option should only be used as a temporary means of saving and relocating customized configurations.</p>\n\n<h4>Class: <code>apache</code></h4>\n\n<p>The Apache module&#39;s primary class, <code>apache</code>, guides the basic setup of Apache on your system.</p>\n\n<p>You may establish a default vhost in this class, the <code>vhost</code> class, or both. You may add additional vhost configurations for specific virtual hosts using a declaration of the <code>vhost</code> type.</p>\n\n<p><strong>Parameters within <code>apache</code>:</strong></p>\n\n<h5><code>default_mods</code></h5>\n\n<p>Sets up Apache with default settings based on your OS. Defaults to &#39;true&#39;, set to &#39;false&#39; for customized configuration.</p>\n\n<h5><code>default_vhost</code></h5>\n\n<p>Sets up a default virtual host. Defaults to &#39;true&#39;, set to &#39;false&#39; to set up <a href=\"#configure-a-virtual-host\">customized virtual hosts</a>.</p>\n\n<h5><code>default_ssl_vhost</code></h5>\n\n<p>Sets up a default SSL virtual host. Defaults to &#39;false&#39;.</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;default-ssl&#39;:\n      port            =&gt; 443,\n      ssl             =&gt; true,\n      docroot         =&gt; $docroot,\n      scriptalias     =&gt; $scriptalias,\n      serveradmin     =&gt; $serveradmin,\n      access_log_file =&gt; &quot;ssl_${access_log_file}&quot;,\n      }\n</code></pre>\n\n<p>SSL vhosts only respond to HTTPS queries.</p>\n\n<h5><code>default_ssl_cert</code></h5>\n\n<p>The default SSL certification, which is automatically set based on your operating system  (<code>/etc/pki/tls/certs/localhost.crt</code> for RedHat, <code>/etc/ssl/certs/ssl-cert-snakeoil.pem</code> for Debian). This default will work out of the box but must be updated with your specific certificate information before being used in production.</p>\n\n<h5><code>default_ssl_key</code></h5>\n\n<p>The default SSL key, which is automatically set based on your operating system (<code>/etc/pki/tls/private/localhost.key</code> for RedHat, <code>/etc/ssl/private/ssl-cert-snakeoil.key</code> for Debian). This default will work out of the box but must be updated with your specific certificate information before being used in production.</p>\n\n<h5><code>default_ssl_chain</code></h5>\n\n<p>The default SSL chain, which is automatically set to &#39;undef&#39;. This default will work out of the box but must be updated with your specific certificate information before being used in production.</p>\n\n<h5><code>default_ssl_ca</code></h5>\n\n<p>The default certificate authority, which is automatically set to &#39;undef&#39;. This default will work out of the box but must be updated with your specific certificate information before being used in production.</p>\n\n<h5><code>default_ssl_crl_path</code></h5>\n\n<p>The default certificate revocation list path, which is automatically set to &#39;undef&#39;. This default will work out of the box but must be updated with your specific certificate information before being used in production.</p>\n\n<h5><code>default_ssl_crl</code></h5>\n\n<p>The default certificate revocation list to use, which is automatically set to &#39;undef&#39;. This default will work out of the box but must be updated with your specific certificate information before being used in production.</p>\n\n<h5><code>service_enable</code></h5>\n\n<p>Determines whether the &#39;httpd&#39; service is enabled when the machine is booted, meaning Puppet will check the service status to start/stop it. Defaults to &#39;true&#39;, meaning the service is enabled/running.</p>\n\n<h5><code>serveradmin</code></h5>\n\n<p>Sets the server administrator. Defaults to &#39;root@localhost&#39;.</p>\n\n<h5><code>servername</code></h5>\n\n<p>Sets the servername. Defaults to fqdn provided by facter.</p>\n\n<h5><code>sendfile</code></h5>\n\n<p>Makes Apache use the Linux kernel &#39;sendfile&#39; to serve static files. Defaults to &#39;false&#39;.</p>\n\n<h5><code>error_documents</code></h5>\n\n<p>Enables custom error documents. Defaults to &#39;false&#39;.</p>\n\n<h5><code>httpd_dir</code></h5>\n\n<p>Changes the base location of the configuration directories used for the service. This is useful for specially repackaged HTTPD builds but may have unintended concequences when used in combination with the default distribution packages. Default is based on your OS.</p>\n\n<h5><code>confd_dir</code></h5>\n\n<p>Changes the location of the configuration directory your custom configuration files are placed in. Default is based on your OS.</p>\n\n<h5><code>vhost_dir</code></h5>\n\n<p>Changes the location of the configuration directory your virtual host configuration files are placed in. Default is based on your OS.</p>\n\n<h5><code>mod_dir</code></h5>\n\n<p>Changes the location of the configuration directory your Apache modules configuration files are placed in. Default is based on your OS.</p>\n\n<h5><code>mpm_module</code></h5>\n\n<p>Configures which mpm module is loaded and configured for the httpd process by the <code>apache::mod::prefork</code>, <code>apache::mod::worker</code> and <code>apache::mod::itk</code> classes. Must be set to <code>false</code> to explicitly declare <code>apache::mod::worker</code>, <code>apache::mod::worker</code> or <code>apache::mod::itk</code> classes with parameters. Valid values are <code>worker</code>, <code>prefork</code>, <code>itk</code> (Debian), or the boolean <code>false</code>. Defaults to <code>prefork</code> on RedHat and <code>worker</code> on Debian.</p>\n\n<h5><code>conf_template</code></h5>\n\n<p>Setting this allows you to override the template used for the main apache configuration file.  This is a potentially risky thing to do as this module has been built around the concept of a minimal configuration file with most of the configuration coming in the form of conf.d/ entries.  Defaults to &#39;apache/httpd.conf.erb&#39;.</p>\n\n<h5><code>keepalive</code></h5>\n\n<p>Setting this allows you to enable persistent connections.</p>\n\n<h5><code>keepalive_timeout</code></h5>\n\n<p>Amount of time the server will wait for subsequent requests on a persistent connection. Defaults to &#39;15&#39;.</p>\n\n<h5><code>logroot</code></h5>\n\n<p>Changes the location of the directory Apache log files are placed in. Defaut is based on your OS.</p>\n\n<h5><code>ports_file</code></h5>\n\n<p>Changes the name of the file containing Apache ports configuration. Default is <code>${conf_dir}/ports.conf</code>.</p>\n\n<h4>Class: <code>apache::default_mods</code></h4>\n\n<p>Installs default Apache modules based on what OS you are running</p>\n\n<pre lang=\"puppet\"><code>    class { &#39;apache::default_mods&#39;: }\n</code></pre>\n\n<h4>Defined Type: <code>apache::mod</code></h4>\n\n<p>Used to enable arbitrary Apache httpd modules for which there is no specific <code>apache::mod::[name]</code> class. The <code>apache::mod</code> defined type will also install the required packages to enable the module, if any.</p>\n\n<pre lang=\"puppet\"><code>    apache::mod { &#39;rewrite&#39;: }\n    apache::mod { &#39;ldap&#39;: }\n</code></pre>\n\n<h4>Classes: <code>apache::mod::[name]</code></h4>\n\n<p>There are many <code>apache::mod::[name]</code> classes within this module that can be declared using <code>include</code>:</p>\n\n<ul>\n<li><code>alias</code></li>\n<li><code>auth_basic</code></li>\n<li><code>auth_kerb</code></li>\n<li><code>autoindex</code></li>\n<li><code>cache</code></li>\n<li><code>cgi</code></li>\n<li><code>cgid</code></li>\n<li><code>dav</code></li>\n<li><code>dav_fs</code></li>\n<li><code>deflate</code></li>\n<li><code>dir</code>*</li>\n<li><code>disk_cache</code></li>\n<li><code>fcgid</code></li>\n<li><code>info</code></li>\n<li><code>ldap</code></li>\n<li><code>mime</code></li>\n<li><code>mime_magic</code></li>\n<li><code>mpm_event</code></li>\n<li><code>negotiation</code></li>\n<li><code>passenger</code>*</li>\n<li><code>perl</code></li>\n<li><code>php</code> (requires <a href=\"#mpm_module\"><code>mpm_module</code></a> set to <code>prefork</code>)</li>\n<li><code>prefork</code>*</li>\n<li><code>proxy</code>*</li>\n<li><code>proxy_html</code></li>\n<li><code>proxy_http</code></li>\n<li><code>python</code></li>\n<li><code>reqtimeout</code></li>\n<li><code>setenvif</code></li>\n<li><code>ssl</code>* (see <a href=\"#class-apachemodssl\">apache::mod::ssl</a> below)</li>\n<li><code>status</code></li>\n<li><code>suphp</code></li>\n<li><code>userdir</code>*</li>\n<li><code>worker</code>*</li>\n<li><code>wsgi</code> (see <a href=\"#class-apachemodwsgi\">apache::mod::wsgi</a> below)</li>\n<li><code>xsendfile</code></li>\n</ul>\n\n<p>Modules noted with a * indicate that the module has settings and, thus, a template that includes parameters. These parameters control the module&#39;s configuration. Most of the time, these parameters will not require any configuration or attention.</p>\n\n<p>The modules mentioned above, and other Apache modules that have templates, will cause template files to be dropped along with the mod install, and the module will not work without the template. Any mod without a template will install package but drop no files.</p>\n\n<h4>Class: <code>apache::mod::ssl</code></h4>\n\n<p>Installs Apache SSL capabilities and utilizes <code>ssl.conf.erb</code> template</p>\n\n<pre lang=\"puppet\"><code>    class { &#39;apache::mod::ssl&#39;: }\n</code></pre>\n\n<p>To <em>use</em> SSL with a virtual host, you must either set the<code>default_ssl_vhost</code> parameter in <code>apache</code> to &#39;true&#39; or set the <code>ssl</code> parameter in <code>apache::vhost</code> to &#39;true&#39;.</p>\n\n<h4>Class: <code>apache::mod::wsgi</code></h4>\n\n<pre lang=\"puppet\"><code>    class { &#39;apache::mod::wsgi&#39;:\n      wsgi_socket_prefix =&gt; &quot;\\${APACHE_RUN_DIR}WSGI&quot;,\n      wsgi_python_home   =&gt; &#39;/path/to/virtenv&#39;,\n    }\n</code></pre>\n\n<h4>Defined Type: <code>apache::vhost</code></h4>\n\n<p>The Apache module allows a lot of flexibility in the set up and configuration of virtual hosts. This flexibility is due, in part, to <code>vhost</code>&#39;s setup as a defined resource type, which allows it to be evaluated multiple times with different parameters.</p>\n\n<p>The <code>vhost</code> defined type allows you to have specialized configurations for virtual hosts that have requirements outside of the defaults. You can set up a default vhost within the base <code>apache</code> class as well as set a customized vhost setup as default. Your customized vhost (priority 10) will be privileged over the base class vhost (15).</p>\n\n<p>If you have a series of specific configurations and do not want a base <code>apache</code> class default vhost, make sure to set the base class default host to &#39;false&#39;.</p>\n\n<pre lang=\"puppet\"><code>    class { &#39;apache&#39;:\n      default_vhost =&gt; false,\n    }\n</code></pre>\n\n<p><strong>Parameters within <code>apache::vhost</code>:</strong></p>\n\n<p>The default values for each parameter will vary based on operating system and type of virtual host.</p>\n\n<h5><code>access_log</code></h5>\n\n<p>Specifies whether <code>*_access.log</code> directives should be configured. Valid values are &#39;true&#39; and &#39;false&#39;. Defaults to &#39;true&#39;.</p>\n\n<h5><code>access_log_file</code></h5>\n\n<p>Points to the <code>*_access.log</code> file. Defaults to &#39;undef&#39;.</p>\n\n<h5><code>access_log_pipe</code></h5>\n\n<p>Specifies a pipe to send access log messages to. Defaults to &#39;undef&#39;.</p>\n\n<h5><code>access_log_syslog</code></h5>\n\n<p>Sends all access log messages to syslog. Defaults to &#39;undef&#39;.</p>\n\n<h5><code>access_log_format</code></h5>\n\n<p>Specifies either a LogFormat nickname or custom format string for access log. Defaults to &#39;undef&#39;.</p>\n\n<h5><code>add_listen</code></h5>\n\n<p>Determines whether the vhost creates a listen statement. The default value is &#39;true&#39;.</p>\n\n<p>Setting <code>add_listen</code> to &#39;false&#39; stops the vhost from creating a listen statement, and this is important when you combine vhosts that are not passed an <code>ip</code> parameter with vhosts that <em>are</em> passed the <code>ip</code> parameter.</p>\n\n<h5><code>aliases</code></h5>\n\n<p>Passes a list of hashes to the vhost to create <code>Alias</code> statements as per the <a href=\"http://httpd.apache.org/docs/current/mod/mod_alias.html\"><code>mod_alias</code> documentation</a>. Each hash is expected to be of the form:</p>\n\n<pre lang=\"puppet\"><code>aliases =&gt; [ { alias =&gt; &#39;/alias&#39;, path =&gt; &#39;/path/to/directory&#39; } ],\n</code></pre>\n\n<p>For <code>Alias</code> to work, each will need a corresponding <code>&lt;Directory /path/to/directory&gt;</code> or <code>&lt;Location /path/to/directory&gt;</code> block.</p>\n\n<p><strong>Note:</strong> If <code>apache::mod::passenger</code> is loaded and <code>PassengerHighPerformance true</code> is set, then <code>Alias</code> may have issues honouring the <code>PassengerEnabled off</code> statement. See <a href=\"http://www.conandalton.net/2010/06/passengerenabled-off-not-working.html\">this article</a> for details.</p>\n\n<h5><code>block</code></h5>\n\n<p>Specifies the list of things Apache will block access to. The default is an empty set, &#39;[]&#39;. Currently, the only option is &#39;scm&#39;, which blocks web access to .svn, .git and .bzr directories. To add to this, please see the <a href=\"#development\">Development</a> section.</p>\n\n<h5><code>custom_fragment</code></h5>\n\n<p>Pass a string of custom configuration directives to be placed at the end of the vhost configuration.</p>\n\n<h5><code>default_vhost</code></h5>\n\n<p>Sets a given <code>apache::vhost</code> as the default to serve requests that do not match any other <code>apache::vhost</code> definitions. The default value is &#39;false&#39;.</p>\n\n<h5><code>directories</code></h5>\n\n<p>Passes a list of hashes to the vhost to create <code>&lt;Directory /path/to/directory&gt;...&lt;/Directory&gt;</code> directive blocks as per the <a href=\"http://httpd.apache.org/docs/2.2/mod/core.html#directory\">Apache core documentation</a>.  The <code>path</code> key is required in these hashes.  Usage will typically look like:</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;sample.example.net&#39;:\n      docroot     =&gt; &#39;/path/to/directory&#39;,\n      directories =&gt; [\n        { path =&gt; &#39;/path/to/directory&#39;, &lt;directive&gt; =&gt; &lt;value&gt; },\n        { path =&gt; &#39;/path/to/another/directory&#39;, &lt;directive&gt; =&gt; &lt;value&gt; },\n      ],\n    }\n</code></pre>\n\n<p><em>Note:</em> At least one directory should match <code>docroot</code> parameter, once you start declaring directories <code>apache::vhost</code> assumes that all required <code>&lt;Directory&gt;</code> blocks will be declared.</p>\n\n<p><em>Note:</em> If not defined a single default <code>&lt;Directory&gt;</code> block will be created that matches the <code>docroot</code> parameter.</p>\n\n<p>The directives will be embedded within the <code>Directory</code> directive block, missing directives should be undefined and not be added, resulting in their default vaules in Apache. Currently this is the list of supported directives:</p>\n\n<h6><code>addhandlers</code></h6>\n\n<p>Sets <code>AddHandler</code> directives as per the <a href=\"http://httpd.apache.org/docs/2.2/mod/mod_mime.html#addhandler\">Apache Core documentation</a>. Accepts a list of hashes of the form <code>{ handler =&gt; &#39;handler-name&#39;, extensions =&gt; [&#39;extension&#39;]}</code>. Note that <code>extensions</code> is a list of extenstions being handled by the handler.\nAn example:</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;sample.example.net&#39;:\n      docroot     =&gt; &#39;/path/to/directory&#39;,\n      directories =&gt; [ { path =&gt; &#39;/path/to/directory&#39;,\n        addhandlers =&gt; [ { handler =&gt; &#39;cgi-script&#39;, extensions =&gt; [&#39;.cgi&#39;]} ],\n      } ],\n    }\n</code></pre>\n\n<h6><code>allow</code></h6>\n\n<p>Sets an <code>Allow</code> directive as per the <a href=\"http://httpd.apache.org/docs/2.2/mod/mod_authz_host.html#allow\">Apache Core documentation</a>. An example:</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;sample.example.net&#39;:\n      docroot     =&gt; &#39;/path/to/directory&#39;,\n      directories =&gt; [ { path =&gt; &#39;/path/to/directory&#39;, allow =&gt; &#39;from example.org&#39; } ],\n    }\n</code></pre>\n\n<h6><code>allow_override</code></h6>\n\n<p>Sets the usage of <code>.htaccess</code> files as per the <a href=\"http://httpd.apache.org/docs/2.2/mod/core.html#allowoverride\">Apache core documentation</a>. Should accept in the form of a list or a string. An example:</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;sample.example.net&#39;:\n      docroot     =&gt; &#39;/path/to/directory&#39;,\n      directories =&gt; [ { path =&gt; &#39;/path/to/directory&#39;, allow_override =&gt; [&#39;AuthConfig&#39;, &#39;Indexes&#39;] } ],\n    }\n</code></pre>\n\n<h6><code>deny</code></h6>\n\n<p>Sets an <code>Deny</code> directive as per the <a href=\"http://httpd.apache.org/docs/2.2/mod/mod_authz_host.html#deny\">Apache Core documentation</a>. An example:</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;sample.example.net&#39;:\n      docroot     =&gt; &#39;/path/to/directory&#39;,\n      directories =&gt; [ { path =&gt; &#39;/path/to/directory&#39;, deny =&gt; &#39;from example.org&#39; } ],\n    }\n</code></pre>\n\n<h6><code>headers</code></h6>\n\n<p>Adds lines for <code>Header</code> directives as per the <a href=\"http://httpd.apache.org/docs/2.2/mod/mod_headers.html#header\">Apache Header documentation</a>. An example:</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;sample.example.net&#39;:\n      docroot     =&gt; &#39;/path/to/directory&#39;,\n      directories =&gt; {\n        path    =&gt; &#39;/path/to/directory&#39;,\n        headers =&gt; &#39;Set X-Robots-Tag &quot;noindex, noarchive, nosnippet&quot;&#39;,\n      },\n    }\n</code></pre>\n\n<h6><code>options</code></h6>\n\n<p>Lists the options for the given <code>&lt;Directory&gt;</code> block</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;sample.example.net&#39;:\n      docroot     =&gt; &#39;/path/to/directory&#39;,\n      directories =&gt; [ { path =&gt; &#39;/path/to/directory&#39;, options =&gt; [&#39;Indexes&#39;,&#39;FollowSymLinks&#39;,&#39;MultiViews&#39;] }],\n    }\n</code></pre>\n\n<h6><code>order</code></h6>\n\n<p>Sets the order of processing <code>Allow</code> and <code>Deny</code> statements as per <a href=\"http://httpd.apache.org/docs/2.2/mod/mod_authz_host.html#order\">Apache core documentation</a>. An example:</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;sample.example.net&#39;:\n      docroot     =&gt; &#39;/path/to/directory&#39;,\n      directories =&gt; [ { path =&gt; &#39;/path/to/directory&#39;, order =&gt; &#39;Allow, Deny&#39; } ],\n    }\n</code></pre>\n\n<h6><code>auth_type</code></h6>\n\n<p>Sets the value for <code>AuthType</code> as per the <a href=\"https://httpd.apache.org/docs/2.2/mod/core.html#authtype\">Apache AuthType\ndocumentation</a>.</p>\n\n<h6><code>auth_name</code></h6>\n\n<p>Sets the value for <code>AuthName</code> as per the <a href=\"https://httpd.apache.org/docs/2.2/mod/core.html#authname\">Apache AuthName\ndocumentation</a>.</p>\n\n<h6><code>auth_digest_algorithm</code></h6>\n\n<p>Sets the value for <code>AuthDigestAlgorithm</code> as per the <a href=\"https://httpd.apache.org/docs/2.2/mod/mod_auth_digest.html#authdigestalgorithm\">Apache\nAuthDigestAlgorithm\ndocumentation</a></p>\n\n<h6><code>auth_digest_domain</code></h6>\n\n<p>Sets the value for <code>AuthDigestDomain</code> as per the <a href=\"https://httpd.apache.org/docs/2.2/mod/mod_auth_digest.html#authdigestdomain\">Apache AuthDigestDomain\ndocumentation</a>.</p>\n\n<h6><code>auth_digest_nonce_lifetime</code></h6>\n\n<p>Sets the value for <code>AuthDigestNonceLifetime</code> as per the <a href=\"https://httpd.apache.org/docs/2.2/mod/mod_auth_digest.html#authdigestnoncelifetime\">Apache\nAuthDigestNonceLifetime\ndocumentation</a></p>\n\n<h6><code>auth_digest_provider</code></h6>\n\n<p>Sets the value for <code>AuthDigestProvider</code> as per the <a href=\"https://httpd.apache.org/docs/2.2/mod/mod_auth_digest.html#authdigestprovider\">Apache AuthDigestProvider\ndocumentation</a>.</p>\n\n<h6><code>auth_digest_qop</code></h6>\n\n<p>Sets the value for <code>AuthDigestQop</code> as per the <a href=\"https://httpd.apache.org/docs/2.2/mod/mod_auth_digest.html#authdigestqop\">Apache AuthDigestQop\ndocumentation</a>.</p>\n\n<h6><code>auth_digest_shmem_size</code></h6>\n\n<p>Sets the value for <code>AuthAuthDigestShmemSize</code> as per the <a href=\"https://httpd.apache.org/docs/2.2/mod/mod_auth_digest.html#authdigestshmemsize\">Apache AuthDigestShmemSize\ndocumentation</a>.</p>\n\n<h6><code>auth_basic_authoritative</code></h6>\n\n<p>Sets the value for <code>AuthBasicAuthoritative</code> as per the <a href=\"https://httpd.apache.org/docs/2.2/mod/mod_auth_basic.html#authbasicauthoritative\">Apache\nAuthBasicAuthoritative\ndocumentation</a>.</p>\n\n<h6><code>auth_basic_fake</code></h6>\n\n<p>Sets the value for <code>AuthBasicFake</code> as per the <a href=\"https://httpd.apache.org/docs/trunk/mod/mod_auth_basic.html#authbasicfake\">Apache AuthBasicFake\ndocumentation</a>.</p>\n\n<h6><code>auth_basic_provider</code></h6>\n\n<p>Sets the value for <code>AuthBasicProvider</code> as per the <a href=\"https://httpd.apache.org/docs/2.2/mod/mod_auth_basic.html#authbasicprovider\">Apache AuthBasicProvider\ndocumentation</a>.</p>\n\n<h6><code>auth_user_file</code></h6>\n\n<p>Sets the value for <code>AuthUserFile</code> as per the <a href=\"https://httpd.apache.org/docs/2.2/mod/mod_authn_file.html#authuserfile\">Apache AuthUserFile\ndocumentation</a>.</p>\n\n<h6><code>auth_require</code></h6>\n\n<p>Sets the value for <code>AuthName</code> as per the <a href=\"https://httpd.apache.org/docs/2.2/mod/core.html#require\">Apache Require\ndocumentation</a></p>\n\n<h6><code>passenger_enabled</code></h6>\n\n<p>Sets the value for the <code>PassengerEnabled</code> directory to <code>on</code> or <code>off</code> as per the <a href=\"http://www.modrails.com/documentation/Users%20guide%20Apache.html#PassengerEnabled\">Passenger documentation</a>.</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;sample.example.net&#39;:\n      docroot     =&gt; &#39;/path/to/directory&#39;,\n      directories =&gt; [ { path =&gt; &#39;/path/to/directory&#39;, passenger_enabled =&gt; &#39;off&#39; } ],\n    }\n</code></pre>\n\n<p><strong>Note:</strong> This directive requires <code>apache::mod::passenger</code> to be active, Apache may not start with an unrecognised directive without it.</p>\n\n<p><strong>Note:</strong> Be aware that there is an <a href=\"http://www.conandalton.net/2010/06/passengerenabled-off-not-working.html\">issue</a> using the <code>PassengerEnabled</code> directive with the <code>PassengerHighPerformance</code> directive.</p>\n\n<h6><code>custom_fragment</code></h6>\n\n<p>Pass a string of custom configuration directives to be placed at the end of the\ndirectory configuration.</p>\n\n<h5><code>docroot</code></h5>\n\n<p>Provides the DocumentRoot directive, identifying the directory Apache serves files from.</p>\n\n<h5><code>docroot_group</code></h5>\n\n<p>Sets group access to the docroot directory. Defaults to &#39;root&#39;.</p>\n\n<h5><code>docroot_owner</code></h5>\n\n<p>Sets individual user access to the docroot directory. Defaults to &#39;root&#39;.</p>\n\n<h5><code>error_log</code></h5>\n\n<p>Specifies whether <code>*_error.log</code> directives should be configured. Defaults to &#39;true&#39;.</p>\n\n<h5><code>error_log_file</code></h5>\n\n<p>Points to the <code>*_error.log</code> file. Defaults to &#39;undef&#39;.</p>\n\n<h5><code>error_log_pipe</code></h5>\n\n<p>Specifies a pipe to send error log messages to. Defaults to &#39;undef&#39;.</p>\n\n<h5><code>error_log_syslog</code></h5>\n\n<p>Sends all error log messages to syslog. Defaults to &#39;undef&#39;.</p>\n\n<h5><code>ensure</code></h5>\n\n<p>Specifies if the vhost file is present or absent.</p>\n\n<h5><code>ip</code></h5>\n\n<p>The IP address the vhost listens on. Defaults to &#39;undef&#39;.</p>\n\n<h5><code>ip_based</code></h5>\n\n<p>Enables an IP-based vhost. This parameter inhibits the creation of a NameVirtualHost directive, since those are used to funnel requests to name-based vhosts. Defaults to &#39;false&#39;.</p>\n\n<h5><code>logroot</code></h5>\n\n<p>Specifies the location of the virtual host&#39;s logfiles. Defaults to <code>/var/log/&lt;apache log location&gt;/</code>.</p>\n\n<h5><code>no_proxy_uris</code></h5>\n\n<p>Specifies URLs you do not want to proxy. This parameter is meant to be used in combination with <code>proxy_dest</code>.</p>\n\n<h5><code>options</code></h5>\n\n<p>Lists the options for the given virtual host</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;site.name.fdqn&#39;:\n      …\n      options =&gt; [&#39;Indexes&#39;,&#39;FollowSymLinks&#39;,&#39;MultiViews&#39;],\n    }\n</code></pre>\n\n<h5><code>override</code></h5>\n\n<p>Sets the overrides for the given virtual host. Accepts an array of AllowOverride arguments.</p>\n\n<h5><code>port</code></h5>\n\n<p>Sets the port the host is configured on.</p>\n\n<h5><code>priority</code></h5>\n\n<p>Sets the relative load-order for Apache httpd VirtualHost configuration files. Defaults to &#39;25&#39;.</p>\n\n<p>If nothing matches the priority, the first name-based vhost will be used. Likewise, passing a higher priority will cause the alphabetically first name-based vhost to be used if no other names match.</p>\n\n<p><em>Note</em>: You should not need to use this parameter. However, if you do use it, be aware that the <code>default_vhost</code> parameter for <code>apache::vhost</code> passes a priority of &#39;15&#39;.</p>\n\n<h5><code>proxy_dest</code></h5>\n\n<p>Specifies the destination address of a proxypass configuration. Defaults to &#39;undef&#39;.</p>\n\n<h5><code>proxy_pass</code></h5>\n\n<p>Specifies an array of path =&gt; uri for a proxypass configuration. Defaults to &#39;undef&#39;.</p>\n\n<p>Example:</p>\n\n<pre lang=\"puppet\"><code>$proxy_pass = [\n  { &#39;path&#39; =&gt; &#39;/a&#39;, &#39;url&#39; =&gt; &#39;http://backend-a/&#39; },\n  { &#39;path&#39; =&gt; &#39;/b&#39;, &#39;url&#39; =&gt; &#39;http://backend-b/&#39; },\n  { &#39;path&#39; =&gt; &#39;/c&#39;, &#39;url&#39; =&gt; &#39;http://backend-a/c&#39; }\n]\n\napache::vhost { &#39;site.name.fdqn&#39;:\n  …\n  proxy_pass       =&gt; $proxy_pass,\n}\n</code></pre>\n\n<h5><code>rack_base_uris</code></h5>\n\n<p>Specifies the resource identifiers for a rack configuration. The file paths specified will be listed as rack application roots for passenger/rack in the <code>_rack.erb</code> template. Defaults to &#39;undef&#39;.</p>\n\n<h5><code>redirect_dest</code></h5>\n\n<p>Specifies the address to redirect to. Defaults to &#39;undef&#39;.</p>\n\n<h5><code>redirect_source</code></h5>\n\n<p>Specifies the source items? that will redirect to the destination specified in <code>redirect_dest</code>. If more than one item for redirect is supplied, the source and destination must be the same length, and the items are order-dependent.</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;site.name.fdqn&#39;:\n      …\n      redirect_source =&gt; [&#39;/images&#39;,&#39;/downloads&#39;],\n      redirect_dest =&gt; [&#39;http://img.example.com/&#39;,&#39;http://downloads.example.com/&#39;],\n    }\n</code></pre>\n\n<h5><code>redirect_status</code></h5>\n\n<p>Specifies the status to append to the redirect. Defaults to &#39;undef&#39;.</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;site.name.fdqn&#39;:\n      …\n      redirect_status =&gt; [&#39;temp&#39;,&#39;permanent&#39;],\n    }\n</code></pre>\n\n<h5><code>request_headers</code></h5>\n\n<p>Specifies additional request headers.</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;site.name.fdqn&#39;:\n      …\n      request_headers =&gt; [\n        &#39;append MirrorID &quot;mirror 12&quot;&#39;,\n        &#39;unset MirrorID&#39;,\n      ],\n    }\n</code></pre>\n\n<h5><code>rewrite_base</code></h5>\n\n<p>Limits the <code>rewrite_rule</code> to the specified base URL. Defaults to &#39;undef&#39;.</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;site.name.fdqn&#39;:\n      …\n      rewrite_rule =&gt; &#39;^index\\.html$ welcome.html&#39;,\n      rewrite_base =&gt; &#39;/blog/&#39;,\n    }\n</code></pre>\n\n<p>The above example would limit the index.html -&gt; welcome.html rewrite to only something inside of <a href=\"http://example.com/blog/\">http://example.com/blog/</a>.</p>\n\n<h5><code>rewrite_cond</code></h5>\n\n<p>Rewrites a URL via <code>rewrite_rule</code> based on the truth of specified conditions. For example</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;site.name.fdqn&#39;:\n      …\n      rewrite_cond =&gt; &#39;%{HTTP_USER_AGENT} ^MSIE&#39;,\n    }\n</code></pre>\n\n<p>will rewrite URLs only if the visitor is using IE. Defaults to &#39;undef&#39;.</p>\n\n<p><em>Note</em>: At the moment, each vhost is limited to a single list of rewrite conditions. In the future, you will be able to specify multiple <code>rewrite_cond</code> and <code>rewrite_rules</code> per vhost, so that different conditions get different rewrites.</p>\n\n<h5><code>rewrite_rule</code></h5>\n\n<p>Creates URL rewrite rules. Defaults to &#39;undef&#39;. This parameter allows you to specify, for example, that anyone trying to access index.html will be served welcome.html.</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;site.name.fdqn&#39;:\n      …\n      rewrite_rule =&gt; &#39;^index\\.html$ welcome.html&#39;,\n    }\n</code></pre>\n\n<h5><code>scriptalias</code></h5>\n\n<p>Defines a directory of CGI scripts to be aliased to the path &#39;/cgi-bin&#39;</p>\n\n<h5><code>serveradmin</code></h5>\n\n<p>Specifies the email address Apache will display when it renders one of its error pages.</p>\n\n<h5><code>serveraliases</code></h5>\n\n<p>Sets the server aliases of the site.</p>\n\n<h5><code>servername</code></h5>\n\n<p>Sets the primary name of the virtual host.</p>\n\n<h5><code>setenv</code></h5>\n\n<p>Used by HTTPD to set environment variables for vhosts. Defaults to &#39;[]&#39;.</p>\n\n<h5><code>setenvif</code></h5>\n\n<p>Used by HTTPD to conditionally set environment variables for vhosts. Defaults to &#39;[]&#39;.</p>\n\n<h5><code>ssl</code></h5>\n\n<p>Enables SSL for the virtual host. SSL vhosts only respond to HTTPS queries. Valid values are &#39;true&#39; or &#39;false&#39;.</p>\n\n<h5><code>ssl_ca</code></h5>\n\n<p>Specifies the certificate authority.</p>\n\n<h5><code>ssl_cert</code></h5>\n\n<p>Specifies the SSL certification.</p>\n\n<h5><code>ssl_certs_dir</code></h5>\n\n<p>Specifies the location of the SSL certification directory. Defaults to <code>/etc/ssl/certs</code>.</p>\n\n<h5><code>ssl_chain</code></h5>\n\n<p>Specifies the SSL chain.</p>\n\n<h5><code>ssl_crl</code></h5>\n\n<p>Specifies the certificate revocation list to use.</p>\n\n<h5><code>ssl_crl_path</code></h5>\n\n<p>Specifies the location of the certificate revocation list.</p>\n\n<h5><code>ssl_key</code></h5>\n\n<p>Specifies the SSL key.</p>\n\n<h5><code>sslproxyengine</code></h5>\n\n<p>Specifies whether to use <code>SSLProxyEngine</code> or not. Defaults to <code>false</code>.</p>\n\n<h5><code>vhost_name</code></h5>\n\n<p>This parameter is for use with name-based virtual hosting. Defaults to &#39;*&#39;.</p>\n\n<h5><code>itk</code></h5>\n\n<p>Hash containing infos to configure itk as per the <a href=\"http://mpm-itk.sesse.net/\">ITK documentation</a>.</p>\n\n<p>Keys could be:</p>\n\n<ul>\n<li>user + group</li>\n<li>assignuseridexpr</li>\n<li>assigngroupidexpr</li>\n<li>maxclientvhost</li>\n<li>nice</li>\n<li>limituidrange (Linux 3.5.0 or newer)</li>\n<li>limitgidrange (Linux 3.5.0 or newer)</li>\n</ul>\n\n<p>Usage will typically look like:</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;sample.example.net&#39;:\n      docroot     =&gt; &#39;/path/to/directory&#39;,\n      itk =&gt; {\n        user  =&gt; &#39;someuser&#39;,\n        group =&gt; &#39;somegroup&#39;,\n      },\n    }\n</code></pre>\n\n<h3>Virtual Host Examples</h3>\n\n<p>The Apache module allows you to set up pretty much any configuration of virtual host you might desire. This section will address some common configurations. Please see the <a href=\"https://github.com/puppetlabs/puppetlabs-apache/tree/master/tests\">Tests section</a> for even more examples.</p>\n\n<p>Configure a vhost with a server administrator</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;third.example.com&#39;:\n      port        =&gt; &#39;80&#39;,\n      docroot     =&gt; &#39;/var/www/third&#39;,\n      serveradmin =&gt; &#39;admin@example.com&#39;,\n    }\n</code></pre>\n\n<hr>\n\n<p>Set up a vhost with aliased servers</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;sixth.example.com&#39;:\n      serveraliases =&gt; [\n        &#39;sixth.example.org&#39;,\n        &#39;sixth.example.net&#39;,\n      ],\n      port          =&gt; &#39;80&#39;,\n      docroot       =&gt; &#39;/var/www/fifth&#39;,\n    }\n</code></pre>\n\n<hr>\n\n<p>Configure a vhost with a cgi-bin</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;eleventh.example.com&#39;:\n      port        =&gt; &#39;80&#39;,\n      docroot     =&gt; &#39;/var/www/eleventh&#39;,\n      scriptalias =&gt; &#39;/usr/lib/cgi-bin&#39;,\n    }\n</code></pre>\n\n<hr>\n\n<p>Set up a vhost with a rack configuration</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;fifteenth.example.com&#39;:\n      port           =&gt; &#39;80&#39;,\n      docroot        =&gt; &#39;/var/www/fifteenth&#39;,\n      rack_base_uris =&gt; [&#39;/rackapp1&#39;, &#39;/rackapp2&#39;],\n    }\n</code></pre>\n\n<hr>\n\n<p>Set up a mix of SSL and non-SSL vhosts at the same domain</p>\n\n<pre lang=\"puppet\"><code>    #The non-ssl vhost\n    apache::vhost { &#39;first.example.com non-ssl&#39;:\n      servername =&gt; &#39;first.example.com&#39;,\n      port       =&gt; &#39;80&#39;,\n      docroot    =&gt; &#39;/var/www/first&#39;,\n    }\n\n    #The SSL vhost at the same domain\n    apache::vhost { &#39;first.example.com ssl&#39;:\n      servername =&gt; &#39;first.example.com&#39;,\n      port       =&gt; &#39;443&#39;,\n      docroot    =&gt; &#39;/var/www/first&#39;,\n      ssl        =&gt; true,\n    }\n</code></pre>\n\n<hr>\n\n<p>Configure a vhost to redirect non-SSL connections to SSL</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;sixteenth.example.com non-ssl&#39;:\n      servername      =&gt; &#39;sixteenth.example.com&#39;,\n      port            =&gt; &#39;80&#39;,\n      docroot         =&gt; &#39;/var/www/sixteenth&#39;,\n      redirect_status =&gt; &#39;permanent&#39;\n      redirect_dest   =&gt; &#39;https://sixteenth.example.com/&#39;\n    }\n    apache::vhost { &#39;sixteenth.example.com ssl&#39;:\n      servername =&gt; &#39;sixteenth.example.com&#39;,\n      port       =&gt; &#39;443&#39;,\n      docroot    =&gt; &#39;/var/www/sixteenth&#39;,\n      ssl        =&gt; true,\n    }\n</code></pre>\n\n<hr>\n\n<p>Set up IP-based vhosts on any listen port and have them respond to requests on specific IP addresses. In this example, we will set listening on ports 80 and 81. This is required because the example vhosts are not declared with a port parameter.</p>\n\n<pre lang=\"puppet\"><code>    apache::listen { &#39;80&#39;: }\n    apache::listen { &#39;81&#39;: }\n</code></pre>\n\n<p>Then we will set up the IP-based vhosts</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;first.example.com&#39;:\n      ip       =&gt; &#39;10.0.0.10&#39;,\n      docroot  =&gt; &#39;/var/www/first&#39;,\n      ip_based =&gt; true,\n    }\n    apache::vhost { &#39;second.example.com&#39;:\n      ip       =&gt; &#39;10.0.0.11&#39;,\n      docroot  =&gt; &#39;/var/www/second&#39;,\n      ip_based =&gt; true,\n    }\n</code></pre>\n\n<hr>\n\n<p>Configure a mix of name-based and IP-based vhosts. First, we will add two IP-based vhosts on 10.0.0.10, one SSL and one non-SSL</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;The first IP-based vhost, non-ssl&#39;:\n      servername =&gt; &#39;first.example.com&#39;,\n      ip         =&gt; &#39;10.0.0.10&#39;,\n      port       =&gt; &#39;80&#39;,\n      ip_based   =&gt; true,\n      docroot    =&gt; &#39;/var/www/first&#39;,\n    }\n    apache::vhost { &#39;The first IP-based vhost, ssl&#39;:\n      servername =&gt; &#39;first.example.com&#39;,\n      ip         =&gt; &#39;10.0.0.10&#39;,\n      port       =&gt; &#39;443&#39;,\n      ip_based   =&gt; true,\n      docroot    =&gt; &#39;/var/www/first-ssl&#39;,\n      ssl        =&gt; true,\n    }\n</code></pre>\n\n<p>Then, we will add two name-based vhosts listening on 10.0.0.20</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;second.example.com&#39;:\n      ip      =&gt; &#39;10.0.0.20&#39;,\n      port    =&gt; &#39;80&#39;,\n      docroot =&gt; &#39;/var/www/second&#39;,\n    }\n    apache::vhost { &#39;third.example.com&#39;:\n      ip      =&gt; &#39;10.0.0.20&#39;,\n      port    =&gt; &#39;80&#39;,\n      docroot =&gt; &#39;/var/www/third&#39;,\n    }\n</code></pre>\n\n<p>If you want to add two name-based vhosts so that they will answer on either 10.0.0.10 or 10.0.0.20, you <strong>MUST</strong> declare <code>add_listen =&gt; &#39;false&#39;</code> to disable the otherwise automatic &#39;Listen 80&#39;, as it will conflict with the preceding IP-based vhosts.</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;fourth.example.com&#39;:\n      port       =&gt; &#39;80&#39;,\n      docroot    =&gt; &#39;/var/www/fourth&#39;,\n      add_listen =&gt; false,\n    }\n    apache::vhost { &#39;fifth.example.com&#39;:\n      port       =&gt; &#39;80&#39;,\n      docroot    =&gt; &#39;/var/www/fifth&#39;,\n      add_listen =&gt; false,\n    }\n</code></pre>\n\n<h2>Implementation</h2>\n\n<h3>Classes and Defined Types</h3>\n\n<h4>Class: <code>apache::dev</code></h4>\n\n<p>Installs Apache development libraries</p>\n\n<pre lang=\"puppet\"><code>    class { &#39;apache::dev&#39;: }\n</code></pre>\n\n<h4>Defined Type: <code>apache::listen</code></h4>\n\n<p>Controls which ports Apache binds to for listening based on the title:</p>\n\n<pre lang=\"puppet\"><code>    apache::listen { &#39;80&#39;: }\n    apache::listen { &#39;443&#39;: }\n</code></pre>\n\n<p>Declaring this defined type will add all <code>Listen</code> directives to the <code>ports.conf</code> file in the Apache httpd configuration directory.  <code>apache::listen</code> titles should always take the form of: <code>&lt;port&gt;</code>, <code>&lt;ipv4&gt;:&lt;port&gt;</code>, or <code>[&lt;ipv6&gt;]:&lt;port&gt;</code></p>\n\n<p>Apache httpd requires that <code>Listen</code> directives must be added for every port. The <code>apache::vhost</code> defined type will automatically add <code>Listen</code> directives unless the <code>apache::vhost</code> is passed <code>add_listen =&gt; false</code>.</p>\n\n<h4>Defined Type: <code>apache::namevirtualhost</code></h4>\n\n<p>Enables named-based hosting of a virtual host</p>\n\n<pre lang=\"puppet\"><code>    class { &#39;apache::namevirtualhost`: }\n</code></pre>\n\n<p>Declaring this defined type will add all <code>NameVirtualHost</code> directives to the <code>ports.conf</code> file in the Apache https configuration directory. <code>apache::namevirtualhost</code> titles should always take the form of: <code>*</code>, <code>*:&lt;port&gt;</code>, <code>_default_:&lt;port&gt;</code>, <code>&lt;ip&gt;</code>, or <code>&lt;ip&gt;:&lt;port&gt;</code>.</p>\n\n<h4>Defined Type: <code>apache::balancermember</code></h4>\n\n<p>Define members of a proxy_balancer set (mod_proxy_balancer). Very useful when using exported resources.</p>\n\n<p>On every app server you can export a balancermember like this:</p>\n\n<pre lang=\"puppet\"><code>      @@apache::balancermember { &quot;${::fqdn}-puppet00&quot;:\n        balancer_cluster =&gt; &#39;puppet00&#39;,\n        url              =&gt; &quot;ajp://${::fqdn}:8009&quot;\n        options          =&gt; [&#39;ping=5&#39;, &#39;disablereuse=on&#39;, &#39;retry=5&#39;, &#39;ttl=120&#39;],\n      }\n</code></pre>\n\n<p>And on the proxy itself you create the balancer cluster using the defined type apache::balancer:</p>\n\n<pre lang=\"puppet\"><code>      apache::balancer { &#39;puppet00&#39;: }\n</code></pre>\n\n<p>If you need to use ProxySet in the balncer config you can do as so:</p>\n\n<pre lang=\"puppet\"><code>      apache::balancer { &#39;puppet01&#39;:\n        proxy_set =&gt; {&#39;stickysession&#39; =&gt; &#39;JSESSIONID&#39;},\n      }\n</code></pre>\n\n<h3>Templates</h3>\n\n<p>The Apache module relies heavily on templates to enable the <code>vhost</code> and <code>apache::mod</code> defined types. These templates are built based on Facter facts around your operating system. Unless explicitly called out, most templates are not meant for configuration.</p>\n\n<h2>Limitations</h2>\n\n<p>This has been tested on Ubuntu Precise, Debian Wheezy, and CentOS 5.8.</p>\n\n<h2>Development</h2>\n\n<h3>Overview</h3>\n\n<p>Puppet Labs modules on the Puppet Forge are open projects, and community contributions are essential for keeping them great. We can’t access the huge number of platforms and myriad of hardware, software, and deployment configurations that Puppet is intended to serve.</p>\n\n<p>We want to keep it as easy as possible to contribute changes so that our modules work in your environment. There are a few guidelines that we need contributors to follow so that we can have a chance of keeping on top of things.</p>\n\n<p>You can read the complete module contribution guide <a href=\"http://projects.puppetlabs.com/projects/module-site/wiki/Module_contributing\">on the Puppet Labs wiki.</a></p>\n\n<h3>Running tests</h3>\n\n<p>This project contains tests for both <a href=\"http://rspec-puppet.com/\">rspec-puppet</a> and <a href=\"https://github.com/puppetlabs/rspec-system\">rspec-system</a> to verify functionality. For in-depth information please see their respective documentation.</p>\n\n<p>Quickstart:</p>\n\n<pre><code>gem install bundler\nbundle install\nbundle exec rake spec\nbundle exec rake spec:system\n</code></pre>\n\n<h2>Copyright and License</h2>\n\n<p>Copyright (C) 2012 <a href=\"https://www.puppetlabs.com/\">Puppet Labs</a> Inc</p>\n\n<p>Puppet Labs can be contacted at: <a href=\"mailto:info@puppetlabs.com\">info@puppetlabs.com</a></p>\n\n<p>Licensed under the Apache License, Version 2.0 (the &quot;License&quot;);\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at</p>\n\n<p><a href=\"http://www.apache.org/licenses/LICENSE-2.0\">http://www.apache.org/licenses/LICENSE-2.0</a></p>\n\n<p>Unless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an &quot;AS IS&quot; BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.</p>\n</section>",
ruby-puppet-forge-2.3.2/spec/fixtures/v3/releases.json-2739-      "changelog": null,
##############################################
ruby-puppet-forge-2.3.2/spec/fixtures/v3/modules.json-315-        "downloads": 628084,
ruby-puppet-forge-2.3.2/spec/fixtures/v3/modules.json:316:        "readme": "<section class=\"markdown\"><h1>Puppet Labs Standard Library</h1>\n\n<p><a href=\"https://travis-ci.org/puppetlabs/puppetlabs-stdlib\"><img src=\"https://travis-ci.org/puppetlabs/puppetlabs-stdlib.png?branch=master\" alt=\"Build Status\"></a></p>\n\n<p>This module provides a &quot;standard library&quot; of resources for developing Puppet\nModules.  This modules will include the following additions to Puppet</p>\n\n<ul>\n<li>Stages</li>\n<li>Facts</li>\n<li>Functions</li>\n<li>Defined resource types</li>\n<li>Types</li>\n<li>Providers</li>\n</ul>\n\n<p>This module is officially curated and provided by Puppet Labs.  The modules\nPuppet Labs writes and distributes will make heavy use of this standard\nlibrary.</p>\n\n<p>To report or research a bug with any part of this module, please go to\n<a href=\"http://projects.puppetlabs.com/projects/stdlib\">http://projects.puppetlabs.com/projects/stdlib</a></p>\n\n<h1>Versions</h1>\n\n<p>This module follows semver.org (v1.0.0) versioning guidelines.  The standard\nlibrary module is released as part of <a href=\"http://puppetlabs.com/puppet/puppet-enterprise/\">Puppet\nEnterprise</a> and as a result\nolder versions of Puppet Enterprise that Puppet Labs still supports will have\nbugfix maintenance branches periodically &quot;merged up&quot; into master.  The current\nlist of integration branches are:</p>\n\n<ul>\n<li>v2.1.x (v2.1.1 released in PE 1)</li>\n<li>v2.2.x (Never released as part of PE, only to the Forge)</li>\n<li>v2.3.x (Released in PE 2)</li>\n<li>v3.0.x (Never released as part of PE, only to the Forge)</li>\n<li>v4.0.x (Drops support for Puppet 2.7)</li>\n<li>master (mainline development branch)</li>\n</ul>\n\n<p>The first Puppet Enterprise version including the stdlib module is Puppet\nEnterprise 1.2.</p>\n\n<h1>Compatibility</h1>\n\n<table><thead>\n<tr>\n<th align=\"left\">Puppet Versions</th>\n<th align=\"center\">&lt; 2.6</th>\n<th align=\"center\">2.6</th>\n<th align=\"center\">2.7</th>\n<th align=\"center\">3.x</th>\n</tr>\n</thead><tbody>\n<tr>\n<td align=\"left\"><strong>stdlib 2.x</strong></td>\n<td align=\"center\">no</td>\n<td align=\"center\"><strong>yes</strong></td>\n<td align=\"center\"><strong>yes</strong></td>\n<td align=\"center\">no</td>\n</tr>\n<tr>\n<td align=\"left\"><strong>stdlib 3.x</strong></td>\n<td align=\"center\">no</td>\n<td align=\"center\">no</td>\n<td align=\"center\"><strong>yes</strong></td>\n<td align=\"center\"><strong>yes</strong></td>\n</tr>\n<tr>\n<td align=\"left\"><strong>stdlib 4.x</strong></td>\n<td align=\"center\">no</td>\n<td align=\"center\">no</td>\n<td align=\"center\">no</td>\n<td align=\"center\"><strong>yes</strong></td>\n</tr>\n</tbody></table>\n\n<p>The stdlib module does not work with Puppet versions released prior to Puppet\n2.6.0.</p>\n\n<h2>stdlib 2.x</h2>\n\n<p>All stdlib releases in the 2.0 major version support Puppet 2.6 and Puppet 2.7.</p>\n\n<h2>stdlib 3.x</h2>\n\n<p>The 3.0 major release of stdlib drops support for Puppet 2.6.  Stdlib 3.x\nsupports Puppet 2 and Puppet 3.</p>\n\n<h2>stdlib 4.x</h2>\n\n<p>The 4.0 major release of stdlib drops support for Puppet 2.7.  Stdlib 4.x\nsupports Puppet 3.  Notably, ruby 1.8.5 is no longer supported though ruby\n1.8.7, 1.9.3, and 2.0.0 are fully supported.</p>\n\n<h1>Functions</h1>\n\n<h2>abs</h2>\n\n<p>Returns the absolute value of a number, for example -34.56 becomes\n34.56. Takes a single integer and float value as an argument.</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>any2array</h2>\n\n<p>This converts any object to an array containing that object. Empty argument\nlists are converted to an empty array. Arrays are left untouched. Hashes are\nconverted to arrays of alternating keys and values.</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>bool2num</h2>\n\n<p>Converts a boolean to a number. Converts the values:\nfalse, f, 0, n, and no to 0\ntrue, t, 1, y, and yes to 1\n    Requires a single boolean or string as an input.</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>capitalize</h2>\n\n<p>Capitalizes the first letter of a string or array of strings.\nRequires either a single string or an array as an input.</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>chomp</h2>\n\n<p>Removes the record separator from the end of a string or an array of\nstrings, for example <code>hello\\n</code> becomes <code>hello</code>.\nRequires a single string or array as an input.</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>chop</h2>\n\n<p>Returns a new string with the last character removed. If the string ends\nwith <code>\\r\\n</code>, both characters are removed. Applying chop to an empty\nstring returns an empty string. If you wish to merely remove record\nseparators then you should use the <code>chomp</code> function.\nRequires a string or array of strings as input.</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>concat</h2>\n\n<p>Appends the contents of array 2 onto array 1.</p>\n\n<p><em>Example:</em></p>\n\n<pre><code>concat([&#39;1&#39;,&#39;2&#39;,&#39;3&#39;],[&#39;4&#39;,&#39;5&#39;,&#39;6&#39;])\n</code></pre>\n\n<p>Would result in:</p>\n\n<p>[&#39;1&#39;,&#39;2&#39;,&#39;3&#39;,&#39;4&#39;,&#39;5&#39;,&#39;6&#39;]</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>count</h2>\n\n<p>Takes an array as first argument and an optional second argument.\nCount the number of elements in array that matches second argument.\nIf called with only an array it counts the number of elements that are not nil/undef.</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>defined_with_params</h2>\n\n<p>Takes a resource reference and an optional hash of attributes.</p>\n\n<p>Returns true if a resource with the specified attributes has already been added\nto the catalog, and false otherwise.</p>\n\n<pre><code>user { &#39;dan&#39;:\n  ensure =&gt; present,\n}\n\nif ! defined_with_params(User[dan], {&#39;ensure&#39; =&gt; &#39;present&#39; }) {\n  user { &#39;dan&#39;: ensure =&gt; present, }\n}\n</code></pre>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>delete</h2>\n\n<p>Deletes all instances of a given element from an array, substring from a\nstring, or key from a hash.</p>\n\n<p><em>Examples:</em></p>\n\n<pre><code>delete([&#39;a&#39;,&#39;b&#39;,&#39;c&#39;,&#39;b&#39;], &#39;b&#39;)\nWould return: [&#39;a&#39;,&#39;c&#39;]\n\ndelete({&#39;a&#39;=&gt;1,&#39;b&#39;=&gt;2,&#39;c&#39;=&gt;3}, &#39;b&#39;)\nWould return: {&#39;a&#39;=&gt;1,&#39;c&#39;=&gt;3}\n\ndelete(&#39;abracadabra&#39;, &#39;bra&#39;)\nWould return: &#39;acada&#39;\n</code></pre>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>delete_at</h2>\n\n<p>Deletes a determined indexed value from an array.</p>\n\n<p><em>Examples:</em></p>\n\n<pre><code>delete_at([&#39;a&#39;,&#39;b&#39;,&#39;c&#39;], 1)\n</code></pre>\n\n<p>Would return: [&#39;a&#39;,&#39;c&#39;]</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>dirname</h2>\n\n<p>Returns the <code>dirname</code> of a path.</p>\n\n<p><em>Examples:</em></p>\n\n<pre><code>dirname(&#39;/path/to/a/file.ext&#39;)\n</code></pre>\n\n<p>Would return: &#39;/path/to/a&#39;</p>\n\n<h2>downcase</h2>\n\n<p>Converts the case of a string or all strings in an array to lower case.</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>empty</h2>\n\n<p>Returns true if the variable is empty.</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>ensure_packages</h2>\n\n<p>Takes a list of packages and only installs them if they don&#39;t already exist.</p>\n\n<ul>\n<li><em>Type</em>: statement</li>\n</ul>\n\n<h2>ensure_resource</h2>\n\n<p>Takes a resource type, title, and a list of attributes that describe a\nresource.</p>\n\n<pre><code>user { &#39;dan&#39;:\n  ensure =&gt; present,\n}\n</code></pre>\n\n<p>This example only creates the resource if it does not already exist:</p>\n\n<pre><code>ensure_resource(&#39;user, &#39;dan&#39;, {&#39;ensure&#39; =&gt; &#39;present&#39; })\n</code></pre>\n\n<p>If the resource already exists but does not match the specified parameters,\nthis function will attempt to recreate the resource leading to a duplicate\nresource definition error.</p>\n\n<p>An array of resources can also be passed in and each will be created with\nthe type and parameters specified if it doesn&#39;t already exist.</p>\n\n<pre><code>ensure_resource(&#39;user&#39;, [&#39;dan&#39;,&#39;alex&#39;], {&#39;ensure&#39; =&gt; &#39;present&#39;})\n</code></pre>\n\n<ul>\n<li><em>Type</em>: statement</li>\n</ul>\n\n<h2>flatten</h2>\n\n<p>This function flattens any deeply nested arrays and returns a single flat array\nas a result.</p>\n\n<p><em>Examples:</em></p>\n\n<pre><code>flatten([&#39;a&#39;, [&#39;b&#39;, [&#39;c&#39;]]])\n</code></pre>\n\n<p>Would return: [&#39;a&#39;,&#39;b&#39;,&#39;c&#39;]</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>floor</h2>\n\n<p>Returns the largest integer less or equal to the argument.\nTakes a single numeric value as an argument.</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>fqdn_rotate</h2>\n\n<p>Rotates an array a random number of times based on a nodes fqdn.</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>get_module_path</h2>\n\n<p>Returns the absolute path of the specified module for the current\nenvironment.</p>\n\n<p>Example:\n  $module_path = get_module_path(&#39;stdlib&#39;)</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>getparam</h2>\n\n<p>Takes a resource reference and name of the parameter and\nreturns value of resource&#39;s parameter.</p>\n\n<p><em>Examples:</em></p>\n\n<pre><code>define example_resource($param) {\n}\n\nexample_resource { &quot;example_resource_instance&quot;:\n    param =&gt; &quot;param_value&quot;\n}\n\ngetparam(Example_resource[&quot;example_resource_instance&quot;], &quot;param&quot;)\n</code></pre>\n\n<p>Would return: param_value</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>getvar</h2>\n\n<p>Lookup a variable in a remote namespace.</p>\n\n<p>For example:</p>\n\n<pre><code>$foo = getvar(&#39;site::data::foo&#39;)\n# Equivalent to $foo = $site::data::foo\n</code></pre>\n\n<p>This is useful if the namespace itself is stored in a string:</p>\n\n<pre><code>$datalocation = &#39;site::data&#39;\n$bar = getvar(&quot;${datalocation}::bar&quot;)\n# Equivalent to $bar = $site::data::bar\n</code></pre>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>grep</h2>\n\n<p>This function searches through an array and returns any elements that match\nthe provided regular expression.</p>\n\n<p><em>Examples:</em></p>\n\n<pre><code>grep([&#39;aaa&#39;,&#39;bbb&#39;,&#39;ccc&#39;,&#39;aaaddd&#39;], &#39;aaa&#39;)\n</code></pre>\n\n<p>Would return:</p>\n\n<pre><code>[&#39;aaa&#39;,&#39;aaaddd&#39;]\n</code></pre>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>has_interface_with</h2>\n\n<p>Returns boolean based on kind and value:</p>\n\n<ul>\n<li>macaddress</li>\n<li>netmask</li>\n<li>ipaddress</li>\n<li>network</li>\n</ul>\n\n<p>has_interface_with(&quot;macaddress&quot;, &quot;x:x:x:x:x:x&quot;)\nhas_interface_with(&quot;ipaddress&quot;, &quot;127.0.0.1&quot;)    =&gt; true\netc.</p>\n\n<p>If no &quot;kind&quot; is given, then the presence of the interface is checked:\nhas_interface_with(&quot;lo&quot;)                        =&gt; true</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>has_ip_address</h2>\n\n<p>Returns true if the client has the requested IP address on some interface.</p>\n\n<p>This function iterates through the &#39;interfaces&#39; fact and checks the\n&#39;ipaddress_IFACE&#39; facts, performing a simple string comparison.</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>has_ip_network</h2>\n\n<p>Returns true if the client has an IP address within the requested network.</p>\n\n<p>This function iterates through the &#39;interfaces&#39; fact and checks the\n&#39;network_IFACE&#39; facts, performing a simple string comparision.</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>has_key</h2>\n\n<p>Determine if a hash has a certain key value.</p>\n\n<p>Example:</p>\n\n<pre><code>$my_hash = {&#39;key_one&#39; =&gt; &#39;value_one&#39;}\nif has_key($my_hash, &#39;key_two&#39;) {\n  notice(&#39;we will not reach here&#39;)\n}\nif has_key($my_hash, &#39;key_one&#39;) {\n  notice(&#39;this will be printed&#39;)\n}\n</code></pre>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>hash</h2>\n\n<p>This function converts an array into a hash.</p>\n\n<p><em>Examples:</em></p>\n\n<pre><code>hash([&#39;a&#39;,1,&#39;b&#39;,2,&#39;c&#39;,3])\n</code></pre>\n\n<p>Would return: {&#39;a&#39;=&gt;1,&#39;b&#39;=&gt;2,&#39;c&#39;=&gt;3}</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>is_array</h2>\n\n<p>Returns true if the variable passed to this function is an array.</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>is_domain_name</h2>\n\n<p>Returns true if the string passed to this function is a syntactically correct domain name.</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>is_float</h2>\n\n<p>Returns true if the variable passed to this function is a float.</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>is_function_available</h2>\n\n<p>This function accepts a string as an argument, determines whether the\nPuppet runtime has access to a function by that name.  It returns a\ntrue if the function exists, false if not.</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>is_hash</h2>\n\n<p>Returns true if the variable passed to this function is a hash.</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>is_integer</h2>\n\n<p>Returns true if the variable returned to this string is an integer.</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>is_ip_address</h2>\n\n<p>Returns true if the string passed to this function is a valid IP address.</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>is_mac_address</h2>\n\n<p>Returns true if the string passed to this function is a valid mac address.</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>is_numeric</h2>\n\n<p>Returns true if the variable passed to this function is a number.</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>is_string</h2>\n\n<p>Returns true if the variable passed to this function is a string.</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>join</h2>\n\n<p>This function joins an array into a string using a seperator.</p>\n\n<p><em>Examples:</em></p>\n\n<pre><code>join([&#39;a&#39;,&#39;b&#39;,&#39;c&#39;], &quot;,&quot;)\n</code></pre>\n\n<p>Would result in: &quot;a,b,c&quot;</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>join_keys_to_values</h2>\n\n<p>This function joins each key of a hash to that key&#39;s corresponding value with a\nseparator. Keys and values are cast to strings. The return value is an array in\nwhich each element is one joined key/value pair.</p>\n\n<p><em>Examples:</em></p>\n\n<pre><code>join_keys_to_values({&#39;a&#39;=&gt;1,&#39;b&#39;=&gt;2}, &quot; is &quot;)\n</code></pre>\n\n<p>Would result in: [&quot;a is 1&quot;,&quot;b is 2&quot;]</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>keys</h2>\n\n<p>Returns the keys of a hash as an array.</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>loadyaml</h2>\n\n<p>Load a YAML file containing an array, string, or hash, and return the data\nin the corresponding native data type.</p>\n\n<p>For example:</p>\n\n<pre><code>$myhash = loadyaml(&#39;/etc/puppet/data/myhash.yaml&#39;)\n</code></pre>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>lstrip</h2>\n\n<p>Strips leading spaces to the left of a string.</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>max</h2>\n\n<p>Returns the highest value of all arguments.\nRequires at least one argument.</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>member</h2>\n\n<p>This function determines if a variable is a member of an array.</p>\n\n<p><em>Examples:</em></p>\n\n<pre><code>member([&#39;a&#39;,&#39;b&#39;], &#39;b&#39;)\n</code></pre>\n\n<p>Would return: true</p>\n\n<pre><code>member([&#39;a&#39;,&#39;b&#39;], &#39;c&#39;)\n</code></pre>\n\n<p>Would return: false</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>merge</h2>\n\n<p>Merges two or more hashes together and returns the resulting hash.</p>\n\n<p>For example:</p>\n\n<pre><code>$hash1 = {&#39;one&#39; =&gt; 1, &#39;two&#39;, =&gt; 2}\n$hash2 = {&#39;two&#39; =&gt; &#39;dos&#39;, &#39;three&#39;, =&gt; &#39;tres&#39;}\n$merged_hash = merge($hash1, $hash2)\n# The resulting hash is equivalent to:\n# $merged_hash =  {&#39;one&#39; =&gt; 1, &#39;two&#39; =&gt; &#39;dos&#39;, &#39;three&#39; =&gt; &#39;tres&#39;}\n</code></pre>\n\n<p>When there is a duplicate key, the key in the rightmost hash will &quot;win.&quot;</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>min</h2>\n\n<p>Returns the lowest value of all arguments.\nRequires at least one argument.</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>num2bool</h2>\n\n<p>This function converts a number or a string representation of a number into a\ntrue boolean. Zero or anything non-numeric becomes false. Numbers higher then 0\nbecome true.</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>parsejson</h2>\n\n<p>This function accepts JSON as a string and converts into the correct Puppet\nstructure.</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>parseyaml</h2>\n\n<p>This function accepts YAML as a string and converts it into the correct\nPuppet structure.</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>pick</h2>\n\n<p>This function is similar to a coalesce function in SQL in that it will return\nthe first value in a list of values that is not undefined or an empty string\n(two things in Puppet that will return a boolean false value). Typically,\nthis function is used to check for a value in the Puppet Dashboard/Enterprise\nConsole, and failover to a default value like the following:</p>\n\n<pre><code>$real_jenkins_version = pick($::jenkins_version, &#39;1.449&#39;)\n</code></pre>\n\n<p>The value of $real_jenkins_version will first look for a top-scope variable\ncalled &#39;jenkins_version&#39; (note that parameters set in the Puppet Dashboard/\nEnterprise Console are brought into Puppet as top-scope variables), and,\nfailing that, will use a default value of 1.449.</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>prefix</h2>\n\n<p>This function applies a prefix to all elements in an array.</p>\n\n<p><em>Examples:</em></p>\n\n<pre><code>prefix([&#39;a&#39;,&#39;b&#39;,&#39;c&#39;], &#39;p&#39;)\n</code></pre>\n\n<p>Will return: [&#39;pa&#39;,&#39;pb&#39;,&#39;pc&#39;]</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>range</h2>\n\n<p>When given range in the form of (start, stop) it will extrapolate a range as\nan array.</p>\n\n<p><em>Examples:</em></p>\n\n<pre><code>range(&quot;0&quot;, &quot;9&quot;)\n</code></pre>\n\n<p>Will return: [0,1,2,3,4,5,6,7,8,9]</p>\n\n<pre><code>range(&quot;00&quot;, &quot;09&quot;)\n</code></pre>\n\n<p>Will return: <a href=\"Zero%20padded%20strings%20are%20converted%20to%0Aintegers%20automatically\">0,1,2,3,4,5,6,7,8,9</a></p>\n\n<pre><code>range(&quot;a&quot;, &quot;c&quot;)\n</code></pre>\n\n<p>Will return: [&quot;a&quot;,&quot;b&quot;,&quot;c&quot;]</p>\n\n<pre><code>range(&quot;host01&quot;, &quot;host10&quot;)\n</code></pre>\n\n<p>Will return: [&quot;host01&quot;, &quot;host02&quot;, ..., &quot;host09&quot;, &quot;host10&quot;]</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>reject</h2>\n\n<p>This function searches through an array and rejects all elements that match\nthe provided regular expression.</p>\n\n<p><em>Examples:</em></p>\n\n<pre><code>reject([&#39;aaa&#39;,&#39;bbb&#39;,&#39;ccc&#39;,&#39;aaaddd&#39;], &#39;aaa&#39;)\n</code></pre>\n\n<p>Would return:</p>\n\n<pre><code>[&#39;bbb&#39;,&#39;ccc&#39;]\n</code></pre>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>reverse</h2>\n\n<p>Reverses the order of a string or array.</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>rstrip</h2>\n\n<p>Strips leading spaces to the right of the string.</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>shuffle</h2>\n\n<p>Randomizes the order of a string or array elements.</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>size</h2>\n\n<p>Returns the number of elements in a string or array.</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>sort</h2>\n\n<p>Sorts strings and arrays lexically.</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>squeeze</h2>\n\n<p>Returns a new string where runs of the same character that occur in this set\nare replaced by a single character.</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>str2bool</h2>\n\n<p>This converts a string to a boolean. This attempt to convert strings that\ncontain things like: y, 1, t, true to &#39;true&#39; and strings that contain things\nlike: 0, f, n, false, no to &#39;false&#39;.</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>str2saltedsha512</h2>\n\n<p>This converts a string to a salted-SHA512 password hash (which is used for\nOS X versions &gt;= 10.7). Given any simple string, you will get a hex version\nof a salted-SHA512 password hash that can be inserted into your Puppet\nmanifests as a valid password attribute.</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>strftime</h2>\n\n<p>This function returns formatted time.</p>\n\n<p><em>Examples:</em></p>\n\n<p>To return the time since epoch:</p>\n\n<pre><code>strftime(&quot;%s&quot;)\n</code></pre>\n\n<p>To return the date:</p>\n\n<pre><code>strftime(&quot;%Y-%m-%d&quot;)\n</code></pre>\n\n<p><em>Format meaning:</em></p>\n\n<pre><code>%a - The abbreviated weekday name (``Sun&#39;&#39;)\n%A - The  full  weekday  name (``Sunday&#39;&#39;)\n%b - The abbreviated month name (``Jan&#39;&#39;)\n%B - The  full  month  name (``January&#39;&#39;)\n%c - The preferred local date and time representation\n%C - Century (20 in 2009)\n%d - Day of the month (01..31)\n%D - Date (%m/%d/%y)\n%e - Day of the month, blank-padded ( 1..31)\n%F - Equivalent to %Y-%m-%d (the ISO 8601 date format)\n%h - Equivalent to %b\n%H - Hour of the day, 24-hour clock (00..23)\n%I - Hour of the day, 12-hour clock (01..12)\n%j - Day of the year (001..366)\n%k - hour, 24-hour clock, blank-padded ( 0..23)\n%l - hour, 12-hour clock, blank-padded ( 0..12)\n%L - Millisecond of the second (000..999)\n%m - Month of the year (01..12)\n%M - Minute of the hour (00..59)\n%n - Newline (\n</code></pre>\n\n<p>)\n    %N - Fractional seconds digits, default is 9 digits (nanosecond)\n            %3N  millisecond (3 digits)\n            %6N  microsecond (6 digits)\n            %9N  nanosecond (9 digits)\n    %p - Meridian indicator (<code>AM&#39;&#39;  or</code>PM&#39;&#39;)\n    %P - Meridian indicator (<code>am&#39;&#39;  or</code>pm&#39;&#39;)\n    %r - time, 12-hour (same as %I:%M:%S %p)\n    %R - time, 24-hour (%H:%M)\n    %s - Number of seconds since 1970-01-01 00:00:00 UTC.\n    %S - Second of the minute (00..60)\n    %t - Tab character (    )\n    %T - time, 24-hour (%H:%M:%S)\n    %u - Day of the week as a decimal, Monday being 1. (1..7)\n    %U - Week  number  of the current year,\n            starting with the first Sunday as the first\n            day of the first week (00..53)\n    %v - VMS date (%e-%b-%Y)\n    %V - Week number of year according to ISO 8601 (01..53)\n    %W - Week  number  of the current year,\n            starting with the first Monday as the first\n            day of the first week (00..53)\n    %w - Day of the week (Sunday is 0, 0..6)\n    %x - Preferred representation for the date alone, no time\n    %X - Preferred representation for the time alone, no date\n    %y - Year without a century (00..99)\n    %Y - Year with century\n    %z - Time zone as  hour offset from UTC (e.g. +0900)\n    %Z - Time zone name\n    %% - Literal ``%&#39;&#39; character</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>strip</h2>\n\n<p>This function removes leading and trailing whitespace from a string or from\nevery string inside an array.</p>\n\n<p><em>Examples:</em></p>\n\n<pre><code>strip(&quot;    aaa   &quot;)\n</code></pre>\n\n<p>Would result in: &quot;aaa&quot;</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>suffix</h2>\n\n<p>This function applies a suffix to all elements in an array.</p>\n\n<p><em>Examples:</em></p>\n\n<pre><code>suffix([&#39;a&#39;,&#39;b&#39;,&#39;c&#39;], &#39;p&#39;)\n</code></pre>\n\n<p>Will return: [&#39;ap&#39;,&#39;bp&#39;,&#39;cp&#39;]</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>swapcase</h2>\n\n<p>This function will swap the existing case of a string.</p>\n\n<p><em>Examples:</em></p>\n\n<pre><code>swapcase(&quot;aBcD&quot;)\n</code></pre>\n\n<p>Would result in: &quot;AbCd&quot;</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>time</h2>\n\n<p>This function will return the current time since epoch as an integer.</p>\n\n<p><em>Examples:</em></p>\n\n<pre><code>time()\n</code></pre>\n\n<p>Will return something like: 1311972653</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>to_bytes</h2>\n\n<p>Converts the argument into bytes, for example 4 kB becomes 4096.\nTakes a single string value as an argument.</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>type</h2>\n\n<p>Returns the type when passed a variable. Type can be one of:</p>\n\n<ul>\n<li>string</li>\n<li>array</li>\n<li>hash</li>\n<li>float</li>\n<li>integer</li>\n<li><p>boolean</p></li>\n<li><p><em>Type</em>: rvalue</p></li>\n</ul>\n\n<h2>unique</h2>\n\n<p>This function will remove duplicates from strings and arrays.</p>\n\n<p><em>Examples:</em></p>\n\n<pre><code>unique(&quot;aabbcc&quot;)\n</code></pre>\n\n<p>Will return:</p>\n\n<pre><code>abc\n</code></pre>\n\n<p>You can also use this with arrays:</p>\n\n<pre><code>unique([&quot;a&quot;,&quot;a&quot;,&quot;b&quot;,&quot;b&quot;,&quot;c&quot;,&quot;c&quot;])\n</code></pre>\n\n<p>This returns:</p>\n\n<pre><code>[&quot;a&quot;,&quot;b&quot;,&quot;c&quot;]\n</code></pre>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>upcase</h2>\n\n<p>Converts a string or an array of strings to uppercase.</p>\n\n<p><em>Examples:</em></p>\n\n<pre><code>upcase(&quot;abcd&quot;)\n</code></pre>\n\n<p>Will return:</p>\n\n<pre><code>ASDF\n</code></pre>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>uriescape</h2>\n\n<p>Urlencodes a string or array of strings.\nRequires either a single string or an array as an input.</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>validate_absolute_path</h2>\n\n<p>Validate the string represents an absolute path in the filesystem.  This function works\nfor windows and unix style paths.</p>\n\n<p>The following values will pass:</p>\n\n<pre><code>$my_path = &quot;C:/Program Files (x86)/Puppet Labs/Puppet&quot;\nvalidate_absolute_path($my_path)\n$my_path2 = &quot;/var/lib/puppet&quot;\nvalidate_absolute_path($my_path2)\n</code></pre>\n\n<p>The following values will fail, causing compilation to abort:</p>\n\n<pre><code>validate_absolute_path(true)\nvalidate_absolute_path([ &#39;var/lib/puppet&#39;, &#39;/var/foo&#39; ])\nvalidate_absolute_path([ &#39;/var/lib/puppet&#39;, &#39;var/foo&#39; ])\n$undefined = undef\nvalidate_absolute_path($undefined)\n</code></pre>\n\n<ul>\n<li><em>Type</em>: statement</li>\n</ul>\n\n<h2>validate_array</h2>\n\n<p>Validate that all passed values are array data structures. Abort catalog\ncompilation if any value fails this check.</p>\n\n<p>The following values will pass:</p>\n\n<pre><code>$my_array = [ &#39;one&#39;, &#39;two&#39; ]\nvalidate_array($my_array)\n</code></pre>\n\n<p>The following values will fail, causing compilation to abort:</p>\n\n<pre><code>validate_array(true)\nvalidate_array(&#39;some_string&#39;)\n$undefined = undef\nvalidate_array($undefined)\n</code></pre>\n\n<ul>\n<li><em>Type</em>: statement</li>\n</ul>\n\n<h2>validate_augeas</h2>\n\n<p>Perform validation of a string using an Augeas lens\nThe first argument of this function should be a string to\ntest, and the second argument should be the name of the Augeas lens to use.\nIf Augeas fails to parse the string with the lens, the compilation will\nabort with a parse error.</p>\n\n<p>A third argument can be specified, listing paths which should\nnot be found in the file. The <code>$file</code> variable points to the location\nof the temporary file being tested in the Augeas tree.</p>\n\n<p>For example, if you want to make sure your passwd content never contains\na user <code>foo</code>, you could write:</p>\n\n<pre><code>validate_augeas($passwdcontent, &#39;Passwd.lns&#39;, [&#39;$file/foo&#39;])\n</code></pre>\n\n<p>Or if you wanted to ensure that no users used the &#39;/bin/barsh&#39; shell,\nyou could use:</p>\n\n<pre><code>validate_augeas($passwdcontent, &#39;Passwd.lns&#39;, [&#39;$file/*[shell=&quot;/bin/barsh&quot;]&#39;]\n</code></pre>\n\n<p>If a fourth argument is specified, this will be the error message raised and\nseen by the user.</p>\n\n<p>A helpful error message can be returned like this:</p>\n\n<pre><code>validate_augeas($sudoerscontent, &#39;Sudoers.lns&#39;, [], &#39;Failed to validate sudoers content with Augeas&#39;)\n</code></pre>\n\n<ul>\n<li><em>Type</em>: statement</li>\n</ul>\n\n<h2>validate_bool</h2>\n\n<p>Validate that all passed values are either true or false. Abort catalog\ncompilation if any value fails this check.</p>\n\n<p>The following values will pass:</p>\n\n<pre><code>$iamtrue = true\nvalidate_bool(true)\nvalidate_bool(true, true, false, $iamtrue)\n</code></pre>\n\n<p>The following values will fail, causing compilation to abort:</p>\n\n<pre><code>$some_array = [ true ]\nvalidate_bool(&quot;false&quot;)\nvalidate_bool(&quot;true&quot;)\nvalidate_bool($some_array)\n</code></pre>\n\n<ul>\n<li><em>Type</em>: statement</li>\n</ul>\n\n<h2>validate_cmd</h2>\n\n<p>Perform validation of a string with an external command.\nThe first argument of this function should be a string to\ntest, and the second argument should be a path to a test command\ntaking a file as last argument. If the command, launched against\na tempfile containing the passed string, returns a non-null value,\ncompilation will abort with a parse error.</p>\n\n<p>If a third argument is specified, this will be the error message raised and\nseen by the user.</p>\n\n<p>A helpful error message can be returned like this:</p>\n\n<p>Example:</p>\n\n<pre><code>validate_cmd($sudoerscontent, &#39;/usr/sbin/visudo -c -f&#39;, &#39;Visudo failed to validate sudoers content&#39;)\n</code></pre>\n\n<ul>\n<li><em>Type</em>: statement</li>\n</ul>\n\n<h2>validate_hash</h2>\n\n<p>Validate that all passed values are hash data structures. Abort catalog\ncompilation if any value fails this check.</p>\n\n<p>The following values will pass:</p>\n\n<pre><code>$my_hash = { &#39;one&#39; =&gt; &#39;two&#39; }\nvalidate_hash($my_hash)\n</code></pre>\n\n<p>The following values will fail, causing compilation to abort:</p>\n\n<pre><code>validate_hash(true)\nvalidate_hash(&#39;some_string&#39;)\n$undefined = undef\nvalidate_hash($undefined)\n</code></pre>\n\n<ul>\n<li><em>Type</em>: statement</li>\n</ul>\n\n<h2>validate_re</h2>\n\n<p>Perform simple validation of a string against one or more regular\nexpressions. The first argument of this function should be a string to\ntest, and the second argument should be a stringified regular expression\n(without the // delimiters) or an array of regular expressions.  If none\nof the regular expressions match the string passed in, compilation will\nabort with a parse error.</p>\n\n<p>If a third argument is specified, this will be the error message raised and\nseen by the user.</p>\n\n<p>The following strings will validate against the regular expressions:</p>\n\n<pre><code>validate_re(&#39;one&#39;, &#39;^one$&#39;)\nvalidate_re(&#39;one&#39;, [ &#39;^one&#39;, &#39;^two&#39; ])\n</code></pre>\n\n<p>The following strings will fail to validate, causing compilation to abort:</p>\n\n<pre><code>validate_re(&#39;one&#39;, [ &#39;^two&#39;, &#39;^three&#39; ])\n</code></pre>\n\n<p>A helpful error message can be returned like this:</p>\n\n<pre><code>validate_re($::puppetversion, &#39;^2.7&#39;, &#39;The $puppetversion fact value does not match 2.7&#39;)\n</code></pre>\n\n<ul>\n<li><em>Type</em>: statement</li>\n</ul>\n\n<h2>validate_slength</h2>\n\n<p>Validate that the first argument is a string (or an array of strings), and\nless/equal to than the length of the second argument.  It fails if the first\nargument is not a string or array of strings, and if arg 2 is not convertable\nto a number.</p>\n\n<p>The following values will pass:</p>\n\n<p>validate_slength(&quot;discombobulate&quot;,17)\n  validate_slength([&quot;discombobulate&quot;,&quot;moo&quot;],17)</p>\n\n<p>The following valueis will not:</p>\n\n<p>validate_slength(&quot;discombobulate&quot;,1)\n  validate_slength([&quot;discombobulate&quot;,&quot;thermometer&quot;],5)</p>\n\n<ul>\n<li><em>Type</em>: statement</li>\n</ul>\n\n<h2>validate_string</h2>\n\n<p>Validate that all passed values are string data structures. Abort catalog\ncompilation if any value fails this check.</p>\n\n<p>The following values will pass:</p>\n\n<pre><code>$my_string = &quot;one two&quot;\nvalidate_string($my_string, &#39;three&#39;)\n</code></pre>\n\n<p>The following values will fail, causing compilation to abort:</p>\n\n<pre><code>validate_string(true)\nvalidate_string([ &#39;some&#39;, &#39;array&#39; ])\n$undefined = undef\nvalidate_string($undefined)\n</code></pre>\n\n<ul>\n<li><em>Type</em>: statement</li>\n</ul>\n\n<h2>values</h2>\n\n<p>When given a hash this function will return the values of that hash.</p>\n\n<p><em>Examples:</em></p>\n\n<pre><code>$hash = {\n  &#39;a&#39; =&gt; 1,\n  &#39;b&#39; =&gt; 2,\n  &#39;c&#39; =&gt; 3,\n}\nvalues($hash)\n</code></pre>\n\n<p>This example would return:</p>\n\n<pre><code>[1,2,3]\n</code></pre>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>values_at</h2>\n\n<p>Finds value inside an array based on location.</p>\n\n<p>The first argument is the array you want to analyze, and the second element can\nbe a combination of:</p>\n\n<ul>\n<li>A single numeric index</li>\n<li>A range in the form of &#39;start-stop&#39; (eg. 4-9)</li>\n<li>An array combining the above</li>\n</ul>\n\n<p><em>Examples</em>:</p>\n\n<pre><code>values_at([&#39;a&#39;,&#39;b&#39;,&#39;c&#39;], 2)\n</code></pre>\n\n<p>Would return [&#39;c&#39;].</p>\n\n<pre><code>values_at([&#39;a&#39;,&#39;b&#39;,&#39;c&#39;], [&quot;0-1&quot;])\n</code></pre>\n\n<p>Would return [&#39;a&#39;,&#39;b&#39;].</p>\n\n<pre><code>values_at([&#39;a&#39;,&#39;b&#39;,&#39;c&#39;,&#39;d&#39;,&#39;e&#39;], [0, &quot;2-3&quot;])\n</code></pre>\n\n<p>Would return [&#39;a&#39;,&#39;c&#39;,&#39;d&#39;].</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>zip</h2>\n\n<p>Takes one element from first array and merges corresponding elements from second array. This generates a sequence of n-element arrays, where n is one more than the count of arguments.</p>\n\n<p><em>Example:</em></p>\n\n<pre><code>zip([&#39;1&#39;,&#39;2&#39;,&#39;3&#39;],[&#39;4&#39;,&#39;5&#39;,&#39;6&#39;])\n</code></pre>\n\n<p>Would result in:</p>\n\n<pre><code>[&quot;1&quot;, &quot;4&quot;], [&quot;2&quot;, &quot;5&quot;], [&quot;3&quot;, &quot;6&quot;]\n</code></pre>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<p><em>This page autogenerated on 2013-04-11 13:54:25 -0700</em></p>\n</section>",
ruby-puppet-forge-2.3.2/spec/fixtures/v3/modules.json-317-        "changelog": "<section class=\"plaintext\"><pre>2013-05-06 - Jeff McCune &lt;jeff@puppetlabs.com&gt; - 4.1.0\n * (#20582) Restore facter_dot_d to stdlib for PE users (3b887c8)\n * (maint) Update Gemfile with GEM_FACTER_VERSION (f44d535)\n\n2013-05-06 - Alex Cline &lt;acline@us.ibm.com&gt; - 4.1.0\n * Terser method of string to array conversion courtesy of ethooz. (d38bce0)\n\n2013-05-06 - Alex Cline &lt;acline@us.ibm.com&gt; 4.1.0\n * Refactor ensure_resource expectations (b33cc24)\n\n2013-05-06 - Alex Cline &lt;acline@us.ibm.com&gt; 4.1.0\n * Changed str-to-array conversion and removed abbreviation. (de253db)\n\n2013-05-03 - Alex Cline &lt;acline@us.ibm.com&gt; 4.1.0\n * (#20548) Allow an array of resource titles to be passed into the ensure_resource function (e08734a)\n\n2013-05-02 - Raphaël Pinson &lt;raphael.pinson@camptocamp.com&gt; - 4.1.0\n * Add a dirname function (2ba9e47)\n\n2013-04-29 - Mark Smith-Guerrero &lt;msmithgu@gmail.com&gt; - 4.1.0\n * (maint) Fix a small typo in hash() description (928036a)\n\n2013-04-12 - Jeff McCune &lt;jeff@puppetlabs.com&gt; - 4.0.2\n * Update user information in gemspec to make the intent of the Gem clear.\n\n2013-04-11 - Jeff McCune &lt;jeff@puppetlabs.com&gt; - 4.0.1\n * Fix README function documentation (ab3e30c)\n\n2013-04-11 - Jeff McCune &lt;jeff@puppetlabs.com&gt; - 4.0.0\n * stdlib 4.0 drops support with Puppet 2.7\n * stdlib 4.0 preserves support with Puppet 3\n\n2013-04-11 - Jeff McCune &lt;jeff@puppetlabs.com&gt; - 4.0.0\n * Add ability to use puppet from git via bundler (9c5805f)\n\n2013-04-10 - Jeff McCune &lt;jeff@puppetlabs.com&gt; - 4.0.0\n * (maint) Make stdlib usable as a Ruby GEM (e81a45e)\n\n2013-04-10 - Erik Dalén &lt;dalen@spotify.com&gt; - 4.0.0\n * Add a count function (f28550e)\n\n2013-03-31 - Amos Shapira &lt;ashapira@atlassian.com&gt; - 4.0.0\n * (#19998) Implement any2array (7a2fb80)\n\n2013-03-29 - Steve Huff &lt;shuff@vecna.org&gt; - 4.0.0\n * (19864) num2bool match fix (8d217f0)\n\n2013-03-20 - Erik Dalén &lt;dalen@spotify.com&gt; - 4.0.0\n * Allow comparisons of Numeric and number as String (ff5dd5d)\n\n2013-03-26 - Richard Soderberg &lt;rsoderberg@mozilla.com&gt; - 4.0.0\n * add suffix function to accompany the prefix function (88a93ac)\n\n2013-03-19 - Kristof Willaert &lt;kristof.willaert@gmail.com&gt; - 4.0.0\n * Add floor function implementation and unit tests (0527341)\n\n2012-04-03 - Eric Shamow &lt;eric@puppetlabs.com&gt; - 4.0.0\n * (#13610) Add is_function_available to stdlib (961dcab)\n\n2012-12-17 - Justin Lambert &lt;jlambert@eml.cc&gt; - 4.0.0\n * str2bool should return a boolean if called with a boolean (5d5a4d4)\n\n2012-10-23 - Uwe Stuehler &lt;ustuehler@team.mobile.de&gt; - 4.0.0\n * Fix number of arguments check in flatten() (e80207b)\n\n2013-03-11 - Jeff McCune &lt;jeff@puppetlabs.com&gt; - 4.0.0\n * Add contributing document (96e19d0)\n\n2013-03-04 - Raphaël Pinson &lt;raphael.pinson@camptocamp.com&gt; - 4.0.0\n * Add missing documentation for validate_augeas and validate_cmd to README.markdown (a1510a1)\n\n2013-02-14 - Joshua Hoblitt &lt;jhoblitt@cpan.org&gt; - 4.0.0\n * (#19272) Add has_element() function (95cf3fe)\n\n2013-02-07 - Raphaël Pinson &lt;raphael.pinson@camptocamp.com&gt; - 4.0.0\n * validate_cmd(): Use Puppet::Util::Execution.execute when available (69248df)\n\n2012-12-06 - Raphaël Pinson &lt;raphink@gmail.com&gt; - 4.0.0\n * Add validate_augeas function (3a97c23)\n\n2012-12-06 - Raphaël Pinson &lt;raphink@gmail.com&gt; - 4.0.0\n * Add validate_cmd function (6902cc5)\n\n2013-01-14 - David Schmitt &lt;david@dasz.at&gt; - 4.0.0\n * Add geppetto project definition (b3fc0a3)\n\n2013-01-02 - Jaka Hudoklin &lt;jakahudoklin@gmail.com&gt; - 4.0.0\n * Add getparam function to get defined resource parameters (20e0e07)\n\n2013-01-05 - Jeff McCune &lt;jeff@puppetlabs.com&gt; - 4.0.0\n * (maint) Add Travis CI Support (d082046)\n\n2012-12-04 - Jeff McCune &lt;jeff@puppetlabs.com&gt; - 4.0.0\n * Clarify that stdlib 3 supports Puppet 3 (3a6085f)\n\n2012-11-30 - Erik Dalén &lt;dalen@spotify.com&gt; - 4.0.0\n * maint: style guideline fixes (7742e5f)\n\n2012-11-09 - James Fryman &lt;james@frymanet.com&gt; - 4.0.0\n * puppet-lint cleanup (88acc52)\n\n2012-11-06 - Joe Julian &lt;me@joejulian.name&gt; - 4.0.0\n * Add function, uriescape, to URI.escape strings. Redmine #17459 (fd52b8d)\n\n2012-09-18 - Chad Metcalf &lt;chad@wibidata.com&gt; - 3.2.0\n * Add an ensure_packages function. (8a8c09e)\n\n2012-11-23 - Erik Dalén &lt;dalen@spotify.com&gt; - 3.2.0\n * (#17797) min() and max() functions (9954133)\n\n2012-05-23 - Peter Meier &lt;peter.meier@immerda.ch&gt; - 3.2.0\n * (#14670) autorequire a file_line resource&#x27;s path (dfcee63)\n\n2012-11-19 - Joshua Harlan Lifton &lt;lifton@puppetlabs.com&gt; - 3.2.0\n * Add join_keys_to_values function (ee0f2b3)\n\n2012-11-17 - Joshua Harlan Lifton &lt;lifton@puppetlabs.com&gt; - 3.2.0\n * Extend delete function for strings and hashes (7322e4d)\n\n2012-08-03 - Gary Larizza &lt;gary@puppetlabs.com&gt; - 3.2.0\n * Add the pick() function (ba6dd13)\n\n2012-03-20 - Wil Cooley &lt;wcooley@pdx.edu&gt; - 3.2.0\n * (#13974) Add predicate functions for interface facts (f819417)\n\n2012-11-06 - Joe Julian &lt;me@joejulian.name&gt; - 3.2.0\n * Add function, uriescape, to URI.escape strings. Redmine #17459 (70f4a0e)\n\n2012-10-25 - Jeff McCune &lt;jeff@puppetlabs.com&gt; - 3.1.1\n * (maint) Fix spec failures resulting from Facter API changes (97f836f)\n\n2012-10-23 - Matthaus Owens &lt;matthaus@puppetlabs.com&gt; - 3.1.0\n * Add PE facts to stdlib (cdf3b05)\n\n2012-08-16 - Jeff McCune &lt;jeff@puppetlabs.com&gt; - 3.0.1\n * Fix accidental removal of facts_dot_d.rb in 3.0.0 release\n\n2012-08-16 - Jeff McCune &lt;jeff@puppetlabs.com&gt; - 3.0.0\n * stdlib 3.0 drops support with Puppet 2.6\n * stdlib 3.0 preserves support with Puppet 2.7\n\n2012-08-07 - Dan Bode &lt;dan@puppetlabs.com&gt; - 3.0.0\n * Add function ensure_resource and defined_with_params (ba789de)\n\n2012-07-10 - Hailee Kenney &lt;hailee@puppetlabs.com&gt; - 3.0.0\n * (#2157) Remove facter_dot_d for compatibility with external facts (f92574f)\n\n2012-04-10 - Chris Price &lt;chris@puppetlabs.com&gt; - 3.0.0\n * (#13693) moving logic from local spec_helper to puppetlabs_spec_helper (85f96df)\n\n2012-10-25 - Jeff McCune &lt;jeff@puppetlabs.com&gt; - 2.5.1\n * (maint) Fix spec failures resulting from Facter API changes (97f836f)\n\n2012-10-23 - Matthaus Owens &lt;matthaus@puppetlabs.com&gt; - 2.5.0\n * Add PE facts to stdlib (cdf3b05)\n\n2012-08-15 - Dan Bode &lt;dan@puppetlabs.com&gt; - 2.5.0\n * Explicitly load functions used by ensure_resource (9fc3063)\n\n2012-08-13 - Dan Bode &lt;dan@puppetlabs.com&gt; - 2.5.0\n * Add better docs about duplicate resource failures (97d327a)\n\n2012-08-13 - Dan Bode &lt;dan@puppetlabs.com&gt; - 2.5.0\n * Handle undef for parameter argument (4f8b133)\n\n2012-08-07 - Dan Bode &lt;dan@puppetlabs.com&gt; - 2.5.0\n * Add function ensure_resource and defined_with_params (a0cb8cd)\n\n2012-08-20 - Jeff McCune &lt;jeff@puppetlabs.com&gt; - 2.5.0\n * Disable tests that fail on 2.6.x due to #15912 (c81496e)\n\n2012-08-20 - Jeff McCune &lt;jeff@puppetlabs.com&gt; - 2.5.0\n * (Maint) Fix mis-use of rvalue functions as statements (4492913)\n\n2012-08-20 - Jeff McCune &lt;jeff@puppetlabs.com&gt; - 2.5.0\n * Add .rspec file to repo root (88789e8)\n\n2012-06-07 - Chris Price &lt;chris@puppetlabs.com&gt; - 2.4.0\n * Add support for a &#x27;match&#x27; parameter to file_line (a06c0d8)\n\n2012-08-07 - Erik Dalén &lt;dalen@spotify.com&gt; - 2.4.0\n * (#15872) Add to_bytes function (247b69c)\n\n2012-07-19 - Jeff McCune &lt;jeff@puppetlabs.com&gt; - 2.4.0\n * (Maint) use PuppetlabsSpec::PuppetInternals.scope (master) (deafe88)\n\n2012-07-10 - Hailee Kenney &lt;hailee@puppetlabs.com&gt; - 2.4.0\n * (#2157) Make facts_dot_d compatible with external facts (5fb0ddc)\n\n2012-03-16 - Steve Traylen &lt;steve.traylen@cern.ch&gt; - 2.4.0\n * (#13205) Rotate array&#x2F;string randomley based on fqdn, fqdn_rotate() (fef247b)\n\n2012-05-22 - Peter Meier &lt;peter.meier@immerda.ch&gt; - 2.3.3\n * fix regression in #11017 properly (f0a62c7)\n\n2012-05-10 - Jeff McCune &lt;jeff@puppetlabs.com&gt; - 2.3.3\n * Fix spec tests using the new spec_helper (7d34333)\n\n2012-05-10 - Puppet Labs &lt;support@puppetlabs.com&gt; - 2.3.2\n * Make file_line default to ensure =&gt; present (1373e70)\n * Memoize file_line spec instance variables (20aacc5)\n * Fix spec tests using the new spec_helper (1ebfa5d)\n * (#13595) initialize_everything_for_tests couples modules Puppet ver (3222f35)\n * (#13439) Fix MRI 1.9 issue with spec_helper (15c5fd1)\n * (#13439) Fix test failures with Puppet 2.6.x (665610b)\n * (#13439) refactor spec helper for compatibility with both puppet 2.7 and master (82194ca)\n * (#13494) Specify the behavior of zero padded strings (61891bb)\n\n2012-03-29 Puppet Labs &lt;support@puppetlabs.com&gt; - 2.1.3\n* (#11607) Add Rakefile to enable spec testing\n* (#12377) Avoid infinite loop when retrying require json\n\n2012-03-13 Puppet Labs &lt;support@puppetlabs.com&gt; - 2.3.1\n* (#13091) Fix LoadError bug with puppet apply and puppet_vardir fact\n\n2012-03-12 Puppet Labs &lt;support@puppetlabs.com&gt; - 2.3.0\n* Add a large number of new Puppet functions\n* Backwards compatibility preserved with 2.2.x\n\n2011-12-30 Puppet Labs &lt;support@puppetlabs.com&gt; - 2.2.1\n* Documentation only release for the Forge\n\n2011-12-30 Puppet Labs &lt;support@puppetlabs.com&gt; - 2.1.2\n* Documentation only release for PE 2.0.x\n\n2011-11-08 Puppet Labs &lt;support@puppetlabs.com&gt; - 2.2.0\n* #10285 - Refactor json to use pson instead.\n* Maint  - Add watchr autotest script\n* Maint  - Make rspec tests work with Puppet 2.6.4\n* #9859  - Add root_home fact and tests\n\n2011-08-18 Puppet Labs &lt;support@puppetlabs.com&gt; - 2.1.1\n* Change facts.d paths to match Facter 2.0 paths.\n* &#x2F;etc&#x2F;facter&#x2F;facts.d\n* &#x2F;etc&#x2F;puppetlabs&#x2F;facter&#x2F;facts.d\n\n2011-08-17 Puppet Labs &lt;support@puppetlabs.com&gt; - 2.1.0\n* Add R.I. Pienaar&#x27;s facts.d custom facter fact\n* facts defined in &#x2F;etc&#x2F;facts.d and &#x2F;etc&#x2F;puppetlabs&#x2F;facts.d are\n  automatically loaded now.\n\n2011-08-04 Puppet Labs &lt;support@puppetlabs.com&gt; - 2.0.0\n* Rename whole_line to file_line\n* This is an API change and as such motivating a 2.0.0 release according to semver.org.\n\n2011-08-04 Puppet Labs &lt;support@puppetlabs.com&gt; - 1.1.0\n* Rename append_line to whole_line\n* This is an API change and as such motivating a 1.1.0 release.\n\n2011-08-04 Puppet Labs &lt;support@puppetlabs.com&gt; - 1.0.0\n* Initial stable release\n* Add validate_array and validate_string functions\n* Make merge() function work with Ruby 1.8.5\n* Add hash merging function\n* Add has_key function\n* Add loadyaml() function\n* Add append_line native\n\n2011-06-21 Jeff McCune &lt;jeff@puppetlabs.com&gt; - 0.1.7\n* Add validate_hash() and getvar() functions\n\n2011-06-15 Jeff McCune &lt;jeff@puppetlabs.com&gt; - 0.1.6\n* Add anchor resource type to provide containment for composite classes\n\n2011-06-03 Jeff McCune &lt;jeff@puppetlabs.com&gt; - 0.1.5\n* Add validate_bool() function to stdlib\n\n0.1.4 2011-05-26 Jeff McCune &lt;jeff@puppetlabs.com&gt;\n* Move most stages after main\n\n0.1.3 2011-05-25 Jeff McCune &lt;jeff@puppetlabs.com&gt;\n* Add validate_re() function\n\n0.1.2 2011-05-24 Jeff McCune &lt;jeff@puppetlabs.com&gt;\n* Update to add annotated tag\n\n0.1.1 2011-05-24 Jeff McCune &lt;jeff@puppetlabs.com&gt;\n* Add stdlib::stages class with a standard set of stages\n</pre></section>",
##############################################
ruby-puppet-forge-2.3.2/spec/fixtures/v3/modules.json-710-                  "name": "chain",
ruby-puppet-forge-2.3.2/spec/fixtures/v3/modules.json:711:                  "doc": "      Name of the chain to use. Can be one of the built-ins:\n\n      * INPUT\n      * FORWARD\n      * OUTPUT\n      * PREROUTING\n      * POSTROUTING\n\n      Or you can provide a user-based chain.\n\n      The default value is 'INPUT'.\n  Values can match `/^[a-zA-Z0-9\\-_]+$/`.  Requires features iptables."
ruby-puppet-forge-2.3.2/spec/fixtures/v3/modules.json-712-                },
##############################################
ruby-puppet-forge-2.3.2/spec/fixtures/v3/modules.json-722-                  "name": "iniface",
ruby-puppet-forge-2.3.2/spec/fixtures/v3/modules.json:723:                  "doc": "      Input interface to filter on.\n  Values can match `/^[a-zA-Z0-9\\-\\._\\+]+$/`.  Requires features interface_match."
ruby-puppet-forge-2.3.2/spec/fixtures/v3/modules.json-724-                },
##############################################
ruby-puppet-forge-2.3.2/spec/fixtures/v3/modules.json-726-                  "name": "outiface",
ruby-puppet-forge-2.3.2/spec/fixtures/v3/modules.json:727:                  "doc": "      Output interface to filter on.\n  Values can match `/^[a-zA-Z0-9\\-\\._\\+]+$/`.  Requires features interface_match."
ruby-puppet-forge-2.3.2/spec/fixtures/v3/modules.json-728-                },
##############################################
ruby-puppet-forge-2.3.2/spec/fixtures/v3/modules.json-766-                  "name": "burst",
ruby-puppet-forge-2.3.2/spec/fixtures/v3/modules.json:767:                  "doc": "      Rate limiting burst value (per second) before limit checks apply.\n  Values can match `/^\\d+$/`.  Requires features rate_limiting."
ruby-puppet-forge-2.3.2/spec/fixtures/v3/modules.json-768-                },
##############################################
ruby-puppet-forge-2.3.2/spec/fixtures/v3/modules.json-796-                  "name": "name",
ruby-puppet-forge-2.3.2/spec/fixtures/v3/modules.json:797:                  "doc": "      The canonical name of the rule. This name is also used for ordering\n      so make sure you prefix the rule with a number:\n\n          000 this runs first\n          999 this runs last\n\n      Depending on the provider, the name of the rule can be stored using\n      the comment feature of the underlying firewall subsystem.\n  Values can match `/^\\d+[[:alpha:][:digit:][:punct:][:space:]]+$/`."
ruby-puppet-forge-2.3.2/spec/fixtures/v3/modules.json-798-                },
##############################################
ruby-puppet-forge-2.3.2/spec/fixtures/v3/modules.json-1279-        "downloads": 6389,
ruby-puppet-forge-2.3.2/spec/fixtures/v3/modules.json:1280:        "readme": "<section class=\"markdown\"><h1>apache</h1>\n\n<p><a href=\"https://travis-ci.org/puppetlabs/puppetlabs-apache\"><img src=\"https://travis-ci.org/puppetlabs/puppetlabs-apache.png?branch=master\" alt=\"Build Status\"></a></p>\n\n<h4>Table of Contents</h4>\n\n<ol>\n<li><a href=\"#overview\">Overview - What is the Apache module?</a></li>\n<li><a href=\"#module-description\">Module Description - What does the module do?</a></li>\n<li><a href=\"#setup\">Setup - The basics of getting started with Apache</a>\n\n<ul>\n<li><a href=\"#beginning-with-apache\">Beginning with Apache - Installation</a></li>\n<li><a href=\"#configure-a-virtual-host\">Configure a Virtual Host - Basic options for getting started</a></li>\n</ul></li>\n<li><a href=\"#usage\">Usage - The classes, defined types, and their parameters available for configuration</a>\n\n<ul>\n<li><a href=\"#classes-and-defined-types\">Classes and Defined Types</a>\n\n<ul>\n<li><a href=\"#class-apache\">Class: apache</a></li>\n<li><a href=\"#classes-apachemodname\">Classes: apache::mod::*</a></li>\n<li><a href=\"#defined-type-apachevhost\">Defined Type: apache::vhost</a></li>\n</ul></li>\n<li><a href=\"#virtual-host-examples\">Virtual Host Examples - Demonstrations of some configuration options</a></li>\n</ul></li>\n<li><a href=\"#implementation\">Implementation - An under-the-hood peek at what the module is doing</a>\n\n<ul>\n<li><a href=\"#classes-and-defined-types\">Classes and Defined Types</a></li>\n<li><a href=\"#templates\">Templates</a></li>\n</ul></li>\n<li><a href=\"#limitations\">Limitations - OS compatibility, etc.</a></li>\n<li><a href=\"#development\">Development - Guide for contributing to the module</a></li>\n<li><a href=\"#release-notes\">Release Notes - Notes on the most recent updates to the module</a></li>\n</ol>\n\n<h2>Overview</h2>\n\n<p>The Apache module allows you to set up virtual hosts and manage web services with minimal effort.</p>\n\n<h2>Module Description</h2>\n\n<p>Apache is a widely-used web server, and this module provides a simplified way of creating configurations to manage your infrastructure. This includes the ability to configure and manage a range of different virtual host setups, as well as a streamlined way to install and configure Apache modules.</p>\n\n<h2>Setup</h2>\n\n<p><strong>What Apache affects:</strong></p>\n\n<ul>\n<li>configuration files and directories (created and written to)\n\n<ul>\n<li><strong>NOTE</strong>: Configurations that are <em>not</em> managed by Puppet will be purged.</li>\n</ul></li>\n<li>package/service/configuration files for Apache</li>\n<li>Apache modules</li>\n<li>virtual hosts</li>\n<li>listened-to ports</li>\n<li><code>/etc/make.conf</code> on FreeBSD</li>\n</ul>\n\n<h3>Beginning with Apache</h3>\n\n<p>To install Apache with the default parameters</p>\n\n<pre lang=\"puppet\"><code>    class { &#39;apache&#39;:  }\n</code></pre>\n\n<p>The defaults are determined by your operating system (e.g. Debian systems have one set of defaults, RedHat systems have another). These defaults will work well in a testing environment, but are not suggested for production. To establish customized parameters</p>\n\n<pre lang=\"puppet\"><code>    class { &#39;apache&#39;:\n      default_mods        =&gt; false,\n      default_confd_files =&gt; false,\n    }\n</code></pre>\n\n<h3>Configure a virtual host</h3>\n\n<p>Declaring the <code>apache</code> class will create a default virtual host by setting up a vhost on port 80, listening on all interfaces and serving <code>$apache::docroot</code>.</p>\n\n<pre lang=\"puppet\"><code>    class { &#39;apache&#39;: }\n</code></pre>\n\n<p>To configure a very basic, name-based virtual host</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;first.example.com&#39;:\n      port    =&gt; &#39;80&#39;,\n      docroot =&gt; &#39;/var/www/first&#39;,\n    }\n</code></pre>\n\n<p><em>Note:</em> The default priority is 15. If nothing matches this priority, the alphabetically first name-based vhost will be used. This is also true if you pass a higher priority and no names match anything else.</p>\n\n<p>A slightly more complicated example, which moves the docroot owner/group</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;second.example.com&#39;:\n      port          =&gt; &#39;80&#39;,\n      docroot       =&gt; &#39;/var/www/second&#39;,\n      docroot_owner =&gt; &#39;third&#39;,\n      docroot_group =&gt; &#39;third&#39;,\n    }\n</code></pre>\n\n<p>To set up a virtual host with SSL and default SSL certificates</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;ssl.example.com&#39;:\n      port    =&gt; &#39;443&#39;,\n      docroot =&gt; &#39;/var/www/ssl&#39;,\n      ssl     =&gt; true,\n    }\n</code></pre>\n\n<p>To set up a virtual host with SSL and specific SSL certificates</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;fourth.example.com&#39;:\n      port     =&gt; &#39;443&#39;,\n      docroot  =&gt; &#39;/var/www/fourth&#39;,\n      ssl      =&gt; true,\n      ssl_cert =&gt; &#39;/etc/ssl/fourth.example.com.cert&#39;,\n      ssl_key  =&gt; &#39;/etc/ssl/fourth.example.com.key&#39;,\n    }\n</code></pre>\n\n<p>To set up a virtual host with IP address different than &#39;*&#39;</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;subdomain.example.com&#39;:\n      ip      =&gt; &#39;127.0.0.1&#39;,\n      port    =&gt; &#39;80&#39;,\n      docrout =&gt; &#39;/var/www/subdomain&#39;,\n    }\n</code></pre>\n\n<p>To set up a virtual host with wildcard alias for subdomain mapped to same named directory\n<code>http://examle.com.loc =&gt; /var/www/example.com</code></p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;subdomain.loc&#39;:\n      vhost_name =&gt; &#39;*&#39;,\n      port       =&gt; &#39;80&#39;,\n      virtual_docroot&#39; =&gt; &#39;/var/www/%-2+&#39;,\n      docroot          =&gt; &#39;/var/www&#39;,\n      serveraliases    =&gt; [&#39;*.loc&#39;,],\n    }\n</code></pre>\n\n<p>To set up a virtual host with suPHP</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;suphp.example.com&#39;:\n      port                =&gt; &#39;80&#39;,\n      docroot             =&gt; &#39;/home/appuser/myphpapp&#39;,\n      suphp_addhandler    =&gt; &#39;x-httpd-php&#39;,\n      suphp_engine        =&gt; &#39;on&#39;,\n      suphp_configpath    =&gt; &#39;/etc/php5/apache2&#39;,\n      directories         =&gt; { path =&gt; &#39;/home/appuser/myphpapp&#39;,\n        &#39;suphp&#39;           =&gt; { user =&gt; &#39;myappuser&#39;, group =&gt; &#39;myappgroup&#39; },\n      }\n    }\n</code></pre>\n\n<p>To set up a virtual host with WSGI</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;wsgi.example.com&#39;:\n      port                        =&gt; &#39;80&#39;,\n      docroot                     =&gt; &#39;/var/www/pythonapp&#39;,\n      wsgi_daemon_process         =&gt; &#39;wsgi&#39;,\n      wsgi_daemon_process_options =&gt;\n        { processes =&gt; &#39;2&#39;, threads =&gt; &#39;15&#39;, display-name =&gt; &#39;%{GROUP}&#39; },\n      wsgi_process_group          =&gt; &#39;wsgi&#39;,\n      wsgi_script_aliases         =&gt; { &#39;/&#39; =&gt; &#39;/var/www/demo.wsgi&#39; },\n    }\n</code></pre>\n\n<p>Starting 2.2.16, httpd supports <a href=\"https://httpd.apache.org/docs/2.2/mod/mod_dir.html#fallbackresource\">FallbackResource</a> which is a simple replace for common RewriteRules:</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;wordpress.example.com&#39;:\n      port                =&gt; &#39;80&#39;,\n      docroot             =&gt; &#39;/var/www/wordpress&#39;,\n      fallbackresource    =&gt; &#39;/index.php&#39;,\n    }\n</code></pre>\n\n<p>Please note that the <code>disabled</code> argument to FallbackResource is only supported since 2.2.24.</p>\n\n<p>To see a list of all virtual host parameters, <a href=\"#defined-type-apachevhost\">please go here</a>. To see an extensive list of virtual host examples <a href=\"#virtual-host-examples\">please look here</a>.</p>\n\n<h2>Usage</h2>\n\n<h3>Classes and Defined Types</h3>\n\n<p>This module modifies Apache configuration files and directories and will purge any configuration not managed by Puppet. Configuration of Apache should be managed by Puppet, as non-puppet configuration files can cause unexpected failures.</p>\n\n<p>It is possible to temporarily disable full Puppet management by setting the <code>purge_configs</code> parameter within the base <code>apache</code> class to &#39;false&#39;. This option should only be used as a temporary means of saving and relocating customized configurations.</p>\n\n<h4>Class: <code>apache</code></h4>\n\n<p>The Apache module&#39;s primary class, <code>apache</code>, guides the basic setup of Apache on your system.</p>\n\n<p>You may establish a default vhost in this class, the <code>vhost</code> class, or both. You may add additional vhost configurations for specific virtual hosts using a declaration of the <code>vhost</code> type.</p>\n\n<p><strong>Parameters within <code>apache</code>:</strong></p>\n\n<h5><code>default_mods</code></h5>\n\n<p>Sets up Apache with default settings based on your OS. Defaults to &#39;true&#39;, set to &#39;false&#39; for customized configuration.</p>\n\n<h5><code>default_vhost</code></h5>\n\n<p>Sets up a default virtual host. Defaults to &#39;true&#39;, set to &#39;false&#39; to set up <a href=\"#configure-a-virtual-host\">customized virtual hosts</a>.</p>\n\n<h5><code>default_confd_files</code></h5>\n\n<p>Generates default set of include-able apache configuration files under  <code>${apache::confd_dir}</code> directory. These configuration files correspond to what is usually installed with apache package on given platform.</p>\n\n<h5><code>default_ssl_vhost</code></h5>\n\n<p>Sets up a default SSL virtual host. Defaults to &#39;false&#39;.</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;default-ssl&#39;:\n      port            =&gt; 443,\n      ssl             =&gt; true,\n      docroot         =&gt; $docroot,\n      scriptalias     =&gt; $scriptalias,\n      serveradmin     =&gt; $serveradmin,\n      access_log_file =&gt; &quot;ssl_${access_log_file}&quot;,\n      }\n</code></pre>\n\n<p>SSL vhosts only respond to HTTPS queries.</p>\n\n<h5><code>default_ssl_cert</code></h5>\n\n<p>The default SSL certification, which is automatically set based on your operating system  (<code>/etc/pki/tls/certs/localhost.crt</code> for RedHat, <code>/etc/ssl/certs/ssl-cert-snakeoil.pem</code> for Debian, <code>/usr/local/etc/apache22/server.crt</code> for FreeBSD). This default will work out of the box but must be updated with your specific certificate information before being used in production.</p>\n\n<h5><code>default_ssl_key</code></h5>\n\n<p>The default SSL key, which is automatically set based on your operating system (<code>/etc/pki/tls/private/localhost.key</code> for RedHat, <code>/etc/ssl/private/ssl-cert-snakeoil.key</code> for Debian, <code>/usr/local/etc/apache22/server.key</code> for FreeBSD). This default will work out of the box but must be updated with your specific certificate information before being used in production.</p>\n\n<h5><code>default_ssl_chain</code></h5>\n\n<p>The default SSL chain, which is automatically set to &#39;undef&#39;. This default will work out of the box but must be updated with your specific certificate information before being used in production.</p>\n\n<h5><code>default_ssl_ca</code></h5>\n\n<p>The default certificate authority, which is automatically set to &#39;undef&#39;. This default will work out of the box but must be updated with your specific certificate information before being used in production.</p>\n\n<h5><code>default_ssl_crl_path</code></h5>\n\n<p>The default certificate revocation list path, which is automatically set to &#39;undef&#39;. This default will work out of the box but must be updated with your specific certificate information before being used in production.</p>\n\n<h5><code>default_ssl_crl</code></h5>\n\n<p>The default certificate revocation list to use, which is automatically set to &#39;undef&#39;. This default will work out of the box but must be updated with your specific certificate information before being used in production.</p>\n\n<h5><code>service_name</code></h5>\n\n<p>Name of apache service to run. Defaults to: <code>&#39;httpd&#39;</code> on RedHat, <code>&#39;apache2&#39;</code> on Debian, and <code>&#39;apache22&#39;</code> on FreeBSD.</p>\n\n<h5><code>service_enable</code></h5>\n\n<p>Determines whether the &#39;httpd&#39; service is enabled when the machine is booted. Defaults to &#39;true&#39;.</p>\n\n<h5><code>service_ensure</code></h5>\n\n<p>Determines whether the service should be running. Can be set to &#39;undef&#39; which is useful when you want to let the service be managed by some other application like pacemaker. Defaults to &#39;running&#39;.</p>\n\n<h5><code>purge_configs</code></h5>\n\n<p>Removes all other apache configs and vhosts, which is automatically set to true. Setting this to false is a stopgap measure to allow the apache module to coexist with existing or otherwise managed configuration. It is recommended that you move your configuration entirely to resources within this module.</p>\n\n<h5><code>serveradmin</code></h5>\n\n<p>Sets the server administrator. Defaults to &#39;root@localhost&#39;.</p>\n\n<h5><code>servername</code></h5>\n\n<p>Sets the servername. Defaults to fqdn provided by facter.</p>\n\n<h5><code>server_root</code></h5>\n\n<p>A value to be set as <code>ServerRoot</code> in main configuration file (<code>httpd.conf</code>). Defaults to <code>/etc/httpd</code> on RedHat, <code>/etc/apache2</code> on Debian and <code>/usr/local</code> on FreeBSD.</p>\n\n<h5><code>sendfile</code></h5>\n\n<p>Makes Apache use the Linux kernel &#39;sendfile&#39; to serve static files. Defaults to &#39;On&#39;.</p>\n\n<h5><code>server_root</code></h5>\n\n<p>A value to be set as <code>ServerRoot</code> in main configuration file (<code>httpd.conf</code>). Defaults to <code>/etc/httpd</code> on RedHat and <code>/etc/apache2</code> on Debian.</p>\n\n<h5><code>error_documents</code></h5>\n\n<p>Enables custom error documents. Defaults to &#39;false&#39;.</p>\n\n<h5><code>httpd_dir</code></h5>\n\n<p>Changes the base location of the configuration directories used for the service. This is useful for specially repackaged HTTPD builds but may have unintended consequences when used in combination with the default distribution packages. Default is based on your OS.</p>\n\n<h5><code>confd_dir</code></h5>\n\n<p>Changes the location of the configuration directory your custom configuration files are placed in. Default is based on your OS.</p>\n\n<h5><code>vhost_dir</code></h5>\n\n<p>Changes the location of the configuration directory your virtual host configuration files are placed in. Default is based on your OS.</p>\n\n<h5><code>mod_dir</code></h5>\n\n<p>Changes the location of the configuration directory your Apache modules configuration files are placed in. Default is based on your OS.</p>\n\n<h5><code>mpm_module</code></h5>\n\n<p>Configures which mpm module is loaded and configured for the httpd process by the <code>apache::mod::event</code>, <code>apache::mod::itk</code>, <code>apache::mod::peruser</code>, <code>apache::mod::prefork</code> and <code>apache::mod::worker</code> classes. Must be set to <code>false</code> to explicitly declare <code>apache::mod::event</code>, <code>apache::mod::itk</code>, <code>apache::mod::peruser</code>,  <code>apache::mod::prefork</code> or <code>apache::mod::worker</code> classes with parameters. All possible values are <code>event</code>, <code>itk</code>, <code>peruser</code>, <code>prefork</code>, <code>worker</code> (valid values depend on agent&#39;s OS), or the boolean <code>false</code>. Defaults to <code>prefork</code> on RedHat and FreeBSD and <code>worker</code> on Debian. Note: on FreeBSD switching between different mpm modules is quite difficult (but possible). Before changing <code>$mpm_module</code> one has to deinstall all packages that depend on currently installed <code>apache</code>.</p>\n\n<h5><code>conf_template</code></h5>\n\n<p>Setting this allows you to override the template used for the main apache configuration file.  This is a potentially risky thing to do as this module has been built around the concept of a minimal configuration file with most of the configuration coming in the form of conf.d/ entries.  Defaults to &#39;apache/httpd.conf.erb&#39;.</p>\n\n<h5><code>keepalive</code></h5>\n\n<p>Setting this allows you to enable persistent connections.</p>\n\n<h5><code>keepalive_timeout</code></h5>\n\n<p>Amount of time the server will wait for subsequent requests on a persistent connection. Defaults to &#39;15&#39;.</p>\n\n<h5><code>logroot</code></h5>\n\n<p>Changes the location of the directory Apache log files are placed in. Defaut is based on your OS.</p>\n\n<h5><code>log_level</code></h5>\n\n<p>Changes the verbosity level of the error log. Defaults to &#39;warn&#39;. Valid values are <code>emerg</code>, <code>alert</code>, <code>crit</code>, <code>error</code>, <code>warn</code>, <code>notice</code>, <code>info</code> or <code>debug</code>.</p>\n\n<h5><code>ports_file</code></h5>\n\n<p>Changes the name of the file containing Apache ports configuration. Default is <code>${conf_dir}/ports.conf</code>.</p>\n\n<h5><code>server_tokens</code></h5>\n\n<p>Controls how much information Apache sends to the browser about itself and the operating system. See Apache documentation for &#39;ServerTokens&#39;. Defaults to &#39;OS&#39;.</p>\n\n<h5><code>server_signature</code></h5>\n\n<p>Allows the configuration of a trailing footer line under server-generated documents. See Apache documentation for &#39;ServerSignature&#39;. Defaults to &#39;On&#39;.</p>\n\n<h5><code>trace_enable</code></h5>\n\n<p>Controls, how TRACE requests per RFC 2616 are handled. See Apache documentation for &#39;TraceEnable&#39;. Defaults to &#39;On&#39;.</p>\n\n<h5><code>manage_user</code></h5>\n\n<p>Setting this to false will avoid the user resource to be created by this module. This is useful when you already have a user created in another puppet module and that you want to used it to run apache. Without this, it would result in a duplicate resource error.</p>\n\n<h5><code>manage_group</code></h5>\n\n<p>Setting this to false will avoid the group resource to be created by this module. This is useful when you already have a group created in another puppet module and that you want to used it for apache. Without this, it would result in a duplicate resource error.</p>\n\n<h5><code>package_ensure</code></h5>\n\n<p>Allow control over the package ensure statement. This is useful if you want to make sure apache is always at the latest version or whether it is only installed.</p>\n\n<h4>Class: <code>apache::default_mods</code></h4>\n\n<p>Installs default Apache modules based on what OS you are running</p>\n\n<pre lang=\"puppet\"><code>    class { &#39;apache::default_mods&#39;: }\n</code></pre>\n\n<h4>Defined Type: <code>apache::mod</code></h4>\n\n<p>Used to enable arbitrary Apache httpd modules for which there is no specific <code>apache::mod::[name]</code> class. The <code>apache::mod</code> defined type will also install the required packages to enable the module, if any.</p>\n\n<pre lang=\"puppet\"><code>    apache::mod { &#39;rewrite&#39;: }\n    apache::mod { &#39;ldap&#39;: }\n</code></pre>\n\n<h4>Classes: <code>apache::mod::[name]</code></h4>\n\n<p>There are many <code>apache::mod::[name]</code> classes within this module that can be declared using <code>include</code>:</p>\n\n<ul>\n<li><code>alias</code></li>\n<li><code>auth_basic</code></li>\n<li><code>auth_kerb</code></li>\n<li><code>autoindex</code></li>\n<li><code>cache</code></li>\n<li><code>cgi</code></li>\n<li><code>cgid</code></li>\n<li><code>dav</code></li>\n<li><code>dav_fs</code></li>\n<li><code>dav_svn</code></li>\n<li><code>deflate</code></li>\n<li><code>dev</code></li>\n<li><code>dir</code>*</li>\n<li><code>disk_cache</code></li>\n<li><code>event</code></li>\n<li><code>fastcgi</code></li>\n<li><code>fcgid</code></li>\n<li><code>headers</code></li>\n<li><code>info</code></li>\n<li><code>itk</code></li>\n<li><code>ldap</code></li>\n<li><code>mime</code></li>\n<li><code>mime_magic</code>*</li>\n<li><code>mpm_event</code></li>\n<li><code>negotiation</code></li>\n<li><code>nss</code>*</li>\n<li><code>passenger</code>*</li>\n<li><code>perl</code></li>\n<li><code>peruser</code></li>\n<li><code>php</code> (requires <a href=\"#mpm_module\"><code>mpm_module</code></a> set to <code>prefork</code>)</li>\n<li><code>prefork</code>*</li>\n<li><code>proxy</code>*</li>\n<li><code>proxy_ajp</code></li>\n<li><code>proxy_html</code></li>\n<li><code>proxy_http</code></li>\n<li><code>python</code></li>\n<li><code>reqtimeout</code></li>\n<li><code>rewrite</code></li>\n<li><code>rpaf</code>*</li>\n<li><code>setenvif</code></li>\n<li><code>ssl</code>* (see <a href=\"#class-apachemodssl\">apache::mod::ssl</a> below)</li>\n<li><code>status</code>*</li>\n<li><code>suphp</code></li>\n<li><code>userdir</code>*</li>\n<li><code>vhost_alias</code></li>\n<li><code>worker</code>*</li>\n<li><code>wsgi</code> (see <a href=\"#class-apachemodwsgi\">apache::mod::wsgi</a> below)</li>\n<li><code>xsendfile</code></li>\n</ul>\n\n<p>Modules noted with a * indicate that the module has settings and, thus, a template that includes parameters. These parameters control the module&#39;s configuration. Most of the time, these parameters will not require any configuration or attention.</p>\n\n<p>The modules mentioned above, and other Apache modules that have templates, will cause template files to be dropped along with the mod install, and the module will not work without the template. Any mod without a template will install package but drop no files.</p>\n\n<h4>Class: <code>apache::mod::ssl</code></h4>\n\n<p>Installs Apache SSL capabilities and utilizes <code>ssl.conf.erb</code> template. These are the defaults:</p>\n\n<pre lang=\"puppet\"><code>    class { &#39;apache::mod::ssl&#39;:\n      ssl_compression =&gt; false,\n      ssl_options     =&gt; [ &#39;StdEnvVars&#39; ],\n  }\n</code></pre>\n\n<p>To <em>use</em> SSL with a virtual host, you must either set the<code>default_ssl_vhost</code> parameter in <code>apache</code> to &#39;true&#39; or set the <code>ssl</code> parameter in <code>apache::vhost</code> to &#39;true&#39;.</p>\n\n<h4>Class: <code>apache::mod::wsgi</code></h4>\n\n<pre lang=\"puppet\"><code>    class { &#39;apache::mod::wsgi&#39;:\n      wsgi_socket_prefix =&gt; &quot;\\${APACHE_RUN_DIR}WSGI&quot;,\n      wsgi_python_home   =&gt; &#39;/path/to/virtenv&#39;,\n      wsgi_python_path   =&gt; &#39;/path/to/virtenv/site-packages&#39;,\n    }\n</code></pre>\n\n<h4>Defined Type: <code>apache::vhost</code></h4>\n\n<p>The Apache module allows a lot of flexibility in the set up and configuration of virtual hosts. This flexibility is due, in part, to <code>vhost</code>&#39;s setup as a defined resource type, which allows it to be evaluated multiple times with different parameters.</p>\n\n<p>The <code>vhost</code> defined type allows you to have specialized configurations for virtual hosts that have requirements outside of the defaults. You can set up a default vhost within the base <code>apache</code> class as well as set a customized vhost setup as default. Your customized vhost (priority 10) will be privileged over the base class vhost (15).</p>\n\n<p>If you have a series of specific configurations and do not want a base <code>apache</code> class default vhost, make sure to set the base class default host to &#39;false&#39;.</p>\n\n<pre lang=\"puppet\"><code>    class { &#39;apache&#39;:\n      default_vhost =&gt; false,\n    }\n</code></pre>\n\n<p><strong>Parameters within <code>apache::vhost</code>:</strong></p>\n\n<p>The default values for each parameter will vary based on operating system and type of virtual host.</p>\n\n<h5><code>access_log</code></h5>\n\n<p>Specifies whether <code>*_access.log</code> directives should be configured. Valid values are &#39;true&#39; and &#39;false&#39;. Defaults to &#39;true&#39;.</p>\n\n<h5><code>access_log_file</code></h5>\n\n<p>Points to the <code>*_access.log</code> file. Defaults to &#39;undef&#39;.</p>\n\n<h5><code>access_log_pipe</code></h5>\n\n<p>Specifies a pipe to send access log messages to. Defaults to &#39;undef&#39;.</p>\n\n<h5><code>access_log_syslog</code></h5>\n\n<p>Sends all access log messages to syslog. Defaults to &#39;undef&#39;.</p>\n\n<h5><code>access_log_format</code></h5>\n\n<p>Specifies either a LogFormat nickname or custom format string for access log. Defaults to &#39;undef&#39;.</p>\n\n<h5><code>add_listen</code></h5>\n\n<p>Determines whether the vhost creates a listen statement. The default value is &#39;true&#39;.</p>\n\n<p>Setting <code>add_listen</code> to &#39;false&#39; stops the vhost from creating a listen statement, and this is important when you combine vhosts that are not passed an <code>ip</code> parameter with vhosts that <em>are</em> passed the <code>ip</code> parameter.</p>\n\n<h5><code>aliases</code></h5>\n\n<p>Passes a list of hashes to the vhost to create <code>Alias</code> or <code>AliasMatch</code> statements as per the <a href=\"http://httpd.apache.org/docs/current/mod/mod_alias.html\"><code>mod_alias</code> documentation</a>. Each hash is expected to be of the form:</p>\n\n<pre><code>aliases =&gt; [\n  { aliasmatch =&gt; &#39;^/image/(.*)\\.jpg$&#39;, path =&gt; &#39;/files/jpg.images/$1.jpg&#39; }\n  { alias      =&gt; &#39;/image&#39;,             path =&gt; &#39;/ftp/pub/image&#39; },\n],\n</code></pre>\n\n<p>For <code>Alias</code> and <code>AliasMatch</code> to work, each will need a corresponding <code>&lt;Directory /path/to/directory&gt;</code> or <code>&lt;Location /path/to/directory&gt;</code> block. The <code>Alias</code> and <code>AliasMatch</code> directives are created in the order specified in the <code>aliases</code> paramter. As described in the <a href=\"http://httpd.apache.org/docs/current/mod/mod_alias.html\"><code>mod_alias</code> documentation</a> more specific <code>Alias</code> or <code>AliasMatch</code> directives should come before the more general ones to avoid shadowing.</p>\n\n<p><strong>Note:</strong> If <code>apache::mod::passenger</code> is loaded and <code>PassengerHighPerformance true</code> is set, then <code>Alias</code> may have issues honouring the <code>PassengerEnabled off</code> statement. See <a href=\"http://www.conandalton.net/2010/06/passengerenabled-off-not-working.html\">this article</a> for details.</p>\n\n<h5><code>block</code></h5>\n\n<p>Specifies the list of things Apache will block access to. The default is an empty set, &#39;[]&#39;. Currently, the only option is &#39;scm&#39;, which blocks web access to .svn, .git and .bzr directories. To add to this, please see the <a href=\"#development\">Development</a> section.</p>\n\n<h5><code>custom_fragment</code></h5>\n\n<p>Pass a string of custom configuration directives to be placed at the end of the vhost configuration.</p>\n\n<h5><code>default_vhost</code></h5>\n\n<p>Sets a given <code>apache::vhost</code> as the default to serve requests that do not match any other <code>apache::vhost</code> definitions. The default value is &#39;false&#39;.</p>\n\n<h5><code>directories</code></h5>\n\n<p>Passes a list of hashes to the vhost to create <code>&lt;Directory /path/to/directory&gt;...&lt;/Directory&gt;</code> directive blocks as per the <a href=\"http://httpd.apache.org/docs/2.2/mod/core.html#directory\">Apache core documentation</a>.  The <code>path</code> key is required in these hashes. An optional <code>provider</code> defaults to <code>directory</code>.  Usage will typically look like:</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;sample.example.net&#39;:\n      docroot     =&gt; &#39;/path/to/directory&#39;,\n      directories =&gt; [\n        { path =&gt; &#39;/path/to/directory&#39;, &lt;directive&gt; =&gt; &lt;value&gt; },\n        { path =&gt; &#39;/path/to/another/directory&#39;, &lt;directive&gt; =&gt; &lt;value&gt; },\n      ],\n    }\n</code></pre>\n\n<p><em>Note:</em> At least one directory should match <code>docroot</code> parameter, once you start declaring directories <code>apache::vhost</code> assumes that all required <code>&lt;Directory&gt;</code> blocks will be declared.</p>\n\n<p><em>Note:</em> If not defined a single default <code>&lt;Directory&gt;</code> block will be created that matches the <code>docroot</code> parameter.</p>\n\n<p><code>provider</code> can be set to any of <code>directory</code>, <code>files</code>, or <code>location</code>. If the <a href=\"https://httpd.apache.org/docs/2.2/mod/core.html#files\">pathspec starts with a <code>~</code></a>, httpd will interpret this as the equivalent of <code>DirectoryMatch</code>, <code>FilesMatch</code>, or <code>LocationMatch</code>, respectively.</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;files.example.net&#39;:\n      docroot     =&gt; &#39;/var/www/files&#39;,\n      directories =&gt; [\n        { path =&gt; &#39;~ (\\.swp|\\.bak|~)$&#39;, &#39;provider&#39; =&gt; &#39;files&#39;, &#39;deny&#39; =&gt; &#39;from all&#39; },\n      ],\n    }\n</code></pre>\n\n<p>The directives will be embedded within the <code>Directory</code> (<code>Files</code>, or <code>Location</code>) directive block, missing directives should be undefined and not be added, resulting in their default vaules in Apache. Currently this is the list of supported directives:</p>\n\n<h6><code>addhandlers</code></h6>\n\n<p>Sets <code>AddHandler</code> directives as per the <a href=\"http://httpd.apache.org/docs/2.2/mod/mod_mime.html#addhandler\">Apache Core documentation</a>. Accepts a list of hashes of the form <code>{ handler =&gt; &#39;handler-name&#39;, extensions =&gt; [&#39;extension&#39;]}</code>. Note that <code>extensions</code> is a list of extenstions being handled by the handler.\nAn example:</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;sample.example.net&#39;:\n      docroot     =&gt; &#39;/path/to/directory&#39;,\n      directories =&gt; [ { path =&gt; &#39;/path/to/directory&#39;,\n        addhandlers =&gt; [ { handler =&gt; &#39;cgi-script&#39;, extensions =&gt; [&#39;.cgi&#39;]} ],\n      } ],\n    }\n</code></pre>\n\n<h6><code>allow</code></h6>\n\n<p>Sets an <code>Allow</code> directive as per the <a href=\"http://httpd.apache.org/docs/2.2/mod/mod_authz_host.html#allow\">Apache Core documentation</a>. An example:</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;sample.example.net&#39;:\n      docroot     =&gt; &#39;/path/to/directory&#39;,\n      directories =&gt; [ { path =&gt; &#39;/path/to/directory&#39;, allow =&gt; &#39;from example.org&#39; } ],\n    }\n</code></pre>\n\n<h6><code>allow_override</code></h6>\n\n<p>Sets the usage of <code>.htaccess</code> files as per the <a href=\"http://httpd.apache.org/docs/2.2/mod/core.html#allowoverride\">Apache core documentation</a>. Should accept in the form of a list or a string. An example:</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;sample.example.net&#39;:\n      docroot     =&gt; &#39;/path/to/directory&#39;,\n      directories =&gt; [ { path =&gt; &#39;/path/to/directory&#39;, allow_override =&gt; [&#39;AuthConfig&#39;, &#39;Indexes&#39;] } ],\n    }\n</code></pre>\n\n<h6><code>deny</code></h6>\n\n<p>Sets an <code>Deny</code> directive as per the <a href=\"http://httpd.apache.org/docs/2.2/mod/mod_authz_host.html#deny\">Apache Core documentation</a>. An example:</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;sample.example.net&#39;:\n      docroot     =&gt; &#39;/path/to/directory&#39;,\n      directories =&gt; [ { path =&gt; &#39;/path/to/directory&#39;, deny =&gt; &#39;from example.org&#39; } ],\n    }\n</code></pre>\n\n<h6><code>error_documents</code></h6>\n\n<p>A list of hashes which can be used to override the <a href=\"https://httpd.apache.org/docs/2.2/mod/core.html#errordocument\">ErrorDocument</a> settings for this directory. Example:</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;sample.example.net&#39;:\n      directories =&gt; [ { path =&gt; &#39;/srv/www&#39;\n        error_documents =&gt; [\n          { &#39;error_code&#39; =&gt; &#39;503&#39;, &#39;document&#39; =&gt; &#39;/service-unavail&#39; },\n        ],\n      }]\n    }\n</code></pre>\n\n<h6><code>headers</code></h6>\n\n<p>Adds lines for <code>Header</code> directives as per the <a href=\"http://httpd.apache.org/docs/2.2/mod/mod_headers.html#header\">Apache Header documentation</a>. An example:</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;sample.example.net&#39;:\n      docroot     =&gt; &#39;/path/to/directory&#39;,\n      directories =&gt; {\n        path    =&gt; &#39;/path/to/directory&#39;,\n        headers =&gt; &#39;Set X-Robots-Tag &quot;noindex, noarchive, nosnippet&quot;&#39;,\n      },\n    }\n</code></pre>\n\n<h6><code>options</code></h6>\n\n<p>Lists the options for the given <code>&lt;Directory&gt;</code> block</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;sample.example.net&#39;:\n      docroot     =&gt; &#39;/path/to/directory&#39;,\n      directories =&gt; [ { path =&gt; &#39;/path/to/directory&#39;, options =&gt; [&#39;Indexes&#39;,&#39;FollowSymLinks&#39;,&#39;MultiViews&#39;] }],\n    }\n</code></pre>\n\n<h6><code>index_options</code></h6>\n\n<p>Styles the list</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;sample.example.net&#39;:\n      docroot     =&gt; &#39;/path/to/directory&#39;,\n      directories =&gt; [ { path =&gt; &#39;/path/to/directory&#39;, options =&gt; [&#39;Indexes&#39;,&#39;FollowSymLinks&#39;,&#39;MultiViews&#39;], index_options =&gt; [&#39;IgnoreCase&#39;, &#39;FancyIndexing&#39;, &#39;FoldersFirst&#39;, &#39;NameWidth=*&#39;, &#39;DescriptionWidth=*&#39;, &#39;SuppressHTMLPreamble&#39;] }],\n    }\n</code></pre>\n\n<h6><code>index_order_default</code></h6>\n\n<p>Sets the order of the list </p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;sample.example.net&#39;:\n      docroot     =&gt; &#39;/path/to/directory&#39;,\n      directories =&gt; [ { path =&gt; &#39;/path/to/directory&#39;, order =&gt; &#39;Allow,Deny&#39;, index_order_default =&gt; [&#39;Descending&#39;, &#39;Date&#39;]}, ],\n    }\n</code></pre>\n\n<h6><code>order</code></h6>\n\n<p>Sets the order of processing <code>Allow</code> and <code>Deny</code> statements as per <a href=\"http://httpd.apache.org/docs/2.2/mod/mod_authz_host.html#order\">Apache core documentation</a>. An example:</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;sample.example.net&#39;:\n      docroot     =&gt; &#39;/path/to/directory&#39;,\n      directories =&gt; [ { path =&gt; &#39;/path/to/directory&#39;, order =&gt; &#39;Allow,Deny&#39; } ],\n    }\n</code></pre>\n\n<h6><code>auth_type</code></h6>\n\n<p>Sets the value for <code>AuthType</code> as per the <a href=\"https://httpd.apache.org/docs/2.2/mod/core.html#authtype\">Apache AuthType\ndocumentation</a>.</p>\n\n<h6><code>auth_name</code></h6>\n\n<p>Sets the value for <code>AuthName</code> as per the <a href=\"https://httpd.apache.org/docs/2.2/mod/core.html#authname\">Apache AuthName\ndocumentation</a>.</p>\n\n<h6><code>auth_digest_algorithm</code></h6>\n\n<p>Sets the value for <code>AuthDigestAlgorithm</code> as per the <a href=\"https://httpd.apache.org/docs/2.2/mod/mod_auth_digest.html#authdigestalgorithm\">Apache\nAuthDigestAlgorithm\ndocumentation</a></p>\n\n<h6><code>auth_digest_domain</code></h6>\n\n<p>Sets the value for <code>AuthDigestDomain</code> as per the <a href=\"https://httpd.apache.org/docs/2.2/mod/mod_auth_digest.html#authdigestdomain\">Apache AuthDigestDomain\ndocumentation</a>.</p>\n\n<h6><code>auth_digest_nonce_lifetime</code></h6>\n\n<p>Sets the value for <code>AuthDigestNonceLifetime</code> as per the <a href=\"https://httpd.apache.org/docs/2.2/mod/mod_auth_digest.html#authdigestnoncelifetime\">Apache\nAuthDigestNonceLifetime\ndocumentation</a></p>\n\n<h6><code>auth_digest_provider</code></h6>\n\n<p>Sets the value for <code>AuthDigestProvider</code> as per the <a href=\"https://httpd.apache.org/docs/2.2/mod/mod_auth_digest.html#authdigestprovider\">Apache AuthDigestProvider\ndocumentation</a>.</p>\n\n<h6><code>auth_digest_qop</code></h6>\n\n<p>Sets the value for <code>AuthDigestQop</code> as per the <a href=\"https://httpd.apache.org/docs/2.2/mod/mod_auth_digest.html#authdigestqop\">Apache AuthDigestQop\ndocumentation</a>.</p>\n\n<h6><code>auth_digest_shmem_size</code></h6>\n\n<p>Sets the value for <code>AuthAuthDigestShmemSize</code> as per the <a href=\"https://httpd.apache.org/docs/2.2/mod/mod_auth_digest.html#authdigestshmemsize\">Apache AuthDigestShmemSize\ndocumentation</a>.</p>\n\n<h6><code>auth_basic_authoritative</code></h6>\n\n<p>Sets the value for <code>AuthBasicAuthoritative</code> as per the <a href=\"https://httpd.apache.org/docs/2.2/mod/mod_auth_basic.html#authbasicauthoritative\">Apache\nAuthBasicAuthoritative\ndocumentation</a>.</p>\n\n<h6><code>auth_basic_fake</code></h6>\n\n<p>Sets the value for <code>AuthBasicFake</code> as per the <a href=\"https://httpd.apache.org/docs/trunk/mod/mod_auth_basic.html#authbasicfake\">Apache AuthBasicFake\ndocumentation</a>.</p>\n\n<h6><code>auth_basic_provider</code></h6>\n\n<p>Sets the value for <code>AuthBasicProvider</code> as per the <a href=\"https://httpd.apache.org/docs/2.2/mod/mod_auth_basic.html#authbasicprovider\">Apache AuthBasicProvider\ndocumentation</a>.</p>\n\n<h6><code>auth_user_file</code></h6>\n\n<p>Sets the value for <code>AuthUserFile</code> as per the <a href=\"https://httpd.apache.org/docs/2.2/mod/mod_authn_file.html#authuserfile\">Apache AuthUserFile\ndocumentation</a>.</p>\n\n<h6><code>auth_require</code></h6>\n\n<p>Sets the value for <code>AuthName</code> as per the <a href=\"https://httpd.apache.org/docs/2.2/mod/core.html#require\">Apache Require\ndocumentation</a></p>\n\n<h6><code>passenger_enabled</code></h6>\n\n<p>Sets the value for the <code>PassengerEnabled</code> directory to <code>on</code> or <code>off</code> as per the <a href=\"http://www.modrails.com/documentation/Users%20guide%20Apache.html#PassengerEnabled\">Passenger documentation</a>.</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;sample.example.net&#39;:\n      docroot     =&gt; &#39;/path/to/directory&#39;,\n      directories =&gt; [ { path =&gt; &#39;/path/to/directory&#39;, passenger_enabled =&gt; &#39;off&#39; } ],\n    }\n</code></pre>\n\n<p><strong>Note:</strong> This directive requires <code>apache::mod::passenger</code> to be active, Apache may not start with an unrecognised directive without it.</p>\n\n<p><strong>Note:</strong> Be aware that there is an <a href=\"http://www.conandalton.net/2010/06/passengerenabled-off-not-working.html\">issue</a> using the <code>PassengerEnabled</code> directive with the <code>PassengerHighPerformance</code> directive.</p>\n\n<h6><code>ssl_options</code></h6>\n\n<p>String or list of <a href=\"https://httpd.apache.org/docs/2.2/mod/mod_ssl.html#ssloptions\"><code>SSLOptions</code></a> for the given <code>&lt;Directory&gt;</code> block. This overrides, or refines the <a href=\"https://httpd.apache.org/docs/2.2/mod/mod_ssl.html#ssloptions\"><code>SSLOptions</code></a> of the parent block (either vhost, or server).</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;secure.example.net&#39;:\n      docroot     =&gt; &#39;/path/to/directory&#39;,\n      directories =&gt; [\n        { path =&gt; &#39;/path/to/directory&#39;, ssl_options =&gt; &#39;+ExportCertData&#39; }\n        { path =&gt; &#39;/path/to/different/dir&#39;, ssl_options =&gt; [ &#39;-StdEnvVars&#39;, &#39;+ExportCertData&#39;] },\n      ],\n    }\n</code></pre>\n\n<h6><code>suphp</code></h6>\n\n<p>An array containing two values: User and group for the <a href=\"http://www.suphp.org/DocumentationView.html?file=apache/CONFIG\">suPHP_UserGroup</a> setting.\nThis directive must be used with <code>suphp_engine =&gt; on</code> in the vhost declaration. This directive only works in <code>&lt;Directory&gt;</code> or <code>&lt;Location&gt;</code>.</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;secure.example.net&#39;:\n      docroot     =&gt; &#39;/path/to/directory&#39;,\n      directories =&gt; [\n        { path =&gt; &#39;/path/to/directory&#39;, suphp =&gt; { user =&gt;  &#39;myappuser&#39;, group =&gt; &#39;myappgroup&#39; }\n      ],\n    }\n</code></pre>\n\n<h6><code>custom_fragment</code></h6>\n\n<p>Pass a string of custom configuration directives to be placed at the end of the\ndirectory configuration.</p>\n\n<h5><code>directoryindex</code></h5>\n\n<p>Set a DirectoryIndex directive, to set the list of resources to look for, when the client requests an index of the directory by specifying a / at the end of the directory name..</p>\n\n<h5><code>docroot</code></h5>\n\n<p>Provides the DocumentRoot directive, identifying the directory Apache serves files from.</p>\n\n<h5><code>docroot_group</code></h5>\n\n<p>Sets group access to the docroot directory. Defaults to &#39;root&#39;.</p>\n\n<h5><code>docroot_owner</code></h5>\n\n<p>Sets individual user access to the docroot directory. Defaults to &#39;root&#39;.</p>\n\n<h5><code>error_log</code></h5>\n\n<p>Specifies whether <code>*_error.log</code> directives should be configured. Defaults to &#39;true&#39;.</p>\n\n<h5><code>error_log_file</code></h5>\n\n<p>Points to the <code>*_error.log</code> file. Defaults to &#39;undef&#39;.</p>\n\n<h5><code>error_log_pipe</code></h5>\n\n<p>Specifies a pipe to send error log messages to. Defaults to &#39;undef&#39;.</p>\n\n<h5><code>error_log_syslog</code></h5>\n\n<p>Sends all error log messages to syslog. Defaults to &#39;undef&#39;.</p>\n\n<h5><code>error_documents</code></h5>\n\n<p>A list of hashes which can be used to override the <a href=\"https://httpd.apache.org/docs/2.2/mod/core.html#errordocument\">ErrorDocument</a> settings for this vhost. Defaults to <code>[]</code>. Example:</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;sample.example.net&#39;:\n      error_documents =&gt; [\n        { &#39;error_code&#39; =&gt; &#39;503&#39;, &#39;document&#39; =&gt; &#39;/service-unavail&#39; },\n        { &#39;error_code&#39; =&gt; &#39;407&#39;, &#39;document&#39; =&gt; &#39;https://example.com/proxy/login&#39; },\n      ],\n    }\n</code></pre>\n\n<h5><code>ensure</code></h5>\n\n<p>Specifies if the vhost file is present or absent.</p>\n\n<h5><code>fastcgi_server</code></h5>\n\n<p>Specifies the filename as an external FastCGI application. Defaults to &#39;undef&#39;.</p>\n\n<h5><code>fastcgi_socket</code></h5>\n\n<p>Filename used to communicate with the web server.  Defaults to &#39;undef&#39;.</p>\n\n<h5><code>fastcgi_dir</code></h5>\n\n<p>Directory to enable for FastCGI.  Defaults to &#39;undef&#39;.</p>\n\n<h5><code>additional_includes</code></h5>\n\n<p>Specifies paths to additional static vhost-specific Apache configuration files.\nThis option is useful when you need to implement a unique and/or custom\nconfiguration not supported by this module.</p>\n\n<h5><code>ip</code></h5>\n\n<p>The IP address the vhost listens on. Defaults to &#39;undef&#39;.</p>\n\n<h5><code>ip_based</code></h5>\n\n<p>Enables an IP-based vhost. This parameter inhibits the creation of a NameVirtualHost directive, since those are used to funnel requests to name-based vhosts. Defaults to &#39;false&#39;.</p>\n\n<h5><code>logroot</code></h5>\n\n<p>Specifies the location of the virtual host&#39;s logfiles. Defaults to <code>/var/log/&lt;apache log location&gt;/</code>.</p>\n\n<h5><code>log_level</code></h5>\n\n<p>Specifies the verbosity level of the error log. Defaults to <code>warn</code> for the global server configuration and can be overridden on a per-vhost basis using this parameter. Valid value for <code>log_level</code> is one of <code>emerg</code>, <code>alert</code>, <code>crit</code>, <code>error</code>, <code>warn</code>, <code>notice</code>, <code>info</code> or <code>debug</code>.</p>\n\n<h5><code>no_proxy_uris</code></h5>\n\n<p>Specifies URLs you do not want to proxy. This parameter is meant to be used in combination with <code>proxy_dest</code>.</p>\n\n<h5><code>options</code></h5>\n\n<p>Lists the options for the given virtual host</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;site.name.fdqn&#39;:\n      …\n      options =&gt; [&#39;Indexes&#39;,&#39;FollowSymLinks&#39;,&#39;MultiViews&#39;],\n    }\n</code></pre>\n\n<h5><code>override</code></h5>\n\n<p>Sets the overrides for the given virtual host. Accepts an array of AllowOverride arguments.</p>\n\n<h5><code>port</code></h5>\n\n<p>Sets the port the host is configured on.</p>\n\n<h5><code>priority</code></h5>\n\n<p>Sets the relative load-order for Apache httpd VirtualHost configuration files. Defaults to &#39;25&#39;.</p>\n\n<p>If nothing matches the priority, the first name-based vhost will be used. Likewise, passing a higher priority will cause the alphabetically first name-based vhost to be used if no other names match.</p>\n\n<p><em>Note</em>: You should not need to use this parameter. However, if you do use it, be aware that the <code>default_vhost</code> parameter for <code>apache::vhost</code> passes a priority of &#39;15&#39;.</p>\n\n<h5><code>proxy_dest</code></h5>\n\n<p>Specifies the destination address of a proxypass configuration. Defaults to &#39;undef&#39;.</p>\n\n<h5><code>proxy_pass</code></h5>\n\n<p>Specifies an array of path =&gt; uri for a proxypass configuration. Defaults to &#39;undef&#39;.</p>\n\n<p>Example:</p>\n\n<pre lang=\"puppet\"><code>$proxy_pass = [\n  { &#39;path&#39; =&gt; &#39;/a&#39;, &#39;url&#39; =&gt; &#39;http://backend-a/&#39; },\n  { &#39;path&#39; =&gt; &#39;/b&#39;, &#39;url&#39; =&gt; &#39;http://backend-b/&#39; },\n  { &#39;path&#39; =&gt; &#39;/c&#39;, &#39;url&#39; =&gt; &#39;http://backend-a/c&#39; }\n]\n\napache::vhost { &#39;site.name.fdqn&#39;:\n  …\n  proxy_pass       =&gt; $proxy_pass,\n}\n</code></pre>\n\n<h5><code>rack_base_uris</code></h5>\n\n<p>Specifies the resource identifiers for a rack configuration. The file paths specified will be listed as rack application roots for passenger/rack in the <code>_rack.erb</code> template. Defaults to &#39;undef&#39;.</p>\n\n<h5><code>redirect_dest</code></h5>\n\n<p>Specifies the address to redirect to. Defaults to &#39;undef&#39;.</p>\n\n<h5><code>redirect_source</code></h5>\n\n<p>Specifies the source items? that will redirect to the destination specified in <code>redirect_dest</code>. If more than one item for redirect is supplied, the source and destination must be the same length, and the items are order-dependent.</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;site.name.fdqn&#39;:\n      …\n      redirect_source =&gt; [&#39;/images&#39;,&#39;/downloads&#39;],\n      redirect_dest =&gt; [&#39;http://img.example.com/&#39;,&#39;http://downloads.example.com/&#39;],\n    }\n</code></pre>\n\n<h5><code>redirect_status</code></h5>\n\n<p>Specifies the status to append to the redirect. Defaults to &#39;undef&#39;.</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;site.name.fdqn&#39;:\n      …\n      redirect_status =&gt; [&#39;temp&#39;,&#39;permanent&#39;],\n    }\n</code></pre>\n\n<h5><code>request_headers</code></h5>\n\n<p>Specifies additional request headers.</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;site.name.fdqn&#39;:\n      …\n      request_headers =&gt; [\n        &#39;append MirrorID &quot;mirror 12&quot;&#39;,\n        &#39;unset MirrorID&#39;,\n      ],\n    }\n</code></pre>\n\n<h5><code>rewrite_base</code></h5>\n\n<p>Limits the <code>rewrite_rule</code> to the specified base URL. Defaults to &#39;undef&#39;.</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;site.name.fdqn&#39;:\n      …\n      rewrite_rule =&gt; &#39;^index\\.html$ welcome.html&#39;,\n      rewrite_base =&gt; &#39;/blog/&#39;,\n    }\n</code></pre>\n\n<p>The above example would limit the index.html -&gt; welcome.html rewrite to only something inside of <a href=\"http://example.com/blog/\">http://example.com/blog/</a>.</p>\n\n<h5><code>rewrite_cond</code></h5>\n\n<p>Rewrites a URL via <code>rewrite_rule</code> based on the truth of specified conditions. For example</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;site.name.fdqn&#39;:\n      …\n      rewrite_cond =&gt; &#39;%{HTTP_USER_AGENT} ^MSIE&#39;,\n    }\n</code></pre>\n\n<p>will rewrite URLs only if the visitor is using IE. Defaults to &#39;undef&#39;.</p>\n\n<p><em>Note</em>: At the moment, each vhost is limited to a single list of rewrite conditions. In the future, you will be able to specify multiple <code>rewrite_cond</code> and <code>rewrite_rules</code> per vhost, so that different conditions get different rewrites.</p>\n\n<h5><code>rewrite_rule</code></h5>\n\n<p>Creates URL rewrite rules. Defaults to &#39;undef&#39;. This parameter allows you to specify, for example, that anyone trying to access index.html will be served welcome.html.</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;site.name.fdqn&#39;:\n      …\n      rewrite_rule =&gt; &#39;^index\\.html$ welcome.html&#39;,\n    }\n</code></pre>\n\n<h5><code>scriptalias</code></h5>\n\n<p>Defines a directory of CGI scripts to be aliased to the path &#39;/cgi-bin&#39;</p>\n\n<h5><code>scriptaliases</code></h5>\n\n<p>Passes a list of hashes to the vhost to create <code>ScriptAlias</code> or <code>ScriptAliasMatch</code> statements as per the <a href=\"http://httpd.apache.org/docs/current/mod/mod_alias.html\"><code>mod_alias</code> documentation</a>. Each hash is expected to be of the form:</p>\n\n<pre lang=\"puppet\"><code>    scriptaliases =&gt; [\n      {\n        alias =&gt; &#39;/myscript&#39;,\n        path  =&gt; &#39;/usr/share/myscript&#39;,\n      },\n      {\n        aliasmatch =&gt; &#39;^/foo(.*)&#39;,\n        path       =&gt; &#39;/usr/share/fooscripts$1&#39;,\n      },\n      {\n        aliasmatch =&gt; &#39;^/bar/(.*)&#39;,\n        path       =&gt; &#39;/usr/share/bar/wrapper.sh/$1&#39;,\n      },\n      {\n        alias =&gt; &#39;/neatscript&#39;,\n        path  =&gt; &#39;/usr/share/neatscript&#39;,\n      },\n    ]\n</code></pre>\n\n<p>These directives are created in the order specified. As with <code>Alias</code> and <code>AliasMatch</code> directives the more specific aliases should come before the more general ones to avoid shadowing.</p>\n\n<h5><code>serveradmin</code></h5>\n\n<p>Specifies the email address Apache will display when it renders one of its error pages.</p>\n\n<h5><code>serveraliases</code></h5>\n\n<p>Sets the server aliases of the site.</p>\n\n<h5><code>servername</code></h5>\n\n<p>Sets the primary name of the virtual host.</p>\n\n<h5><code>setenv</code></h5>\n\n<p>Used by HTTPD to set environment variables for vhosts. Defaults to &#39;[]&#39;.</p>\n\n<h5><code>setenvif</code></h5>\n\n<p>Used by HTTPD to conditionally set environment variables for vhosts. Defaults to &#39;[]&#39;.</p>\n\n<h5><code>ssl</code></h5>\n\n<p>Enables SSL for the virtual host. SSL vhosts only respond to HTTPS queries. Valid values are &#39;true&#39; or &#39;false&#39;.</p>\n\n<h5><code>ssl_ca</code></h5>\n\n<p>Specifies the certificate authority.</p>\n\n<h5><code>ssl_cert</code></h5>\n\n<p>Specifies the SSL certification.</p>\n\n<h5><code>ssl_protocol</code></h5>\n\n<p>Specifies the SSL Protocol (SSLProtocol).</p>\n\n<h5><code>ssl_cipher</code></h5>\n\n<p>Specifies the SSLCipherSuite.</p>\n\n<h5><code>ssl_honorcipherorder</code></h5>\n\n<p>Sets SSLHonorCipherOrder directive, used to prefer the server&#39;s cipher preference order</p>\n\n<h5><code>ssl_certs_dir</code></h5>\n\n<p>Specifies the location of the SSL certification directory. Defaults to <code>/etc/ssl/certs</code> on Debian and <code>/etc/pki/tls/certs</code> on RedHat.</p>\n\n<h5><code>ssl_chain</code></h5>\n\n<p>Specifies the SSL chain.</p>\n\n<h5><code>ssl_crl</code></h5>\n\n<p>Specifies the certificate revocation list to use.</p>\n\n<h5><code>ssl_crl_path</code></h5>\n\n<p>Specifies the location of the certificate revocation list.</p>\n\n<h5><code>ssl_key</code></h5>\n\n<p>Specifies the SSL key.</p>\n\n<h5><code>ssl_verify_client</code></h5>\n\n<p>Sets <code>SSLVerifyClient</code> directives as per the <a href=\"http://httpd.apache.org/docs/2.2/mod/mod_ssl.html#sslverifyclient\">Apache Core documentation</a>. Defaults to undef.\nAn example:</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;sample.example.net&#39;:\n      …\n      ssl_verify_client =&gt; &#39;optional&#39;,\n    }\n</code></pre>\n\n<h5><code>ssl_verify_depth</code></h5>\n\n<p>Sets <code>SSLVerifyDepth</code> directives as per the <a href=\"http://httpd.apache.org/docs/2.2/mod/mod_ssl.html#sslverifydepth\">Apache Core documentation</a>. Defaults to undef.\nAn example:</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;sample.example.net&#39;:\n      …\n      ssl_verify_depth =&gt; 1,\n    }\n</code></pre>\n\n<h5><code>ssl_options</code></h5>\n\n<p>Sets <code>SSLOptions</code> directives as per the <a href=\"http://httpd.apache.org/docs/2.2/mod/mod_ssl.html#ssloptions\">Apache Core documentation</a>. This is the global setting for the vhost and can be a string or an array. Defaults to undef. A single string example:</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;sample.example.net&#39;:\n      …\n      ssl_options =&gt; &#39;+ExportCertData&#39;,\n    }\n</code></pre>\n\n<p>An array of strings example:</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;sample.example.net&#39;:\n      …\n      ssl_options =&gt; [ &#39;+StrictRequire&#39;, &#39;+ExportCertData&#39; ],\n    }\n</code></pre>\n\n<h5><code>ssl_proxyengine</code></h5>\n\n<p>Specifies whether to use <code>SSLProxyEngine</code> or not. Defaults to <code>false</code>.</p>\n\n<h5><code>vhost_name</code></h5>\n\n<p>This parameter is for use with name-based virtual hosting. Defaults to &#39;*&#39;.</p>\n\n<h5><code>itk</code></h5>\n\n<p>Hash containing infos to configure itk as per the <a href=\"http://mpm-itk.sesse.net/\">ITK documentation</a>.</p>\n\n<p>Keys could be:</p>\n\n<ul>\n<li>user + group</li>\n<li>assignuseridexpr</li>\n<li>assigngroupidexpr</li>\n<li>maxclientvhost</li>\n<li>nice</li>\n<li>limituidrange (Linux 3.5.0 or newer)</li>\n<li>limitgidrange (Linux 3.5.0 or newer)</li>\n</ul>\n\n<p>Usage will typically look like:</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;sample.example.net&#39;:\n      docroot     =&gt; &#39;/path/to/directory&#39;,\n      itk =&gt; {\n        user  =&gt; &#39;someuser&#39;,\n        group =&gt; &#39;somegroup&#39;,\n      },\n    }\n</code></pre>\n\n<h3>Virtual Host Examples</h3>\n\n<p>The Apache module allows you to set up pretty much any configuration of virtual host you might desire. This section will address some common configurations. Please see the <a href=\"https://github.com/puppetlabs/puppetlabs-apache/tree/master/tests\">Tests section</a> for even more examples.</p>\n\n<p>Configure a vhost with a server administrator</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;third.example.com&#39;:\n      port        =&gt; &#39;80&#39;,\n      docroot     =&gt; &#39;/var/www/third&#39;,\n      serveradmin =&gt; &#39;admin@example.com&#39;,\n    }\n</code></pre>\n\n<hr>\n\n<p>Set up a vhost with aliased servers</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;sixth.example.com&#39;:\n      serveraliases =&gt; [\n        &#39;sixth.example.org&#39;,\n        &#39;sixth.example.net&#39;,\n      ],\n      port          =&gt; &#39;80&#39;,\n      docroot       =&gt; &#39;/var/www/fifth&#39;,\n    }\n</code></pre>\n\n<hr>\n\n<p>Configure a vhost with a cgi-bin</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;eleventh.example.com&#39;:\n      port        =&gt; &#39;80&#39;,\n      docroot     =&gt; &#39;/var/www/eleventh&#39;,\n      scriptalias =&gt; &#39;/usr/lib/cgi-bin&#39;,\n    }\n</code></pre>\n\n<hr>\n\n<p>Set up a vhost with a rack configuration</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;fifteenth.example.com&#39;:\n      port           =&gt; &#39;80&#39;,\n      docroot        =&gt; &#39;/var/www/fifteenth&#39;,\n      rack_base_uris =&gt; [&#39;/rackapp1&#39;, &#39;/rackapp2&#39;],\n    }\n</code></pre>\n\n<hr>\n\n<p>Set up a mix of SSL and non-SSL vhosts at the same domain</p>\n\n<pre lang=\"puppet\"><code>    #The non-ssl vhost\n    apache::vhost { &#39;first.example.com non-ssl&#39;:\n      servername =&gt; &#39;first.example.com&#39;,\n      port       =&gt; &#39;80&#39;,\n      docroot    =&gt; &#39;/var/www/first&#39;,\n    }\n\n    #The SSL vhost at the same domain\n    apache::vhost { &#39;first.example.com ssl&#39;:\n      servername =&gt; &#39;first.example.com&#39;,\n      port       =&gt; &#39;443&#39;,\n      docroot    =&gt; &#39;/var/www/first&#39;,\n      ssl        =&gt; true,\n    }\n</code></pre>\n\n<hr>\n\n<p>Configure a vhost to redirect non-SSL connections to SSL</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;sixteenth.example.com non-ssl&#39;:\n      servername      =&gt; &#39;sixteenth.example.com&#39;,\n      port            =&gt; &#39;80&#39;,\n      docroot         =&gt; &#39;/var/www/sixteenth&#39;,\n      redirect_status =&gt; &#39;permanent&#39;\n      redirect_dest   =&gt; &#39;https://sixteenth.example.com/&#39;\n    }\n    apache::vhost { &#39;sixteenth.example.com ssl&#39;:\n      servername =&gt; &#39;sixteenth.example.com&#39;,\n      port       =&gt; &#39;443&#39;,\n      docroot    =&gt; &#39;/var/www/sixteenth&#39;,\n      ssl        =&gt; true,\n    }\n</code></pre>\n\n<hr>\n\n<p>Set up IP-based vhosts on any listen port and have them respond to requests on specific IP addresses. In this example, we will set listening on ports 80 and 81. This is required because the example vhosts are not declared with a port parameter.</p>\n\n<pre lang=\"puppet\"><code>    apache::listen { &#39;80&#39;: }\n    apache::listen { &#39;81&#39;: }\n</code></pre>\n\n<p>Then we will set up the IP-based vhosts</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;first.example.com&#39;:\n      ip       =&gt; &#39;10.0.0.10&#39;,\n      docroot  =&gt; &#39;/var/www/first&#39;,\n      ip_based =&gt; true,\n    }\n    apache::vhost { &#39;second.example.com&#39;:\n      ip       =&gt; &#39;10.0.0.11&#39;,\n      docroot  =&gt; &#39;/var/www/second&#39;,\n      ip_based =&gt; true,\n    }\n</code></pre>\n\n<hr>\n\n<p>Configure a mix of name-based and IP-based vhosts. First, we will add two IP-based vhosts on 10.0.0.10, one SSL and one non-SSL</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;The first IP-based vhost, non-ssl&#39;:\n      servername =&gt; &#39;first.example.com&#39;,\n      ip         =&gt; &#39;10.0.0.10&#39;,\n      port       =&gt; &#39;80&#39;,\n      ip_based   =&gt; true,\n      docroot    =&gt; &#39;/var/www/first&#39;,\n    }\n    apache::vhost { &#39;The first IP-based vhost, ssl&#39;:\n      servername =&gt; &#39;first.example.com&#39;,\n      ip         =&gt; &#39;10.0.0.10&#39;,\n      port       =&gt; &#39;443&#39;,\n      ip_based   =&gt; true,\n      docroot    =&gt; &#39;/var/www/first-ssl&#39;,\n      ssl        =&gt; true,\n    }\n</code></pre>\n\n<p>Then, we will add two name-based vhosts listening on 10.0.0.20</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;second.example.com&#39;:\n      ip      =&gt; &#39;10.0.0.20&#39;,\n      port    =&gt; &#39;80&#39;,\n      docroot =&gt; &#39;/var/www/second&#39;,\n    }\n    apache::vhost { &#39;third.example.com&#39;:\n      ip      =&gt; &#39;10.0.0.20&#39;,\n      port    =&gt; &#39;80&#39;,\n      docroot =&gt; &#39;/var/www/third&#39;,\n    }\n</code></pre>\n\n<p>If you want to add two name-based vhosts so that they will answer on either 10.0.0.10 or 10.0.0.20, you <strong>MUST</strong> declare <code>add_listen =&gt; &#39;false&#39;</code> to disable the otherwise automatic &#39;Listen 80&#39;, as it will conflict with the preceding IP-based vhosts.</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;fourth.example.com&#39;:\n      port       =&gt; &#39;80&#39;,\n      docroot    =&gt; &#39;/var/www/fourth&#39;,\n      add_listen =&gt; false,\n    }\n    apache::vhost { &#39;fifth.example.com&#39;:\n      port       =&gt; &#39;80&#39;,\n      docroot    =&gt; &#39;/var/www/fifth&#39;,\n      add_listen =&gt; false,\n    }\n</code></pre>\n\n<h2>Implementation</h2>\n\n<h3>Classes and Defined Types</h3>\n\n<h4>Class: <code>apache::dev</code></h4>\n\n<p>Installs Apache development libraries</p>\n\n<pre lang=\"puppet\"><code>    class { &#39;apache::dev&#39;: }\n</code></pre>\n\n<p>On FreeBSD you&#39;re required to define <code>apache::package</code> or <code>apache</code> class before <code>apache::dev</code>.</p>\n\n<h4>Defined Type: <code>apache::listen</code></h4>\n\n<p>Controls which ports Apache binds to for listening based on the title:</p>\n\n<pre lang=\"puppet\"><code>    apache::listen { &#39;80&#39;: }\n    apache::listen { &#39;443&#39;: }\n</code></pre>\n\n<p>Declaring this defined type will add all <code>Listen</code> directives to the <code>ports.conf</code> file in the Apache httpd configuration directory.  <code>apache::listen</code> titles should always take the form of: <code>&lt;port&gt;</code>, <code>&lt;ipv4&gt;:&lt;port&gt;</code>, or <code>[&lt;ipv6&gt;]:&lt;port&gt;</code></p>\n\n<p>Apache httpd requires that <code>Listen</code> directives must be added for every port. The <code>apache::vhost</code> defined type will automatically add <code>Listen</code> directives unless the <code>apache::vhost</code> is passed <code>add_listen =&gt; false</code>.</p>\n\n<h4>Defined Type: <code>apache::namevirtualhost</code></h4>\n\n<p>Enables named-based hosting of a virtual host</p>\n\n<pre lang=\"puppet\"><code>    class { &#39;apache::namevirtualhost`: }\n</code></pre>\n\n<p>Declaring this defined type will add all <code>NameVirtualHost</code> directives to the <code>ports.conf</code> file in the Apache https configuration directory. <code>apache::namevirtualhost</code> titles should always take the form of: <code>*</code>, <code>*:&lt;port&gt;</code>, <code>_default_:&lt;port&gt;</code>, <code>&lt;ip&gt;</code>, or <code>&lt;ip&gt;:&lt;port&gt;</code>.</p>\n\n<h4>Defined Type: <code>apache::balancermember</code></h4>\n\n<p>Define members of a proxy_balancer set (mod_proxy_balancer). Very useful when using exported resources.</p>\n\n<p>On every app server you can export a balancermember like this:</p>\n\n<pre lang=\"puppet\"><code>      @@apache::balancermember { &quot;${::fqdn}-puppet00&quot;:\n        balancer_cluster =&gt; &#39;puppet00&#39;,\n        url              =&gt; &quot;ajp://${::fqdn}:8009&quot;\n        options          =&gt; [&#39;ping=5&#39;, &#39;disablereuse=on&#39;, &#39;retry=5&#39;, &#39;ttl=120&#39;],\n      }\n</code></pre>\n\n<p>And on the proxy itself you create the balancer cluster using the defined type apache::balancer:</p>\n\n<pre lang=\"puppet\"><code>      apache::balancer { &#39;puppet00&#39;: }\n</code></pre>\n\n<p>If you need to use ProxySet in the balncer config you can do as so:</p>\n\n<pre lang=\"puppet\"><code>      apache::balancer { &#39;puppet01&#39;:\n        proxy_set =&gt; {&#39;stickysession&#39; =&gt; &#39;JSESSIONID&#39;},\n      }\n</code></pre>\n\n<h3>Templates</h3>\n\n<p>The Apache module relies heavily on templates to enable the <code>vhost</code> and <code>apache::mod</code> defined types. These templates are built based on Facter facts around your operating system. Unless explicitly called out, most templates are not meant for configuration.</p>\n\n<h2>Limitations</h2>\n\n<p>This has been tested on Ubuntu Precise, Debian Wheezy, CentOS 5.8, and FreeBSD 9.1.</p>\n\n<h2>Development</h2>\n\n<h3>Overview</h3>\n\n<p>Puppet Labs modules on the Puppet Forge are open projects, and community contributions are essential for keeping them great. We can’t access the huge number of platforms and myriad of hardware, software, and deployment configurations that Puppet is intended to serve.</p>\n\n<p>We want to keep it as easy as possible to contribute changes so that our modules work in your environment. There are a few guidelines that we need contributors to follow so that we can have a chance of keeping on top of things.</p>\n\n<p>You can read the complete module contribution guide <a href=\"http://projects.puppetlabs.com/projects/module-site/wiki/Module_contributing\">on the Puppet Labs wiki.</a></p>\n\n<h3>Running tests</h3>\n\n<p>This project contains tests for both <a href=\"http://rspec-puppet.com/\">rspec-puppet</a> and <a href=\"https://github.com/puppetlabs/rspec-system\">rspec-system</a> to verify functionality. For in-depth information please see their respective documentation.</p>\n\n<p>Quickstart:</p>\n\n<pre><code>gem install bundler\nbundle install\nbundle exec rake spec\nbundle exec rake spec:system\n</code></pre>\n\n<h2>Copyright and License</h2>\n\n<p>Copyright (C) 2012 <a href=\"https://www.puppetlabs.com/\">Puppet Labs</a> Inc</p>\n\n<p>Puppet Labs can be contacted at: <a href=\"mailto:info@puppetlabs.com\">info@puppetlabs.com</a></p>\n\n<p>Licensed under the Apache License, Version 2.0 (the &quot;License&quot;);\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at</p>\n\n<p><a href=\"http://www.apache.org/licenses/LICENSE-2.0\">http://www.apache.org/licenses/LICENSE-2.0</a></p>\n\n<p>Unless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an &quot;AS IS&quot; BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.</p>\n</section>",
ruby-puppet-forge-2.3.2/spec/fixtures/v3/modules.json-1281-        "changelog": "<section class=\"markdown\"><h2>2013-12-05 Release 0.10.0</h2>\n\n<h3>Summary:</h3>\n\n<p>This release adds FreeBSD osfamily support and various other improvements to some mods.</p>\n\n<h3>Features:</h3>\n\n<ul>\n<li>Add suPHP_UserGroup directive to directory context</li>\n<li>Add support for ScriptAliasMatch directives</li>\n<li>Set SSLOptions StdEnvVars in server context</li>\n<li>No implicit <Directory> entry for ScriptAlias path</li>\n<li>Add support for overriding ErrorDocument</li>\n<li>Add support for AliasMatch directives</li>\n<li>Disable default &quot;allow from all&quot; in vhost-directories</li>\n<li>Add WSGIPythonPath as an optional parameter to mod_wsgi. </li>\n<li>Add mod_rpaf support</li>\n<li>Add directives: IndexOptions, IndexOrderDefault</li>\n<li>Add ability to include additional external configurations in vhost</li>\n<li>need to use the provider variable not the provider key value from the directory hash for matches</li>\n<li>Support for FreeBSD and few other features</li>\n<li>Add new params to apache::mod::mime class</li>\n<li>Allow apache::mod to specify module id and path</li>\n<li>added $server_root parameter</li>\n<li>Add Allow and ExtendedStatus support to mod_status</li>\n<li>Expand vhost/_directories.pp directive support</li>\n<li>Add initial support for nss module (no directives in vhost template yet)</li>\n<li>added peruser and event mpms</li>\n<li>added $service_name parameter</li>\n<li>add parameter for TraceEnable</li>\n<li>Make LogLevel configurable for server and vhost</li>\n<li>Add documentation about $ip</li>\n<li>Add ability to pass ip (instead of wildcard) in default vhost files</li>\n</ul>\n\n<h3>Bugfixes:</h3>\n\n<ul>\n<li>Don&#39;t listen on port or set NameVirtualHost for non-existent vhost</li>\n<li>only apply Directory defaults when provider is a directory</li>\n<li>Working mod_authnz_ldap support on Debian/Ubuntu</li>\n</ul>\n\n<h2>2013-09-06 Release 0.9.0</h2>\n\n<h3>Summary:</h3>\n\n<p>This release adds more parameters to the base apache class and apache defined\nresource to make the module more flexible. It also adds or enhances SuPHP,\nWSGI, and Passenger mod support, and support for the ITK mpm module.</p>\n\n<h3>Backwards-incompatible Changes:</h3>\n\n<ul>\n<li>Remove many default mods that are not normally needed.</li>\n<li>Remove <code>rewrite_base</code> <code>apache::vhost</code> parameter; did not work anyway.</li>\n<li>Specify dependencies on stdlib &gt;=2.4.0 (this was already the case, but\nmaking explicit)</li>\n<li>Deprecate <code>a2mod</code> in favor of the <code>apache::mod::*</code> classes and <code>apache::mod</code>\ndefined resource.</li>\n</ul>\n\n<h3>Features:</h3>\n\n<ul>\n<li><code>apache</code> class\n\n<ul>\n<li>Add <code>httpd_dir</code> parameter to change the location of the configuration\nfiles.</li>\n<li>Add <code>logroot</code> parameter to change the logroot</li>\n<li>Add <code>ports_file</code> parameter to changes the <code>ports.conf</code> file location</li>\n<li>Add <code>keepalive</code> parameter to enable persistent connections</li>\n<li>Add <code>keepalive_timeout</code> parameter to change the timeout</li>\n<li>Update <code>default_mods</code> to be able to take an array of mods to enable.</li>\n</ul></li>\n<li><code>apache::vhost</code>\n\n<ul>\n<li>Add <code>wsgi_daemon_process</code>, <code>wsgi_daemon_process_options</code>,\n<code>wsgi_process_group</code>, and <code>wsgi_script_aliases</code> parameters for per-vhost\nWSGI configuration.</li>\n<li>Add <code>access_log_syslog</code> parameter to enable syslogging.</li>\n<li>Add <code>error_log_syslog</code> parameter to enable syslogging of errors.</li>\n<li>Add <code>directories</code> hash parameter. Please see README for documentation.</li>\n<li>Add <code>sslproxyengine</code> parameter to enable SSLProxyEngine</li>\n<li>Add <code>suphp_addhandler</code>, <code>suphp_engine</code>, and <code>suphp_configpath</code> for\nconfiguring SuPHP.</li>\n<li>Add <code>custom_fragment</code> parameter to allow for arbitrary apache\nconfiguration injection. (Feature pull requests are prefered over using\nthis, but it is available in a pinch.)</li>\n</ul></li>\n<li>Add <code>apache::mod::suphp</code> class for configuring SuPHP.</li>\n<li>Add <code>apache::mod::itk</code> class for configuring ITK mpm module.</li>\n<li>Update <code>apache::mod::wsgi</code> class for global WSGI configuration with\n<code>wsgi_socket_prefix</code> and <code>wsgi_python_home</code> parameters.</li>\n<li>Add README.passenger.md to document the <code>apache::mod::passenger</code> usage.\nAdded <code>passenger_high_performance</code>, <code>passenger_pool_idle_time</code>,\n<code>passenger_max_requests</code>, <code>passenger_stat_throttle_rate</code>, <code>rack_autodetect</code>,\nand <code>rails_autodetect</code> parameters.</li>\n<li>Separate the httpd service resource into a new <code>apache::service</code> class for\ndependency chaining of <code>Class[&#39;apache&#39;] -&gt; &lt;resource&gt; ~&gt;\nClass[&#39;apache::service&#39;]</code></li>\n<li>Added <code>apache::mod::proxy_balancer</code> class for <code>apache::balancer</code></li>\n</ul>\n\n<h3>Bugfixes:</h3>\n\n<ul>\n<li>Change dependency to puppetlabs-concat</li>\n<li>Fix ruby 1.9 bug for <code>a2mod</code></li>\n<li>Change servername to be <code>$::hostname</code> if there is no <code>$::fqdn</code></li>\n<li>Make <code>/etc/ssl/certs</code> the default ssl certs directory for RedHat non-5.</li>\n<li>Make <code>php</code> the default php package for RedHat non-5.</li>\n<li>Made <code>aliases</code> able to take a single alias hash instead of requiring an\narray.</li>\n</ul>\n\n<h2>2013-07-26 Release 0.8.1</h2>\n\n<h3>Bugfixes:</h3>\n\n<ul>\n<li>Update <code>apache::mpm_module</code> detection for worker/prefork</li>\n<li>Update <code>apache::mod::cgi</code> and <code>apache::mod::cgid</code> detection for\nworker/prefork</li>\n</ul>\n\n<h2>2013-07-16 Release 0.8.0</h2>\n\n<h3>Features:</h3>\n\n<ul>\n<li>Add <code>servername</code> parameter to <code>apache</code> class</li>\n<li>Add <code>proxy_set</code> parameter to <code>apache::balancer</code> define</li>\n</ul>\n\n<h3>Bugfixes:</h3>\n\n<ul>\n<li>Fix ordering for multiple <code>apache::balancer</code> clusters</li>\n<li>Fix symlinking for sites-available on Debian-based OSs</li>\n<li>Fix dependency ordering for recursive confdir management</li>\n<li>Fix <code>apache::mod::*</code> to notify the service on config change</li>\n<li>Documentation updates</li>\n</ul>\n\n<h2>2013-07-09 Release 0.7.0</h2>\n\n<h3>Changes:</h3>\n\n<ul>\n<li>Essentially rewrite the module -- too many to list</li>\n<li><code>apache::vhost</code> has many abilities -- see README.md for details</li>\n<li><code>apache::mod::*</code> classes provide httpd mod-loading capabilities</li>\n<li><code>apache</code> base class is much more configurable</li>\n</ul>\n\n<h3>Bugfixes:</h3>\n\n<ul>\n<li>Many. And many more to come</li>\n</ul>\n\n<h2>2013-03-2 Release 0.6.0</h2>\n\n<ul>\n<li>update travis tests (add more supported versions)</li>\n<li>add access log_parameter</li>\n<li>make purging of vhost dir configurable</li>\n</ul>\n\n<h2>2012-08-24 Release 0.4.0</h2>\n\n<h3>Changes:</h3>\n\n<ul>\n<li><code>include apache</code> is now required when using <code>apache::mod::*</code></li>\n</ul>\n\n<h3>Bugfixes:</h3>\n\n<ul>\n<li>Fix syntax for validate_re</li>\n<li>Fix formatting in vhost template</li>\n<li><p>Fix spec tests such that they pass</p>\n\n<p>2012-05-08 Puppet Labs <a href=\"mailto:info@puppetlabs.com\">info@puppetlabs.com</a> - 0.0.4\ne62e362 Fix broken tests for ssl, vhost, vhost::*\n42c6363 Changes to match style guide and pass puppet-lint without error\n42bc8ba changed name =&gt; path for file resources in order to name namevar by it&#39;s name\n72e13de One end too much\n0739641 style guide fixes: &#39;true&#39; &lt;&gt; true, $operatingsystem needs to be $::operatingsystem, etc.\n273f94d fix tests\na35ede5 (#13860) Make a2enmod/a2dismo commands optional\n98d774e (#13860) Autorequire Package[&#39;httpd&#39;]\n05fcec5 (#13073) Add missing puppet spec tests\n541afda (#6899) Remove virtual a2mod definition\n976cb69 (#13072) Move mod python and wsgi package names to params\n323915a (#13060) Add .gitignore to repo\nfdf40af (#13060) Remove pkg directory from source tree\nfd90015 Add LICENSE file and update the ModuleFile\nd3d0d23 Re-enable local php class\nd7516c7 Make management of firewalls configurable for vhosts\n60f83ba Explicitly lookup scope of apache_name in templates.\nf4d287f (#12581) Add explicit ordering for vdir directory\n88a2ac6 (#11706) puppetlabs-apache depends on puppetlabs-firewall\na776a8b (#11071) Fix to work with latest firewall module\n2b79e8b (#11070) Add support for Scientific Linux\n405b3e9 Fix for a2mod\n57b9048 Commit apache::vhost::redirect Manifest\n8862d01 Commit apache::vhost::proxy Manifest\nd5c1fd0 Commit apache::mod::wsgi Manifest\na825ac7 Commit apache::mod::python Manifest\nb77062f Commit Templates\n9a51b4a Vhost File Declarations\n6cf7312 Defaults for Parameters\n6a5b11a Ensure installed\nf672e46 a2mod fix\n8a56ee9 add pthon support to apache</p></li>\n</ul>\n</section>",
##############################################
ruby-puppet-forge-2.3.2/spec/fixtures/v3/modules.json-1776-        "readme": "<section class=\"markdown\"><h1>MySQL</h1>\n\n<h4>Table of Contents</h4>\n\n<ol>\n<li><a href=\"#overview\">Overview</a></li>\n<li><a href=\"#module-description\">Module Description - What the module does and why it is useful</a></li>\n<li><a href=\"#setup\">Setup - The basics of getting started with mysql</a>\n\n<ul>\n<li><a href=\"#what-mysql-affects\">What mysql affects</a></li>\n<li><a href=\"#setup-requirements\">Setup requirements</a></li>\n<li><a href=\"#beginning-with-mysql\">Beginning with mysql</a></li>\n</ul></li>\n<li><a href=\"#usage\">Usage - Configuration options and additional functionality</a></li>\n<li><a href=\"#reference\">Reference - An under-the-hood peek at what the module is doing and how</a></li>\n<li><a href=\"#limitations\">Limitations - OS compatibility, etc.</a></li>\n<li><a href=\"#development\">Development - Guide for contributing to the module</a></li>\n</ol>\n\n<h2>Overview</h2>\n\n<p>The MySQL module installs, configures, and manages the MySQL service.</p>\n\n<h2>Module Description</h2>\n\n<p>The MySQL module manages both the installation and configuration of MySQL as\nwell as extends Pupppet to allow management of MySQL resources, such as\ndatabases, users, and grants.</p>\n\n<h2>Backwards Compatibility</h2>\n\n<p>This module has just undergone a very large rewrite.  As a result it will no\nlonger work with the previous classes and configuration as before.  We&#39;ve\nattempted to handle backwards compatibility automatically by adding a\n<code>attempt_compatibility_mode</code> parameter to the main mysql class.  If you set\nthis to true it will attempt to map your previous parameters into the new\n<code>mysql::server</code> class.</p>\n\n<h3>WARNING</h3>\n\n<p>This may fail.  It may eat your MySQL server.  PLEASE test it before running it\nlive.  Even if it&#39;s just a no-op and a manual comparision.  Please be careful!</p>\n\n<h2>Setup</h2>\n\n<h3>What MySQL affects</h3>\n\n<ul>\n<li>MySQL package.</li>\n<li>MySQL configuration files.</li>\n<li>MySQL service.</li>\n</ul>\n\n<h3>Beginning with MySQL</h3>\n\n<p>If you just want a server installing with the default options you can run\n<code>include &#39;::mysql::server&#39;</code>.  If you need to customize options, such as the root\npassword or /etc/my.cnf settings then you can also include <code>mysql::server</code> and\npass in an override hash as seen below:</p>\n\n<pre lang=\"puppet\"><code>class { &#39;::mysql::server&#39;:\n  root_password    =&gt; &#39;strongpassword&#39;,\n  override_options =&gt; { &#39;mysqld&#39; =&gt; { &#39;max_connections&#39; =&gt; &#39;1024&#39; } }\n}\n</code></pre>\n\n<h2>Usage</h2>\n\n<p>All interaction for the server is done via <code>mysql::server</code>.  To install the\nclient you use <code>mysql::client</code>, and to install bindings you can use\n<code>mysql::bindings</code>.</p>\n\n<h3>Overrides</h3>\n\n<p>The hash structure for overrides in <code>mysql::server</code> is as follows:</p>\n\n<pre lang=\"puppet\"><code>$override_options = {\n  &#39;section&#39; =&gt; {\n    &#39;item&#39;             =&gt; &#39;thing&#39;,\n  }\n}\n</code></pre>\n\n<p>For items that you would traditionally represent as:</p>\n\n<pre>\n[section]\nthing\n</pre>\n\n<p>You can just make an entry like <code>thing =&gt; true</code> in the hash.  MySQL doesn&#39;t\ncare if thing is alone or set to a value, it&#39;ll happily accept both.</p>\n\n<h3>Custom configuration</h3>\n\n<p>To add custom mysql configuration you can drop additional files into\n<code>/etc/mysql/conf.d/</code> in order to override settings or add additional ones (if you\nchoose not to use override_options in <code>mysql::server</code>).  This location is\nhardcoded into the my.cnf template file.</p>\n\n<h2>Reference</h2>\n\n<h3>Classes</h3>\n\n<h4>Public classes</h4>\n\n<ul>\n<li><code>mysql::server</code>: Installs and configures MySQL.</li>\n<li><code>mysql::server::account_security</code>: Deletes default MySQL accounts.</li>\n<li><code>mysql::server::monitor</code>: Sets up a monitoring user.</li>\n<li><code>mysql::server::mysqltuner</code>: Installs MySQL tuner script.</li>\n<li><code>mysql::server::backup</code>: Sets up MySQL backups via cron.</li>\n<li><code>mysql::bindings</code>: Installs various MySQL language bindings.</li>\n<li><code>mysql::client</code>: Installs MySQL client (for non-servers).</li>\n</ul>\n\n<h4>Private classes</h4>\n\n<ul>\n<li><code>mysql::server::install</code>: Installs packages.</li>\n<li><code>mysql::server::config</code>: Configures MYSQL.</li>\n<li><code>mysql::server::service</code>: Manages service.</li>\n<li><code>mysql::server::root_password</code>: Sets MySQL root password.</li>\n<li><code>mysql::server::providers</code>: Creates users, grants, and databases.</li>\n<li><code>mysql::bindings::java</code>: Installs Java bindings.</li>\n<li><code>mysql::bindings::perl</code>: Installs Perl bindings.</li>\n<li><code>mysql::bindings::python</code>: Installs Python bindings.</li>\n<li><code>mysql::bindings::ruby</code>: Installs Ruby bindings.</li>\n<li><code>mysql::client::install</code>:  Installs MySQL client.</li>\n</ul>\n\n<h3>Parameters</h3>\n\n<h4>mysql::server</h4>\n\n<h5><code>root_password</code></h5>\n\n<p>What is the MySQL root password.  Puppet will attempt to set it to this and update <code>/root/.my.cnf</code>.</p>\n\n<h5><code>old_root_password</code></h5>\n\n<p>What was the previous root password (REQUIRED if you wish to change the root password via Puppet.)</p>\n\n<h5><code>override_options</code></h5>\n\n<p>This is the hash of override options to pass into MySQL.  It can be visualized\nlike a hash of the my.cnf file, so that entries look like:</p>\n\n<pre lang=\"puppet\"><code>$override_options = {\n  &#39;section&#39; =&gt; {\n    &#39;item&#39;             =&gt; &#39;thing&#39;,\n  }\n}\n</code></pre>\n\n<p>For items that you would traditionally represent as:</p>\n\n<pre>\n[section]\nthing\n</pre>\n\n<p>You can just make an entry like <code>thing =&gt; true</code> in the hash.  MySQL doesn&#39;t\ncare if thing is alone or set to a value, it&#39;ll happily accept both.</p>\n\n<h5><code>config_file</code></h5>\n\n<p>The location of the MySQL configuration file.</p>\n\n<h5><code>manage_config_file</code></h5>\n\n<p>Should we manage the MySQL configuration file.</p>\n\n<h5><code>purge_conf_dir</code></h5>\n\n<p>Should we purge the conf.d directory?</p>\n\n<h5><code>restart</code></h5>\n\n<p>Should the service be restarted when things change?</p>\n\n<h5><code>root_group</code></h5>\n\n<p>What is the group used for root?</p>\n\n<h5><code>package_ensure</code></h5>\n\n<p>What to set the package to.  Can be present, absent, or version.</p>\n\n<h5><code>package_name</code></h5>\n\n<p>What is the name of the mysql server package to install.</p>\n\n<h5><code>remove_default_accounts</code></h5>\n\n<p>Boolean to decide if we should automatically include\n<code>mysql::server::account_security</code>.</p>\n\n<h5><code>service_enabled</code></h5>\n\n<p>Boolean to decide if the service should be enabled.</p>\n\n<h5><code>service_manage</code></h5>\n\n<p>Boolean to decide if the service should be managed.</p>\n\n<h5><code>service_name</code></h5>\n\n<p>What is the name of the mysql server service.</p>\n\n<h5><code>service_provider</code></h5>\n\n<p>Which provider to use to manage the service.</p>\n\n<h5><code>users</code></h5>\n\n<p>Optional hash of users to create, which are passed to <a href=\"#mysql_user\">mysql_user</a>. Example:</p>\n\n<pre lang=\"puppet\"><code>$users = {\n  &#39;someuser@localhost&#39; =&gt; {\n    ensure                   =&gt; &#39;present&#39;,\n    max_connections_per_hour =&gt; &#39;0&#39;,\n    max_queries_per_hour     =&gt; &#39;0&#39;,\n    max_updates_per_hour     =&gt; &#39;0&#39;,\n    max_user_connections     =&gt; &#39;0&#39;,\n    password_hash            =&gt; &#39;*F3A2A51A9B0F2BE2468926B4132313728C250DBF&#39;,\n  },\n}\n</code></pre>\n\n<h5><code>grants</code></h5>\n\n<p>Optional hash of grants, which are passed to <a href=\"#mysql_grant\">mysql_grant</a>. Example:</p>\n\n<pre lang=\"puppet\"><code>$grants = {\n  &#39;someuser@localhost/somedb.*&#39; =&gt; {\n    ensure     =&gt; &#39;present&#39;,\n    options    =&gt; [&#39;GRANT&#39;],\n    privileges =&gt; [&#39;SELECT&#39;, &#39;INSERT&#39;, &#39;UPDATE&#39;, &#39;DELETE&#39;],\n    table      =&gt; &#39;somedb.*&#39;,\n    user       =&gt; &#39;someuser@localhost&#39;,\n  },\n}\n</code></pre>\n\n<h5><code>databases</code></h5>\n\n<p>Optional hash of databases to create, which are passed to <a href=\"#mysql_database\">mysql_database</a>. Example:</p>\n\n<pre lang=\"puppet\"><code>$databases = {\n  &#39;somedb&#39; =&gt; {\n    ensure  =&gt; &#39;present&#39;,\n    charset =&gt; &#39;utf8&#39;,\n  },\n}\n</code></pre>\n\n<h5><code>service_provider</code></h5>\n\n<h4>mysql::server::backup</h4>\n\n<h5><code>backupuser</code></h5>\n\n<p>MySQL user to create for backing up.</p>\n\n<h5><code>backuppassword</code></h5>\n\n<p>MySQL user password for backups.</p>\n\n<h5><code>backupdir</code></h5>\n\n<p>Directory to backup into.</p>\n\n<h5><code>backupcompress</code></h5>\n\n<p>Boolean to determine if backups should be compressed.</p>\n\n<h5><code>backuprotate</code></h5>\n\n<p>How many days to keep backups for.</p>\n\n<h5><code>delete_before_dump</code></h5>\n\n<p>Boolean to determine if you should cleanup before backing up or after.</p>\n\n<h5><code>backupdatabases</code></h5>\n\n<p>Array of databases to specifically backup.</p>\n\n<h5><code>file_per_database</code></h5>\n\n<p>Should a seperate file be used per database.</p>\n\n<h5><code>ensure</code></h5>\n\n<p>Present or absent, allows you to remove the backup scripts.</p>\n\n<h5><code>time</code></h5>\n\n<p>An array of two elements to set the time to backup.  Allows [&#39;23&#39;, &#39;5&#39;] or [&#39;3&#39;, &#39;45&#39;] for HH:MM times.</p>\n\n<h4>mysql::server::monitor</h4>\n\n<h5><code>mysql_monitor_username</code></h5>\n\n<p>The username to create for MySQL monitoring.</p>\n\n<h5><code>mysql_monitor_password</code></h5>\n\n<p>The password to create for MySQL monitoring.</p>\n\n<h5><code>mysql_monitor_hostname</code></h5>\n\n<p>The hostname to allow to access the MySQL monitoring user.</p>\n\n<h4>mysql::bindings</h4>\n\n<h5><code>java_enable</code></h5>\n\n<p>Boolean to decide if the Java bindings should be installed.</p>\n\n<h5><code>perl_enable</code></h5>\n\n<p>Boolean to decide if the Perl bindings should be installed.</p>\n\n<h5><code>php_enable</code></h5>\n\n<p>Boolean to decide if the PHP bindings should be installed.</p>\n\n<h5><code>python_enable</code></h5>\n\n<p>Boolean to decide if the Python bindings should be installed.</p>\n\n<h5><code>ruby_enable</code></h5>\n\n<p>Boolean to decide if the Ruby bindings should be installed.</p>\n\n<h5><code>java_package_ensure</code></h5>\n\n<p>What to set the package to.  Can be present, absent, or version.</p>\n\n<h5><code>java_package_name</code></h5>\n\n<p>The name of the package to install.</p>\n\n<h5><code>java_package_provider</code></h5>\n\n<p>What provider should be used to install the package.</p>\n\n<h5><code>perl_package_ensure</code></h5>\n\n<p>What to set the package to.  Can be present, absent, or version.</p>\n\n<h5><code>perl_package_name</code></h5>\n\n<p>The name of the package to install.</p>\n\n<h5><code>perl_package_provider</code></h5>\n\n<p>What provider should be used to install the package.</p>\n\n<h5><code>python_package_ensure</code></h5>\n\n<p>What to set the package to.  Can be present, absent, or version.</p>\n\n<h5><code>python_package_name</code></h5>\n\n<p>The name of the package to install.</p>\n\n<h5><code>python_package_provider</code></h5>\n\n<p>What provider should be used to install the package.</p>\n\n<h5><code>ruby_package_ensure</code></h5>\n\n<p>What to set the package to.  Can be present, absent, or version.</p>\n\n<h5><code>ruby_package_name</code></h5>\n\n<p>The name of the package to install.</p>\n\n<h5><code>ruby_package_provider</code></h5>\n\n<p>What provider should be used to install the package.</p>\n\n<h4>mysql::client</h4>\n\n<h5><code>bindings_enable</code></h5>\n\n<p>Boolean to automatically install all bindings.</p>\n\n<h5><code>package_ensure</code></h5>\n\n<p>What to set the package to.  Can be present, absent, or version.</p>\n\n<h5><code>package_name</code></h5>\n\n<p>What is the name of the mysql client package to install.</p>\n\n<h3>Defines</h3>\n\n<h4>mysql::db</h4>\n\n<p>Creates a database with a user and assign some privileges.</p>\n\n<pre lang=\"puppet\"><code>    mysql::db { &#39;mydb&#39;:\n      user     =&gt; &#39;myuser&#39;,\n      password =&gt; &#39;mypass&#39;,\n      host     =&gt; &#39;localhost&#39;,\n      grant    =&gt; [&#39;SELECT&#39;, &#39;UPDATE&#39;],\n    }\n</code></pre>\n\n<h3>Providers</h3>\n\n<h4>mysql_database</h4>\n\n<p>mysql_database can be used to create and manage databases within MySQL:</p>\n\n<pre lang=\"puppet\"><code>mysql_database { &#39;information_schema&#39;:\n  ensure  =&gt; &#39;present&#39;,\n  charset =&gt; &#39;utf8&#39;,\n  collate =&gt; &#39;utf8_swedish_ci&#39;,\n}\nmysql_database { &#39;mysql&#39;:\n  ensure  =&gt; &#39;present&#39;,\n  charset =&gt; &#39;latin1&#39;,\n  collate =&gt; &#39;latin1_swedish_ci&#39;,\n}\n</code></pre>\n\n<h4>mysql_user</h4>\n\n<p>mysql_user can be used to create and manage user grants within MySQL:</p>\n\n<pre lang=\"puppet\"><code>mysql_user { &#39;root@127.0.0.1&#39;:\n  ensure                   =&gt; &#39;present&#39;,\n  max_connections_per_hour =&gt; &#39;0&#39;,\n  max_queries_per_hour     =&gt; &#39;0&#39;,\n  max_updates_per_hour     =&gt; &#39;0&#39;,\n  max_user_connections     =&gt; &#39;0&#39;,\n}\n</code></pre>\n\n<h4>mysql_grant</h4>\n\n<p>mysql_grant can be used to create grant permissions to access databases within\nMySQL.  To use it you must create the title of the resource as shown below,\nfollowing the pattern of <code>username@hostname/database.table</code>:</p>\n\n<pre lang=\"puppet\"><code>mysql_grant { &#39;root@localhost/*.*&#39;:\n  ensure     =&gt; &#39;present&#39;,\n  options    =&gt; [&#39;GRANT&#39;],\n  privileges =&gt; [&#39;ALL&#39;],\n  table      =&gt; &#39;*.*&#39;,\n  user       =&gt; &#39;root@localhost&#39;,\n}\n</code></pre>\n\n<h2>Limitations</h2>\n\n<p>This module has been tested on:</p>\n\n<ul>\n<li>RedHat Enterprise Linux 5/6</li>\n<li>Debian 6/7</li>\n<li>CentOS 5/6</li>\n<li>Ubuntu 12.04</li>\n</ul>\n\n<p>Testing on other platforms has been light and cannot be guaranteed.</p>\n\n<h1>Development</h1>\n\n<p>Puppet Labs modules on the Puppet Forge are open projects, and community\ncontributions are essential for keeping them great. We can’t access the\nhuge number of platforms and myriad of hardware, software, and deployment\nconfigurations that Puppet is intended to serve.</p>\n\n<p>We want to keep it as easy as possible to contribute changes so that our\nmodules work in your environment. There are a few guidelines that we need\ncontributors to follow so that we can have a chance of keeping on top of things.</p>\n\n<p>You can read the complete module contribution guide <a href=\"http://projects.puppetlabs.com/projects/module-site/wiki/Module_contributing\">on the Puppet Labs wiki.</a></p>\n\n<h3>Authors</h3>\n\n<p>This module is based on work by David Schmitt. The following contributor have contributed patches to this module (beyond Puppet Labs):</p>\n\n<ul>\n<li>Larry Ludwig</li>\n<li>Christian G. Warden</li>\n<li>Daniel Black</li>\n<li>Justin Ellison</li>\n<li>Lowe Schmidt</li>\n<li>Matthias Pigulla</li>\n<li>William Van Hevelingen</li>\n<li>Michael Arnold</li>\n<li>Chris Weyl</li>\n</ul>\n</section>",
ruby-puppet-forge-2.3.2/spec/fixtures/v3/modules.json:1777:        "changelog": "<section class=\"plaintext\"><pre>2013-11-13 - Version 2.1.0\n\nSummary:\n\nThe most important changes in 2.1.0 are improvements to the my.cnf creation,\nas well as providers.  Setting options to = true strips them to be just the\nkey name itself, which is required for some options.\n\nThe provider updates fix a number of bugs, from lowercase privileges to\ndeprecation warnings.\n\nLast, the new hiera integration functionality should make it easier to\nexternalize all your grantts, users, and, databases.  Another great set of\ncommunity submissions helped to make this release.\n\nFeatures:\n- Some options can not take a argument. Gets rid of the &#x27;= true&#x27; when an\noption is set to true.\n- Easier hiera integration:  Add hash parameters to mysql::server to allow\nspecifying grants, users, and databases.\n\nFixes:\n- Fix an issue with lowercase privileges in mysql_grant{} causing them to be reapplied needlessly.\n- Changed defaults-file to defaults-extra-file in providers.\n- Ensure &#x2F;root&#x2F;.my.cnf is 0600 and root owned.\n- database_user deprecation warning was incorrect.\n- Add anchor pattern for client.pp\n- Documentation improvements.\n- Various test fixes.\n\n2013-10-21 - Version 2.0.1\n\nSummary:\n\nThis is a bugfix release to handle an issue where unsorted mysql_grant{}\nprivileges could cause Puppet to incorrectly reapply the permissions on\neach run.\n\nFixes:\n- Mysql_grant now sorts privileges in the type and provider for comparision.\n- Comment and test tweak for PE3.1.\n\n2013-10-14 - Version 2.0.0\n\nSummary:\n\n(Previously detailed in the changelog for 2.0.0-rc1)\n\nThis module has been completely refactored and works significantly different.\nThe changes are broad and touch almost every piece of the module.\n\nSee the README.md for full details of all changes and syntax.\nPlease remain on 1.0.0 if you don&#x27;t have time to fully test this in dev.\n\n* mysql::server, mysql::client, and mysql::bindings are the primary interface\nclasses.\n* mysql::server takes an `options_override` parameter to set my.cnf options,\nwith the hash format: { &#x27;section&#x27; =&gt; { &#x27;thing&#x27; =&gt; &#x27;value&#x27; }}\n* mysql attempts backwards compatibility by forwarding all parameters to\nmysql::server.\n\n2013-10-09 - Version 2.0.0-rc5\n\nSummary:\n\nHopefully the final rc!  Further fixes to mysql_grant (stripping out the\ncleverness so we match a much wider range of input.)\n\nFixes:\n- Make mysql_grant accept &#x27;.*&#x27;@&#x27;.*&#x27; in terms of input for user@host.\n\n2013-10-09 - Version 2.0.0-rc4\n\nSummary:\n\nBugfixes to mysql_grant and mysql_user form the bulk of this rc, as well as\nensuring that values in the override_options hash that contain a value of &#x27;&#x27;\nare created as just &quot;key&quot; in the conf rather than &quot;key =&quot; or &quot;key = false&quot;.\n\nFixes:\n- Improve mysql_grant to work with IPv6 addresses (both long and short).\n- Ensure @host users work as well as user@host users.\n- Updated my.cnf template to support items with no values.\n\n2013-10-07 - Version 2.0.0-rc3\n\nSummary:\n\nFix mysql::server::monitor&#x27;s use of mysql_user{}.\n\nFixes:\n- Fix myql::server::monitor&#x27;s use of mysql_user{} to grant the proper\npermissions.  Add specs as well.  (Thanks to treydock!)\n\n2013-10-03 - Version 2.0.0-rc2\n\nSummary:\n\nBugfixes\n\nFixes:\n- Fix a duplicate parameter in mysql::server\n\n2013-10-03 - Version 2.0.0-rc1\n\nSummary:\n\nThis module has been completely refactored and works significantly different.\nThe changes are broad and touch almost every piece of the module.\n\nSee the README.md for full details of all changes and syntax.\nPlease remain on 1.0.0 if you don&#x27;t have time to fully test this in dev.\n\n* mysql::server, mysql::client, and mysql::bindings are the primary interface\nclasses.\n* mysql::server takes an `options_override` parameter to set my.cnf options,\nwith the hash format: { &#x27;section&#x27; =&gt; { &#x27;thing&#x27; =&gt; &#x27;value&#x27; }}\n* mysql attempts backwards compatibility by forwarding all parameters to\nmysql::server.\n\n2013-09-23 - Version 1.0.0\n\nSummary:\n\nThis release introduces a number of new type&#x2F;providers, to eventually\nreplace the database_ ones.  The module has been converted to call the\nnew providers rather than the previous ones as they have a number of\nfixes, additional options, and work with puppet resource.\n\nThis 1.0.0 release precedes a large refactoring that will be released\nalmost immediately after as 2.0.0.\n\nFeatures:\n- Added mysql_grant, mysql_database, and mysql_user.\n- Add `mysql::bindings` class and refactor all other bindings to be contained underneath mysql::bindings:: namespace.\n- Added support to back up specified databases only with &#x27;mysqlbackup&#x27; parameter.\n- Add option to mysql::backup to set the backup script to perform a mysqldump on each database to its own file\n\nBugfixes:\n- Update my.cnf.pass.erb to allow custom socket support\n- Add environment variable for .my.cnf in mysql::db.\n- Add HOME environment variable for .my.cnf to mysqladmin command when\n(re)setting root password\n\n2013-07-15 - Version 0.9.0\nFeatures:\n- Add `mysql::backup::backuprotate` parameter\n- Add `mysql::backup::delete_before_dump` parameter\n- Add `max_user_connections` attribute to `database_user` type\n\nBugfixes:\n- Add client package dependency for `mysql::db`\n- Remove duplicate `expire_logs_days` and `max_binlog_size` settings\n- Make root&#x27;s `.my.cnf` file path dynamic\n- Update pidfile path for Suse variants\n- Fixes for lint\n\n2013-07-05 - Version 0.8.1\nBugfixes:\n - Fix a typo in the Fedora 19 support.\n\n2013-07-01 - Version 0.8.0\nFeatures:\n - mysql::perl class to install perl-DBD-mysql.\n - minor improvements to the providers to improve reliability\n - Install the MariaDB packages on Fedora 19 instead of MySQL.\n - Add new `mysql` class parameters:\n  -  `max_connections`: The maximum number of allowed connections.\n  -  `manage_config_file`: Opt out of puppetized control of my.cnf.\n  -  `ft_min_word_len`: Fine tune the full text search.\n  -  `ft_max_word_len`: Fine tune the full text search.\n - Add new `mysql` class performance tuning parameters:\n  -  `key_buffer`\n  -  `thread_stack`\n  -  `thread_cache_size`\n  -  `myisam-recover`\n  -  `query_cache_limit`\n  -  `query_cache_size`\n  -  `max_connections`\n  -  `tmp_table_size`\n  -  `table_open_cache`\n  -  `long_query_time`\n - Add new `mysql` class replication parameters:\n  -  `server_id`\n  -  `sql_log_bin`\n  -  `log_bin`\n  -  `max_binlog_size`\n  -  `binlog_do_db`\n  -  `expire_logs_days`\n  -  `log_bin_trust_function_creators`\n  -  `replicate_ignore_table`\n  -  `replicate_wild_do_table`\n  -  `replicate_wild_ignore_table`\n  -  `expire_logs_days`\n  -  `max_binlog_size`\n\nBugfixes:\n - No longer restart MySQL when &#x2F;root&#x2F;.my.cnf changes.\n - Ensure mysql::config runs before any mysql::db defines.\n\n2013-06-26 - Version 0.7.1\nBugfixes:\n- Single-quote password for special characters\n- Update travis testing for puppet 3.2.x and missing Bundler gems\n\n2013-06-25 - Version 0.7.0\nThis is a maintenance release for community bugfixes and exposing\nconfiguration variables.\n\n* Add new `mysql` class parameters:\n -  `basedir`: The base directory mysql uses\n -  `bind_address`: The IP mysql binds to\n -  `client_package_name`: The name of the mysql client package\n -  `config_file`: The location of the server config file\n -  `config_template`: The template to use to generate my.cnf\n -  `datadir`: The directory MySQL&#x27;s datafiles are stored\n -  `default_engine`: The default engine to use for tables\n -  `etc_root_password`: Whether or not to add the mysql root password to\n &#x2F;etc&#x2F;my.cnf\n -  `java_package_name`: The name of the java package containing the java\n connector\n -  `log_error`: Where to log errors\n -  `manage_service`: Boolean dictating if mysql::server should manage the\n service\n -  `max_allowed_packet`: Maximum network packet size mysqld will accept\n -  `old_root_password`: Previous root user password\n -  `php_package_name`: The name of the phpmysql package to install\n -  `pidfile`: The location mysql will expect the pidfile to be\n -  `port`: The port mysql listens on\n -  `purge_conf_dir`: Value fed to recurse and purge parameters of the\n &#x2F;etc&#x2F;mysql&#x2F;conf.d resource\n -  `python_package_name`: The name of the python mysql package to install\n -  `restart`: Whether to restart mysqld\n -  `root_group`: Use specified group for root-owned files\n -  `root_password`: The root MySQL password to use\n -  `ruby_package_name`: The name of the ruby mysql package to install\n -  `ruby_package_provider`: The installation suite to use when installing the\n ruby package\n -  `server_package_name`: The name of the server package to install\n -  `service_name`: The name of the service to start\n -  `service_provider`: The name of the service provider\n -  `socket`: The location of the MySQL server socket file\n -  `ssl_ca`: The location of the SSL CA Cert\n -  `ssl_cert`: The location of the SSL Certificate to use\n -  `ssl_key`: The SSL key to use\n -  `ssl`: Whether or not to enable ssl\n -  `tmpdir`: The directory MySQL&#x27;s tmpfiles are stored\n* Deprecate `mysql::package_name` parameter in favor of\n`mysql::client_package_name`\n* Fix local variable template deprecation\n* Fix dependency ordering in `mysql::db`\n* Fix ANSI quoting in queries\n* Fix travis support (but still messy)\n* Fix typos\n\n2013-01-11 - Version 0.6.1\n* Fix providers when &#x2F;root&#x2F;.my.cnf is absent\n\n2013-01-09 - Version 0.6.0\n* Add `mysql::server::config` define for specific config directives\n* Add `mysql::php` class for php support\n* Add `backupcompress` parameter to `mysql::backup`\n* Add `restart` parameter to `mysql::config`\n* Add `purge_conf_dir` parameter to `mysql::config`\n* Add `manage_service` parameter to `mysql::server`\n* Add syslog logging support via the `log_error` parameter\n* Add initial SuSE support\n* Fix remove non-localhost root user when fqdn != hostname\n* Fix dependency in `mysql::server::monitor`\n* Fix .my.cnf path for root user and root password\n* Fix ipv6 support for users\n* Fix &#x2F; update various spec tests\n* Fix typos\n* Fix lint warnings\n\n2012-08-23 - Version 0.5.0\n* Add puppetlabs&#x2F;stdlib as requirement\n* Add validation for mysql privs in provider\n* Add `pidfile` parameter to mysql::config\n* Add `ensure` parameter to mysql::db\n* Add Amazon linux support\n* Change `bind_address` parameter to be optional in my.cnf template\n* Fix quoting root passwords\n\n2012-07-24 - Version 0.4.0\n* Fix various bugs regarding database names\n* FreeBSD support\n* Allow specifying the storage engine\n* Add a backup class\n* Add a security class to purge default accounts\n\n2012-05-03 - Version 0.3.0\n* #14218 Query the database for available privileges\n* Add mysql::java class for java connector installation\n* Use correct error log location on different distros\n* Fix set_mysql_rootpw to properly depend on my.cnf\n\n2012-04-11 - Version 0.2.0\n\n2012-03-19 - William Van Hevelingen &lt;blkperl@cat.pdx.edu&gt;\n* (#13203) Add ssl support (f7e0ea5)\n\n2012-03-18 - Nan Liu &lt;nan@puppetlabs.com&gt;\n* Travis ci before script needs success exit code. (0ea463b)\n\n2012-03-18 - Nan Liu &lt;nan@puppetlabs.com&gt;\n* Fix Puppet 2.6 compilation issues. (9ebbbc4)\n\n2012-03-16 - Nan Liu &lt;nan@puppetlabs.com&gt;\n* Add travis.ci for testing multiple puppet versions. (33c72ef)\n\n2012-03-15 - William Van Hevelingen &lt;blkperl@cat.pdx.edu&gt;\n* (#13163) Datadir should be configurable (f353fc6)\n\n2012-03-16 - Nan Liu &lt;nan@puppetlabs.com&gt;\n* Document create_resources dependency. (558a59c)\n\n2012-03-16 - Nan Liu &lt;nan@puppetlabs.com&gt;\n* Fix spec test issues related to error message. (eff79b5)\n\n2012-03-16 - Nan Liu &lt;nan@puppetlabs.com&gt;\n* Fix mysql service on Ubuntu. (72da2c5)\n\n2012-03-16 - Dan Bode &lt;dan@puppetlabs.com&gt;\n* Add more spec test coverage (55e399d)\n\n2012-03-16 - Nan Liu &lt;nan@puppetlabs.com&gt;\n* (#11963) Fix spec test due to path changes. (1700349)\n\n2012-03-07 - François Charlier &lt;fcharlier@ploup.net&gt;\n* Add a test to check path for &#x27;mysqld-restart&#x27; (b14c7d1)\n\n2012-03-07 - François Charlier &lt;fcharlier@ploup.net&gt;\n* Fix path for &#x27;mysqld-restart&#x27; (1a9ae6b)\n\n2012-03-15 - Dan Bode &lt;dan@puppetlabs.com&gt;\n* Add rspec-puppet tests for mysql::config (907331a)\n\n2012-03-15 - Dan Bode &lt;dan@puppetlabs.com&gt;\n* Moved class dependency between sever and config to server (da62ad6)\n\n2012-03-14 - Dan Bode &lt;dan@puppetlabs.com&gt;\n* Notify mysql restart from set_mysql_rootpw exec (0832a2c)\n\n2012-03-15 - Nan Liu &lt;nan@puppetlabs.com&gt;\n* Add documentation related to osfamily fact. (8265d28)\n\n2012-03-14 - Dan Bode &lt;dan@puppetlabs.com&gt;\n* Mention osfamily value in failure message (e472d3b)\n\n2012-03-14 - Dan Bode &lt;dan@puppetlabs.com&gt;\n* Fix bug when querying for all database users (015490c)\n\n2012-02-09 - Nan Liu &lt;nan@puppetlabs.com&gt;\n* Major refactor of mysql module. (b1f90fd)\n\n2012-01-11 - Justin Ellison &lt;justin.ellison@buckle.com&gt;\n* Ruby and Python&#x27;s MySQL libraries are named differently on different distros. (1e926b4)\n\n2012-01-11 - Justin Ellison &lt;justin.ellison@buckle.com&gt;\n* Per @ghoneycutt, we should fail explicitly and explain why. (09af083)\n\n2012-01-11 - Justin Ellison &lt;justin.ellison@buckle.com&gt;\n* Removing duplicate declaration (7513d03)\n\n2012-01-10 - Justin Ellison &lt;justin.ellison@buckle.com&gt;\n* Use socket value from params class instead of hardcoding. (663e97c)\n\n2012-01-10 - Justin Ellison &lt;justin.ellison@buckle.com&gt;\n* Instead of hardcoding the config file target, pull it from mysql::params (031a47d)\n\n2012-01-10 - Justin Ellison &lt;justin.ellison@buckle.com&gt;\n* Moved $socket to within the case to toggle between distros.  Added a $config_file variable to allow per-distro config file destinations. (360eacd)\n\n2012-01-10 - Justin Ellison &lt;justin.ellison@buckle.com&gt;\n* Pretty sure this is a bug, 99% of Linux distros out there won&#x27;t ever hit the default. (3462e6b)\n\n2012-02-09 - William Van Hevelingen &lt;blkperl@cat.pdx.edu&gt;\n* Changed the README to use markdown (3b7dfeb)\n\n2012-02-04 - Daniel Black &lt;grooverdan@users.sourceforge.net&gt;\n* (#12412) mysqltuner.pl update (b809e6f)\n\n2011-11-17 - Matthias Pigulla &lt;mp@webfactory.de&gt;\n* (#11363) Add two missing privileges to grant: event_priv, trigger_priv (d15c9d1)\n\n2011-12-20 - Jeff McCune &lt;jeff@puppetlabs.com&gt;\n* (minor) Fixup typos in Modulefile metadata (a0ed6a1)\n\n2011-12-19 - Carl Caum &lt;carl@carlcaum.com&gt;\n* Only notify Exec to import sql if sql is given (0783c74)\n\n2011-12-19 - Carl Caum &lt;carl@carlcaum.com&gt;\n* (#11508) Only load sql_scripts on DB creation (e3b9fd9)\n\n2011-12-13 - Justin Ellison &lt;justin.ellison@buckle.com&gt;\n* Require not needed due to implicit dependencies (3058feb)\n\n2011-12-13 - Justin Ellison &lt;justin.ellison@buckle.com&gt;\n* Bug #11375: puppetlabs-mysql fails on CentOS&#x2F;RHEL (a557b8d)\n\n2011-06-03 - Dan Bode &lt;dan@puppetlabs.com&gt; - 0.0.1\n* initial commit\n</pre></section>",
ruby-puppet-forge-2.3.2/spec/fixtures/v3/modules.json-1778-        "license": "<section class=\"plaintext\"><pre>                                 Apache License\n                           Version 2.0, January 2004\n                        http:&#x2F;&#x2F;www.apache.org&#x2F;licenses&#x2F;\n\n   TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\n\n   1. Definitions.\n\n      &quot;License&quot; shall mean the terms and conditions for use, reproduction,\n      and distribution as defined by Sections 1 through 9 of this document.\n\n      &quot;Licensor&quot; shall mean the copyright owner or entity authorized by\n      the copyright owner that is granting the License.\n\n      &quot;Legal Entity&quot; shall mean the union of the acting entity and all\n      other entities that control, are controlled by, or are under common\n      control with that entity. For the purposes of this definition,\n      &quot;control&quot; means (i) the power, direct or indirect, to cause the\n      direction or management of such entity, whether by contract or\n      otherwise, or (ii) ownership of fifty percent (50%) or more of the\n      outstanding shares, or (iii) beneficial ownership of such entity.\n\n      &quot;You&quot; (or &quot;Your&quot;) shall mean an individual or Legal Entity\n      exercising permissions granted by this License.\n\n      &quot;Source&quot; form shall mean the preferred form for making modifications,\n      including but not limited to software source code, documentation\n      source, and configuration files.\n\n      &quot;Object&quot; form shall mean any form resulting from mechanical\n      transformation or translation of a Source form, including but\n      not limited to compiled object code, generated documentation,\n      and conversions to other media types.\n\n      &quot;Work&quot; shall mean the work of authorship, whether in Source or\n      Object form, made available under the License, as indicated by a\n      copyright notice that is included in or attached to the work\n      (an example is provided in the Appendix below).\n\n      &quot;Derivative Works&quot; shall mean any work, whether in Source or Object\n      form, that is based on (or derived from) the Work and for which the\n      editorial revisions, annotations, elaborations, or other modifications\n      represent, as a whole, an original work of authorship. For the purposes\n      of this License, Derivative Works shall not include works that remain\n      separable from, or merely link (or bind by name) to the interfaces of,\n      the Work and Derivative Works thereof.\n\n      &quot;Contribution&quot; shall mean any work of authorship, including\n      the original version of the Work and any modifications or additions\n      to that Work or Derivative Works thereof, that is intentionally\n      submitted to Licensor for inclusion in the Work by the copyright owner\n      or by an individual or Legal Entity authorized to submit on behalf of\n      the copyright owner. For the purposes of this definition, &quot;submitted&quot;\n      means any form of electronic, verbal, or written communication sent\n      to the Licensor or its representatives, including but not limited to\n      communication on electronic mailing lists, source code control systems,\n      and issue tracking systems that are managed by, or on behalf of, the\n      Licensor for the purpose of discussing and improving the Work, but\n      excluding communication that is conspicuously marked or otherwise\n      designated in writing by the copyright owner as &quot;Not a Contribution.&quot;\n\n      &quot;Contributor&quot; shall mean Licensor and any individual or Legal Entity\n      on behalf of whom a Contribution has been received by Licensor and\n      subsequently incorporated within the Work.\n\n   2. Grant of Copyright License. Subject to the terms and conditions of\n      this License, each Contributor hereby grants to You a perpetual,\n      worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n      copyright license to reproduce, prepare Derivative Works of,\n      publicly display, publicly perform, sublicense, and distribute the\n      Work and such Derivative Works in Source or Object form.\n\n   3. Grant of Patent License. Subject to the terms and conditions of\n      this License, each Contributor hereby grants to You a perpetual,\n      worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n      (except as stated in this section) patent license to make, have made,\n      use, offer to sell, sell, import, and otherwise transfer the Work,\n      where such license applies only to those patent claims licensable\n      by such Contributor that are necessarily infringed by their\n      Contribution(s) alone or by combination of their Contribution(s)\n      with the Work to which such Contribution(s) was submitted. If You\n      institute patent litigation against any entity (including a\n      cross-claim or counterclaim in a lawsuit) alleging that the Work\n      or a Contribution incorporated within the Work constitutes direct\n      or contributory patent infringement, then any patent licenses\n      granted to You under this License for that Work shall terminate\n      as of the date such litigation is filed.\n\n   4. Redistribution. You may reproduce and distribute copies of the\n      Work or Derivative Works thereof in any medium, with or without\n      modifications, and in Source or Object form, provided that You\n      meet the following conditions:\n\n      (a) You must give any other recipients of the Work or\n          Derivative Works a copy of this License; and\n\n      (b) You must cause any modified files to carry prominent notices\n          stating that You changed the files; and\n\n      (c) You must retain, in the Source form of any Derivative Works\n          that You distribute, all copyright, patent, trademark, and\n          attribution notices from the Source form of the Work,\n          excluding those notices that do not pertain to any part of\n          the Derivative Works; and\n\n      (d) If the Work includes a &quot;NOTICE&quot; text file as part of its\n          distribution, then any Derivative Works that You distribute must\n          include a readable copy of the attribution notices contained\n          within such NOTICE file, excluding those notices that do not\n          pertain to any part of the Derivative Works, in at least one\n          of the following places: within a NOTICE text file distributed\n          as part of the Derivative Works; within the Source form or\n          documentation, if provided along with the Derivative Works; or,\n          within a display generated by the Derivative Works, if and\n          wherever such third-party notices normally appear. The contents\n          of the NOTICE file are for informational purposes only and\n          do not modify the License. You may add Your own attribution\n          notices within Derivative Works that You distribute, alongside\n          or as an addendum to the NOTICE text from the Work, provided\n          that such additional attribution notices cannot be construed\n          as modifying the License.\n\n      You may add Your own copyright statement to Your modifications and\n      may provide additional or different license terms and conditions\n      for use, reproduction, or distribution of Your modifications, or\n      for any such Derivative Works as a whole, provided Your use,\n      reproduction, and distribution of the Work otherwise complies with\n      the conditions stated in this License.\n\n   5. Submission of Contributions. Unless You explicitly state otherwise,\n      any Contribution intentionally submitted for inclusion in the Work\n      by You to the Licensor shall be under the terms and conditions of\n      this License, without any additional terms or conditions.\n      Notwithstanding the above, nothing herein shall supersede or modify\n      the terms of any separate license agreement you may have executed\n      with Licensor regarding such Contributions.\n\n   6. Trademarks. This License does not grant permission to use the trade\n      names, trademarks, service marks, or product names of the Licensor,\n      except as required for reasonable and customary use in describing the\n      origin of the Work and reproducing the content of the NOTICE file.\n\n   7. Disclaimer of Warranty. Unless required by applicable law or\n      agreed to in writing, Licensor provides the Work (and each\n      Contributor provides its Contributions) on an &quot;AS IS&quot; BASIS,\n      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\n      implied, including, without limitation, any warranties or conditions\n      of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A\n      PARTICULAR PURPOSE. You are solely responsible for determining the\n      appropriateness of using or redistributing the Work and assume any\n      risks associated with Your exercise of permissions under this License.\n\n   8. Limitation of Liability. In no event and under no legal theory,\n      whether in tort (including negligence), contract, or otherwise,\n      unless required by applicable law (such as deliberate and grossly\n      negligent acts) or agreed to in writing, shall any Contributor be\n      liable to You for damages, including any direct, indirect, special,\n      incidental, or consequential damages of any character arising as a\n      result of this License or out of the use or inability to use the\n      Work (including but not limited to damages for loss of goodwill,\n      work stoppage, computer failure or malfunction, or any and all\n      other commercial damages or losses), even if such Contributor\n      has been advised of the possibility of such damages.\n\n   9. Accepting Warranty or Additional Liability. While redistributing\n      the Work or Derivative Works thereof, You may choose to offer,\n      and charge a fee for, acceptance of support, warranty, indemnity,\n      or other liability obligations and&#x2F;or rights consistent with this\n      License. However, in accepting such obligations, You may act only\n      on Your own behalf and on Your sole responsibility, not on behalf\n      of any other Contributor, and only if You agree to indemnify,\n      defend, and hold each Contributor harmless for any liability\n      incurred by, or claims asserted against, such Contributor by reason\n      of your accepting any such warranty or additional liability.\n\n   END OF TERMS AND CONDITIONS\n\n   APPENDIX: How to apply the Apache License to your work.\n\n      To apply the Apache License to your work, attach the following\n      boilerplate notice, with the fields enclosed by brackets &quot;[]&quot;\n      replaced with your own identifying information. (Don&#x27;t include\n      the brackets!) The text should be enclosed in the appropriate\n      comment syntax for the file format. We also recommend that a\n      file or class name and description of purpose be included on the\n      same &quot;printed page&quot; as the copyright notice for easier\n      identification within third-party archives.\n\n   Copyright 2013 Puppet Labs\n\n   Licensed under the Apache License, Version 2.0 (the &quot;License&quot;);\n   you may not use this file except in compliance with the License.\n   You may obtain a copy of the License at\n\n       http:&#x2F;&#x2F;www.apache.org&#x2F;licenses&#x2F;LICENSE-2.0\n\n   Unless required by applicable law or agreed to in writing, software\n   distributed under the License is distributed on an &quot;AS IS&quot; BASIS,\n   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n   See the License for the specific language governing permissions and\n   limitations under the License.\n</pre></section>",
##############################################
ruby-puppet-forge-2.3.2/spec/fixtures/v3/modules.json-2034-                  "name": "name",
ruby-puppet-forge-2.3.2/spec/fixtures/v3/modules.json:2035:                  "doc": "The postgresql parameter name to manage.  Values can match `/^[\\w\\.]+$/`."
ruby-puppet-forge-2.3.2/spec/fixtures/v3/modules.json-2036-                }
##############################################
ruby-puppet-forge-2.3.2/spec/fixtures/v3/modules.json-2212-        "downloads": 13123,
ruby-puppet-forge-2.3.2/spec/fixtures/v3/modules.json:2213:        "readme": "<section class=\"markdown\"><h1>postgresql</h1>\n\n<h2>Table of Contents</h2>\n\n<ol>\n<li><a href=\"#overview\">Overview - What is the PostgreSQL module?</a></li>\n<li><a href=\"#module-description\">Module Description - What does the module do?</a></li>\n<li><a href=\"#setup\">Setup - The basics of getting started with PostgreSQL module</a></li>\n<li><a href=\"#usage\">Usage - How to use the module for various tasks</a></li>\n<li><a href=\"#upgrading\">Upgrading - Guide for upgrading from older revisions of this module</a></li>\n<li><a href=\"#reference\">Reference - The classes, defines,functions and facts available in this module</a></li>\n<li><a href=\"#limitations\">Limitations - OS compatibility, etc.</a></li>\n<li><a href=\"#development\">Development - Guide for contributing to the module</a></li>\n<li><a href=\"#disclaimer\">Disclaimer - Licensing information</a></li>\n<li><a href=\"#transfer-notice\">Transfer Notice - Notice of authorship change</a></li>\n<li><a href=\"#contributors\">Contributors - List of module contributors</a></li>\n</ol>\n\n<h2>Overview</h2>\n\n<p>The PostgreSQL module allows you to easily manage postgres databases with Puppet.</p>\n\n<h2>Module Description</h2>\n\n<p>PostgreSQL is a high-performance, free, open-source relational database server. The postgresql module allows you to manage PostgreSQL packages and services on several operating systems, while also supporting basic management of PostgreSQL databases and users. The module offers support for managing firewall for postgres ports on RedHat-based distros, as well as support for basic management of common security settings.</p>\n\n<h2>Setup</h2>\n\n<p><strong>What puppetlabs-PostgreSQL affects:</strong></p>\n\n<ul>\n<li>package/service/configuration files for PostgreSQL</li>\n<li>listened-to ports</li>\n<li>system firewall (optional)</li>\n<li>IP and mask (optional)</li>\n</ul>\n\n<p><strong>Introductory Questions</strong></p>\n\n<p>The postgresql module offers many security configuration settings. Before getting started, you will want to consider:</p>\n\n<ul>\n<li>Do you want/need to allow remote connections?\n\n<ul>\n<li>If yes, what about TCP connections?</li>\n</ul></li>\n<li>Would you prefer to work around your current firewall settings or overwrite some of them?</li>\n<li>How restrictive do you want the database superuser&#39;s permissions to be?</li>\n</ul>\n\n<p>Your answers to these questions will determine which of the module&#39;s parameters you&#39;ll want to specify values for.</p>\n\n<h3>Configuring the server</h3>\n\n<p>The main configuration you&#39;ll need to do will be around the <code>postgresql::server</code> class. The default parameters are reasonable, but fairly restrictive regarding permissions for who can connect and from where. To manage a PostgreSQL server with sane defaults:</p>\n\n<pre><code>class { &#39;postgresql::server&#39;: }\n</code></pre>\n\n<p>For a more customized configuration:</p>\n\n<pre><code>class { &#39;postgresql::server&#39;:\n  ip_mask_deny_postgres_user =&gt; &#39;0.0.0.0/32&#39;,\n  ip_mask_allow_all_users    =&gt; &#39;0.0.0.0/0&#39;,\n  listen_addresses           =&gt; &#39;*&#39;,\n  ipv4acls                   =&gt; [&#39;hostssl all johndoe 192.168.0.0/24 cert&#39;],\n  manage_firewall            =&gt; true,\n  postgres_password          =&gt; &#39;TPSrep0rt!&#39;,\n}\n</code></pre>\n\n<p>Once you&#39;ve completed your configuration of <code>postgresql::server</code>, you can test out your settings from the command line:</p>\n\n<pre><code>$ psql -h localhost -U postgres\n$ psql -h my.postgres.server -U\n</code></pre>\n\n<p>If you get an error message from these commands, it means that your permissions are set in a way that restricts access from where you&#39;re trying to connect. That might be a good thing or a bad thing, depending on your goals.</p>\n\n<p>For more details about server configuration parameters consult the <a href=\"http://www.postgresql.org/docs/9.2/static/runtime-config.html\">PostgreSQL Runtime Configuration docs</a>.</p>\n\n<h2>Usage</h2>\n\n<h3>Creating a database</h3>\n\n<p>There are many ways to set up a postgres database using the <code>postgresql::server::db</code> class. For instance, to set up a database for PuppetDB:</p>\n\n<pre><code>class { &#39;postgresql::server&#39;: }\n\npostgresql::server::db { &#39;mydatabasename&#39;:\n  user     =&gt; &#39;mydatabaseuser&#39;,\n  password =&gt; postgresql_password(&#39;mydatabaseuser&#39;, &#39;mypassword&#39;),\n}\n</code></pre>\n\n<h3>Managing users, roles and permissions</h3>\n\n<p>To manage users, roles and permissions:</p>\n\n<pre><code>class { &#39;postgresql::server&#39;: }\n\npostgresql::server::role { &#39;marmot&#39;:\n  password_hash =&gt; postgresql_password(&#39;marmot&#39;, &#39;mypasswd&#39;),\n}\n\npostgresql::server::database_grant { &#39;test1&#39;:\n  privilege =&gt; &#39;ALL&#39;,\n  db        =&gt; &#39;test1&#39;,\n  role      =&gt; &#39;marmot&#39;,\n}\n\npostgresql::server::table_grant { &#39;my_table of test2&#39;:\n  privilege =&gt; &#39;ALL&#39;,\n  table     =&gt; &#39;my_table&#39;,\n  db        =&gt; &#39;test2&#39;,\n  role      =&gt; &#39;marmot&#39;,\n}\n</code></pre>\n\n<p>In this example, you would grant ALL privileges on the test1 database and on the <code>my_table</code> table of the test2 database to the user or group specified by dan.</p>\n\n<p>At this point, you would just need to plunk these database name/username/password values into your PuppetDB config files, and you are good to go.</p>\n\n<h2>Upgrading</h2>\n\n<h3>Upgrading from 2.x to version 3</h3>\n\n<p><em>Note:</em> if you are upgrading for 2.x, you <em>must</em> read this, as just about everything has changed.</p>\n\n<p>Version 3 was a major rewrite to fix some internal dependency issues, and to make the new Public API more clear. As a consequence a lot of things have changed for version 3 and older revisions that we will try to outline here.</p>\n\n<h4>Server specific objects now moved under <code>postgresql::server::</code> namespace</h4>\n\n<p>To restructure server specific elements under the <code>postgresql::server::</code> namespaces the following objects were renamed as such:</p>\n\n<ul>\n<li><code>postgresql::database</code>       -&gt; <code>postgresql::server::database</code></li>\n<li><code>postgresql::database_grant</code> -&gt; <code>postgresql::server::database_grant</code></li>\n<li><code>postgresql::db</code>             -&gt; <code>postgresql::server::db</code></li>\n<li><code>postgresql::grant</code>          -&gt; <code>postgresql::server::grant</code></li>\n<li><code>postgresql::pg_hba_rule</code>    -&gt; <code>postgresql::server::pg_hba_rule</code></li>\n<li><code>postgresql::plperl</code>         -&gt; <code>postgresql::server::plperl</code></li>\n<li><code>postgresql::contrib</code>        -&gt; <code>postgresql::server::contrib</code></li>\n<li><code>postgresql::role</code>           -&gt; <code>postgresql::server::role</code></li>\n<li><code>postgresql::table_grant</code>    -&gt; <code>postgresql::server::table_grant</code></li>\n<li><code>postgresql::tablespace</code>     -&gt; <code>postgresql::server::tablespace</code></li>\n</ul>\n\n<h4>New <code>postgresql::server::config_entry</code> resource for managing configuration</h4>\n\n<p>Previously we used the <code>file_line</code> resource to modify <code>postgresql.conf</code>. This new revision now adds a new resource named <code>postgresql::server::config_entry</code> for managing this file. For example:</p>\n\n<pre><code>postgresql::server::config_entry { &#39;check_function_bodies&#39;:\n  value =&gt; &#39;off&#39;,\n}\n</code></pre>\n\n<p>If you were using <code>file_line</code> for this purpose, you should change to this new methodology.</p>\n\n<h4><code>postgresql_puppet_extras.conf</code> has been removed</h4>\n\n<p>Now that we have a methodology for managing <code>postgresql.conf</code>, and due to concerns over the file management methodology using an <code>exec { &#39;touch ...&#39;: }</code> as a way to create an empty file the existing postgresql_puppet_extras.conf file is no longer managed by this module.</p>\n\n<p>If you wish to recreate this methodology yourself, use this pattern:</p>\n\n<pre><code>class { &#39;postgresql::server&#39;: }\n\n$extras = &quot;/tmp/include.conf&quot;\n\nfile { $extras:\n  content =&gt; &#39;max_connections = 123&#39;,\n  notify  =&gt; Class[&#39;postgresql::server::service&#39;],\n}-&gt;\npostgresql::server::config_entry { &#39;include&#39;:\n  value   =&gt; $extras,\n}\n</code></pre>\n\n<h4>All uses of the parameter <code>charset</code> changed to <code>encoding</code></h4>\n\n<p>Since PostgreSQL uses the terminology <code>encoding</code> not <code>charset</code> the parameter has been made consisent across all classes and resources.</p>\n\n<h4>The <code>postgresql</code> base class is no longer how you set globals</h4>\n\n<p>The old global override pattern was less then optimal so it has been fixed, however we decided to demark this properly by specifying these overrides in the class <code>postgresql::globals</code>. Consult the documentation for this class now to see what options are available.</p>\n\n<p>Also, some parameter elements have been moved between this and the <code>postgresql::server</code> class where it made sense.</p>\n\n<h4><code>config_hash</code> parameter collapsed for the <code>postgresql::server</code> class</h4>\n\n<p>Because the <code>config_hash</code> was really passing data through to what was in effect an internal class (<code>postgresql::config</code>). And since we don&#39;t want this kind of internal exposure the parameters were collapsed up into the <code>postgresql::server</code> class directly.</p>\n\n<h4>Lots of changes to &#39;private&#39; or &#39;undocumented&#39; classes</h4>\n\n<p>If you were using these before, these have changed names. You should only use what is documented in this README.md, and if you don&#39;t have what you need you should raise a patch to add that feature to a public API. All internal classes now have a comment at the top indicating them as private to make sure the message is clear that they are not supported as Public API.</p>\n\n<h4><code>pg_hba_conf_defaults</code> parameter included to turn off default pg_hba rules</h4>\n\n<p>The defaults should be good enough for most cases (if not raise a bug) but if you simply need an escape hatch, this setting will turn off the defaults. If you want to do this, it may affect the rest of the module so make sure you replace the rules with something that continues operation.</p>\n\n<h4><code>postgresql::database_user</code> has now been removed</h4>\n\n<p>Use <code>postgresql::server::role</code> instead.</p>\n\n<h4><code>postgresql::psql</code> resource has now been removed</h4>\n\n<p>Use <code>postgresql_psql</code> instead. In the future we may recreate this as a wrapper to add extra capability, but it will not match the old behaviour.</p>\n\n<h4><code>postgresql_default_version</code> fact has now been removed</h4>\n\n<p>It didn&#39;t make sense to have this logic in a fact any more, the logic has been moved into <code>postgresql::params</code>.</p>\n\n<h4><code>ripienaar/concat</code> is no longer used, instead we use <code>puppetlabs/concat</code></h4>\n\n<p>The older concat module is now deprecated and moved into the <code>puppetlabs/concat</code> namespace. Functionality is more or less identical, but you may need to intervene during the installing of this package - as both use the same <code>concat</code> namespace.</p>\n\n<h2>Reference</h2>\n\n<p>The postgresql module comes with many options for configuring the server. While you are unlikely to use all of the below settings, they allow you a decent amount of control over your security settings.</p>\n\n<p>Classes:</p>\n\n<ul>\n<li><a href=\"#class-postgresqlclient\">postgresql::client</a></li>\n<li><a href=\"#class-postgresqlglobals\">postgresql::globals</a></li>\n<li><a href=\"#class-postgresqllibdevel\">postgresql::lib::devel</a></li>\n<li><a href=\"#class-postgresqllibjava\">postgresql::lib::java</a></li>\n<li><a href=\"#class-postgresqllibpython\">postgresql::lib::python</a></li>\n<li><a href=\"#class-postgresqlserver\">postgresql::server</a></li>\n<li><a href=\"#class-postgresqlserverplperl\">postgresql::server::plperl</a></li>\n<li><a href=\"#class-postgresqlservercontrib\">postgresql::server::contrib</a></li>\n</ul>\n\n<p>Resources:</p>\n\n<ul>\n<li><a href=\"#resource-postgresqlserverconfigentry\">postgresql::server::config_entry</a></li>\n<li><a href=\"#resource-postgresqlserverdb\">postgresql::server::db</a></li>\n<li><a href=\"#resource-postgresqlserverdatabase\">postgresql::server::database</a></li>\n<li><a href=\"#resource-postgresqlserverdatabasegrant\">postgresql::server::database_grant</a></li>\n<li><a href=\"#resource-postgresqlserverpghbarule\">postgresql::server::pg_hba_rule</a></li>\n<li><a href=\"#resource-postgresqlserverrole\">postgresql::server::role</a></li>\n<li><a href=\"#resource-postgresqlservertablegrant\">postgresql::server::table_grant</a></li>\n<li><a href=\"#resource-postgresqlservertablespace\">postgresql::server::tablespace</a></li>\n<li><a href=\"#resource-postgresqlvalidatedbconnection\">postgresql::validate_db_connection</a></li>\n</ul>\n\n<p>Functions:</p>\n\n<ul>\n<li><a href=\"#function-postgresqlpassword\">postgresql_password</a></li>\n<li><a href=\"#function-postgresqlaclstoresourceshashaclarray-id-orderoffset\">postgresql_acls_to_resources_hash</a></li>\n</ul>\n\n<h3>Class: postgresql::globals</h3>\n\n<p><em>Note:</em> most server specific defaults should be overriden in the <code>postgresql::server</code> class. This class should only be used if you are using a non-standard OS or if you are changing elements such as <code>version</code> or <code>manage_package_repo</code> that can only be changed here.</p>\n\n<p>This class allows you to configure the main settings for this module in a global way, to be used by the other classes and defined resources. On its own it does nothing.</p>\n\n<p>For example, if you wanted to overwrite the default <code>locale</code> and <code>encoding</code> for all classes you could use the following combination:</p>\n\n<pre><code>class { &#39;postgresql::globals&#39;:\n  encoding =&gt; &#39;UTF8&#39;,\n  locale   =&gt; &#39;en_NG&#39;,\n}-&gt;\nclass { &#39;postgresql::server&#39;:\n}\n</code></pre>\n\n<p>That would make the <code>encoding</code> and <code>locale</code> the default for all classes and defined resources in this module.</p>\n\n<p>If you want to use the upstream PostgreSQL packaging, and be specific about the version you wish to download, you could use something like this:</p>\n\n<pre><code>class { &#39;postgresql::globals&#39;:\n  manage_package_repo =&gt; true,\n  version             =&gt; &#39;9.2&#39;,\n}-&gt;\nclass { &#39;postgresql::server&#39;: }\n</code></pre>\n\n<h4><code>client_package_name</code></h4>\n\n<p>This setting can be used to override the default postgresql client package name. If not specified, the module will use whatever package name is the default for your OS distro.</p>\n\n<h4><code>server_package_name</code></h4>\n\n<p>This setting can be used to override the default postgresql server package name. If not specified, the module will use whatever package name is the default for your OS distro.</p>\n\n<h4><code>contrib_package_name</code></h4>\n\n<p>This setting can be used to override the default postgresql contrib package name. If not specified, the module will use whatever package name is the default for your OS distro.</p>\n\n<h4><code>devel_package_name</code></h4>\n\n<p>This setting can be used to override the default postgresql devel package name. If not specified, the module will use whatever package name is the default for your OS distro.</p>\n\n<h4><code>java_package_name</code></h4>\n\n<p>This setting can be used to override the default postgresql java package name. If not specified, the module will use whatever package name is the default for your OS distro.</p>\n\n<h4><code>plperl_package_name</code></h4>\n\n<p>This setting can be used to override the default postgresql PL/perl package name. If not specified, the module will use whatever package name is the default for your OS distro.</p>\n\n<h4><code>python_package_name</code></h4>\n\n<p>This setting can be used to override the default postgresql Python package name. If not specified, the module will use whatever package name is the default for your OS distro.</p>\n\n<h4><code>service_name</code></h4>\n\n<p>This setting can be used to override the default postgresql service provider. If not specified, the module will use whatever service name is the default for your OS distro.</p>\n\n<h4><code>service_status</code></h4>\n\n<p>This setting can be used to override the default status check command for your PostgreSQL service. If not specified, the module will use whatever service name is the default for your OS distro.</p>\n\n<h4><code>default_database</code></h4>\n\n<p>This setting is used to specify the name of the default database to connect with. On most systems this will be &quot;postgres&quot;.</p>\n\n<h4><code>initdb_path</code></h4>\n\n<p>Path to the <code>initdb</code> command.</p>\n\n<h4><code>createdb_path</code></h4>\n\n<p>Path to the <code>createdb</code> command.</p>\n\n<h4><code>psql_path</code></h4>\n\n<p>Path to the <code>psql</code> command.</p>\n\n<h4><code>pg_hba_conf_path</code></h4>\n\n<p>Path to your <code>pg\\_hba.conf</code> file.</p>\n\n<h4><code>postgresql_conf_path</code></h4>\n\n<p>Path to your <code>postgresql.conf</code> file.</p>\n\n<h4><code>pg_hba_conf_defaults</code></h4>\n\n<p>If false, disables the defaults supplied with the module for <code>pg\\_hba.conf</code>. This is useful if you disagree with the defaults and wish to override them yourself. Be sure that your changes of course align with the rest of the module, as some access is required to perform basic <code>psql</code> operations for example.</p>\n\n<h4><code>datadir</code></h4>\n\n<p>This setting can be used to override the default postgresql data directory for the target platform. If not specified, the module will use whatever directory is the default for your OS distro.</p>\n\n<h4><code>confdir</code></h4>\n\n<p>This setting can be used to override the default postgresql configuration directory for the target platform. If not specified, the module will use whatever directory is the default for your OS distro.</p>\n\n<h4><code>bindir</code></h4>\n\n<p>This setting can be used to override the default postgresql binaries directory for the target platform. If not specified, the module will use whatever directory is the default for your OS distro.</p>\n\n<h4><code>user</code></h4>\n\n<p>This setting can be used to override the default postgresql super user and owner of postgresql related files in the file system. If not specified, the module will use the user name &#39;postgres&#39;.</p>\n\n<h4><code>group</code></h4>\n\n<p>This setting can be used to override the default postgresql user group to be used for related files in the file system. If not specified, the module will use the group name &#39;postgres&#39;.</p>\n\n<h4><code>version</code></h4>\n\n<p>The version of PostgreSQL to install/manage. This is a simple way of providing a specific version such as &#39;9.2&#39; or &#39;8.4&#39; for example.</p>\n\n<p>Defaults to your operating system default.</p>\n\n<h4><code>needs_initdb</code></h4>\n\n<p>This setting can be used to explicitly call the initdb operation after server package is installed and before the postgresql service is started. If not specified, the module will decide whether to call initdb or not depending on your OS distro.</p>\n\n<h4><code>encoding</code></h4>\n\n<p>This will set the default encoding encoding for all databases created with this module. On certain operating systems this will be used during the <code>template1</code> initialization as well so it becomes a default outside of the module as well. Defaults to the operating system default.</p>\n\n<h4><code>locale</code></h4>\n\n<p>This will set the default database locale for all databases created with this module. On certain operating systems this will be used during the <code>template1</code> initialization as well so it becomes a default outside of the module as well. Defaults to <code>undef</code> which is effectively <code>C</code>.</p>\n\n<h4><code>firewall_supported</code></h4>\n\n<p>This allows you to override the automated detection to see if your OS supports the <code>firewall</code> module.</p>\n\n<h4><code>manage_package_repo</code></h4>\n\n<p>If <code>true</code> this will setup the official PostgreSQL repositories on your host. Defaults to <code>false</code>.</p>\n\n<h3>Class: postgresql::server</h3>\n\n<p>The following list are options that you can set in the <code>config_hash</code> parameter of <code>postgresql::server</code>.</p>\n\n<h4><code>ensure</code></h4>\n\n<p>This value default to <code>present</code>. When set to <code>absent</code> it will remove all packages, configuration and data so use this with extreme caution.</p>\n\n<h4><code>version</code></h4>\n\n<p>This will set the version of the PostgreSQL software to install. Defaults to your operating systems default.</p>\n\n<h4><code>postgres_password</code></h4>\n\n<p>This value defaults to <code>undef</code>, meaning the super user account in the postgres database is a user called <code>postgres</code> and this account does not have a password. If you provide this setting, the module will set the password for the <code>postgres</code> user to your specified value.</p>\n\n<h4><code>package_name</code></h4>\n\n<p>The name of the package to use for installing the server software. Defaults to the default for your OS distro.</p>\n\n<h4><code>package_ensure</code></h4>\n\n<p>Value to pass through to the <code>package</code> resource when creating the server instance. Defaults to <code>undef</code>.</p>\n\n<h4><code>plperl_package_name</code></h4>\n\n<p>This sets the default package name for the PL/Perl extension. Defaults to utilising the operating system default.</p>\n\n<h4><code>service_name</code></h4>\n\n<p>This setting can be used to override the default postgresql service name. If not specified, the module will use whatever service name is the default for your OS distro.</p>\n\n<h4><code>service_name</code></h4>\n\n<p>This setting can be used to override the default postgresql service provider. If not specified, the module will use whatever service name is the default for your OS distro.</p>\n\n<h4><code>service_status</code></h4>\n\n<p>This setting can be used to override the default status check command for your PostgreSQL service. If not specified, the module will use whatever service name is the default for your OS distro.</p>\n\n<h4><code>default_database</code></h4>\n\n<p>This setting is used to specify the name of the default database to connect with. On most systems this will be &quot;postgres&quot;.</p>\n\n<h4><code>listen_addresses</code></h4>\n\n<p>This value defaults to <code>localhost</code>, meaning the postgres server will only accept connections from localhost. If you&#39;d like to be able to connect to postgres from remote machines, you can override this setting. A value of <code>*</code> will tell postgres to accept connections from any remote machine. Alternately, you can specify a comma-separated list of hostnames or IP addresses. (For more info, have a look at the <code>postgresql.conf</code> file from your system&#39;s postgres package).</p>\n\n<h4><code>ip_mask_deny_postgres_user</code></h4>\n\n<p>This value defaults to <code>0.0.0.0/0</code>. Sometimes it can be useful to block the superuser account from remote connections if you are allowing other database users to connect remotely. Set this to an IP and mask for which you want to deny connections by the postgres superuser account. So, e.g., the default value of <code>0.0.0.0/0</code> will match any remote IP and deny access, so the postgres user won&#39;t be able to connect remotely at all. Conversely, a value of <code>0.0.0.0/32</code> would not match any remote IP, and thus the deny rule will not be applied and the postgres user will be allowed to connect.</p>\n\n<h4><code>ip_mask_allow_all_users</code></h4>\n\n<p>This value defaults to <code>127.0.0.1/32</code>. By default, Postgres does not allow any database user accounts to connect via TCP from remote machines. If you&#39;d like to allow them to, you can override this setting. You might set it to <code>0.0.0.0/0</code> to allow database users to connect from any remote machine, or <code>192.168.0.0/16</code> to allow connections from any machine on your local 192.168 subnet.</p>\n\n<h4><code>ipv4acls</code></h4>\n\n<p>List of strings for access control for connection method, users, databases, IPv4 addresses; see <a href=\"http://www.postgresql.org/docs/9.2/static/auth-pg-hba-conf.html\">postgresql documentation</a> about <code>pg_hba.conf</code> for information (please note that the link will take you to documentation for the most recent version of Postgres, however links for earlier versions can be found on that page).</p>\n\n<h4><code>ipv6acls</code></h4>\n\n<p>List of strings for access control for connection method, users, databases, IPv6 addresses; see <a href=\"http://www.postgresql.org/docs/9.2/static/auth-pg-hba-conf.html\">postgresql documentation</a> about <code>pg_hba.conf</code> for information (please note that the link will take you to documentation for the most recent version of Postgres, however links for earlier versions can be found on that page).</p>\n\n<h4><code>inidb_path</code></h4>\n\n<p>Path to the <code>initdb</code> command.</p>\n\n<h4><code>createdb_path</code></h4>\n\n<p>Path to the <code>createdb</code> command.</p>\n\n<h4><code>psql_path</code></h4>\n\n<p>Path to the <code>psql</code> command.</p>\n\n<h4><code>pg_hba_conf_path</code></h4>\n\n<p>Path to your <code>pg\\_hba.conf</code> file.</p>\n\n<h4><code>postgresql_conf_path</code></h4>\n\n<p>Path to your <code>postgresql.conf</code> file.</p>\n\n<h4><code>pg_hba_conf_defaults</code></h4>\n\n<p>If false, disables the defaults supplied with the module for <code>pg\\_hba.conf</code>. This is useful if you di\nsagree with the defaults and wish to override them yourself. Be sure that your changes of course alig\nn with the rest of the module, as some access is required to perform basic <code>psql</code> operations for exam\nple.</p>\n\n<h4><code>user</code></h4>\n\n<p>This setting can be used to override the default postgresql super user and owner of postgresql related files in the file system. If not specified, the module will use the user name &#39;postgres&#39;.</p>\n\n<h4><code>group</code></h4>\n\n<p>This setting can be used to override the default postgresql user group to be used for related files in the file system. If not specified, the module will use the group name &#39;postgres&#39;.</p>\n\n<h4><code>needs_initdb</code></h4>\n\n<p>This setting can be used to explicitly call the initdb operation after server package is installed and before the postgresql service is started. If not specified, the module will decide whether to call initdb or not depending on your OS distro.</p>\n\n<h4><code>encoding</code></h4>\n\n<p>This will set the default encoding encoding for all databases created with this module. On certain operating systems this will be used during the <code>template1</code> initialization as well so it becomes a default outside of the module as well. Defaults to the operating system default.</p>\n\n<h4><code>locale</code></h4>\n\n<p>This will set the default database locale for all databases created with this module. On certain operating systems this will be used during the <code>template1</code> initialization as well so it becomes a default outside of the module as well. Defaults to <code>undef</code> which is effectively <code>C</code>.</p>\n\n<h4><code>manage_firewall</code></h4>\n\n<p>This value defaults to <code>false</code>. Many distros ship with a fairly restrictive firewall configuration which will block the port that postgres tries to listen on. If you&#39;d like for the puppet module to open this port for you (using the <a href=\"http://forge.puppetlabs.com/puppetlabs/firewall\">puppetlabs-firewall</a> module), change this value to true. Check the documentation for <code>puppetlabs/firewall</code> to ensure the rest of the global setup is applied, to ensure things like persistence and global rules are set correctly.</p>\n\n<h4><code>manage_pg_hba_conf</code></h4>\n\n<p>This value defaults to <code>true</code>. Whether or not manage the pg_hba.conf. If set to <code>true</code>, puppet will overwrite this file. If set to <code>false</code>, puppet will not modify the file.</p>\n\n<h3>Class: postgresql::client</h3>\n\n<p>This class installs postgresql client software. Alter the following parameters if you have a custom version you would like to install (Note: don&#39;t forget to make sure to add any necessary yum or apt repositories if specifying a custom version):</p>\n\n<h4><code>package_name</code></h4>\n\n<p>The name of the postgresql client package.</p>\n\n<h4><code>package_ensure</code></h4>\n\n<p>The ensure parameter passed on to postgresql client package resource.</p>\n\n<h3>Class: postgresql::server::contrib</h3>\n\n<p>Installs the postgresql contrib package.</p>\n\n<h4><code>package_name</code></h4>\n\n<p>The name of the postgresql client package.</p>\n\n<h4><code>package_ensure</code></h4>\n\n<p>The ensure parameter passed on to postgresql contrib package resource.</p>\n\n<h3>Class: postgresql::lib::devel</h3>\n\n<p>Installs the packages containing the development libraries for PostgreSQL.</p>\n\n<h4><code>package_ensure</code></h4>\n\n<p>Override for the <code>ensure</code> parameter during package installation. Defaults to <code>present</code>.</p>\n\n<h4><code>package_name</code></h4>\n\n<p>Overrides the default package name for the distribution you are installing to. Defaults to <code>postgresql-devel</code> or <code>postgresql&lt;version&gt;-devel</code> depending on your distro.</p>\n\n<h3>Class: postgresql::lib::java</h3>\n\n<p>This class installs postgresql bindings for Java (JDBC). Alter the following parameters if you have a custom version you would like to install (Note: don&#39;t forget to make sure to add any necessary yum or apt repositories if specifying a custom version):</p>\n\n<h4><code>package_name</code></h4>\n\n<p>The name of the postgresql java package.</p>\n\n<h4><code>package_ensure</code></h4>\n\n<p>The ensure parameter passed on to postgresql java package resource.</p>\n\n<h3>Class: postgresql::lib::python</h3>\n\n<p>This class installs the postgresql Python libraries. For customer requirements you can customise the following parameters:</p>\n\n<h4><code>package_name</code></h4>\n\n<p>The name of the postgresql python package.</p>\n\n<h4><code>package_ensure</code></h4>\n\n<p>The ensure parameter passed on to postgresql python package resource.</p>\n\n<h3>Class: postgresql::server::plperl</h3>\n\n<p>This class installs the PL/Perl procedural language for postgresql.</p>\n\n<h4><code>package_name</code></h4>\n\n<p>The name of the postgresql PL/Perl package.</p>\n\n<h4><code>package_ensure</code></h4>\n\n<p>The ensure parameter passed on to postgresql PL/Perl package resource.</p>\n\n<h3>Resource: postgresql::server::config_entry</h3>\n\n<p>This resource can be used to modify your <code>postgresql.conf</code> configuration file.</p>\n\n<p>Each resource maps to a line inside your <code>postgresql.conf</code> file, for example:</p>\n\n<pre><code>postgresql::server::config_entry { &#39;check_function_bodies&#39;:\n  value =&gt; &#39;off&#39;,\n}\n</code></pre>\n\n<h4><code>namevar</code></h4>\n\n<p>Name of the setting to change.</p>\n\n<h4><code>ensure</code></h4>\n\n<p>Set to <code>absent</code> to remove an entry.</p>\n\n<h4><code>value</code></h4>\n\n<p>Value for the setting.</p>\n\n<h3>Resource: postgresql::server::db</h3>\n\n<p>This is a convenience resource that creates a database, user and assigns necessary permissions in one go.</p>\n\n<p>For example, to create a database called <code>test1</code> with a corresponding user of the same name, you can use:</p>\n\n<pre><code>postgresql::server::db { &#39;test1&#39;:\n  user     =&gt; &#39;test1&#39;,\n  password =&gt; &#39;test1&#39;,\n}\n</code></pre>\n\n<h4><code>namevar</code></h4>\n\n<p>The namevar for the resource designates the name of the database.</p>\n\n<h4><code>user</code></h4>\n\n<p>User to create and assign access to the database upon creation. Mandatory.</p>\n\n<h4><code>password</code></h4>\n\n<p>Password for the created user. Mandatory.</p>\n\n<h4><code>encoding</code></h4>\n\n<p>Override the character set during creation of the database. Defaults to the default defined during installation.</p>\n\n<h4><code>locale</code></h4>\n\n<p>Override the locale during creation of the database. Defaults to the default defined during installation.</p>\n\n<h4><code>grant</code></h4>\n\n<p>Grant permissions during creation. Defaults to <code>ALL</code>.</p>\n\n<h4><code>tablespace</code></h4>\n\n<p>The name of the tablespace to allocate this database to. If not specifies, it defaults to the PostgreSQL default.</p>\n\n<h4><code>istemplate</code></h4>\n\n<p>Define database as a template. Defaults to <code>false</code>.</p>\n\n<h3>Resource: postgresql::server::database</h3>\n\n<p>This defined type can be used to create a database with no users and no permissions, which is a rare use case.</p>\n\n<h4><code>namevar</code></h4>\n\n<p>The name of the database to create.</p>\n\n<h4><code>dbname</code></h4>\n\n<p>The name of the database, defaults to the namevar.</p>\n\n<h4><code>owner</code></h4>\n\n<p>Name of the database user who should be set as the owner of the database. Defaults to the $user variable set in <code>postgresql::server</code> or <code>postgresql::globals</code>.</p>\n\n<h4><code>tablespace</code></h4>\n\n<p>Tablespace for where to create this database. Defaults to the defaults defined during PostgreSQL installation.</p>\n\n<h4><code>encoding</code></h4>\n\n<p>Override the character set during creation of the database. Defaults to the default defined during installation.</p>\n\n<h4><code>locale</code></h4>\n\n<p>Override the locale during creation of the database. Defaults to the default defined during installation.</p>\n\n<h4><code>istemplate</code></h4>\n\n<p>Define database as a template. Defaults to <code>false</code>.</p>\n\n<h3>Resource: postgresql::server::database_grant</h3>\n\n<p>This defined type manages grant based access privileges for users, wrapping the <code>postgresql::server::database_grant</code> for database specific permissions. Consult the PostgreSQL documentation for <code>grant</code> for more information.</p>\n\n<h4><code>namevar</code></h4>\n\n<p>Used to uniquely identify this resource, but functionality not used during grant.</p>\n\n<h4><code>privilege</code></h4>\n\n<p>Can be one of <code>SELECT</code>, <code>TEMPORARY</code>, <code>TEMP</code>, <code>CONNECT</code>. <code>ALL</code> is used as a synonym for <code>CREATE</code>. If you need to add multiple privileges, a space delimited string can be used.</p>\n\n<h4><code>db</code></h4>\n\n<p>Database to grant access to.</p>\n\n<h4><code>role</code></h4>\n\n<p>Role or user whom you are granting access for.</p>\n\n<h4><code>psql_db</code></h4>\n\n<p>Database to execute the grant against. This should not ordinarily be changed from the default, which is <code>postgres</code>.</p>\n\n<h4><code>psql_user</code></h4>\n\n<p>OS user for running <code>psql</code>. Defaults to the default user for the module, usually <code>postgres</code>.</p>\n\n<h3>Resource: postgresql::server::pg_hba_rule</h3>\n\n<p>This defined type allows you to create an access rule for <code>pg_hba.conf</code>. For more details see the <a href=\"http://www.postgresql.org/docs/8.2/static/auth-pg-hba-conf.html\">PostgreSQL documentation</a>.</p>\n\n<p>For example:</p>\n\n<pre><code>postgresql::server::pg_hba_rule { &#39;allow application network to access app database&#39;:\n  description =&gt; &quot;Open up postgresql for access from 200.1.2.0/24&quot;,\n  type =&gt; &#39;host&#39;,\n  database =&gt; &#39;app&#39;,\n  user =&gt; &#39;app&#39;,\n  address =&gt; &#39;200.1.2.0/24&#39;,\n  auth_method =&gt; &#39;md5&#39;,\n}\n</code></pre>\n\n<p>This would create a ruleset in <code>pg_hba.conf</code> similar to:</p>\n\n<pre><code># Rule Name: allow application network to access app database\n# Description: Open up postgresql for access from 200.1.2.0/24\n# Order: 150\nhost  app  app  200.1.2.0/24  md5\n</code></pre>\n\n<h4><code>namevar</code></h4>\n\n<p>A unique identifier or short description for this rule. The namevar doesn&#39;t provide any functional usage, but it is stored in the comments of the produced <code>pg_hba.conf</code> so the originating resource can be identified.</p>\n\n<h4><code>description</code></h4>\n\n<p>A longer description for this rule if required. Defaults to <code>none</code>. This description is placed in the comments above the rule in <code>pg_hba.conf</code>.</p>\n\n<h4><code>type</code></h4>\n\n<p>The type of rule, this is usually one of: <code>local</code>, <code>host</code>, <code>hostssl</code> or <code>hostnossl</code>.</p>\n\n<h4><code>database</code></h4>\n\n<p>A comma separated list of databases that this rule matches.</p>\n\n<h4><code>user</code></h4>\n\n<p>A comma separated list of database users that this rule matches.</p>\n\n<h4><code>address</code></h4>\n\n<p>If the type is not &#39;local&#39; you can provide a CIDR based address here for rule matching.</p>\n\n<h4><code>auth_method</code></h4>\n\n<p>The <code>auth_method</code> is described further in the <code>pg_hba.conf</code> documentation, but it provides the method that is used for authentication for the connection that this rule matches.</p>\n\n<h4><code>auth_option</code></h4>\n\n<p>For certain <code>auth_method</code> settings there are extra options that can be passed. Consult the PostgreSQL <code>pg_hba.conf</code> documentation for further details.</p>\n\n<h4><code>order</code></h4>\n\n<p>An order for placing the rule in <code>pg_hba.conf</code>. Defaults to <code>150</code>.</p>\n\n<h4><code>target</code></h4>\n\n<p>This provides the target for the rule, and is generally an internal only property. Use with caution.</p>\n\n<h3>Resource: postgresql::server::role</h3>\n\n<p>This resource creates a role or user in PostgreSQL.</p>\n\n<h4><code>namevar</code></h4>\n\n<p>The role name to create.</p>\n\n<h4><code>password_hash</code></h4>\n\n<p>The hash to use during password creation. If the password is not already pre-encrypted in a format that PostgreSQL supports, use the <code>postgresql_password</code> function to provide an MD5 hash here, for example:</p>\n\n<pre><code>postgresql::role { &quot;myusername&quot;:\n  password_hash =&gt; postgresql_password(&#39;myusername&#39;, &#39;mypassword&#39;),\n}\n</code></pre>\n\n<h4><code>createdb</code></h4>\n\n<p>Whether to grant the ability to create new databases with this role. Defaults to <code>false</code>.</p>\n\n<h4><code>createrole</code></h4>\n\n<p>Whether to grant the ability to create new roles with this role. Defaults to <code>false</code>.</p>\n\n<h4><code>login</code></h4>\n\n<p>Whether to grant login capability for the new role. Defaults to <code>false</code>.</p>\n\n<h4><code>superuser</code></h4>\n\n<p>Whether to grant super user capability for the new role. Defaults to <code>false</code>.</p>\n\n<h4><code>replication</code></h4>\n\n<p>If <code>true</code> provides replication capabilities for this role. Defaults to <code>false</code>.</p>\n\n<h4><code>connection_limit</code></h4>\n\n<p>Specifies how many concurrent connections the role can make. Defaults to <code>-1</code> meaning no limit.</p>\n\n<h4><code>username</code></h4>\n\n<p>The username of the role to create, defaults to <code>namevar</code>.</p>\n\n<h3>Resource: postgresql::server::table_grant</h3>\n\n<p>This defined type manages grant based access privileges for users. Consult the PostgreSQL documentation for <code>grant</code> for more information.</p>\n\n<h4><code>namevar</code></h4>\n\n<p>Used to uniquely identify this resource, but functionality not used during grant.</p>\n\n<h4><code>privilege</code></h4>\n\n<p>Can be one of <code>SELECT</code>, <code>INSERT</code>, <code>UPDATE</code>, <code>REFERENCES</code>. <code>ALL</code> is used as a synonym for <code>CREATE</code>. If you need to add multiple privileges, a space delimited string can be used.</p>\n\n<h4><code>table</code></h4>\n\n<p>Table to grant access on.</p>\n\n<h4><code>db</code></h4>\n\n<p>Database of table.</p>\n\n<h4><code>role</code></h4>\n\n<p>Role or user whom you are granting access for.</p>\n\n<h4><code>psql_db</code></h4>\n\n<p>Database to execute the grant against. This should not ordinarily be changed from the default, which is <code>postgres</code>.</p>\n\n<h4><code>psql_user</code></h4>\n\n<p>OS user for running <code>psql</code>. Defaults to the default user for the module, usually <code>postgres</code>.</p>\n\n<h3>Resource: postgresql::server::tablespace</h3>\n\n<p>This defined type can be used to create a tablespace. For example:</p>\n\n<pre><code>postgresql::tablespace { &#39;tablespace1&#39;:\n  location =&gt; &#39;/srv/space1&#39;,\n}\n</code></pre>\n\n<p>It will create the location if necessary, assigning it the same permissions as your\nPostgreSQL server.</p>\n\n<h4><code>namevar</code></h4>\n\n<p>The tablespace name to create.</p>\n\n<h4><code>location</code></h4>\n\n<p>The path to locate this tablespace.</p>\n\n<h4><code>owner</code></h4>\n\n<p>The default owner of the tablespace.</p>\n\n<h4><code>spcname</code></h4>\n\n<p>Name of the tablespace. Defaults to <code>namevar</code>.</p>\n\n<h3>Resource: postgresql::validate_db_connection</h3>\n\n<p>This resource can be utilised inside composite manifests to validate that a client has a valid connection with a remote PostgreSQL database. It can be ran from any node where the PostgreSQL client software is installed to validate connectivity before commencing other dependent tasks in your Puppet manifests, so it is often used when chained to other tasks such as: starting an application server, performing a database migration.</p>\n\n<p>Example usage:</p>\n\n<pre><code>postgresql::validate_db_connection { &#39;validate my postgres connection&#39;:\n  database_host           =&gt; &#39;my.postgres.host&#39;,\n  database_username       =&gt; &#39;mydbuser&#39;,\n  database_password       =&gt; &#39;mydbpassword&#39;,\n  database_name           =&gt; &#39;mydbname&#39;,\n}-&gt;\nexec { &#39;rake db:migrate&#39;:\n  cwd =&gt; &#39;/opt/myrubyapp&#39;,\n}\n</code></pre>\n\n<h4><code>namevar</code></h4>\n\n<p>Uniquely identify this resource, but functionally does nothing.</p>\n\n<h4><code>database_host</code></h4>\n\n<p>The hostname of the database you wish to test. Defaults to &#39;undef&#39; which generally uses the designated local unix socket.</p>\n\n<h4><code>database_port</code></h4>\n\n<p>Port to use when connecting. Default to &#39;undef&#39; which generally defaults to 5432 depending on your PostgreSQL packaging.</p>\n\n<h4><code>database_name</code></h4>\n\n<p>The name of the database you wish to test. Defaults to &#39;postgres&#39;.</p>\n\n<h4><code>database_username</code></h4>\n\n<p>Username to connect with. Defaults to &#39;undef&#39;, which when using a unix socket and ident auth will be the user you are running as. If the host is remote you must provide a username.</p>\n\n<h4><code>database_password</code></h4>\n\n<p>Password to connect with. Can be left blank, but that is not recommended.</p>\n\n<h4><code>run_as</code></h4>\n\n<p>The user to run the <code>psql</code> command with for authenticiation. This is important when trying to connect to a database locally using Unix sockets and <code>ident</code> authentication. It is not needed for remote testing.</p>\n\n<h4><code>sleep</code></h4>\n\n<p>Upon failure, sets the number of seconds to sleep for before trying again.</p>\n\n<h4><code>tries</code></h4>\n\n<p>Upon failure, sets the number of attempts before giving up and failing the resource.</p>\n\n<h4><code>create_db_first</code></h4>\n\n<p>This will ensure the database is created before running the test. This only really works if your test is local. Defaults to <code>true</code>.</p>\n\n<h3>Function: postgresql_password</h3>\n\n<p>If you need to generate a postgres encrypted password, use <code>postgresql_password</code>. You can call it from your production manifests if you don&#39;t mind them containing the clear text versions of your passwords, or you can call it from the command line and then copy and paste the encrypted password into your manifest:</p>\n\n<pre><code>$ puppet apply --execute &#39;notify { &quot;test&quot;: message =&gt; postgresql_password(&quot;username&quot;, &quot;password&quot;) }&#39;\n</code></pre>\n\n<h3>Function: postgresql_acls_to_resources_hash(acl_array, id, order_offset)</h3>\n\n<p>This internal function converts a list of <code>pg_hba.conf</code> based acls (passed in as an array of strings) to a format compatible with the <code>postgresql::pg_hba_rule</code> resource.</p>\n\n<p><strong>This function should only be used internally by the module</strong>.</p>\n\n<h2>Limitations</h2>\n\n<p>Works with versions of PostgreSQL from 8.1 through 9.2.</p>\n\n<p>Current it is only actively tested with the following operating systems:</p>\n\n<ul>\n<li>Debian 6.x and 7.x</li>\n<li>Centos 5.x and 6.x</li>\n<li>Ubuntu 10.04 and 12.04</li>\n</ul>\n\n<p>Although patches are welcome for making it work with other OS distros, it is considered best effort.</p>\n\n<h2>Development</h2>\n\n<p>Puppet Labs modules on the Puppet Forge are open projects, and community contributions are essential for keeping them great. We can&#39;t access the huge number of platforms and myriad of hardware, software, and deployment configurations that Puppet is intended to serve.</p>\n\n<p>We want to keep it as easy as possible to contribute changes so that our modules work in your environment. There are a few guidelines that we need contributors to follow so that we can have a chance of keeping on top of things.</p>\n\n<p>You can read the complete module contribution guide <a href=\"http://projects.puppetlabs.com/projects/module-site/wiki/Module_contributing\">on the Puppet Labs wiki.</a></p>\n\n<h3>Tests</h3>\n\n<p>There are two types of tests distributed with the module. Unit tests with rspec-puppet and system tests using rspec-system.</p>\n\n<p>For unit testing, make sure you have:</p>\n\n<ul>\n<li>rake</li>\n<li>bundler</li>\n</ul>\n\n<p>Install the necessary gems:</p>\n\n<pre><code>bundle install --path=vendor\n</code></pre>\n\n<p>And then run the unit tests:</p>\n\n<pre><code>bundle exec rake spec\n</code></pre>\n\n<p>The unit tests are ran in Travis-CI as well, if you want to see the results of your own tests regsiter the service hook through Travis-CI via the accounts section for your Github clone of this project.</p>\n\n<p>If you want to run the system tests, make sure you also have:</p>\n\n<ul>\n<li>vagrant &gt; 1.2.x</li>\n<li>Virtualbox &gt; 4.2.10</li>\n</ul>\n\n<p>Then run the tests using:</p>\n\n<pre><code>bundle exec rake spec:system\n</code></pre>\n\n<p>To run the tests on different operating systems, see the sets available in .nodeset.yml and run the specific set with the following syntax:</p>\n\n<pre><code>RSPEC_SET=debian-607-x64 bundle exec rake spec:system\n</code></pre>\n\n<h2>Transfer Notice</h2>\n\n<p>This Puppet module was originally authored by Inkling Systems. The maintainer preferred that Puppet Labs take ownership of the module for future improvement and maintenance as Puppet Labs is using it in the PuppetDB module.  Existing pull requests and issues were transferred over, please fork and continue to contribute here instead of Inkling.</p>\n\n<p>Previously: <a href=\"https://github.com/inkling/puppet-postgresql\">https://github.com/inkling/puppet-postgresql</a></p>\n\n<h2>Contributors</h2>\n\n<ul>\n<li>Andrew Moon</li>\n<li><a href=\"https://github.com/kennknowles\">Kenn Knowles</a> (<a href=\"https://twitter.com/KennKnowles\">@kennknowles</a>)</li>\n<li>Adrien Thebo</li>\n<li>Albert Koch</li>\n<li>Andreas Ntaflos</li>\n<li>Bret Comnes</li>\n<li>Brett Porter</li>\n<li>Chris Price</li>\n<li>dharwood</li>\n<li>Etienne Pelletier</li>\n<li>Florin Broasca</li>\n<li>Henrik</li>\n<li>Hunter Haugen</li>\n<li>Jari Bakken</li>\n<li>Jordi Boggiano</li>\n<li>Ken Barber</li>\n<li>nzakaria</li>\n<li>Richard Arends</li>\n<li>Spenser Gilliland</li>\n<li>stormcrow</li>\n<li>William Van Hevelingen</li>\n</ul>\n</section>",
ruby-puppet-forge-2.3.2/spec/fixtures/v3/modules.json:2214:        "changelog": "<section class=\"plaintext\"><pre>2013-11-05 - Version 3.2.0\n\nSummary:\n\nAdd&#x27;s support for Ubuntu 13.10 (and 14.04) as well as x, y, z.\n\nFeatures:\n- Add versions for Ubuntu 13.10 and 14.04.\n- Use default_database in validate_db_connection instead of a hardcoded\n&#x27;postgres&#x27;\n- Add globals&#x2F;params layering for default_database.\n- Allow specification of default database name.\n\nBugs:\n- Fixes to the README.\n\n\n2013-10-25 - Version 3.1.0\n\nSummary:\n\nThis is a minor feature and bug fix release.\n\nFirstly, the postgresql_psql type now includes a new parameter `search_path` which is equivalent to using `set search_path` which allows you to change the default schema search path.\n\nThe default version of Fedora 17 has now been added, so that Fedora 17 users can enjoy the module.\n\nAnd finally we&#x27;ve extended the capabilities of the defined type postgresql::validate_db_connection so that now it can handle retrying and sleeping between retries. This feature has been monopolized to fix a bug we were seeing with startup race conditions, but it can also be used by remote systems to &#x27;wait&#x27; for PostgreSQL to start before their Puppet run continues.\n\nFeatures:\n- Defined $default_version for Fedora 17 (Bret Comnes)\n- add search_path attribute to postgresql_psql resource (Jeremy Kitchen)\n- (GH-198) Add wait and retry capability to validate_db_connection (Ken Barber)\n\nBugs:\n- enabling defined postgres user password without resetting on every puppet run (jonoterc)\n- periods are valid in configuration variables also (Jeremy Kitchen)\n- Add zero length string to join() function (Jarl Stefansson)\n- add require of install to reload class (cdenneen)\n- (GH-198) Fix race condition on postgresql startup (Ken Barber)\n- Remove concat::setup for include in preparation for the next concat release (Ken Barber)\n\n\n2013-10-14 - Version 3.0.0\n\nFinal release of 3.0, enjoy!\n\n2013-10-14 - Version 3.0.0-rc3\n\nSummary:\n\nAdd a parameter to unmanage pg_hba.conf to fix a regression from 2.5, as well\nas allowing owner to be passed into x.\n\nFeatures:\n- `manage_pg_hba_conf` parameter added to control pg_hba.conf management.\n- `owner` parameter added to server::db.\n\n2013-10-09 - Version 3.0.0-rc2\n\nSummary:\n\nA few bugfixes have been found since -rc1.\n\nFixes:\n- Special case for $datadir on Amazon\n- Fix documentation about username&#x2F;password for the postgresql_hash function\n\n2013-10-01 - Version 3.0.0-rc1\n\nSummary:\n\nVersion 3 was a major rewrite to fix some internal dependency issues, and to\nmake the new Public API more clear. As a consequence a lot of things have\nchanged for version 3 and older revisions that we will try to outline here.\n\n(NOTE:  The format of this CHANGELOG differs to normal in an attempt to\nexplain the scope of changes)\n\n* Server specific objects now moved under `postgresql::server::` namespace:\n\nTo restructure server specific elements under the `postgresql::server::`\nnamespaces the following objects were renamed as such:\n\n`postgresql::database`       -&gt; `postgresql::server::database`\n`postgresql::database_grant` -&gt; `postgresql::server::database_grant`\n`postgresql::db`             -&gt; `postgresql::server::db`\n`postgresql::grant`          -&gt; `postgresql::server::grant`\n`postgresql::pg_hba_rule`    -&gt; `postgresql::server::pg_hba_rule`\n`postgresql::plperl`         -&gt; `postgresql::server::plperl`\n`postgresql::contrib`        -&gt; `postgresql::server::contrib`\n`postgresql::role`           -&gt; `postgresql::server::role`\n`postgresql::table_grant`    -&gt; `postgresql::server::table_grant`\n`postgresql::tablespace`     -&gt; `postgresql::server::tablespace`\n\n* New `postgresql::server::config_entry` resource for managing configuration:\n\nPreviously we used the `file_line` resource to modify `postgresql.conf`. This\nnew revision now adds a new resource named `postgresql::server::config_entry`\nfor managing this file. For example:\n\n```puppet\n    postgresql::server::config_entry { &#x27;check_function_bodies&#x27;:\n      value =&gt; &#x27;off&#x27;,\n    }\n```\n\nIf you were using `file_line` for this purpose, you should change to this new\nmethodology.\n\n* `postgresql_puppet_extras.conf` has been removed:\n\nNow that we have a methodology for managing `postgresql.conf`, and due to\nconcerns over the file management methodology using an `exec { &#x27;touch ...&#x27;: }`\nas a way to create an empty file the existing postgresql\\_puppet\\_extras.conf\nfile is no longer managed by this module.\n\nIf you wish to recreate this methodology yourself, use this pattern:\n\n```puppet\n    class { &#x27;postgresql::server&#x27;: }\n\n    $extras = &quot;&#x2F;tmp&#x2F;include.conf&quot;\n\n    file { $extras:\n      content =&gt; &#x27;max_connections = 123&#x27;,\n      notify  =&gt; Class[&#x27;postgresql::server::service&#x27;],\n    }-&gt;\n    postgresql::server::config_entry { &#x27;include&#x27;:\n      value   =&gt; $extras,\n    }\n```\n\n* All uses of the parameter `charset` changed to `encoding`:\n\nSince PostgreSQL uses the terminology `encoding` not `charset` the parameter\nhas been made consisent across all classes and resources.\n\n* The `postgresql` base class is no longer how you set globals:\n\nThe old global override pattern was less then optimal so it has been fixed,\nhowever we decided to demark this properly by specifying these overrides in\nthe class `postgresql::global`. Consult the documentation for this class now\nto see what options are available.\n\nAlso, some parameter elements have been moved between this and the\n`postgresql::server` class where it made sense.\n\n* `config_hash` parameter collapsed for the `postgresql::server` class:\n\nBecause the `config_hash` was really passing data through to what was in\neffect an internal class (`postgresql::config`). And since we don&#x27;t want this\nkind of internal exposure the parameters were collapsed up into the\n`postgresql::server` class directly.\n\n* Lots of changes to &#x27;private&#x27; or &#x27;undocumented&#x27; classes:\n\nIf you were using these before, these have changed names. You should only use\nwhat is documented in this README.md, and if you don&#x27;t have what you need you\nshould raise a patch to add that feature to a public API. All internal classes\nnow have a comment at the top indicating them as private to make sure the\nmessage is clear that they are not supported as Public API.\n\n* `pg_hba_conf_defaults` parameter included to turn off default pg\\_hba rules:\n\nThe defaults should be good enough for most cases (if not raise a bug) but if\nyou simply need an escape hatch, this setting will turn off the defaults. If\nyou want to do this, it may affect the rest of the module so make sure you\nreplace the rules with something that continues operation.\n\n* `postgresql::database_user` has now been removed:\n\nUse `postgresql::server::role` instead.\n\n* `postgresql::psql` resource has now been removed:\n\nUse `postgresql_psql` instead. In the future we may recreate this as a wrapper\nto add extra capability, but it will not match the old behaviour.\n\n* `postgresql_default_version` fact has now been removed:\n\nIt didn&#x27;t make sense to have this logic in a fact any more, the logic has been\nmoved into `postgresql::params`.\n\n* `ripienaar&#x2F;concat` is no longer used, instead we use `puppetlabs&#x2F;concat`:\n\nThe older concat module is now deprecated and moved into the\n`puppetlabs&#x2F;concat` namespace. Functionality is more or less identical, but\nyou may need to intervene during the installing of this package - as both use\nthe same `concat` namespace.\n\n2013-09-09 Release 2.5.0\n=======================\n\nSummary\n-------\n\nThe focus of this release is primarily to capture the fixes done to the\ntypes and providers to make sure refreshonly works properly and to set\nthe stage for the large scale refactoring work of 3.0.0.\n\nFeatures\n--------\n\nBugfixes \n--------\n- Use boolean for refreshonly.\n- Fix postgresql::plperl documentation.\n- Add two missing parameters to config::beforeservice\n- Style fixes\n\n\n2013-08-01 Release 2.4.1\n========================\n\nSummary\n-------\n\nThis minor bugfix release solves an idempotency issue when using plain text\npasswords for the password_hash parameter for the postgresql::role defined\ntype. Without this, users would continually see resource changes everytime\nyour run Puppet.\n\nBugfixes\n---------\n- Alter role call not idempotent with cleartext passwords (Ken Barber)\n\n2013-07-19 Release 2.4.0\n========================\n\nSummary\n-------\nThis updates adds the ability to change permissions on tables, create template\ndatabases from normal databases, manage PL-Perl&#x27;s postgres package, and\ndisable the management of `pg_hba.conf`.\n\nFeatures\n--------\n- Add `postgresql::table_grant` defined resource\n- Add `postgresql::plperl` class\n- Add `manage_pg_hba_conf` parameter to the `postgresql::config` class\n- Add `istemplate` parameter to the `postgresql::database` define\n\nBugfixes\n--------\n- Update `postgresql::role` class to be able to update roles when modified\ninstead of only on creation.\n- Update tests\n- Fix documentation of `postgresql::database_grant`\n\n2.3.0\n=====\n\nThis feature release includes the following changes:\n\n* Add a new parameter `owner` to the `database` type.  This can be used to\n  grant ownership of a new database to a specific user.  (Bruno Harbulot)\n* Add support for operating systems other than Debian&#x2F;RedHat, as long as the\n  user supplies custom values for all of the required paths, package names, etc.\n  (Chris Price)\n* Improved integration testing (Ken Barber)\n\n2.2.1\n=====\n\nThis release fixes a bug whereby one of our shell commands (psql) were not ran from a globally accessible directory. This was causing permission denied errors when the command attempted to change user without changing directory.\n\nUsers of previous versions might have seen this error:\n\n    Error: Error executing SQL; psql returned 256: &#x27;could not change directory to &quot;&#x2F;root&quot;\n\nThis patch should correct that.\n\n#### Detail Changes\n\n* Set &#x2F;tmp as default CWD for postgresql_psql\n\n2.2.0\n=====\n\nThis feature release introduces a number of new features and bug fixes.\n\nFirst of all it includes a new class named `postgresql::python` which provides you with a convenient way of install the python Postgresql client libraries.\n\n    class { &#x27;postgresql::python&#x27;:\n    }\n\nYou are now able to use `postgresql::database_user` without having to specify a password_hash, useful for different authentication mechanisms that do not need passwords (ie. cert, local etc.).\n\nWe&#x27;ve also provided a lot more advanced custom parameters now for greater control of your Postgresql installation. Consult the class documentation for PuppetDB in the README.\n\nThis release in particular has largely been contributed by the community members below, a big thanks to one and all.\n\n#### Detailed Changes\n\n* Add support for psycopg installation (Flaper Fesp and Dan Prince)\n* Added default PostgreSQL version for Ubuntu 13.04 (Kamil Szymanski)\n* Add ability to create users without a password (Bruno Harbulot)\n* Three Puppet 2.6 fixes (Dominic Cleal)\n* Add explicit call to concat::setup when creating concat file (Dominic Cleal)\n* Fix readme typo (Jordi Boggiano)\n* Update postgres_default_version for Ubuntu (Kamil Szymanski)\n* Allow to set connection for noew role (Kamil Szymanski)\n* Fix pg_hba_rule for postgres local access (Kamil Szymanski)\n* Fix versions for travis-ci (Ken Barber)\n* Add replication support (Jordi Boggiano)\n* Cleaned up and added unit tests (Ken Barber)\n* Generalization to provide more flexability in postgresql configuration (Karel Brezina)\n* Create dependent directory for sudoers so tests work on Centos 5 (Ken Barber)\n* Allow SQL commands to be run against a specific DB (Carlos Villela)\n* Drop trailing comma to support Puppet 2.6 (Michael Arnold)\n\n2.1.1\n=====\n\nThis release provides a bug fix for RHEL 5 and Centos 5 systems, or specifically systems using PostgreSQL 8.1 or older. On those systems one would have received the error:\n\n    Error: Could not start Service[postgresqld]: Execution of ‘&#x2F;sbin&#x2F;service postgresql start’ returned 1:\n\nAnd the postgresql log entry:\n\n    FATAL: unrecognized configuration parameter &quot;include&quot;\n\nThis bug is due to a new feature we had added in 2.1.0, whereby the `include` directive in `postgresql.conf` was not compatible. As a work-around we have added checks in our code to make sure systems running PostgreSQL 8.1 or older do not have this directive added.\n\n#### Detailed Changes\n\n2013-01-21 - Ken Barber &lt;ken@bob.sh&gt;\n* Only install `include` directive and included file on PostgreSQL &gt;= 8.2\n* Add system tests for Centos 5\n\n2.1.0\n=====\n\nThis release is primarily a feature release, introducing some new helpful constructs to the module.\n\nFor starters, we&#x27;ve added the line `include &#x27;postgresql_conf_extras.conf&#x27;` by default so extra parameters not managed by the module can be added by other tooling or by Puppet itself. This provides a useful escape-hatch for managing settings that are not currently managed by the module today.\n\nWe&#x27;ve added a new defined resource for managing your tablespace, so you can now create new tablespaces using the syntax:\n\n    postgresql::tablespace { &#x27;dbspace&#x27;:\n      location =&gt; &#x27;&#x2F;srv&#x2F;dbspace&#x27;,\n    }\n\nWe&#x27;ve added a locale parameter to the `postgresql` class, to provide a default. Also the parameter has been added to the `postgresql::database` and `postgresql::db` defined resources for changing the locale per database:\n\n    postgresql::db { &#x27;mydatabase&#x27;:\n      user     =&gt; &#x27;myuser&#x27;,\n      password =&gt; &#x27;mypassword&#x27;,\n      encoding =&gt; &#x27;UTF8&#x27;,\n      locale   =&gt; &#x27;en_NG&#x27;,\n    }\n\nThere is a new class for installing the necessary packages to provide the PostgreSQL JDBC client jars:\n\n    class { &#x27;postgresql::java&#x27;: }\n\nAnd we have a brand new defined resource for managing fine-grained rule sets within your pg_hba.conf access lists:\n\n    postgresql::pg_hba { &#x27;Open up postgresql for access from 200.1.2.0&#x2F;24&#x27;:\n      type =&gt; &#x27;host&#x27;,\n      database =&gt; &#x27;app&#x27;,\n      user =&gt; &#x27;app&#x27;,\n      address =&gt; &#x27;200.1.2.0&#x2F;24&#x27;,\n      auth_method =&gt; &#x27;md5&#x27;,\n    }\n\nFinally, we&#x27;ve also added Travis-CI support and unit tests to help us iterate faster with tests to reduce regression. The current URL for these tests is here: https:&#x2F;&#x2F;travis-ci.org&#x2F;puppetlabs&#x2F;puppet-postgresql. Instructions on how to run the unit tests available are provided in the README for the module.\n\nA big thanks to all those listed below who made this feature release possible :-).\n\n#### Detailed Changes\n\n2013-01-18 - Simão Fontes &lt;simaofontes@gmail.com&gt; &amp; Flaper Fesp &lt;flaper87@gmail.com&gt;\n* Remove trailing commas from params.pp property definition for Puppet 2.6.0 compatibility\n\n2013-01-18 - Lauren Rother &lt;lauren.rother@puppetlabs.com&gt;\n* Updated README.md to conform with best practices template\n\n2013-01-09 - Adrien Thebo &lt;git@somethingsinistral.net&gt;\n* Update postgresql_default_version to 9.1 for Debian 7.0\n\n2013-01-28 - Karel Brezina &lt;karel.brezina@gmail.com&gt;\n* Add support for tablespaces\n\n2013-01-16 - Chris Price &lt;chris@puppetlabs.com&gt; &amp; Karel Brezina &lt;karel.brezina@gmail.com&gt;\n* Provide support for an &#x27;include&#x27; config file &#x27;postgresql_conf_extras.conf&#x27; that users can modify manually or outside of the module.\n\n2013-01-31 - jv &lt;jeff@jeffvier.com&gt;\n* Fix typo in README.pp for postgresql::db example\n\n2013-02-03 - Ken Barber &lt;ken@bob.sh&gt;\n* Add unit tests and travis-ci support\n\n2013-02-02 - Ken Barber &lt;ken@bob.sh&gt;\n* Add locale parameter support to the &#x27;postgresql&#x27; class\n\n2013-01-21 - Michael Arnold &lt;github@razorsedge.org&gt;\n* Add a class for install the packages containing the PostgreSQL JDBC jar\n\n2013-02-06 - fhrbek &lt;filip.hbrek@gmail.com&gt;\n* Coding style fixes to reduce warnings in puppet-lint and Geppetto\n\n2013-02-10 - Ken Barber &lt;ken@bob.sh&gt;\n* Provide new defined resource for managing pg_hba.conf\n\n2013-02-11 - Ken Barber &lt;ken@bob.sh&gt;\n* Fix bug with reload of Postgresql on Redhat&#x2F;Centos\n\n2013-02-15 - Erik Dalén &lt;dalen@spotify.com&gt;\n* Fix more style issues to reduce warnings in puppet-lint and Geppetto\n\n2013-02-15 - Erik Dalén &lt;dalen@spotify.com&gt;\n* Fix case whereby we were modifying a hash after creation\n\n2.0.1\n=====\n\nMinor bugfix release.\n\n2013-01-16 - Chris Price &lt;chris@puppetlabs.com&gt;\n * Fix revoke command in database.pp to support postgres 8.1 (43ded42)\n\n2013-01-15 - Jordi Boggiano &lt;j.boggiano@seld.be&gt;\n * Add support for ubuntu 12.10 status (3504405)\n\n2.0.0\n=====\n\nMany thanks to the following people who contributed patches to this\nrelease:\n\n* Adrien Thebo\n* Albert Koch\n* Andreas Ntaflos\n* Brett Porter\n* Chris Price\n* dharwood\n* Etienne Pelletier\n* Florin Broasca\n* Henrik\n* Hunter Haugen\n* Jari Bakken\n* Jordi Boggiano\n* Ken Barber\n* nzakaria\n* Richard Arends\n* Spenser Gilliland\n* stormcrow\n* William Van Hevelingen\n\nNotable features:\n\n   * Add support for versions of postgres other than the system default version\n     (which varies depending on OS distro).  This includes optional support for\n     automatically managing the package repo for the &quot;official&quot; postgres yum&#x2F;apt\n     repos.  (Major thanks to Etienne Pelletier &lt;epelletier@maestrodev.com&gt; and\n     Ken Barber &lt;ken@bob.sh&gt; for their tireless efforts and patience on this\n     feature set!)  For example usage see `tests&#x2F;official-postgresql-repos.pp`.\n\n   * Add some support for Debian Wheezy and Ubuntu Quantal\n\n   * Add new `postgres_psql` type with a Ruby provider, to replace the old\n     exec-based `psql` type.  This gives us much more flexibility around\n     executing SQL statements and controlling their logging &#x2F; reports output.\n\n   * Major refactor of the &quot;spec&quot; tests--which are actually more like\n     acceptance tests.  We now support testing against multiple OS distros\n     via vagrant, and the framework is in place to allow us to very easily add\n     more distros.  Currently testing against Cent6 and Ubuntu 10.04.\n\n   * Fixed a bug that was preventing multiple databases from being owned by the\n     same user\n     (9adcd182f820101f5e4891b9f2ff6278dfad495c - Etienne Pelletier &lt;epelletier@maestrodev.com&gt;)\n\n   * Add support for ACLs for finer-grained control of user&#x2F;interface access\n     (b8389d19ad78b4fb66024897097b4ed7db241930 - dharwood &lt;harwoodd@cat.pdx.edu&gt;)\n\n   * Many other bug fixes and improvements!\n\n\n1.0.0\n=====\n2012-09-17 - Version 0.3.0 released\n\n2012-09-14 - Chris Price &lt;chris@puppetlabs.com&gt;\n * Add a type for validating a postgres connection (ce4a049)\n\n2012-08-25 - Jari Bakken &lt;jari.bakken@gmail.com&gt;\n * Remove trailing commas. (e6af5e5)\n\n2012-08-16 - Version 0.2.0 released\n</pre></section>",
ruby-puppet-forge-2.3.2/spec/fixtures/v3/modules.json-2215-        "license": "<section class=\"plaintext\"><pre>\n                                 Apache License\n                           Version 2.0, January 2004\n                        http:&#x2F;&#x2F;www.apache.org&#x2F;licenses&#x2F;\n\n   TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\n\n   1. Definitions.\n\n      &quot;License&quot; shall mean the terms and conditions for use, reproduction,\n      and distribution as defined by Sections 1 through 9 of this document.\n\n      &quot;Licensor&quot; shall mean the copyright owner or entity authorized by\n      the copyright owner that is granting the License.\n\n      &quot;Legal Entity&quot; shall mean the union of the acting entity and all\n      other entities that control, are controlled by, or are under common\n      control with that entity. For the purposes of this definition,\n      &quot;control&quot; means (i) the power, direct or indirect, to cause the\n      direction or management of such entity, whether by contract or\n      otherwise, or (ii) ownership of fifty percent (50%) or more of the\n      outstanding shares, or (iii) beneficial ownership of such entity.\n\n      &quot;You&quot; (or &quot;Your&quot;) shall mean an individual or Legal Entity\n      exercising permissions granted by this License.\n\n      &quot;Source&quot; form shall mean the preferred form for making modifications,\n      including but not limited to software source code, documentation\n      source, and configuration files.\n\n      &quot;Object&quot; form shall mean any form resulting from mechanical\n      transformation or translation of a Source form, including but\n      not limited to compiled object code, generated documentation,\n      and conversions to other media types.\n\n      &quot;Work&quot; shall mean the work of authorship, whether in Source or\n      Object form, made available under the License, as indicated by a\n      copyright notice that is included in or attached to the work\n      (an example is provided in the Appendix below).\n\n      &quot;Derivative Works&quot; shall mean any work, whether in Source or Object\n      form, that is based on (or derived from) the Work and for which the\n      editorial revisions, annotations, elaborations, or other modifications\n      represent, as a whole, an original work of authorship. For the purposes\n      of this License, Derivative Works shall not include works that remain\n      separable from, or merely link (or bind by name) to the interfaces of,\n      the Work and Derivative Works thereof.\n\n      &quot;Contribution&quot; shall mean any work of authorship, including\n      the original version of the Work and any modifications or additions\n      to that Work or Derivative Works thereof, that is intentionally\n      submitted to Licensor for inclusion in the Work by the copyright owner\n      or by an individual or Legal Entity authorized to submit on behalf of\n      the copyright owner. For the purposes of this definition, &quot;submitted&quot;\n      means any form of electronic, verbal, or written communication sent\n      to the Licensor or its representatives, including but not limited to\n      communication on electronic mailing lists, source code control systems,\n      and issue tracking systems that are managed by, or on behalf of, the\n      Licensor for the purpose of discussing and improving the Work, but\n      excluding communication that is conspicuously marked or otherwise\n      designated in writing by the copyright owner as &quot;Not a Contribution.&quot;\n\n      &quot;Contributor&quot; shall mean Licensor and any individual or Legal Entity\n      on behalf of whom a Contribution has been received by Licensor and\n      subsequently incorporated within the Work.\n\n   2. Grant of Copyright License. Subject to the terms and conditions of\n      this License, each Contributor hereby grants to You a perpetual,\n      worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n      copyright license to reproduce, prepare Derivative Works of,\n      publicly display, publicly perform, sublicense, and distribute the\n      Work and such Derivative Works in Source or Object form.\n\n   3. Grant of Patent License. Subject to the terms and conditions of\n      this License, each Contributor hereby grants to You a perpetual,\n      worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n      (except as stated in this section) patent license to make, have made,\n      use, offer to sell, sell, import, and otherwise transfer the Work,\n      where such license applies only to those patent claims licensable\n      by such Contributor that are necessarily infringed by their\n      Contribution(s) alone or by combination of their Contribution(s)\n      with the Work to which such Contribution(s) was submitted. If You\n      institute patent litigation against any entity (including a\n      cross-claim or counterclaim in a lawsuit) alleging that the Work\n      or a Contribution incorporated within the Work constitutes direct\n      or contributory patent infringement, then any patent licenses\n      granted to You under this License for that Work shall terminate\n      as of the date such litigation is filed.\n\n   4. Redistribution. You may reproduce and distribute copies of the\n      Work or Derivative Works thereof in any medium, with or without\n      modifications, and in Source or Object form, provided that You\n      meet the following conditions:\n\n      (a) You must give any other recipients of the Work or\n          Derivative Works a copy of this License; and\n\n      (b) You must cause any modified files to carry prominent notices\n          stating that You changed the files; and\n\n      (c) You must retain, in the Source form of any Derivative Works\n          that You distribute, all copyright, patent, trademark, and\n          attribution notices from the Source form of the Work,\n          excluding those notices that do not pertain to any part of\n          the Derivative Works; and\n\n      (d) If the Work includes a &quot;NOTICE&quot; text file as part of its\n          distribution, then any Derivative Works that You distribute must\n          include a readable copy of the attribution notices contained\n          within such NOTICE file, excluding those notices that do not\n          pertain to any part of the Derivative Works, in at least one\n          of the following places: within a NOTICE text file distributed\n          as part of the Derivative Works; within the Source form or\n          documentation, if provided along with the Derivative Works; or,\n          within a display generated by the Derivative Works, if and\n          wherever such third-party notices normally appear. The contents\n          of the NOTICE file are for informational purposes only and\n          do not modify the License. You may add Your own attribution\n          notices within Derivative Works that You distribute, alongside\n          or as an addendum to the NOTICE text from the Work, provided\n          that such additional attribution notices cannot be construed\n          as modifying the License.\n\n      You may add Your own copyright statement to Your modifications and\n      may provide additional or different license terms and conditions\n      for use, reproduction, or distribution of Your modifications, or\n      for any such Derivative Works as a whole, provided Your use,\n      reproduction, and distribution of the Work otherwise complies with\n      the conditions stated in this License.\n\n   5. Submission of Contributions. Unless You explicitly state otherwise,\n      any Contribution intentionally submitted for inclusion in the Work\n      by You to the Licensor shall be under the terms and conditions of\n      this License, without any additional terms or conditions.\n      Notwithstanding the above, nothing herein shall supersede or modify\n      the terms of any separate license agreement you may have executed\n      with Licensor regarding such Contributions.\n\n   6. Trademarks. This License does not grant permission to use the trade\n      names, trademarks, service marks, or product names of the Licensor,\n      except as required for reasonable and customary use in describing the\n      origin of the Work and reproducing the content of the NOTICE file.\n\n   7. Disclaimer of Warranty. Unless required by applicable law or\n      agreed to in writing, Licensor provides the Work (and each\n      Contributor provides its Contributions) on an &quot;AS IS&quot; BASIS,\n      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\n      implied, including, without limitation, any warranties or conditions\n      of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A\n      PARTICULAR PURPOSE. You are solely responsible for determining the\n      appropriateness of using or redistributing the Work and assume any\n      risks associated with Your exercise of permissions under this License.\n\n   8. Limitation of Liability. In no event and under no legal theory,\n      whether in tort (including negligence), contract, or otherwise,\n      unless required by applicable law (such as deliberate and grossly\n      negligent acts) or agreed to in writing, shall any Contributor be\n      liable to You for damages, including any direct, indirect, special,\n      incidental, or consequential damages of any character arising as a\n      result of this License or out of the use or inability to use the\n      Work (including but not limited to damages for loss of goodwill,\n      work stoppage, computer failure or malfunction, or any and all\n      other commercial damages or losses), even if such Contributor\n      has been advised of the possibility of such damages.\n\n   9. Accepting Warranty or Additional Liability. While redistributing\n      the Work or Derivative Works thereof, You may choose to offer,\n      and charge a fee for, acceptance of support, warranty, indemnity,\n      or other liability obligations and&#x2F;or rights consistent with this\n      License. However, in accepting such obligations, You may act only\n      on Your own behalf and on Your sole responsibility, not on behalf\n      of any other Contributor, and only if You agree to indemnify,\n      defend, and hold each Contributor harmless for any liability\n      incurred by, or claims asserted against, such Contributor by reason\n      of your accepting any such warranty or additional liability.\n\n   END OF TERMS AND CONDITIONS\n\n   APPENDIX: How to apply the Apache License to your work.\n\n      To apply the Apache License to your work, attach the following\n      boilerplate notice, with the fields enclosed by brackets &quot;[]&quot;\n      replaced with your own identifying information. (Don&#x27;t include\n      the brackets!)  The text should be enclosed in the appropriate\n      comment syntax for the file format. We also recommend that a\n      file or class name and description of purpose be included on the\n      same &quot;printed page&quot; as the copyright notice for easier\n      identification within third-party archives.\n\n   Copyright 2013 Puppet Labs\n\n   Licensed under the Apache License, Version 2.0 (the &quot;License&quot;);\n   you may not use this file except in compliance with the License.\n   You may obtain a copy of the License at\n\n       http:&#x2F;&#x2F;www.apache.org&#x2F;licenses&#x2F;LICENSE-2.0\n\n   Unless required by applicable law or agreed to in writing, software\n   distributed under the License is distributed on an &quot;AS IS&quot; BASIS,\n   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n   See the License for the specific language governing permissions and\n   limitations under the License.\n</pre></section>",
##############################################
ruby-puppet-forge-2.3.2/spec/fixtures/v3/modules.json-2634-        "downloads": 20981,
ruby-puppet-forge-2.3.2/spec/fixtures/v3/modules.json:2635:        "readme": "<section class=\"markdown\"><h1>Puppi: Puppet Knowledge to the CLI</h1>\n\n<p>Puppi One and Puppi module written by Alessandro Franceschi / al @ lab42.it</p>\n\n<p>Puppi Gem by Celso Fernandez / Zertico</p>\n\n<p>Source: <a href=\"http://www.example42.com\">http://www.example42.com</a></p>\n\n<p>Licence: Apache 2</p>\n\n<p>Puppi is a Puppet module and a CLI command.\nIt&#39;s data is entirely driven by Puppet code.\nIt can be used to standardize and automate the deployment of web applications\nor to provides quick and standard commands to query and check your system&#39;s resources</p>\n\n<p>Its structure provides FULL flexibility on the actions required for virtually any kind of\napplication deployment and information gathering.</p>\n\n<p>The module provides:</p>\n\n<ul>\n<li><p>Old-Gen and Next-Gen Puppi implementation</p></li>\n<li><p>A set of scripts that can be used in chain to automate any kind of deployment</p></li>\n<li><p>Puppet defines that make it easy to prepare a puppi set of commands for a project deployment</p></li>\n<li><p>Puppet defines to populate the output of the different actions</p></li>\n</ul>\n\n<h2>HOW TO INSTALL</h2>\n\n<p>Download Puppi from GitHub and place it in your modules directory: </p>\n\n<pre><code>   git clone https://github.com/example42/puppi.git /etc/puppet/modules/puppi\n</code></pre>\n\n<p>To use the Puppi &quot;Original, old and widely tested&quot; version, just declare or include the puppi class</p>\n\n<pre><code>   class { &#39;puppi&#39;: }\n</code></pre>\n\n<p>To test the Next-Gen version you can perform the following command. Please note that this module is\nnot stable yet:\n        class { &#39;puppi&#39;:\n          version =&gt; &#39;2&#39;,\n        }</p>\n\n<p>If you have resources conflicts, do not install automatically the Puppi dependencies (commands and packages)</p>\n\n<pre><code>    class { &#39;puppi&#39;:\n      install_dependencies =&gt; false,\n    }\n</code></pre>\n\n<h2>HOW TO USE</h2>\n\n<p>Once Puppi is installed you can use it to:</p>\n\n<ul>\n<li><p>Easily define in Puppet manifests Web Applications deploy procedures. For example:</p>\n\n<pre><code>puppi::project::war { &quot;myapp&quot;:\n    source           =&gt; &quot;http://repo.example42.com/deploy/prod/myapp.war&quot;,\n    deploy_root      =&gt; &quot;/opt/tomcat/myapp/webapps&quot;,\n}\n</code></pre></li>\n<li><p>Integrate with your modules for puppi check, info and log </p></li>\n<li><p>Enable Example42 modules integration</p></li>\n</ul>\n\n<h2>HOW TO USE WITH EXAMPLE42 MODULES</h2>\n\n<p>The Example42 modules provide (optional) Puppi integration.\nOnce enabled for each module you have puppi check, info and log commands.</p>\n\n<p>To eanble Puppi in OldGen Modules, set in the scope these variables:</p>\n\n<pre><code>    $puppi = yes   # Enables puppi integration.\n    $monitor = yes # Enables automatic monitoring \n    $monitor_tool = &quot;puppi&quot; # Sets puppi as monitoring tool\n</code></pre>\n\n<p>For the NextGen modules set the same parameters via Hiera, at Top Scope or as class arguments:</p>\n\n<pre><code>    class { &#39;openssh&#39;:\n      puppi        =&gt; yes, \n      monitor      =&gt; yes,\n      monitor_tool =&gt; &#39;puppi&#39;, \n    }\n</code></pre>\n\n<h2>USAGE OF THE PUPPI COMMAND (OLD GEN)</h2>\n\n<pre><code>    puppi &lt;action&gt; &lt;project_name&gt; [ -options ]\n</code></pre>\n\n<p>The puppi command has these possibile actions:</p>\n\n<p>First time initialization of the defined project (if available)\n        puppi init <project></p>\n\n<p>Deploy the specified project\n        puppi deploy <project></p>\n\n<p>Rollback to a previous deploy state\n        puppi rollback <project></p>\n\n<p>Run local checks on system and applications\n        puppi check</p>\n\n<p>Tail system or application logs\n        puppi log</p>\n\n<p>Show system information (for all or only the specified topic)\n        puppi info [topic]</p>\n\n<p>Show things to do (or done) manually on the system (not done via Puppet)\n        puppi todo</p>\n\n<p>In the deploy/rollback/init actions, puppi runs the commands in /etc/puppi/projects/$project/$action, logs their status and then run the commands in /etc/puppi/projects/$project/report to provide reporting, in whatever, pluggable, way.</p>\n\n<p>You can also provide some options:</p>\n\n<ul>\n<li><p>-f : Force puppi commands execution also on CRITICAL errors</p></li>\n<li><p>-i : Interactively ask confirmation for every command</p></li>\n<li><p>-t : Test mode. Just show the commands that should be executed without doing anything</p></li>\n<li><p>-d <yes|full>: Debug mode. Show debugging info during execution</p></li>\n<li><p>-o &quot;parameter=value parameter2=value2&quot; : Set manual options to override defaults. The options must be in parameter=value syntax, separated by spaces and inside double quotes.</p></li>\n</ul>\n\n<p>Some common puppi commnds when you log for an application deployment:</p>\n\n<pre><code>    puppi check\n    puppi log &amp;    # (More readable if done on another window)\n    puppi deploy myapp\n    puppi check\n    puppi info myapp\n</code></pre>\n\n<h2>THE PUPPI MODULE</h2>\n\n<p>The set of commands needed for each of these actions are entirely managed with specific\nPuppet &quot;basic defines&quot;:</p>\n\n<p>Create the main project structure. One or more different deployment projects can exist on a node.\n        puppi::project</p>\n\n<p>Create a single command to be placed in the init sequence. It&#39;s not required for every project.\n        puppi::initialize</p>\n\n<p>Create a single command to be placed in the deploy sequence. More than one is generally needed for each project.\n        puppi::deploy</p>\n\n<p>Create a single command to be placed in the rollback sequence. More than one is generally needed for each project.\n        puppi::rollback</p>\n\n<p>Create a single check (based on Nagios plugins) for a project or for the whole host (host wide checks are auto generated by Example42 monitor module)\n        puppi::check</p>\n\n<p>Create a reporting command to be placed in the report sequence.\n        puppi::report</p>\n\n<p>Create a log filename entry for a project or the whole hosts.\n        puppi::log</p>\n\n<p>Create an info entry with the commands used to provide info on a topic\n        puppi::info</p>\n\n<p>Read details in the relevant READMEs</p>\n\n<h2>FILE PATHS (all of them are provided, and can be configured, in the puppi module):</h2>\n\n<p>A link to the actual version of puppi enabled\n        /usr/sbin/puppi</p>\n\n<p>The original puppi bash command.\n        /usr/sbin/puppi.one</p>\n\n<p>Puppi (one) main config file. Various puppi wide paths are defined here.\n        /etc/puppi/puppi.conf</p>\n\n<p>Directory where by default all the host wide checks can be placed. If you use the Example42 monitor module and have &quot;puppi&quot; as $monitor_tool, this directory is automatically filled with Nagios plugins based checks.\n        /etc/puppi/checks/ ($checksdir)</p>\n\n<p>Directory that containts projects subdirs, with the commands to be run for deploy, rollback and check actions. They are completely built (and purged) by the Puppet module.\n        /etc/puppi/projects/ ($projectsdir)</p>\n\n<p>The general-use scripts directory, these are used by the above commands and may require one or more arguments.\n        /etc/puppi/scripts/ ($scriptsdir)</p>\n\n<p>The general-use directory where files are placed which contain the log paths to be used by puppi log\n        /etc/puppi/logs/ ($logssdir)</p>\n\n<p>The general-use directory where files are placed which contain the log paths to be used by puppi log\n        /etc/puppi/info/ ($infodir)</p>\n\n<p>Where all data to rollback is placed.\n        /var/lib/puppi/archive/ ($archivedir)</p>\n\n<p>Where logs and reports of the different commands are placed.\n        /var/log/puppi/ ($logdir)</p>\n\n<p>Temporary, scratchable, directory where Puppi places temporary files.\n        /tmp/puppi/ ($workdir)</p>\n\n<p>A runtime configuration file, which is used by all all the the scripts invoked by puppi to read and write dynamic variables at runtime. This is necessary to mantain &quot;state&quot; information that changes on every puppi run (such as the deploy datetime, used for backups).\n        /tmp/puppi/$project/config</p>\n\n<h2>HOW TO CUSTOMIZE</h2>\n\n<p>It should be clear that with puppi you have full flexibility in the definition of a deployment \nprocedure, since the puppi command is basically a wrapper that executes arbitrary scripts with\na given sequence, in pure KISS logic.</p>\n\n<p>The advantanges though, are various:</p>\n\n<ul>\n<li><p>You have a common syntax to manage deploys and rollbacks on an host</p></li>\n<li><p>In your Puppet manifests, you can set in simple, coherent and still flexible and customizable\ndefines all the elements, you need for your application deployments. \nThink about it: with just a Puppet define you build the whole deploy logic</p></li>\n<li><p>Reporting for each deploy/rollback is built-in and extensible </p></li>\n<li><p>Automatic checks can be built in the deploy procedure</p></li>\n<li><p>You have a common, growing, set of general-use scripts for typical actions</p></li>\n<li><p>You have quick and useful command to see what&#39;s happening on the system (puppi check, log, info)</p></li>\n</ul>\n\n<p>There are different parts where you can customize the behaviour of puppi:</p>\n\n<ul>\n<li><p>The set of general-use scripts in /etc/puppi/scripts/ ( this directory is filled with the content\nof puppi/files/scripts/ ) can/should be enhanced. These can be arbitrary scripts in whatever\nlanguage. If you want to follow puppi&#39;s logic, though, consider that they should import the\ncommon and runtime configuration files and have an exit code logic similar to the one of\nNagios plugins: 0 is OK, 1 is WARNING, 2 is CRITICAL. Note that by default a script that \nexits with WARNING doesn&#39;t block the deploy procedure, on the other hand, if a script exits\nwith CRITICAL (exit 2) by default it blocks the procedure.\nTake a second, also, to explore the runtime config file created by the puppi command that\ncontains variables that can be set and used by the scripts invoked by puppi.</p></li>\n<li><p>The custom project defines that describe deploy templates. These are placed in\npuppi/manifests/project/ and can request all the arguments you want to feed your scripts with.\nGenerally is a good idea to design a standard enough template that can be used for all the \ncases where the deployment procedure involves similar steps. Consider also that you can handle\nexceptions with variables (see the $loadbalancer_ip usage in puppi/manifests/project/maven.pp)</p></li>\n</ul>\n\n<h2>(NO) DEPENDENCIES AND CONFLICTS</h2>\n\n<p>Puppi is self contained. It doesn&#39;t require other modules.\n(And is required by all Example42 modules).</p>\n\n<p>For correct functionality by default some extra packages are installed.\nIf you have conflicts with your existing modules, set the argument:\n  install_dependencies =&gt; false</p>\n</section>",
ruby-puppet-forge-2.3.2/spec/fixtures/v3/modules.json-2636-        "changelog": null,
##############################################
ruby-puppet-forge-2.3.2/spec/fixtures/v3/modules.json-2728-                  "name": "revision",
ruby-puppet-forge-2.3.2/spec/fixtures/v3/modules.json:2729:                  "doc": "The revision of the repository  Values can match `/^\\S+$/`."
ruby-puppet-forge-2.3.2/spec/fixtures/v3/modules.json-2730-                }
##############################################
ruby-puppet-forge-2.3.2/spec/fixtures/v3/modules.json-3254-        "downloads": 6887,
ruby-puppet-forge-2.3.2/spec/fixtures/v3/modules.json:3255:        "readme": "<section class=\"markdown\"><h1>puppetdb</h1>\n\n<h4>Table of Contents</h4>\n\n<ol>\n<li><a href=\"#overview\">Overview - What is the PuppetDB module?</a></li>\n<li><a href=\"#module-description\">Module Description - What does the module do?</a></li>\n<li><a href=\"#setup\">Setup - The basics of getting started with PuppetDB module</a></li>\n<li><a href=\"#upgrading\">Upgrading - Guide for upgrading from older revisions of this module</a></li>\n<li><a href=\"#usage\">Usage - The classes and parameters available for configuration</a></li>\n<li><a href=\"#implementation\">Implementation - An under-the-hood peek at what the module is doing</a></li>\n<li><a href=\"#limitations\">Limitations - OS compatibility, etc.</a></li>\n<li><a href=\"#development\">Development - Guide for contributing to the module</a></li>\n<li><a href=\"#release-notes\">Release Notes - Notes on the most recent updates to the module</a></li>\n</ol>\n\n<h2>Overview</h2>\n\n<p>By guiding puppetdb setup and configuration with a puppet master, the PuppetDB module provides fast, streamlined access to data on puppetized infrastructure.</p>\n\n<h2>Module Description</h2>\n\n<p>The PuppetDB module provides a quick way to get started using PuppetDB, an open source inventory resource service that manages storage and retrieval of platform-generated data. The module will install PostgreSQL and PuppetDB if you don&#39;t have them, as well as set up the connection to puppet master. The module will also provide a dashboard you can use to view the current state of your system.</p>\n\n<p>For more information about PuppetDB <a href=\"http://docs.puppetlabs.com/puppetdb/\">please see the official PuppetDB documentation.</a></p>\n\n<h2>Setup</h2>\n\n<p><strong>What PuppetDB affects:</strong></p>\n\n<ul>\n<li>package/service/configuration files for PuppetDB</li>\n<li>package/service/configuration files for PostgreSQL (optional, but set as default)</li>\n<li>puppet master&#39;s runtime (via plugins)</li>\n<li>puppet master&#39;s configuration\n\n<ul>\n<li><strong>note</strong>: Using the <code>puppetdb::master::config</code> class will cause your routes.yaml file to be overwritten entirely (see <strong>Usage</strong> below for options and more information )</li>\n</ul></li>\n<li>system firewall (optional)</li>\n<li>listened-to ports</li>\n</ul>\n\n<p><strong>Introductory Questions</strong></p>\n\n<p>To begin using PuppetDB, you’ll have to make a few decisions:</p>\n\n<ul>\n<li>Which database back-end should I use?\n\n<ul>\n<li>PostgreSQL (default) or our embedded database</li>\n<li>Embedded database</li>\n<li><strong>note:</strong> We suggest using the embedded database only for experimental environments rather than production, as it does not scale well and can cause difficulty in migrating to PostgreSQL.</li>\n</ul></li>\n<li>Should I run the database on the same node that I run PuppetDB on?</li>\n<li>Should I run PuppetDB on the same node that I run my master on?</li>\n</ul>\n\n<p>The answers to those questions will be largely dependent on your answers to questions about your Puppet environment:</p>\n\n<ul>\n<li>How many nodes are you managing?</li>\n<li>What kind of hardware are you running on?</li>\n<li>Is your current load approaching the limits of your hardware?</li>\n</ul>\n\n<p>Depending on your answers to all of the questions above, you will likely fall under one of these set-up options:</p>\n\n<ol>\n<li><a href=\"#single-node-setup\">Single Node (Testing and Development)</a></li>\n<li><a href=\"#multiple-node-setup\">Multiple Node (Recommended)</a></li>\n</ol>\n\n<h3>Single Node Setup</h3>\n\n<p>This approach assumes you will use our default database (PostgreSQL) and run everything (PostgreSQL, PuppetDB, puppet master) all on the same node. This setup will be great for a testing or experimental environment. In this case, your manifest will look like:</p>\n\n<pre><code>node puppetmaster {\n  # Configure puppetdb and its underlying database\n  class { &#39;puppetdb&#39;: }\n  # Configure the puppet master to use puppetdb\n  class { &#39;puppetdb::master::config&#39;: }\n}\n</code></pre>\n\n<p>You can provide some parameters for these classes if you’d like more control, but that is literally all that it will take to get you up and running with the default configuration.</p>\n\n<h3>Multiple Node Setup</h3>\n\n<p>This approach is for those who prefer not to install PuppetDB on the same node as the puppet master. Your environment will be easier to scale if you are able to dedicate hardware to the individual system components. You may even choose to run the puppetdb server on a different node from the PostgreSQL database that it uses to store its data. So let’s have a look at what a manifest for that scenario might look like:</p>\n\n<p><strong>This is an example of a very basic 3-node setup for PuppetDB.</strong></p>\n\n<p>This node is our puppet master:</p>\n\n<pre><code>node puppet {\n  # Here we configure the puppet master to use PuppetDB,\n  # and tell it that the hostname is ‘puppetdb’\n  class { &#39;puppetdb::master::config&#39;:\n    puppetdb_server =&gt; &#39;puppetdb&#39;,\n  }\n}\n</code></pre>\n\n<p>This node is our postgres server:</p>\n\n<pre><code>node puppetdb-postgres {\n  # Here we install and configure postgres and the puppetdb\n  # database instance, and tell postgres that it should\n  # listen for connections to the hostname ‘puppetdb-postgres’\n  class { &#39;puppetdb::database::postgresql&#39;:\n    listen_addresses =&gt; &#39;puppetdb-postgres&#39;,\n  }\n}\n</code></pre>\n\n<p>This node is our main puppetdb server:</p>\n\n<pre><code>node puppetdb {\n  # Here we install and configure PuppetDB, and tell it where to\n  # find the postgres database.\n  class { &#39;puppetdb::server&#39;:\n    database_host =&gt; &#39;puppetdb-postgres&#39;,\n  }\n}\n</code></pre>\n\n<p>This should be all it takes to get a 3-node, distributed installation of PuppetDB up and running. Note that, if you prefer, you could easily move two of these classes to a single node and end up with a 2-node setup instead.</p>\n\n<h3>Beginning with PuppetDB</h3>\n\n<p>Whether you choose a single node development setup or a multi-node setup, a basic setup of PuppetDB will cause: PostgreSQL to install on the node if it’s not already there; PuppetDB postgres database instance and user account to be created; the postgres connection to be validated and, if successful, PuppetDB to be installed and configured; PuppetDB connection to be validated and, if successful, the puppet master config files to be modified to use PuppetDB; and the puppet master to be restarted so that it will pick up the config changes.</p>\n\n<p>If your logging level is set to INFO or finer, you should start seeing PuppetDB-related log messages appear in both your puppet master log and your puppetdb log as subsequent agent runs occur.</p>\n\n<p>If you’d prefer to use PuppetDB’s embedded database rather than PostgreSQL, have a look at the database parameter on the puppetdb class:</p>\n\n<pre><code>class { &#39;puppetdb&#39;:\n  database =&gt; &#39;embedded&#39;,\n}\n</code></pre>\n\n<p>The embedded database can be useful for testing and very small production environments, but it is not recommended for production environments since it consumes a great deal of memory as your number of nodes increase.</p>\n\n<h3>Cross-node Dependencies</h3>\n\n<p>It is worth noting that there are some cross-node dependencies, which means that the first time you add the module&#39;s configurations to your manifests, you may see a few failed puppet runs on the affected nodes.</p>\n\n<p>PuppetDB handles cross-node dependencies by taking a sort of “eventual consistency” approach. There’s nothing that the module can do to control the order in which your nodes check in, but the module can check to verify that the services it depends on are up and running before it makes configuration changes--so that’s what it does.</p>\n\n<p>When your puppet master node checks in, it will validate the connectivity to the puppetdb server before it applies its changes to the puppet master config files. If it can’t connect to puppetdb, then the puppet run will fail and the previous config files will be left intact. This prevents your master from getting into a broken state where all incoming puppet runs fail because the master is configured to use a puppetdb server that doesn’t  exist yet. The same strategy is used to handle the dependency between the puppetdb server and the postgres server.</p>\n\n<p>Hence the failed puppet runs. These failures should be limited to 1 failed run on the puppetdb node, and up to 2 failed runs on the puppet master node. After that, all of the dependencies should be satisfied and your puppet runs should start to succeed again.</p>\n\n<p>You can also manually trigger puppet runs on the nodes in the correct order (Postgres, PuppetDB, puppet master), which will avoid any failed runs.</p>\n\n<h2>Upgrading</h2>\n\n<h3>Upgrading from 2.x to version 3.x</h3>\n\n<p>For this release a major dependency has changed. The module <code>pupppetlabs/postgresql</code> must now be version 3.x. Upgrading the module should upgrade the <code>puppetlabs/postgresql</code> module for you, but if another module has a fixed dependency that module will have to be fixed before you can continue.</p>\n\n<p>Some other changes include:</p>\n\n<ul>\n<li>The parameter <code>manage_redhat_firewall</code> for the class <code>puppetdb</code> has now been removed completely in favor of <code>open_postgres_port</code> and <code>open_ssl_listen_port</code>.</li>\n<li>The parameter <code>manage_redhat_firewall</code> for the class <code>puppetdb::database::postgresql</code>, has now been renamed to <code>manage_firewall</code>.</li>\n<li>The parameter <code>manage_redhat_firewall</code> for the class <code>puppetdb::server</code> has now been removed completely in favor of <code>open_listen_port</code> and <code>open_ssl_listen_port</code>.</li>\n<li>The internal class: <code>puppetdb::database::postgresql_db</code> has been removed. If you were using this, it is now defunct.</li>\n<li>The class <code>puppetdb::server::firewall</code> has been marked as private, do not use it directly.</li>\n<li>The class <code>puppetdb::server::jetty_ini</code> and <code>puppetdb::server::database_ini</code> have been marked as private, do not use it directly.</li>\n</ul>\n\n<h3>Upgrading from 1.x to version 2.x</h3>\n\n<p>A major dependency has been changed, so now when you upgrade to 2.0 the dependency <code>cprice404/inifile</code> has been replaced with <code>puppetlabs/inifile</code>. This may interfer with other modules as they may depend on the old <code>cprice404/inifile</code> instead, so upgrading should be done with caution. Check that your other modules use the newer <code>puppetlabs/inifile</code> module as interoperation with the old <code>cprice404/inifile</code> module will no longer be supported by this module.</p>\n\n<p>Depending on how you install your modules, changing the dependency may require manual intervention. Double check your modules contains the newer <code>puppetlabs/inifile</code> after installing this latest module.</p>\n\n<p>Otherwise, all existing parameters from 1.x should still work correctly.</p>\n\n<h2>Usage</h2>\n\n<p>PuppetDB supports a large number of configuration options for both configuring the puppetdb service and connecting that service to the puppet master.</p>\n\n<h3>puppetdb</h3>\n\n<p>The <code>puppetdb</code> class is intended as a high-level abstraction (sort of an &#39;all-in-one&#39; class) to help simplify the process of getting your puppetdb server up and running. It wraps the slightly-lower-level classes <code>puppetdb::server</code> and <code>puppetdb::database::*</code>, and it&#39;ll get you up and running with everything you need (including database setup and management) on the server side.  For maximum configurability, you may choose not to use this class.  You may prefer to use the <code>puppetdb::server</code> class directly, or manage your puppetdb setup on your own.</p>\n\n<p>You must declare the class to use it:</p>\n\n<pre><code>class { &#39;puppetdb&#39;: }\n</code></pre>\n\n<p><strong>Parameters within <code>puppetdb</code>:</strong></p>\n\n<h4><code>listen_address</code></h4>\n\n<p>The address that the web server should bind to for HTTP requests (defaults to <code>localhost</code>.&#39;0.0.0.0&#39; = all).</p>\n\n<h4><code>listen_port</code></h4>\n\n<p>The port on which the puppetdb web server should accept HTTP requests (defaults to &#39;8080&#39;).</p>\n\n<h4><code>open_listen_port</code></h4>\n\n<p>If true, open the http_listen_port on the firewall (defaults to false).</p>\n\n<h4><code>ssl_listen_address</code></h4>\n\n<p>The address that the web server should bind to for HTTPS requests (defaults to <code>$::clientcert</code>). Set to &#39;0.0.0.0&#39; to listen on all addresses.</p>\n\n<h4><code>ssl_listen_port</code></h4>\n\n<p>The port on which the puppetdb web server should accept HTTPS requests (defaults to &#39;8081&#39;).</p>\n\n<h4><code>disable_ssl</code></h4>\n\n<p>If true, the puppetdb web server will only serve HTTP and not HTTPS requests (defaults to false).</p>\n\n<h4><code>open_ssl_listen_port</code></h4>\n\n<p>If true, open the ssl_listen_port on the firewall (defaults to true).</p>\n\n<h4><code>database</code></h4>\n\n<p>Which database backend to use; legal values are <code>postgres</code> (default) or <code>embedded</code>. The <code>embedded</code> db can be used for very small installations or for testing, but is not recommended for use in production environments. For more info, see the <a href=\"http://docs.puppetlabs.com/puppetdb/\">puppetdb docs</a>.</p>\n\n<h4><code>database_port</code></h4>\n\n<p>The port that the database server listens on (defaults to <code>5432</code>; ignored for <code>embedded</code> db).</p>\n\n<h4><code>database_username</code></h4>\n\n<p>The name of the database user to connect as (defaults to <code>puppetdb</code>; ignored for <code>embedded</code> db).</p>\n\n<h4><code>database_password</code></h4>\n\n<p>The password for the database user (defaults to <code>puppetdb</code>; ignored for <code>embedded</code> db).</p>\n\n<h4><code>database_name</code></h4>\n\n<p>The name of the database instance to connect to (defaults to <code>puppetdb</code>; ignored for <code>embedded</code> db).</p>\n\n<h4><code>database_ssl</code></h4>\n\n<p>If true, puppetdb will use SSL to connect to the postgres database (defaults to false; ignored for <code>embedded</code> db).\nSetting up proper trust- and keystores has to be managed outside of the puppetdb module.</p>\n\n<h4><code>node_ttl</code></h4>\n\n<p>The length of time a node can go without receiving any new data before it&#39;s automatically deactivated.  (defaults to &#39;0&#39;, which disables auto-deactivation). This option is supported in PuppetDB &gt;= 1.1.0.</p>\n\n<h4><code>node_purge_ttl</code></h4>\n\n<p>The length of time a node can be deactivated before it&#39;s deleted from the database. (defaults to &#39;0&#39;, which disables purging). This option is supported in PuppetDB &gt;= 1.2.0.</p>\n\n<h4><code>report_ttl</code></h4>\n\n<p>The length of time reports should be stored before being deleted. (defaults to &#39;7d&#39;, which is a 7-day period). This option is supported in PuppetDB &gt;= 1.1.0.</p>\n\n<h4><code>gc_interval</code></h4>\n\n<p>This controls how often, in minutes, to compact the database. The compaction process reclaims space and deletes unnecessary rows. If not supplied, the default is every 60 minutes. This option is supported in PuppetDB &gt;= 0.9.</p>\n\n<h4><code>log_slow_statements</code></h4>\n\n<p>This sets the number of seconds before an SQL query is considered &quot;slow.&quot; Slow SQL queries are logged as warnings, to assist in debugging and tuning. Note PuppetDB does not interrupt slow queries; it simply reports them after they complete.</p>\n\n<p>The default value is 10 seconds. A value of 0 will disable logging of slow queries. This option is supported in PuppetDB &gt;= 1.1.</p>\n\n<h4><code>conn_max_age</code></h4>\n\n<p>The maximum time (in minutes), for a pooled connection to remain unused before it is closed off.</p>\n\n<p>If not supplied, we default to 60 minutes. This option is supported in PuppetDB &gt;= 1.1.</p>\n\n<h4><code>conn_keep_alive</code></h4>\n\n<p>This sets the time (in minutes), for a connection to remain idle before sending a test query to the DB. This is useful to prevent a DB from timing out connections on its end.</p>\n\n<p>If not supplied, we default to 45 minutes. This option is supported in PuppetDB &gt;= 1.1.</p>\n\n<h4><code>conn_lifetime</code></h4>\n\n<p>The maximum time (in minutes) a pooled connection should remain open. Any connections older than this setting will be closed off. Connections currently in use will not be affected until they are returned to the pool.</p>\n\n<p>If not supplied, we won&#39;t terminate connections based on their age alone. This option is supported in PuppetDB &gt;= 1.4.</p>\n\n<h4><code>puppetdb_package</code></h4>\n\n<p>The puppetdb package name in the package manager.</p>\n\n<h4><code>puppetdb_version</code></h4>\n\n<p>The version of the <code>puppetdb</code> package that should be installed.  You may specify an explicit version number, &#39;present&#39;, or &#39;latest&#39; (defaults to &#39;present&#39;).</p>\n\n<h4><code>puppetdb_service</code></h4>\n\n<p>The name of the puppetdb service.</p>\n\n<h4><code>puppetdb_service_status</code></h4>\n\n<p>Sets whether the service should be running or stopped. When set to stopped the service doesn&#39;t start on boot either. Valid values are &#39;true&#39;, &#39;running&#39;, &#39;false&#39;, and &#39;stopped&#39;.</p>\n\n<h4><code>confdir</code></h4>\n\n<p>The puppetdb configuration directory (defaults to <code>/etc/puppetdb/conf.d</code>).</p>\n\n<h4><code>java_args</code></h4>\n\n<p>Java VM options used for overriding default Java VM options specified in PuppetDB package (defaults to <code>{}</code>). See <a href=\"http://docs.puppetlabs.com/puppetdb/1.1/configure.html\">PuppetDB Configuration</a> to get more details about the current defaults.</p>\n\n<p>Example: to set <code>-Xmx512m -Xms256m</code> options use <code>{ &#39;-Xmx&#39; =&gt; &#39;512m&#39;, &#39;-Xms&#39; =&gt; &#39;256m&#39; }</code></p>\n\n<h3>puppetdb:server</h3>\n\n<p>The <code>puppetdb::server</code> class manages the puppetdb server independently of the underlying database that it depends on. It will manage the puppetdb package, service, config files, etc., but will still allow you to manage the database (e.g. postgresql) however you see fit.</p>\n\n<pre><code>class { &#39;puppetdb::server&#39;:\n  database_host =&gt; &#39;puppetdb-postgres&#39;,\n}\n</code></pre>\n\n<p><strong>Parameters within <code>puppetdb::server</code>:</strong></p>\n\n<p>Uses the same parameters as <code>puppetdb</code>, with one addition:</p>\n\n<h4><code>database_host</code></h4>\n\n<p>The hostname or IP address of the database server (defaults to <code>localhost</code>; ignored for <code>embedded</code> db).</p>\n\n<h3>puppetdb::master::config</h3>\n\n<p>The <code>puppetdb::master::config</code> class directs your puppet master to use PuppetDB, which means that this class should be used on your puppet master node. It’ll verify that it can successfully communicate with your puppetdb server, and then configure your master to use PuppetDB.</p>\n\n<p>Using this class involves allowing the module to manipulate your puppet configuration files; in particular: puppet.conf and routes.yaml. The puppet.conf changes are supplemental and should not affect any of your existing settings, but the routes.yaml file will be overwritten entirely. If you have an existing routes.yaml file, you will want to take care to use the manage_routes parameter of this class to prevent the module from managing that file, and you’ll need to manage it yourself.</p>\n\n<pre><code>class { &#39;puppetdb::master::config&#39;:\n  puppetdb_server =&gt; &#39;my.host.name&#39;,\n  puppetdb_port   =&gt; 8081,\n}\n</code></pre>\n\n<p><strong>Parameters within <code>puppetdb::master::config</code>:</strong></p>\n\n<h4><code>puppetdb_server</code></h4>\n\n<p>The dns name or ip of the puppetdb server (defaults to the certname of the current node).</p>\n\n<h4><code>puppetdb_port</code></h4>\n\n<p>The port that the puppetdb server is running on (defaults to 8081).</p>\n\n<h4><code>puppetdb_soft_write_failure</code></h4>\n\n<p>Boolean to fail in a soft-manner if PuppetDB is not accessable for command submission (defaults to false).</p>\n\n<h4><code>manage_routes</code></h4>\n\n<p>If true, the module will overwrite the puppet master&#39;s routes file to configure it to use PuppetDB (defaults to true).</p>\n\n<h4><code>manage_storeconfigs</code></h4>\n\n<p>If true, the module will manage the puppet master&#39;s storeconfig settings (defaults to true).</p>\n\n<h4><code>manage_report_processor</code></h4>\n\n<p>If true, the module will manage the &#39;reports&#39; field in the puppet.conf file to enable or disable the puppetdb report processor.  Defaults to &#39;false&#39;.</p>\n\n<h4><code>manage_config</code></h4>\n\n<p>If true, the module will store values from puppetdb_server and puppetdb_port parameters in the puppetdb configuration file.\nIf false, an existing puppetdb configuration file will be used to retrieve server and port values.</p>\n\n<h4><code>strict_validation</code></h4>\n\n<p>If true, the module will fail if puppetdb is not reachable, otherwise it will preconfigure puppetdb without checking.</p>\n\n<h4><code>enable_reports</code></h4>\n\n<p>Ignored unless <code>manage_report_processor</code> is <code>true</code>, in which case this setting will determine whether or not the puppetdb report processor is enabled (<code>true</code>) or disabled (<code>false</code>) in the puppet.conf file.</p>\n\n<h4><code>puppet_confdir</code></h4>\n\n<p>Puppet&#39;s config directory (defaults to <code>/etc/puppet</code>).</p>\n\n<h4><code>puppet_conf</code></h4>\n\n<p>Puppet&#39;s config file (defaults to <code>/etc/puppet/puppet.conf</code>).</p>\n\n<h4><code>puppetdb_version</code></h4>\n\n<p>The version of the <code>puppetdb</code> package that should be installed. You may specify an explicit version number, &#39;present&#39;, or &#39;latest&#39; (defaults to &#39;present&#39;).</p>\n\n<h4><code>terminus_package</code></h4>\n\n<p>Name of the package to use that represents the PuppetDB terminus code.</p>\n\n<h4><code>puppet_service_name</code></h4>\n\n<p>Name of the service that represents Puppet. You can change this to <code>apache2</code> or <code>httpd</code> depending on your operating system, if you plan on having Puppet run using Apache/Passenger for example.</p>\n\n<h4><code>puppetdb_startup_timeout</code></h4>\n\n<p>The maximum amount of time that the module should wait for PuppetDB to start up. This is most important during the initial install of PuppetDB (defaults to 15 seconds).</p>\n\n<h4><code>restart_puppet</code></h4>\n\n<p>If true, the module will restart the puppet master when PuppetDB configuration files are changed by the module.  The default is &#39;true&#39;.  If set to &#39;false&#39;, you must restart the service manually in order to pick up changes to the config files (other than <code>puppet.conf</code>).</p>\n\n<h3>puppetdb::database::postgresql</h3>\n\n<p>The <code>puppetdb::database::postgresql</code> class manages a postgresql server for use by PuppetDB. It can manage the postgresql packages and service, as well as creating and managing the puppetdb database and database user accounts.</p>\n\n<pre><code>class { &#39;puppetdb::database::postgresql&#39;:\n  listen_addresses =&gt; &#39;my.postgres.host.name&#39;,\n}\n</code></pre>\n\n<h4><code>listen_addresses</code></h4>\n\n<p>The <code>listen_address</code> is a comma-separated list of hostnames or IP addresses on which the postgres server should listen for incoming connections. This defaults to <code>localhost</code>. This parameter maps directly to postgresql&#39;s <code>listen_addresses</code> config option; use a <code>*</code> to allow connections on any accessible address.</p>\n\n<h4><code>manage_firewall</code></h4>\n\n<p>If set to <code>true</code> this will enable open the local firewall for PostgreSQL protocol access. Defaults to <code>false</code>.</p>\n\n<h4><code>database_name</code></h4>\n\n<p>Sets the name of the database. Defaults to <code>puppetdb</code>.</p>\n\n<h4><code>database_username</code></h4>\n\n<p>Creates a user for access the database. Defaults to <code>puppetdb</code>.</p>\n\n<h4><code>database_password</code></h4>\n\n<p>Sets the password for the database user above. Defaults to <code>puppetdb</code>.</p>\n\n<h2>Implementation</h2>\n\n<h3>Resource overview</h3>\n\n<p>In addition to the classes and variables mentioned above, PuppetDB includes:</p>\n\n<p><strong>puppetdb::master::routes</strong></p>\n\n<p>Configures the puppet master to use PuppetDB as the facts terminus. <em>WARNING</em>: the current implementation simply overwrites your routes.yaml file; if you have an existing routes.yaml file that you are using for other purposes, you should <em>not</em> use this.</p>\n\n<pre><code>class { &#39;puppetdb::master::routes&#39;:\n  puppet_confdir =&gt; &#39;/etc/puppet&#39;\n}\n</code></pre>\n\n<p><strong>puppetdb::master::storeconfigs</strong></p>\n\n<p>Configures the puppet master to enable storeconfigs and to use PuppetDB as the storeconfigs backend.</p>\n\n<pre><code>class { &#39;puppetdb::master::storeconfigs&#39;:\n  puppet_conf =&gt; &#39;/etc/puppet/puppet.conf&#39;\n}\n</code></pre>\n\n<p><strong>puppetdb::server::validate_db</strong></p>\n\n<p>Validates that a successful database connection can be established between the node on which this resource is run and the specified puppetdb database instance (host/port/user/password/database name).</p>\n\n<pre><code>puppetdb::server::validate_db { &#39;validate my puppetdb database connection&#39;:\n  database_host     =&gt; &#39;my.postgres.host&#39;,\n  database_username =&gt; &#39;mydbuser&#39;,\n  database_password =&gt; &#39;mydbpassword&#39;,\n  database_name     =&gt; &#39;mydbname&#39;,\n}\n</code></pre>\n\n<h3>Custom Types</h3>\n\n<p><strong>puppetdb_conn_validator</strong></p>\n\n<p>Verifies that a connection can be successfully established between a node and the puppetdb server. Its primary use is as a precondition to prevent configuration changes from being applied if the puppetdb server cannot be reached, but it could potentially be used for other purposes such as monitoring.</p>\n\n<h2>Limitations</h2>\n\n<p>Currently, PuppetDB is compatible with:</p>\n\n<pre><code>Puppet Version: 2.7+\n</code></pre>\n\n<p>Platforms:</p>\n\n<ul>\n<li>RHEL6</li>\n<li>Debian6</li>\n<li>Ubuntu 10.04</li>\n<li>Archlinux</li>\n</ul>\n\n<h2>Development</h2>\n\n<p>Puppet Labs modules on the Puppet Forge are open projects, and community contributions are essential for keeping them great. We can’t access the huge number of platforms and myriad of hardware, software, and deployment configurations that Puppet is intended to serve.</p>\n\n<p>We want to keep it as easy as possible to contribute changes so that our modules work in your environment. There are a few guidelines that we need contributors to follow so that we can have a chance of keeping on top of things.</p>\n\n<p>You can read the complete module contribution guide <a href=\"http://projects.puppetlabs.com/projects/module-site/wiki/Module_contributing\">on the Puppet Labs wiki.</a></p>\n</section>",
ruby-puppet-forge-2.3.2/spec/fixtures/v3/modules.json-3256-        "changelog": "<section class=\"plaintext\"><pre>## puppetlabs-puppetdb changelog\n\nRelease notes for the puppetlabs-puppetdb module.\n\n------------------------------------------\n\n#### 3.0.0 - 2013&#x2F;10&#x2F;27\n\nThis major release changes the main dependency for the postgresql module from\nversion 2.5.x to 3.x. Since the postgresql module is not backwards compatible,\nthis release is also not backwards compatible. As a consequence we have taken\nsome steps to deprecate some of the older functionality:\n\n* The parameter manage_redhat_firewall for the class puppetdb has now been removed completely in favor of open_postgres_port and open_ssl_listen_port.\n* The parameter manage_redhat_firewall for the class puppetdb::database::postgresql, has now been renamed to manage_firewall.\n* The parameter manage_redhat_firewall for the class puppetdb::server has now been removed completely in favor of open_listen_port and open_ssl_listen_port.\n* The internal class: puppetdb::database::postgresql_db has been removed. If you were using this, it is now defunct.\n* The class puppetdb::server::firewall has been marked as private, do not use it directly.\n* The class puppetdb::server::jetty_ini and puppetdb::server::database_ini have been marked as private, do not use it directly.\n\nAll of this is documented in the upgrade portion of the README.\n\nAdditionally some features have been included in this release as well:\n\n* soft_write_failure can now be enabled in your puppetdb.conf with this\n  module to handle failing silently when your PuppetDB is not available\n  during writes.\n* There is a new switch to enable SSL connectivity to PostgreSQL. While this\n  functionality is only in its infancy this is a good start.\n\nDetailed Changes:\n\n* FM-103: Add metadata.json to all modules. (Ashley Penney)\n* Add soft_write_failure to puppetdb.conf (Garrett Honeycutt)\n* Add switch to configure database SSL connection (Stefan Dietrich)\n* (GH-91) Update to use rspec-system-puppet 2.x (Ken Barber)\n* (GH-93) Switch to using puppetlabs-postgresql 3.x (Ken Barber)\n* Fix copyright and project notice (Ken Barber)\n* Adjust memory for PuppetDB tests to avoid OOM killer (Ken Barber)\n* Ensure ntpdate executes early during testing (Ken Barber)\n\n------------------------------------------\n\n#### 2.0.0 - 2013&#x2F;10&#x2F;04\n\nThis major release changes the main dependency for the inifile module from\nthe deprecated `cprice404&#x2F;inifile` to `puppetlabs&#x2F;inifile` to remove\ndeprecation warnings and to move onto the latest and greatest implementation\nof that code.\n\nIts a major release, because it may affect other dependencies since modules\ncannot have overlapping second part dependencies (that is inifile cannot be from\ntwo different locations).\n\nIt also adds the parameter `puppetdb_service_status` to the class `puppetdb` to\nallow users to specify whether the module manages the puppetdb service for you.\n\nThe `database_password` parameter is now optional, and initial Arch Linux\nsupport has been added.\n\nDetailed Changes:\n\n* (GH-73) Switch to puppetlabs&#x2F;inifile from cprice&#x2F;inifile (Ken Barber)\n* Make database_password an optional parameter (Nick Lewis)\n* add archlinux support (Niels Abspoel)\n* Added puppetdb service control (Akos Hencz)\n\n------------------------------------------\n\n#### 1.6.0 - 2013&#x2F;08&#x2F;07\n\nThis minor feature release provides extra parameters for new configuration\nitems available in PuppetDB 1.4, and also provides some older parameters\nthat were missed previously:\n\n* gc_interval\n* log_slow_statements\n* conn_max_age\n* conn_keep_alive\n* conn_lifetime\n\nConsult the README.md file, or the PuppetDB documentation for more details.\n\n------------------------------------------\n\n#### 1.5.0 - 2013&#x2F;07&#x2F;18\n\nThis minor feature release provides the following new functionality:\n\n* The module is now capable of managing PuppetDB on SUSE systems\n  for which PuppetDB packages are available\n* The ruby code for validating the PuppetDB connection now\n  supports validating on a non-SSL HTTP port.\n\n------------------------------------------\n\n#### 1.4.0 - 2013&#x2F;05&#x2F;13\n\nThis feature release provides support for managing the puppetdb report\nprocessor on your master.\n\nTo enable the report processor, you can do something like this:\n\n    class { &#x27;puppetdb::master::config&#x27;:\n        manage_report_processor =&gt; true,\n        enable_reports =&gt; true\n    }\n\nThis will add the &#x27;puppetdb&#x27; report processor to the list of `reports`\ninside your master&#x27;s `puppet.conf` file.\n\n------------------------------------------\n\n#### 1.3.0 - 2013&#x2F;05&#x2F;13\n\nThis feature release provides us with a few new features for the PuppetDB\nmodule.\n\nYou can now disable SSL when using the `puppetdb` class by using the new\nparameter `disable_ssl`:\n\n    class { &#x27;puppetdb&#x27;:\n      disable_ssl =&gt; true,\n    }\n\nThis will remove the SSL settings from your `jetty.ini` configuration file\ndisabling any SSL communication. This is useful when you want to offload SSL\nto another web server, such as Apache or Nginx.\n\nWe have now added an option `java_args` for passing in Java options to\nPuppetDB. The format is a hash that is passed in when declaring the use of the\n`puppetdb` class:\n\n    class { &#x27;puppetdb&#x27;:\n      java_args =&gt; {\n        &#x27;-Xmx&#x27; =&gt; &#x27;512m&#x27;,\n        &#x27;-Xms&#x27; =&gt; &#x27;256m&#x27;,\n      }\n    }\n\nAlso, the default `report-ttl` was set to `14d` in PuppetDB to align it with an\nupcoming PE release, so we&#x27;ve also reflected that default here now.\n\nAnd finally we&#x27;ve fixed the issue whereby the options `report_ttl`, `node_ttl`,\n`node_purge_ttl` and `gc_interval` were not making the correct changes. On top\nof that you can now set these values to zero in the module, and the correct\ntime modifier (`s`, `m`, `h` etc.) will automatically get applied for you.\n\nBehind the scenes we&#x27;ve also added system and unit testing, which was\npreviously non-existent. This should help us reduce regression going forward.\n\nThanks to all the contributing developers in the list below that made this\nrelease possible :-).\n\n#### Changes\n\n* Allows for 0 _ttl&#x27;s without time signifier and enables tests (Garrett Honeycutt)\n* Add option to disable SSL in Jetty, including tests and documentation (Christian Berg)\n* Cleaned up ghoneycutt&#x27;s code a tad (Ken Barber)\n* the new settings report_ttl, node_ttl and node_purge_ttl were added but they are not working, this fixes it (fsalum)\n* Also fix gc_interval (Ken Barber)\n* Support for remote puppetdb (Filip Hrbek)\n* Added support for Java VM options (Karel Brezina)\n* Add initial rspec-system tests and scaffolding (Ken Barber)\n\n------------------------------------------\n\n#### 1.2.1 - 2013&#x2F;04&#x2F;08\n\nThis is a minor bugfix that solves the PuppetDB startup exception:\n\n    java.lang.AssertionError: Assert failed: (string? s)\n\nThis was due to the default `node-ttl` and `node-purge-ttl` settings not having a time suffix by default. These settings required &#x27;s&#x27;, &#x27;m&#x27;, &#x27;d&#x27; etc. to be suffixed, even if they are zero.\n\n#### Changes\n\n* (Ken Barber) Add &#x27;s&#x27; suffix to period settings to avoid exceptions in PuppetDB\n\n------------------------------------------\n\n#### 1.2.0 - 2013&#x2F;04&#x2F;05\n\nThis release is primarily about providing full configuration file support in the module for PuppetDB 1.2.0. (The alignment of version is a coincidence I assure you :-).\n\nThis feature release adds the following new configuration parameters to the main `puppetdb` class:\n\n* node_ttl\n* node_purge_ttl (available in &gt;=1.2.0)\n* report_ttl\n\nConsult the README for futher details about these new configurable items.\n\n##### Changes\n\n* (Nick Lewis) Add params and ini settings for node&#x2F;purge&#x2F;report ttls and document them\n\n------------------------------------------\n\n1.1.5\n=====\n\n2013-02-13 - Karel Brezina\n * Fix database creation so database_username, database_password and\n   database_name are correctly passed during database creation.\n\n2013-01-29 - Lauren Rother\n * Change README to conform to new style and various other README improvements\n\n2013-01-17 - Chris Price\n * Improve documentation in init.pp\n\n------------------------------------------\n\n1.1.4\n=====\n\nThis is a bugfix release, mostly around fixing backward-compatibility for the\ndeprecated `manage_redhat_firewall` parameter.  It wasn&#x27;t actually entirely\nbackwards-compatible in the 1.1.3 release.\n\n2013-01-17 - Chris Price &lt;chris@puppetlabs.com&gt;\n * Fix backward compatibility of `manage_redhat_firewall` parameter (de20b44)\n\n2013-01-16 - Chris Price &lt;chris@puppetlabs.com&gt;\n * Fix deprecation warnings around manage_redhat_firewall (448f8bc)\n\n------------------------------------------\n\n1.1.3\n=====\n\nThis is mostly a maintenance release, to update the module dependencies to newer\nversions in preparation for some new features.  This release does include some nice\nadditions around the ability to set the listen address for the HTTP port on Jetty\nand manage the firewall for that port.  Thanks very much to Drew Blessing for those\nsubmissions!\n\n2013-01-15 - Chris Price &lt;chris@puppetlabs.com&gt;\n * Update Modulefile for 1.1.3 release (updates dependencies\n   on postgres and inifile modules to the latest versions) (76bfd9e)\n\n2012-12-19 - Garrett Honeycutt &lt;garrett@puppetlabs.com&gt;\n * (#18228) updates README for style (fd2e990)\n\n2012-11-29 - Drew Blessing &lt;Drew.Blessing@Buckle.com&gt;\n * 17594 - Fixes suggested by cprice-puppet (0cf9632)\n\n2012-11-14 - Drew Blessing &lt;Drew.Blessing@Buckle.com&gt;\n * Adjust examples in tests to include new port params (0afc276)\n\n2012-11-13 - Drew Blessing &lt;Drew.Blessing@Buckle.com&gt;\n * 17594 - PuppetDB - Add ability to set standard host listen address and open firewall\n\n------------------------------------------\n\n1.1.2\n=====\n\n2012-10-26 - Chris Price &lt;chris@puppetlabs.com&gt; (1.1.2)\n * 1.1.2 release\n\n2012-10-26 - Chris Price &lt;chris@puppetlabs.com&gt;\n * Add some more missing `inherit`s for `puppetdb::params` (a72cc7c)\n\n2012-10-26 - Chris Price &lt;chris@puppetlabs.com&gt; (1.1.2)\n * 1.1.1 release\n\n2012-10-26 - Chris Price &lt;chris@puppetlabs.com&gt; (1.1.1)\n * Add missing `inherit` for `puppetdb::params` (ea9b379)\n\n2012-10-24 - Chris Price &lt;chris@puppetlabs.com&gt;\n * 1.1.0 release\n\n2012-10-24 - Chris Price &lt;chris@puppetlabs.com&gt; (1.1.0)\n * Update postgres dependency to puppetlabs&#x2F;postgresql (bea79b4)\n\n2012-10-17 - Reid Vandewiele &lt;reid@puppetlabs.com&gt; (1.1.0)\n * Fix embedded db setup in Puppet Enterprise (bf0ab45)\n\n2012-10-17 - Chris Price &lt;chris@puppetlabs.com&gt; (1.1.0)\n * Update manifests&#x2F;master&#x2F;config.pp (b119a30)\n\n2012-10-16 - Chris Price &lt;chris@puppetlabs.com&gt; (1.1.0)\n * Make puppetdb startup timeout configurable (783b595)\n\n2012-10-01 - Hunter Haugen &lt;h.haugen@gmail.com&gt; (1.1.0)\n * Add condition to detect PE installations and provide different parameters (63f1c52)\n\n2012-10-01 - Hunter Haugen &lt;h.haugen@gmail.com&gt; (1.1.0)\n * Add example manifest code for pe puppet master (a598edc)\n\n2012-10-01 - Chris Price &lt;chris@puppetlabs.com&gt; (1.1.0)\n * Update comments and docs w&#x2F;rt PE params (b5df5d9)\n\n2012-10-01 - Hunter Haugen &lt;h.haugen@gmail.com&gt; (1.1.0)\n * Adding pe_puppetdb tests class (850e039)\n\n2012-09-28 - Hunter Haugen &lt;h.haugen@gmail.com&gt; (1.1.0)\n * Add parameters to enable usage of enterprise versions of PuppetDB (df6f7cc)\n\n2012-09-23 - Chris Price &lt;chris@puppetlabs.com&gt;\n * 1.0.3 release\n\n2012-09-23 - Chris Price &lt;chris@puppetlabs.com&gt;\n * Add a parameter for restarting puppet master (179b337)\n\n2012-09-21 - Chris Price &lt;chris@puppetlabs.com&gt;\n * 1.0.2 release\n\n2012-09-21 - Chris Price &lt;chris@puppetlabs.com&gt;\n * Pass &#x27;manage_redhat_firewall&#x27; param through to postgres (f21740b)\n\n2012-09-20 - Chris Price &lt;chris@puppetlabs.com&gt;\n * 1.0.1 release\n\n2012-09-20 - Garrett Honeycutt &lt;garrett@puppetlabs.com&gt;\n * complies with style guide (1aab5d9)\n\n2012-09-19 - Chris Price &lt;chris@puppetlabs.com&gt;\n * Fix invalid subname in database.ini (be683b7)\n\n2011-09-18 Chris Price &lt;chris@puppetlabs.com&gt; - 1.0.0\n* Initial 1.0.0 release\n</pre></section>",
##############################################
ruby-puppet-forge-2.3.2/spec/fixtures/v3/releases__module=puppetlabs-apache.json-456-      "downloads": 18449,
ruby-puppet-forge-2.3.2/spec/fixtures/v3/releases__module=puppetlabs-apache.json:457:      "readme": "<section class=\"markdown\"><h1>apache</h1>\n\n<p><a href=\"https://travis-ci.org/puppetlabs/puppetlabs-apache\"><img src=\"https://travis-ci.org/puppetlabs/puppetlabs-apache.png?branch=master\" alt=\"Build Status\"></a></p>\n\n<h4>Table of Contents</h4>\n\n<ol>\n<li><a href=\"#overview\">Overview - What is the Apache module?</a></li>\n<li><a href=\"#module-description\">Module Description - What does the module do?</a></li>\n<li><a href=\"#setup\">Setup - The basics of getting started with Apache</a>\n\n<ul>\n<li><a href=\"#beginning-with-apache\">Beginning with Apache - Installation</a></li>\n<li><a href=\"#configure-a-virtual-host\">Configure a Virtual Host - Basic options for getting started</a></li>\n</ul></li>\n<li><a href=\"#usage\">Usage - The classes, defined types, and their parameters available for configuration</a>\n\n<ul>\n<li><a href=\"#classes-and-defined-types\">Classes and Defined Types</a>\n\n<ul>\n<li><a href=\"#class-apache\">Class: apache</a></li>\n<li><a href=\"#classes-apachemodname\">Classes: apache::mod::*</a></li>\n<li><a href=\"#defined-type-apachevhost\">Defined Type: apache::vhost</a></li>\n</ul></li>\n<li><a href=\"#virtual-host-examples\">Virtual Host Examples - Demonstrations of some configuration options</a></li>\n</ul></li>\n<li><a href=\"#implementation\">Implementation - An under-the-hood peek at what the module is doing</a>\n\n<ul>\n<li><a href=\"#classes-and-defined-types\">Classes and Defined Types</a></li>\n<li><a href=\"#templates\">Templates</a></li>\n</ul></li>\n<li><a href=\"#limitations\">Limitations - OS compatibility, etc.</a></li>\n<li><a href=\"#development\">Development - Guide for contributing to the module</a></li>\n<li><a href=\"#release-notes\">Release Notes - Notes on the most recent updates to the module</a></li>\n</ol>\n\n<h2>Overview</h2>\n\n<p>The Apache module allows you to set up virtual hosts and manage web services with minimal effort.</p>\n\n<h2>Module Description</h2>\n\n<p>Apache is a widely-used web server, and this module provides a simplified way of creating configurations to manage your infrastructure. This includes the ability to configure and manage a range of different virtual host setups, as well as a streamlined way to install and configure Apache modules.</p>\n\n<h2>Setup</h2>\n\n<p><strong>What Apache affects:</strong></p>\n\n<ul>\n<li>configuration files and directories (created and written to)\n\n<ul>\n<li><strong>NOTE</strong>: Configurations that are <em>not</em> managed by Puppet will be purged.</li>\n</ul></li>\n<li>package/service/configuration files for Apache</li>\n<li>Apache modules</li>\n<li>virtual hosts</li>\n<li>listened-to ports</li>\n</ul>\n\n<h3>Beginning with Apache</h3>\n\n<p>To install Apache with the default parameters</p>\n\n<pre lang=\"puppet\"><code>    class { &#39;apache&#39;:  }\n</code></pre>\n\n<p>The defaults are determined by your operating system (e.g. Debian systems have one set of defaults, RedHat systems have another). These defaults will work well in a testing environment, but are not suggested for production. To establish customized parameters</p>\n\n<pre lang=\"puppet\"><code>    class { &#39;apache&#39;:\n      default_mods =&gt; false,\n    }\n</code></pre>\n\n<h3>Configure a virtual host</h3>\n\n<p>Declaring the <code>apache</code> class will create a default virtual host by setting up a vhost on port 80, listening on all interfaces and serving <code>$apache::docroot</code>.</p>\n\n<pre lang=\"puppet\"><code>    class { &#39;apache&#39;: }\n</code></pre>\n\n<p>To configure a very basic, name-based virtual host</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;first.example.com&#39;:\n      port    =&gt; &#39;80&#39;,\n      docroot =&gt; &#39;/var/www/first&#39;,\n    }\n</code></pre>\n\n<p><em>Note:</em> The default priority is 15. If nothing matches this priority, the alphabetically first name-based vhost will be used. This is also true if you pass a higher priority and no names match anything else.</p>\n\n<p>A slightly more complicated example, which moves the docroot owner/group</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;second.example.com&#39;:\n      port          =&gt; &#39;80&#39;,\n      docroot       =&gt; &#39;/var/www/second&#39;,\n      docroot_owner =&gt; &#39;third&#39;,\n      docroot_group =&gt; &#39;third&#39;,\n    }\n</code></pre>\n\n<p>To set up a virtual host with SSL and default SSL certificates</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;ssl.example.com&#39;:\n      port    =&gt; &#39;443&#39;,\n      docroot =&gt; &#39;/var/www/ssl&#39;,\n      ssl     =&gt; true,\n    }\n</code></pre>\n\n<p>To set up a virtual host with SSL and specific SSL certificates</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;fourth.example.com&#39;:\n      port     =&gt; &#39;443&#39;,\n      docroot  =&gt; &#39;/var/www/fourth&#39;,\n      ssl      =&gt; true,\n      ssl_cert =&gt; &#39;/etc/ssl/fourth.example.com.cert&#39;,\n      ssl_key  =&gt; &#39;/etc/ssl/fourth.example.com.key&#39;,\n    }\n</code></pre>\n\n<p>To set up a virtual host with wildcard alias for subdomain mapped to same named directory\n<code>http://examle.com.loc =&gt; /var/www/example.com</code></p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;subdomain.loc&#39;:\n      vhost_name =&gt; &#39;*&#39;,\n      port       =&gt; &#39;80&#39;,\n      virtual_docroot&#39; =&gt; &#39;/var/www/%-2+&#39;,\n      docroot          =&gt; &#39;/var/www&#39;,\n      serveraliases    =&gt; [&#39;*.loc&#39;,],\n    }\n</code></pre>\n\n<p>To set up a virtual host with suPHP</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;suphp.example.com&#39;:\n      port                =&gt; &#39;80&#39;,\n      docroot             =&gt; &#39;/home/appuser/myphpapp&#39;,\n      suphp_addhandler    =&gt; &#39;x-httpd-php&#39;,\n      suphp_engine        =&gt; &#39;on&#39;,\n      suphp_configpath    =&gt; &#39;/etc/php5/apache2&#39;,\n    }\n</code></pre>\n\n<p>To set up a virtual host with WSGI</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;wsgi.example.com&#39;:\n      port                        =&gt; &#39;80&#39;,\n      docroot                     =&gt; &#39;/var/www/pythonapp&#39;,\n      wsgi_daemon_process         =&gt; &#39;wsgi&#39;,\n      wsgi_daemon_process_options =&gt;\n        { processes =&gt; &#39;2&#39;, threads =&gt; &#39;15&#39;, display-name =&gt; &#39;%{GROUP}&#39; },\n      wsgi_process_group          =&gt; &#39;wsgi&#39;,\n      wsgi_script_aliases         =&gt; { &#39;/&#39; =&gt; &#39;/var/www/demo.wsgi&#39; },\n    }\n</code></pre>\n\n<p>To see a list of all virtual host parameters, <a href=\"#defined-type-apachevhost\">please go here</a>. To see an extensive list of virtual host examples <a href=\"#virtual-host-examples\">please look here</a>.</p>\n\n<h2>Usage</h2>\n\n<h3>Classes and Defined Types</h3>\n\n<p>This module modifies Apache configuration files and directories and will purge any configuration not managed by Puppet. Configuration of Apache should be managed by Puppet, as non-puppet configuration files can cause unexpected failures.</p>\n\n<p>It is possible to temporarily disable full Puppet management by setting the <code>purge_configs</code> parameter within the base <code>apache</code> class to &#39;false&#39;. This option should only be used as a temporary means of saving and relocating customized configurations.</p>\n\n<h4>Class: <code>apache</code></h4>\n\n<p>The Apache module&#39;s primary class, <code>apache</code>, guides the basic setup of Apache on your system.</p>\n\n<p>You may establish a default vhost in this class, the <code>vhost</code> class, or both. You may add additional vhost configurations for specific virtual hosts using a declaration of the <code>vhost</code> type.</p>\n\n<p><strong>Parameters within <code>apache</code>:</strong></p>\n\n<h5><code>default_mods</code></h5>\n\n<p>Sets up Apache with default settings based on your OS. Defaults to &#39;true&#39;, set to &#39;false&#39; for customized configuration.</p>\n\n<h5><code>default_vhost</code></h5>\n\n<p>Sets up a default virtual host. Defaults to &#39;true&#39;, set to &#39;false&#39; to set up <a href=\"#configure-a-virtual-host\">customized virtual hosts</a>.</p>\n\n<h5><code>default_ssl_vhost</code></h5>\n\n<p>Sets up a default SSL virtual host. Defaults to &#39;false&#39;.</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;default-ssl&#39;:\n      port            =&gt; 443,\n      ssl             =&gt; true,\n      docroot         =&gt; $docroot,\n      scriptalias     =&gt; $scriptalias,\n      serveradmin     =&gt; $serveradmin,\n      access_log_file =&gt; &quot;ssl_${access_log_file}&quot;,\n      }\n</code></pre>\n\n<p>SSL vhosts only respond to HTTPS queries.</p>\n\n<h5><code>default_ssl_cert</code></h5>\n\n<p>The default SSL certification, which is automatically set based on your operating system  (<code>/etc/pki/tls/certs/localhost.crt</code> for RedHat, <code>/etc/ssl/certs/ssl-cert-snakeoil.pem</code> for Debian). This default will work out of the box but must be updated with your specific certificate information before being used in production.</p>\n\n<h5><code>default_ssl_key</code></h5>\n\n<p>The default SSL key, which is automatically set based on your operating system (<code>/etc/pki/tls/private/localhost.key</code> for RedHat, <code>/etc/ssl/private/ssl-cert-snakeoil.key</code> for Debian). This default will work out of the box but must be updated with your specific certificate information before being used in production.</p>\n\n<h5><code>default_ssl_chain</code></h5>\n\n<p>The default SSL chain, which is automatically set to &#39;undef&#39;. This default will work out of the box but must be updated with your specific certificate information before being used in production.</p>\n\n<h5><code>default_ssl_ca</code></h5>\n\n<p>The default certificate authority, which is automatically set to &#39;undef&#39;. This default will work out of the box but must be updated with your specific certificate information before being used in production.</p>\n\n<h5><code>default_ssl_crl_path</code></h5>\n\n<p>The default certificate revocation list path, which is automatically set to &#39;undef&#39;. This default will work out of the box but must be updated with your specific certificate information before being used in production.</p>\n\n<h5><code>default_ssl_crl</code></h5>\n\n<p>The default certificate revocation list to use, which is automatically set to &#39;undef&#39;. This default will work out of the box but must be updated with your specific certificate information before being used in production.</p>\n\n<h5><code>service_enable</code></h5>\n\n<p>Determines whether the &#39;httpd&#39; service is enabled when the machine is booted, meaning Puppet will check the service status to start/stop it. Defaults to &#39;true&#39;, meaning the service is enabled/running.</p>\n\n<h5><code>serveradmin</code></h5>\n\n<p>Sets the server administrator. Defaults to &#39;root@localhost&#39;.</p>\n\n<h5><code>servername</code></h5>\n\n<p>Sets the servername. Defaults to fqdn provided by facter.</p>\n\n<h5><code>sendfile</code></h5>\n\n<p>Makes Apache use the Linux kernel &#39;sendfile&#39; to serve static files. Defaults to &#39;false&#39;.</p>\n\n<h5><code>error_documents</code></h5>\n\n<p>Enables custom error documents. Defaults to &#39;false&#39;.</p>\n\n<h5><code>httpd_dir</code></h5>\n\n<p>Changes the base location of the configuration directories used for the service. This is useful for specially repackaged HTTPD builds but may have unintended concequences when used in combination with the default distribution packages. Default is based on your OS.</p>\n\n<h5><code>confd_dir</code></h5>\n\n<p>Changes the location of the configuration directory your custom configuration files are placed in. Default is based on your OS.</p>\n\n<h5><code>vhost_dir</code></h5>\n\n<p>Changes the location of the configuration directory your virtual host configuration files are placed in. Default is based on your OS.</p>\n\n<h5><code>mod_dir</code></h5>\n\n<p>Changes the location of the configuration directory your Apache modules configuration files are placed in. Default is based on your OS.</p>\n\n<h5><code>mpm_module</code></h5>\n\n<p>Configures which mpm module is loaded and configured for the httpd process by the <code>apache::mod::prefork</code>, <code>apache::mod::worker</code> and <code>apache::mod::itk</code> classes. Must be set to <code>false</code> to explicitly declare <code>apache::mod::worker</code>, <code>apache::mod::worker</code> or <code>apache::mod::itk</code> classes with parameters. Valid values are <code>worker</code>, <code>prefork</code>, <code>itk</code> (Debian), or the boolean <code>false</code>. Defaults to <code>prefork</code> on RedHat and <code>worker</code> on Debian.</p>\n\n<h5><code>conf_template</code></h5>\n\n<p>Setting this allows you to override the template used for the main apache configuration file.  This is a potentially risky thing to do as this module has been built around the concept of a minimal configuration file with most of the configuration coming in the form of conf.d/ entries.  Defaults to &#39;apache/httpd.conf.erb&#39;.</p>\n\n<h5><code>keepalive</code></h5>\n\n<p>Setting this allows you to enable persistent connections.</p>\n\n<h5><code>keepalive_timeout</code></h5>\n\n<p>Amount of time the server will wait for subsequent requests on a persistent connection. Defaults to &#39;15&#39;.</p>\n\n<h5><code>logroot</code></h5>\n\n<p>Changes the location of the directory Apache log files are placed in. Defaut is based on your OS.</p>\n\n<h5><code>ports_file</code></h5>\n\n<p>Changes the name of the file containing Apache ports configuration. Default is <code>${conf_dir}/ports.conf</code>.</p>\n\n<h4>Class: <code>apache::default_mods</code></h4>\n\n<p>Installs default Apache modules based on what OS you are running</p>\n\n<pre lang=\"puppet\"><code>    class { &#39;apache::default_mods&#39;: }\n</code></pre>\n\n<h4>Defined Type: <code>apache::mod</code></h4>\n\n<p>Used to enable arbitrary Apache httpd modules for which there is no specific <code>apache::mod::[name]</code> class. The <code>apache::mod</code> defined type will also install the required packages to enable the module, if any.</p>\n\n<pre lang=\"puppet\"><code>    apache::mod { &#39;rewrite&#39;: }\n    apache::mod { &#39;ldap&#39;: }\n</code></pre>\n\n<h4>Classes: <code>apache::mod::[name]</code></h4>\n\n<p>There are many <code>apache::mod::[name]</code> classes within this module that can be declared using <code>include</code>:</p>\n\n<ul>\n<li><code>alias</code></li>\n<li><code>auth_basic</code></li>\n<li><code>auth_kerb</code></li>\n<li><code>autoindex</code></li>\n<li><code>cache</code></li>\n<li><code>cgi</code></li>\n<li><code>cgid</code></li>\n<li><code>dav</code></li>\n<li><code>dav_fs</code></li>\n<li><code>deflate</code></li>\n<li><code>dir</code>*</li>\n<li><code>disk_cache</code></li>\n<li><code>fcgid</code></li>\n<li><code>info</code></li>\n<li><code>ldap</code></li>\n<li><code>mime</code></li>\n<li><code>mime_magic</code></li>\n<li><code>mpm_event</code></li>\n<li><code>negotiation</code></li>\n<li><code>passenger</code>*</li>\n<li><code>perl</code></li>\n<li><code>php</code> (requires <a href=\"#mpm_module\"><code>mpm_module</code></a> set to <code>prefork</code>)</li>\n<li><code>prefork</code>*</li>\n<li><code>proxy</code>*</li>\n<li><code>proxy_html</code></li>\n<li><code>proxy_http</code></li>\n<li><code>python</code></li>\n<li><code>reqtimeout</code></li>\n<li><code>setenvif</code></li>\n<li><code>ssl</code>* (see <a href=\"#class-apachemodssl\">apache::mod::ssl</a> below)</li>\n<li><code>status</code></li>\n<li><code>suphp</code></li>\n<li><code>userdir</code>*</li>\n<li><code>worker</code>*</li>\n<li><code>wsgi</code> (see <a href=\"#class-apachemodwsgi\">apache::mod::wsgi</a> below)</li>\n<li><code>xsendfile</code></li>\n</ul>\n\n<p>Modules noted with a * indicate that the module has settings and, thus, a template that includes parameters. These parameters control the module&#39;s configuration. Most of the time, these parameters will not require any configuration or attention.</p>\n\n<p>The modules mentioned above, and other Apache modules that have templates, will cause template files to be dropped along with the mod install, and the module will not work without the template. Any mod without a template will install package but drop no files.</p>\n\n<h4>Class: <code>apache::mod::ssl</code></h4>\n\n<p>Installs Apache SSL capabilities and utilizes <code>ssl.conf.erb</code> template</p>\n\n<pre lang=\"puppet\"><code>    class { &#39;apache::mod::ssl&#39;: }\n</code></pre>\n\n<p>To <em>use</em> SSL with a virtual host, you must either set the<code>default_ssl_vhost</code> parameter in <code>apache</code> to &#39;true&#39; or set the <code>ssl</code> parameter in <code>apache::vhost</code> to &#39;true&#39;.</p>\n\n<h4>Class: <code>apache::mod::wsgi</code></h4>\n\n<pre lang=\"puppet\"><code>    class { &#39;apache::mod::wsgi&#39;:\n      wsgi_socket_prefix =&gt; &quot;\\${APACHE_RUN_DIR}WSGI&quot;,\n      wsgi_python_home   =&gt; &#39;/path/to/virtenv&#39;,\n    }\n</code></pre>\n\n<h4>Defined Type: <code>apache::vhost</code></h4>\n\n<p>The Apache module allows a lot of flexibility in the set up and configuration of virtual hosts. This flexibility is due, in part, to <code>vhost</code>&#39;s setup as a defined resource type, which allows it to be evaluated multiple times with different parameters.</p>\n\n<p>The <code>vhost</code> defined type allows you to have specialized configurations for virtual hosts that have requirements outside of the defaults. You can set up a default vhost within the base <code>apache</code> class as well as set a customized vhost setup as default. Your customized vhost (priority 10) will be privileged over the base class vhost (15).</p>\n\n<p>If you have a series of specific configurations and do not want a base <code>apache</code> class default vhost, make sure to set the base class default host to &#39;false&#39;.</p>\n\n<pre lang=\"puppet\"><code>    class { &#39;apache&#39;:\n      default_vhost =&gt; false,\n    }\n</code></pre>\n\n<p><strong>Parameters within <code>apache::vhost</code>:</strong></p>\n\n<p>The default values for each parameter will vary based on operating system and type of virtual host.</p>\n\n<h5><code>access_log</code></h5>\n\n<p>Specifies whether <code>*_access.log</code> directives should be configured. Valid values are &#39;true&#39; and &#39;false&#39;. Defaults to &#39;true&#39;.</p>\n\n<h5><code>access_log_file</code></h5>\n\n<p>Points to the <code>*_access.log</code> file. Defaults to &#39;undef&#39;.</p>\n\n<h5><code>access_log_pipe</code></h5>\n\n<p>Specifies a pipe to send access log messages to. Defaults to &#39;undef&#39;.</p>\n\n<h5><code>access_log_syslog</code></h5>\n\n<p>Sends all access log messages to syslog. Defaults to &#39;undef&#39;.</p>\n\n<h5><code>access_log_format</code></h5>\n\n<p>Specifies either a LogFormat nickname or custom format string for access log. Defaults to &#39;undef&#39;.</p>\n\n<h5><code>add_listen</code></h5>\n\n<p>Determines whether the vhost creates a listen statement. The default value is &#39;true&#39;.</p>\n\n<p>Setting <code>add_listen</code> to &#39;false&#39; stops the vhost from creating a listen statement, and this is important when you combine vhosts that are not passed an <code>ip</code> parameter with vhosts that <em>are</em> passed the <code>ip</code> parameter.</p>\n\n<h5><code>aliases</code></h5>\n\n<p>Passes a list of hashes to the vhost to create <code>Alias</code> statements as per the <a href=\"http://httpd.apache.org/docs/current/mod/mod_alias.html\"><code>mod_alias</code> documentation</a>. Each hash is expected to be of the form:</p>\n\n<pre lang=\"puppet\"><code>aliases =&gt; [ { alias =&gt; &#39;/alias&#39;, path =&gt; &#39;/path/to/directory&#39; } ],\n</code></pre>\n\n<p>For <code>Alias</code> to work, each will need a corresponding <code>&lt;Directory /path/to/directory&gt;</code> or <code>&lt;Location /path/to/directory&gt;</code> block.</p>\n\n<p><strong>Note:</strong> If <code>apache::mod::passenger</code> is loaded and <code>PassengerHighPerformance true</code> is set, then <code>Alias</code> may have issues honouring the <code>PassengerEnabled off</code> statement. See <a href=\"http://www.conandalton.net/2010/06/passengerenabled-off-not-working.html\">this article</a> for details.</p>\n\n<h5><code>block</code></h5>\n\n<p>Specifies the list of things Apache will block access to. The default is an empty set, &#39;[]&#39;. Currently, the only option is &#39;scm&#39;, which blocks web access to .svn, .git and .bzr directories. To add to this, please see the <a href=\"#development\">Development</a> section.</p>\n\n<h5><code>custom_fragment</code></h5>\n\n<p>Pass a string of custom configuration directives to be placed at the end of the vhost configuration.</p>\n\n<h5><code>default_vhost</code></h5>\n\n<p>Sets a given <code>apache::vhost</code> as the default to serve requests that do not match any other <code>apache::vhost</code> definitions. The default value is &#39;false&#39;.</p>\n\n<h5><code>directories</code></h5>\n\n<p>Passes a list of hashes to the vhost to create <code>&lt;Directory /path/to/directory&gt;...&lt;/Directory&gt;</code> directive blocks as per the <a href=\"http://httpd.apache.org/docs/2.2/mod/core.html#directory\">Apache core documentation</a>.  The <code>path</code> key is required in these hashes.  Usage will typically look like:</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;sample.example.net&#39;:\n      docroot     =&gt; &#39;/path/to/directory&#39;,\n      directories =&gt; [\n        { path =&gt; &#39;/path/to/directory&#39;, &lt;directive&gt; =&gt; &lt;value&gt; },\n        { path =&gt; &#39;/path/to/another/directory&#39;, &lt;directive&gt; =&gt; &lt;value&gt; },\n      ],\n    }\n</code></pre>\n\n<p><em>Note:</em> At least one directory should match <code>docroot</code> parameter, once you start declaring directories <code>apache::vhost</code> assumes that all required <code>&lt;Directory&gt;</code> blocks will be declared.</p>\n\n<p><em>Note:</em> If not defined a single default <code>&lt;Directory&gt;</code> block will be created that matches the <code>docroot</code> parameter.</p>\n\n<p>The directives will be embedded within the <code>Directory</code> directive block, missing directives should be undefined and not be added, resulting in their default vaules in Apache. Currently this is the list of supported directives:</p>\n\n<h6><code>addhandlers</code></h6>\n\n<p>Sets <code>AddHandler</code> directives as per the <a href=\"http://httpd.apache.org/docs/2.2/mod/mod_mime.html#addhandler\">Apache Core documentation</a>. Accepts a list of hashes of the form <code>{ handler =&gt; &#39;handler-name&#39;, extensions =&gt; [&#39;extension&#39;]}</code>. Note that <code>extensions</code> is a list of extenstions being handled by the handler.\nAn example:</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;sample.example.net&#39;:\n      docroot     =&gt; &#39;/path/to/directory&#39;,\n      directories =&gt; [ { path =&gt; &#39;/path/to/directory&#39;,\n        addhandlers =&gt; [ { handler =&gt; &#39;cgi-script&#39;, extensions =&gt; [&#39;.cgi&#39;]} ],\n      } ],\n    }\n</code></pre>\n\n<h6><code>allow</code></h6>\n\n<p>Sets an <code>Allow</code> directive as per the <a href=\"http://httpd.apache.org/docs/2.2/mod/mod_authz_host.html#allow\">Apache Core documentation</a>. An example:</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;sample.example.net&#39;:\n      docroot     =&gt; &#39;/path/to/directory&#39;,\n      directories =&gt; [ { path =&gt; &#39;/path/to/directory&#39;, allow =&gt; &#39;from example.org&#39; } ],\n    }\n</code></pre>\n\n<h6><code>allow_override</code></h6>\n\n<p>Sets the usage of <code>.htaccess</code> files as per the <a href=\"http://httpd.apache.org/docs/2.2/mod/core.html#allowoverride\">Apache core documentation</a>. Should accept in the form of a list or a string. An example:</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;sample.example.net&#39;:\n      docroot     =&gt; &#39;/path/to/directory&#39;,\n      directories =&gt; [ { path =&gt; &#39;/path/to/directory&#39;, allow_override =&gt; [&#39;AuthConfig&#39;, &#39;Indexes&#39;] } ],\n    }\n</code></pre>\n\n<h6><code>deny</code></h6>\n\n<p>Sets an <code>Deny</code> directive as per the <a href=\"http://httpd.apache.org/docs/2.2/mod/mod_authz_host.html#deny\">Apache Core documentation</a>. An example:</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;sample.example.net&#39;:\n      docroot     =&gt; &#39;/path/to/directory&#39;,\n      directories =&gt; [ { path =&gt; &#39;/path/to/directory&#39;, deny =&gt; &#39;from example.org&#39; } ],\n    }\n</code></pre>\n\n<h6><code>headers</code></h6>\n\n<p>Adds lines for <code>Header</code> directives as per the <a href=\"http://httpd.apache.org/docs/2.2/mod/mod_headers.html#header\">Apache Header documentation</a>. An example:</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;sample.example.net&#39;:\n      docroot     =&gt; &#39;/path/to/directory&#39;,\n      directories =&gt; {\n        path    =&gt; &#39;/path/to/directory&#39;,\n        headers =&gt; &#39;Set X-Robots-Tag &quot;noindex, noarchive, nosnippet&quot;&#39;,\n      },\n    }\n</code></pre>\n\n<h6><code>options</code></h6>\n\n<p>Lists the options for the given <code>&lt;Directory&gt;</code> block</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;sample.example.net&#39;:\n      docroot     =&gt; &#39;/path/to/directory&#39;,\n      directories =&gt; [ { path =&gt; &#39;/path/to/directory&#39;, options =&gt; [&#39;Indexes&#39;,&#39;FollowSymLinks&#39;,&#39;MultiViews&#39;] }],\n    }\n</code></pre>\n\n<h6><code>order</code></h6>\n\n<p>Sets the order of processing <code>Allow</code> and <code>Deny</code> statements as per <a href=\"http://httpd.apache.org/docs/2.2/mod/mod_authz_host.html#order\">Apache core documentation</a>. An example:</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;sample.example.net&#39;:\n      docroot     =&gt; &#39;/path/to/directory&#39;,\n      directories =&gt; [ { path =&gt; &#39;/path/to/directory&#39;, order =&gt; &#39;Allow, Deny&#39; } ],\n    }\n</code></pre>\n\n<h6><code>auth_type</code></h6>\n\n<p>Sets the value for <code>AuthType</code> as per the <a href=\"https://httpd.apache.org/docs/2.2/mod/core.html#authtype\">Apache AuthType\ndocumentation</a>.</p>\n\n<h6><code>auth_name</code></h6>\n\n<p>Sets the value for <code>AuthName</code> as per the <a href=\"https://httpd.apache.org/docs/2.2/mod/core.html#authname\">Apache AuthName\ndocumentation</a>.</p>\n\n<h6><code>auth_digest_algorithm</code></h6>\n\n<p>Sets the value for <code>AuthDigestAlgorithm</code> as per the <a href=\"https://httpd.apache.org/docs/2.2/mod/mod_auth_digest.html#authdigestalgorithm\">Apache\nAuthDigestAlgorithm\ndocumentation</a></p>\n\n<h6><code>auth_digest_domain</code></h6>\n\n<p>Sets the value for <code>AuthDigestDomain</code> as per the <a href=\"https://httpd.apache.org/docs/2.2/mod/mod_auth_digest.html#authdigestdomain\">Apache AuthDigestDomain\ndocumentation</a>.</p>\n\n<h6><code>auth_digest_nonce_lifetime</code></h6>\n\n<p>Sets the value for <code>AuthDigestNonceLifetime</code> as per the <a href=\"https://httpd.apache.org/docs/2.2/mod/mod_auth_digest.html#authdigestnoncelifetime\">Apache\nAuthDigestNonceLifetime\ndocumentation</a></p>\n\n<h6><code>auth_digest_provider</code></h6>\n\n<p>Sets the value for <code>AuthDigestProvider</code> as per the <a href=\"https://httpd.apache.org/docs/2.2/mod/mod_auth_digest.html#authdigestprovider\">Apache AuthDigestProvider\ndocumentation</a>.</p>\n\n<h6><code>auth_digest_qop</code></h6>\n\n<p>Sets the value for <code>AuthDigestQop</code> as per the <a href=\"https://httpd.apache.org/docs/2.2/mod/mod_auth_digest.html#authdigestqop\">Apache AuthDigestQop\ndocumentation</a>.</p>\n\n<h6><code>auth_digest_shmem_size</code></h6>\n\n<p>Sets the value for <code>AuthAuthDigestShmemSize</code> as per the <a href=\"https://httpd.apache.org/docs/2.2/mod/mod_auth_digest.html#authdigestshmemsize\">Apache AuthDigestShmemSize\ndocumentation</a>.</p>\n\n<h6><code>auth_basic_authoritative</code></h6>\n\n<p>Sets the value for <code>AuthBasicAuthoritative</code> as per the <a href=\"https://httpd.apache.org/docs/2.2/mod/mod_auth_basic.html#authbasicauthoritative\">Apache\nAuthBasicAuthoritative\ndocumentation</a>.</p>\n\n<h6><code>auth_basic_fake</code></h6>\n\n<p>Sets the value for <code>AuthBasicFake</code> as per the <a href=\"https://httpd.apache.org/docs/trunk/mod/mod_auth_basic.html#authbasicfake\">Apache AuthBasicFake\ndocumentation</a>.</p>\n\n<h6><code>auth_basic_provider</code></h6>\n\n<p>Sets the value for <code>AuthBasicProvider</code> as per the <a href=\"https://httpd.apache.org/docs/2.2/mod/mod_auth_basic.html#authbasicprovider\">Apache AuthBasicProvider\ndocumentation</a>.</p>\n\n<h6><code>auth_user_file</code></h6>\n\n<p>Sets the value for <code>AuthUserFile</code> as per the <a href=\"https://httpd.apache.org/docs/2.2/mod/mod_authn_file.html#authuserfile\">Apache AuthUserFile\ndocumentation</a>.</p>\n\n<h6><code>auth_require</code></h6>\n\n<p>Sets the value for <code>AuthName</code> as per the <a href=\"https://httpd.apache.org/docs/2.2/mod/core.html#require\">Apache Require\ndocumentation</a></p>\n\n<h6><code>passenger_enabled</code></h6>\n\n<p>Sets the value for the <code>PassengerEnabled</code> directory to <code>on</code> or <code>off</code> as per the <a href=\"http://www.modrails.com/documentation/Users%20guide%20Apache.html#PassengerEnabled\">Passenger documentation</a>.</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;sample.example.net&#39;:\n      docroot     =&gt; &#39;/path/to/directory&#39;,\n      directories =&gt; [ { path =&gt; &#39;/path/to/directory&#39;, passenger_enabled =&gt; &#39;off&#39; } ],\n    }\n</code></pre>\n\n<p><strong>Note:</strong> This directive requires <code>apache::mod::passenger</code> to be active, Apache may not start with an unrecognised directive without it.</p>\n\n<p><strong>Note:</strong> Be aware that there is an <a href=\"http://www.conandalton.net/2010/06/passengerenabled-off-not-working.html\">issue</a> using the <code>PassengerEnabled</code> directive with the <code>PassengerHighPerformance</code> directive.</p>\n\n<h6><code>custom_fragment</code></h6>\n\n<p>Pass a string of custom configuration directives to be placed at the end of the\ndirectory configuration.</p>\n\n<h5><code>docroot</code></h5>\n\n<p>Provides the DocumentRoot directive, identifying the directory Apache serves files from.</p>\n\n<h5><code>docroot_group</code></h5>\n\n<p>Sets group access to the docroot directory. Defaults to &#39;root&#39;.</p>\n\n<h5><code>docroot_owner</code></h5>\n\n<p>Sets individual user access to the docroot directory. Defaults to &#39;root&#39;.</p>\n\n<h5><code>error_log</code></h5>\n\n<p>Specifies whether <code>*_error.log</code> directives should be configured. Defaults to &#39;true&#39;.</p>\n\n<h5><code>error_log_file</code></h5>\n\n<p>Points to the <code>*_error.log</code> file. Defaults to &#39;undef&#39;.</p>\n\n<h5><code>error_log_pipe</code></h5>\n\n<p>Specifies a pipe to send error log messages to. Defaults to &#39;undef&#39;.</p>\n\n<h5><code>error_log_syslog</code></h5>\n\n<p>Sends all error log messages to syslog. Defaults to &#39;undef&#39;.</p>\n\n<h5><code>ensure</code></h5>\n\n<p>Specifies if the vhost file is present or absent.</p>\n\n<h5><code>ip</code></h5>\n\n<p>The IP address the vhost listens on. Defaults to &#39;undef&#39;.</p>\n\n<h5><code>ip_based</code></h5>\n\n<p>Enables an IP-based vhost. This parameter inhibits the creation of a NameVirtualHost directive, since those are used to funnel requests to name-based vhosts. Defaults to &#39;false&#39;.</p>\n\n<h5><code>logroot</code></h5>\n\n<p>Specifies the location of the virtual host&#39;s logfiles. Defaults to <code>/var/log/&lt;apache log location&gt;/</code>.</p>\n\n<h5><code>no_proxy_uris</code></h5>\n\n<p>Specifies URLs you do not want to proxy. This parameter is meant to be used in combination with <code>proxy_dest</code>.</p>\n\n<h5><code>options</code></h5>\n\n<p>Lists the options for the given virtual host</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;site.name.fdqn&#39;:\n      …\n      options =&gt; [&#39;Indexes&#39;,&#39;FollowSymLinks&#39;,&#39;MultiViews&#39;],\n    }\n</code></pre>\n\n<h5><code>override</code></h5>\n\n<p>Sets the overrides for the given virtual host. Accepts an array of AllowOverride arguments.</p>\n\n<h5><code>port</code></h5>\n\n<p>Sets the port the host is configured on.</p>\n\n<h5><code>priority</code></h5>\n\n<p>Sets the relative load-order for Apache httpd VirtualHost configuration files. Defaults to &#39;25&#39;.</p>\n\n<p>If nothing matches the priority, the first name-based vhost will be used. Likewise, passing a higher priority will cause the alphabetically first name-based vhost to be used if no other names match.</p>\n\n<p><em>Note</em>: You should not need to use this parameter. However, if you do use it, be aware that the <code>default_vhost</code> parameter for <code>apache::vhost</code> passes a priority of &#39;15&#39;.</p>\n\n<h5><code>proxy_dest</code></h5>\n\n<p>Specifies the destination address of a proxypass configuration. Defaults to &#39;undef&#39;.</p>\n\n<h5><code>proxy_pass</code></h5>\n\n<p>Specifies an array of path =&gt; uri for a proxypass configuration. Defaults to &#39;undef&#39;.</p>\n\n<p>Example:</p>\n\n<pre lang=\"puppet\"><code>$proxy_pass = [\n  { &#39;path&#39; =&gt; &#39;/a&#39;, &#39;url&#39; =&gt; &#39;http://backend-a/&#39; },\n  { &#39;path&#39; =&gt; &#39;/b&#39;, &#39;url&#39; =&gt; &#39;http://backend-b/&#39; },\n  { &#39;path&#39; =&gt; &#39;/c&#39;, &#39;url&#39; =&gt; &#39;http://backend-a/c&#39; }\n]\n\napache::vhost { &#39;site.name.fdqn&#39;:\n  …\n  proxy_pass       =&gt; $proxy_pass,\n}\n</code></pre>\n\n<h5><code>rack_base_uris</code></h5>\n\n<p>Specifies the resource identifiers for a rack configuration. The file paths specified will be listed as rack application roots for passenger/rack in the <code>_rack.erb</code> template. Defaults to &#39;undef&#39;.</p>\n\n<h5><code>redirect_dest</code></h5>\n\n<p>Specifies the address to redirect to. Defaults to &#39;undef&#39;.</p>\n\n<h5><code>redirect_source</code></h5>\n\n<p>Specifies the source items? that will redirect to the destination specified in <code>redirect_dest</code>. If more than one item for redirect is supplied, the source and destination must be the same length, and the items are order-dependent.</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;site.name.fdqn&#39;:\n      …\n      redirect_source =&gt; [&#39;/images&#39;,&#39;/downloads&#39;],\n      redirect_dest =&gt; [&#39;http://img.example.com/&#39;,&#39;http://downloads.example.com/&#39;],\n    }\n</code></pre>\n\n<h5><code>redirect_status</code></h5>\n\n<p>Specifies the status to append to the redirect. Defaults to &#39;undef&#39;.</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;site.name.fdqn&#39;:\n      …\n      redirect_status =&gt; [&#39;temp&#39;,&#39;permanent&#39;],\n    }\n</code></pre>\n\n<h5><code>request_headers</code></h5>\n\n<p>Specifies additional request headers.</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;site.name.fdqn&#39;:\n      …\n      request_headers =&gt; [\n        &#39;append MirrorID &quot;mirror 12&quot;&#39;,\n        &#39;unset MirrorID&#39;,\n      ],\n    }\n</code></pre>\n\n<h5><code>rewrite_base</code></h5>\n\n<p>Limits the <code>rewrite_rule</code> to the specified base URL. Defaults to &#39;undef&#39;.</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;site.name.fdqn&#39;:\n      …\n      rewrite_rule =&gt; &#39;^index\\.html$ welcome.html&#39;,\n      rewrite_base =&gt; &#39;/blog/&#39;,\n    }\n</code></pre>\n\n<p>The above example would limit the index.html -&gt; welcome.html rewrite to only something inside of <a href=\"http://example.com/blog/\">http://example.com/blog/</a>.</p>\n\n<h5><code>rewrite_cond</code></h5>\n\n<p>Rewrites a URL via <code>rewrite_rule</code> based on the truth of specified conditions. For example</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;site.name.fdqn&#39;:\n      …\n      rewrite_cond =&gt; &#39;%{HTTP_USER_AGENT} ^MSIE&#39;,\n    }\n</code></pre>\n\n<p>will rewrite URLs only if the visitor is using IE. Defaults to &#39;undef&#39;.</p>\n\n<p><em>Note</em>: At the moment, each vhost is limited to a single list of rewrite conditions. In the future, you will be able to specify multiple <code>rewrite_cond</code> and <code>rewrite_rules</code> per vhost, so that different conditions get different rewrites.</p>\n\n<h5><code>rewrite_rule</code></h5>\n\n<p>Creates URL rewrite rules. Defaults to &#39;undef&#39;. This parameter allows you to specify, for example, that anyone trying to access index.html will be served welcome.html.</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;site.name.fdqn&#39;:\n      …\n      rewrite_rule =&gt; &#39;^index\\.html$ welcome.html&#39;,\n    }\n</code></pre>\n\n<h5><code>scriptalias</code></h5>\n\n<p>Defines a directory of CGI scripts to be aliased to the path &#39;/cgi-bin&#39;</p>\n\n<h5><code>serveradmin</code></h5>\n\n<p>Specifies the email address Apache will display when it renders one of its error pages.</p>\n\n<h5><code>serveraliases</code></h5>\n\n<p>Sets the server aliases of the site.</p>\n\n<h5><code>servername</code></h5>\n\n<p>Sets the primary name of the virtual host.</p>\n\n<h5><code>setenv</code></h5>\n\n<p>Used by HTTPD to set environment variables for vhosts. Defaults to &#39;[]&#39;.</p>\n\n<h5><code>setenvif</code></h5>\n\n<p>Used by HTTPD to conditionally set environment variables for vhosts. Defaults to &#39;[]&#39;.</p>\n\n<h5><code>ssl</code></h5>\n\n<p>Enables SSL for the virtual host. SSL vhosts only respond to HTTPS queries. Valid values are &#39;true&#39; or &#39;false&#39;.</p>\n\n<h5><code>ssl_ca</code></h5>\n\n<p>Specifies the certificate authority.</p>\n\n<h5><code>ssl_cert</code></h5>\n\n<p>Specifies the SSL certification.</p>\n\n<h5><code>ssl_certs_dir</code></h5>\n\n<p>Specifies the location of the SSL certification directory. Defaults to <code>/etc/ssl/certs</code>.</p>\n\n<h5><code>ssl_chain</code></h5>\n\n<p>Specifies the SSL chain.</p>\n\n<h5><code>ssl_crl</code></h5>\n\n<p>Specifies the certificate revocation list to use.</p>\n\n<h5><code>ssl_crl_path</code></h5>\n\n<p>Specifies the location of the certificate revocation list.</p>\n\n<h5><code>ssl_key</code></h5>\n\n<p>Specifies the SSL key.</p>\n\n<h5><code>sslproxyengine</code></h5>\n\n<p>Specifies whether to use <code>SSLProxyEngine</code> or not. Defaults to <code>false</code>.</p>\n\n<h5><code>vhost_name</code></h5>\n\n<p>This parameter is for use with name-based virtual hosting. Defaults to &#39;*&#39;.</p>\n\n<h5><code>itk</code></h5>\n\n<p>Hash containing infos to configure itk as per the <a href=\"http://mpm-itk.sesse.net/\">ITK documentation</a>.</p>\n\n<p>Keys could be:</p>\n\n<ul>\n<li>user + group</li>\n<li>assignuseridexpr</li>\n<li>assigngroupidexpr</li>\n<li>maxclientvhost</li>\n<li>nice</li>\n<li>limituidrange (Linux 3.5.0 or newer)</li>\n<li>limitgidrange (Linux 3.5.0 or newer)</li>\n</ul>\n\n<p>Usage will typically look like:</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;sample.example.net&#39;:\n      docroot     =&gt; &#39;/path/to/directory&#39;,\n      itk =&gt; {\n        user  =&gt; &#39;someuser&#39;,\n        group =&gt; &#39;somegroup&#39;,\n      },\n    }\n</code></pre>\n\n<h3>Virtual Host Examples</h3>\n\n<p>The Apache module allows you to set up pretty much any configuration of virtual host you might desire. This section will address some common configurations. Please see the <a href=\"https://github.com/puppetlabs/puppetlabs-apache/tree/master/tests\">Tests section</a> for even more examples.</p>\n\n<p>Configure a vhost with a server administrator</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;third.example.com&#39;:\n      port        =&gt; &#39;80&#39;,\n      docroot     =&gt; &#39;/var/www/third&#39;,\n      serveradmin =&gt; &#39;admin@example.com&#39;,\n    }\n</code></pre>\n\n<hr>\n\n<p>Set up a vhost with aliased servers</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;sixth.example.com&#39;:\n      serveraliases =&gt; [\n        &#39;sixth.example.org&#39;,\n        &#39;sixth.example.net&#39;,\n      ],\n      port          =&gt; &#39;80&#39;,\n      docroot       =&gt; &#39;/var/www/fifth&#39;,\n    }\n</code></pre>\n\n<hr>\n\n<p>Configure a vhost with a cgi-bin</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;eleventh.example.com&#39;:\n      port        =&gt; &#39;80&#39;,\n      docroot     =&gt; &#39;/var/www/eleventh&#39;,\n      scriptalias =&gt; &#39;/usr/lib/cgi-bin&#39;,\n    }\n</code></pre>\n\n<hr>\n\n<p>Set up a vhost with a rack configuration</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;fifteenth.example.com&#39;:\n      port           =&gt; &#39;80&#39;,\n      docroot        =&gt; &#39;/var/www/fifteenth&#39;,\n      rack_base_uris =&gt; [&#39;/rackapp1&#39;, &#39;/rackapp2&#39;],\n    }\n</code></pre>\n\n<hr>\n\n<p>Set up a mix of SSL and non-SSL vhosts at the same domain</p>\n\n<pre lang=\"puppet\"><code>    #The non-ssl vhost\n    apache::vhost { &#39;first.example.com non-ssl&#39;:\n      servername =&gt; &#39;first.example.com&#39;,\n      port       =&gt; &#39;80&#39;,\n      docroot    =&gt; &#39;/var/www/first&#39;,\n    }\n\n    #The SSL vhost at the same domain\n    apache::vhost { &#39;first.example.com ssl&#39;:\n      servername =&gt; &#39;first.example.com&#39;,\n      port       =&gt; &#39;443&#39;,\n      docroot    =&gt; &#39;/var/www/first&#39;,\n      ssl        =&gt; true,\n    }\n</code></pre>\n\n<hr>\n\n<p>Configure a vhost to redirect non-SSL connections to SSL</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;sixteenth.example.com non-ssl&#39;:\n      servername      =&gt; &#39;sixteenth.example.com&#39;,\n      port            =&gt; &#39;80&#39;,\n      docroot         =&gt; &#39;/var/www/sixteenth&#39;,\n      redirect_status =&gt; &#39;permanent&#39;\n      redirect_dest   =&gt; &#39;https://sixteenth.example.com/&#39;\n    }\n    apache::vhost { &#39;sixteenth.example.com ssl&#39;:\n      servername =&gt; &#39;sixteenth.example.com&#39;,\n      port       =&gt; &#39;443&#39;,\n      docroot    =&gt; &#39;/var/www/sixteenth&#39;,\n      ssl        =&gt; true,\n    }\n</code></pre>\n\n<hr>\n\n<p>Set up IP-based vhosts on any listen port and have them respond to requests on specific IP addresses. In this example, we will set listening on ports 80 and 81. This is required because the example vhosts are not declared with a port parameter.</p>\n\n<pre lang=\"puppet\"><code>    apache::listen { &#39;80&#39;: }\n    apache::listen { &#39;81&#39;: }\n</code></pre>\n\n<p>Then we will set up the IP-based vhosts</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;first.example.com&#39;:\n      ip       =&gt; &#39;10.0.0.10&#39;,\n      docroot  =&gt; &#39;/var/www/first&#39;,\n      ip_based =&gt; true,\n    }\n    apache::vhost { &#39;second.example.com&#39;:\n      ip       =&gt; &#39;10.0.0.11&#39;,\n      docroot  =&gt; &#39;/var/www/second&#39;,\n      ip_based =&gt; true,\n    }\n</code></pre>\n\n<hr>\n\n<p>Configure a mix of name-based and IP-based vhosts. First, we will add two IP-based vhosts on 10.0.0.10, one SSL and one non-SSL</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;The first IP-based vhost, non-ssl&#39;:\n      servername =&gt; &#39;first.example.com&#39;,\n      ip         =&gt; &#39;10.0.0.10&#39;,\n      port       =&gt; &#39;80&#39;,\n      ip_based   =&gt; true,\n      docroot    =&gt; &#39;/var/www/first&#39;,\n    }\n    apache::vhost { &#39;The first IP-based vhost, ssl&#39;:\n      servername =&gt; &#39;first.example.com&#39;,\n      ip         =&gt; &#39;10.0.0.10&#39;,\n      port       =&gt; &#39;443&#39;,\n      ip_based   =&gt; true,\n      docroot    =&gt; &#39;/var/www/first-ssl&#39;,\n      ssl        =&gt; true,\n    }\n</code></pre>\n\n<p>Then, we will add two name-based vhosts listening on 10.0.0.20</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;second.example.com&#39;:\n      ip      =&gt; &#39;10.0.0.20&#39;,\n      port    =&gt; &#39;80&#39;,\n      docroot =&gt; &#39;/var/www/second&#39;,\n    }\n    apache::vhost { &#39;third.example.com&#39;:\n      ip      =&gt; &#39;10.0.0.20&#39;,\n      port    =&gt; &#39;80&#39;,\n      docroot =&gt; &#39;/var/www/third&#39;,\n    }\n</code></pre>\n\n<p>If you want to add two name-based vhosts so that they will answer on either 10.0.0.10 or 10.0.0.20, you <strong>MUST</strong> declare <code>add_listen =&gt; &#39;false&#39;</code> to disable the otherwise automatic &#39;Listen 80&#39;, as it will conflict with the preceding IP-based vhosts.</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;fourth.example.com&#39;:\n      port       =&gt; &#39;80&#39;,\n      docroot    =&gt; &#39;/var/www/fourth&#39;,\n      add_listen =&gt; false,\n    }\n    apache::vhost { &#39;fifth.example.com&#39;:\n      port       =&gt; &#39;80&#39;,\n      docroot    =&gt; &#39;/var/www/fifth&#39;,\n      add_listen =&gt; false,\n    }\n</code></pre>\n\n<h2>Implementation</h2>\n\n<h3>Classes and Defined Types</h3>\n\n<h4>Class: <code>apache::dev</code></h4>\n\n<p>Installs Apache development libraries</p>\n\n<pre lang=\"puppet\"><code>    class { &#39;apache::dev&#39;: }\n</code></pre>\n\n<h4>Defined Type: <code>apache::listen</code></h4>\n\n<p>Controls which ports Apache binds to for listening based on the title:</p>\n\n<pre lang=\"puppet\"><code>    apache::listen { &#39;80&#39;: }\n    apache::listen { &#39;443&#39;: }\n</code></pre>\n\n<p>Declaring this defined type will add all <code>Listen</code> directives to the <code>ports.conf</code> file in the Apache httpd configuration directory.  <code>apache::listen</code> titles should always take the form of: <code>&lt;port&gt;</code>, <code>&lt;ipv4&gt;:&lt;port&gt;</code>, or <code>[&lt;ipv6&gt;]:&lt;port&gt;</code></p>\n\n<p>Apache httpd requires that <code>Listen</code> directives must be added for every port. The <code>apache::vhost</code> defined type will automatically add <code>Listen</code> directives unless the <code>apache::vhost</code> is passed <code>add_listen =&gt; false</code>.</p>\n\n<h4>Defined Type: <code>apache::namevirtualhost</code></h4>\n\n<p>Enables named-based hosting of a virtual host</p>\n\n<pre lang=\"puppet\"><code>    class { &#39;apache::namevirtualhost`: }\n</code></pre>\n\n<p>Declaring this defined type will add all <code>NameVirtualHost</code> directives to the <code>ports.conf</code> file in the Apache https configuration directory. <code>apache::namevirtualhost</code> titles should always take the form of: <code>*</code>, <code>*:&lt;port&gt;</code>, <code>_default_:&lt;port&gt;</code>, <code>&lt;ip&gt;</code>, or <code>&lt;ip&gt;:&lt;port&gt;</code>.</p>\n\n<h4>Defined Type: <code>apache::balancermember</code></h4>\n\n<p>Define members of a proxy_balancer set (mod_proxy_balancer). Very useful when using exported resources.</p>\n\n<p>On every app server you can export a balancermember like this:</p>\n\n<pre lang=\"puppet\"><code>      @@apache::balancermember { &quot;${::fqdn}-puppet00&quot;:\n        balancer_cluster =&gt; &#39;puppet00&#39;,\n        url              =&gt; &quot;ajp://${::fqdn}:8009&quot;\n        options          =&gt; [&#39;ping=5&#39;, &#39;disablereuse=on&#39;, &#39;retry=5&#39;, &#39;ttl=120&#39;],\n      }\n</code></pre>\n\n<p>And on the proxy itself you create the balancer cluster using the defined type apache::balancer:</p>\n\n<pre lang=\"puppet\"><code>      apache::balancer { &#39;puppet00&#39;: }\n</code></pre>\n\n<p>If you need to use ProxySet in the balncer config you can do as so:</p>\n\n<pre lang=\"puppet\"><code>      apache::balancer { &#39;puppet01&#39;:\n        proxy_set =&gt; {&#39;stickysession&#39; =&gt; &#39;JSESSIONID&#39;},\n      }\n</code></pre>\n\n<h3>Templates</h3>\n\n<p>The Apache module relies heavily on templates to enable the <code>vhost</code> and <code>apache::mod</code> defined types. These templates are built based on Facter facts around your operating system. Unless explicitly called out, most templates are not meant for configuration.</p>\n\n<h2>Limitations</h2>\n\n<p>This has been tested on Ubuntu Precise, Debian Wheezy, and CentOS 5.8.</p>\n\n<h2>Development</h2>\n\n<h3>Overview</h3>\n\n<p>Puppet Labs modules on the Puppet Forge are open projects, and community contributions are essential for keeping them great. We can’t access the huge number of platforms and myriad of hardware, software, and deployment configurations that Puppet is intended to serve.</p>\n\n<p>We want to keep it as easy as possible to contribute changes so that our modules work in your environment. There are a few guidelines that we need contributors to follow so that we can have a chance of keeping on top of things.</p>\n\n<p>You can read the complete module contribution guide <a href=\"http://projects.puppetlabs.com/projects/module-site/wiki/Module_contributing\">on the Puppet Labs wiki.</a></p>\n\n<h3>Running tests</h3>\n\n<p>This project contains tests for both <a href=\"http://rspec-puppet.com/\">rspec-puppet</a> and <a href=\"https://github.com/puppetlabs/rspec-system\">rspec-system</a> to verify functionality. For in-depth information please see their respective documentation.</p>\n\n<p>Quickstart:</p>\n\n<pre><code>gem install bundler\nbundle install\nbundle exec rake spec\nbundle exec rake spec:system\n</code></pre>\n\n<h2>Copyright and License</h2>\n\n<p>Copyright (C) 2012 <a href=\"https://www.puppetlabs.com/\">Puppet Labs</a> Inc</p>\n\n<p>Puppet Labs can be contacted at: <a href=\"mailto:info@puppetlabs.com\">info@puppetlabs.com</a></p>\n\n<p>Licensed under the Apache License, Version 2.0 (the &quot;License&quot;);\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at</p>\n\n<p><a href=\"http://www.apache.org/licenses/LICENSE-2.0\">http://www.apache.org/licenses/LICENSE-2.0</a></p>\n\n<p>Unless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an &quot;AS IS&quot; BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.</p>\n</section>",
ruby-puppet-forge-2.3.2/spec/fixtures/v3/releases__module=puppetlabs-apache.json-458-      "changelog": null,
##############################################
ruby-puppet-forge-2.3.2/spec/fixtures/v3/releases__module=puppetlabs-apache.json-708-      "downloads": 6639,
ruby-puppet-forge-2.3.2/spec/fixtures/v3/releases__module=puppetlabs-apache.json:709:      "readme": "<section class=\"markdown\"><h1>apache</h1>\n\n<h4>Table of Contents</h4>\n\n<ol>\n<li><a href=\"#overview\">Overview - What is the Apache module?</a></li>\n<li><a href=\"#module-description\">Module Description - What does the module do?</a></li>\n<li><a href=\"#setup\">Setup - The basics of getting started with Apache</a>\n\n<ul>\n<li><a href=\"#beginning-with-apache\">Beginning with Apache - Installation</a></li>\n<li><a href=\"#configure-a-virtual-host\">Configure a Virtual Host - Basic options for getting started</a></li>\n</ul></li>\n<li><a href=\"#usage\">Usage - The classes, defined types, and their parameters available for configuration</a>\n\n<ul>\n<li><a href=\"#classes-and-defined-types\">Classes and Defined Types</a>\n\n<ul>\n<li><a href=\"#class-apache\">Class: apache</a></li>\n<li><a href=\"#classes-apachemodname\">Classes: apache::mod::*</a></li>\n<li><a href=\"#defined-type-apachevhost\">Defined Type: apache::vhost</a></li>\n</ul></li>\n<li><a href=\"#virtual-host-examples\">Virtual Host Examples - Demonstrations of some configuration options</a></li>\n</ul></li>\n<li><a href=\"#implementation\">Implementation - An under-the-hood peek at what the module is doing</a>\n\n<ul>\n<li><a href=\"#classes-and-defined-types\">Classes and Defined Types</a></li>\n<li><a href=\"#templates\">Templates</a></li>\n</ul></li>\n<li><a href=\"#limitations\">Limitations - OS compatibility, etc.</a></li>\n<li><a href=\"#development\">Development - Guide for contributing to the module</a></li>\n<li><a href=\"#release-notes\">Release Notes - Notes on the most recent updates to the module</a></li>\n</ol>\n\n<h2>Overview</h2>\n\n<p>The Apache module allows you to set up virtual hosts and manage web services with minimal effort.</p>\n\n<h2>Module Description</h2>\n\n<p>Apache is a widely-used web server, and this module provides a simplified way of creating configurations to manage your infrastructure. This includes the ability to configure and manage a range of different virtual host setups, as well as a streamlined way to install and configure Apache modules.</p>\n\n<h2>Setup</h2>\n\n<p><strong>What Apache affects:</strong></p>\n\n<ul>\n<li>configuration files and directories (created and written to)\n\n<ul>\n<li><strong>NOTE</strong>: Configurations that are <em>not</em> managed by Puppet will be purged.</li>\n</ul></li>\n<li>package/service/configuration files for Apache</li>\n<li>Apache modules</li>\n<li>virtual hosts</li>\n<li>listened-to ports</li>\n</ul>\n\n<h3>Beginning with Apache</h3>\n\n<p>To install Apache with the default parameters</p>\n\n<pre><code>class { &#39;apache&#39;:  }\n</code></pre>\n\n<p>The defaults are determined by your operating system (e.g. Debian systems have one set of defaults, RedHat systems have another). These defaults will work well in a testing environment, but are not suggested for production. To establish customized parameters</p>\n\n<pre><code>class { &#39;apache&#39;:\n  default_mods =&gt; false,\n  …\n}\n</code></pre>\n\n<h3>Configure a virtual host</h3>\n\n<p>Declaring the <code>apache</code> class will create a default virtual host by setting up a vhost on port 80, listening on all interfaces and serving <code>$apache::docroot</code>.</p>\n\n<pre><code>class { &#39;apache&#39;: }\n</code></pre>\n\n<p>To configure a very basic, name-based virtual host</p>\n\n<pre><code>apache::vhost { &#39;first.example.com&#39;:\n  port    =&gt; &#39;80&#39;,\n  docroot =&gt; &#39;/var/www/first&#39;,\n}\n</code></pre>\n\n<p><em>Note:</em> The default priority is 15. If nothing matches this priority, the alphabetically first name-based vhost will be used. This is also true if you pass a higher priority and no names match anything else.</p>\n\n<p>A slightly more complicated example, which moves the docroot owner/group</p>\n\n<pre><code>apache::vhost { &#39;second.example.com&#39;:\n  port          =&gt; &#39;80&#39;,\n  docroot       =&gt; &#39;/var/www/second&#39;,\n  docroot_owner =&gt; &#39;third&#39;,\n  docroot_group =&gt; &#39;third&#39;,\n}\n</code></pre>\n\n<p>To set up a virtual host with SSL and default SSL certificates</p>\n\n<pre><code>apache::vhost { &#39;ssl.example.com&#39;:\n  port    =&gt; &#39;443&#39;,\n  docroot =&gt; &#39;/var/www/ssl&#39;,\n  ssl     =&gt; true,\n}\n</code></pre>\n\n<p>To set up a virtual host with SSL and specific SSL certificates</p>\n\n<pre><code>apache::vhost { &#39;fourth.example.com&#39;:\n  port     =&gt; &#39;443&#39;,\n  docroot  =&gt; &#39;/var/www/fourth&#39;,\n  ssl      =&gt; true,\n  ssl_cert =&gt; &#39;/etc/ssl/fourth.example.com.cert&#39;,\n  ssl_key  =&gt; &#39;/etc/ssl/fourth.example.com.key&#39;,\n}\n</code></pre>\n\n<p>To set up a virtual host with wildcard alias for subdomain mapped to same named directory \n<code>http://examle.com.loc =&gt; /var/www/example.com</code></p>\n\n<pre><code>apache::vhost { &#39;subdomain.loc&#39;:\n  vhost_name =&gt; &#39;*&#39;,\n  port       =&gt; &#39;80&#39;,\n  virtual_docroot&#39; =&gt; &#39;/var/www/%-2+&#39;,\n  docroot          =&gt; &#39;/var/www&#39;,\n  serveraliases    =&gt; [&#39;*.loc&#39;,],\n}\n</code></pre>\n\n<p>To see a list of all virtual host parameters, <a href=\"#defined-type-apachevhost\">please go here</a>. To see an extensive list of virtual host examples <a href=\"#virtual-host-examples\">please look here</a>.</p>\n\n<h2>Usage</h2>\n\n<h3>Classes and Defined Types</h3>\n\n<p>This module modifies Apache configuration files and directories and will purge any configuration not managed by Puppet. Configuration of Apache should be managed by Puppet, as non-puppet configuration files can cause unexpected failures.</p>\n\n<p>It is possible to temporarily disable full Puppet management by setting the <code>purge_configs</code> parameter within the base <code>apache</code> class to &#39;false&#39;. This option should only be used as a temporary means of saving and relocating customized configurations.</p>\n\n<h4>Class: <code>apache</code></h4>\n\n<p>The Apache module&#39;s primary class, <code>apache</code>, guides the basic setup of Apache on your system.</p>\n\n<p>You may establish a default vhost in this class, the <code>vhost</code> class, or both. You may add additional vhost configurations for specific virtual hosts using a declaration of the <code>vhost</code> type.</p>\n\n<p><strong>Parameters within <code>apache</code>:</strong></p>\n\n<h5><code>default_mods</code></h5>\n\n<p>Sets up Apache with default settings based on your OS. Defaults to &#39;true&#39;, set to &#39;false&#39; for customized configuration.</p>\n\n<h5><code>default_vhost</code></h5>\n\n<p>Sets up a default virtual host. Defaults to &#39;true&#39;, set to &#39;false&#39; to set up <a href=\"#configure-a-virtual-host\">customized virtual hosts</a>.</p>\n\n<h5><code>default_ssl_vhost</code></h5>\n\n<p>Sets up a default SSL virtual host. Defaults to &#39;false&#39;.</p>\n\n<pre><code>apache::vhost { &#39;default-ssl&#39;:\n  port            =&gt; 443,\n  ssl             =&gt; true,\n  docroot         =&gt; $docroot,\n  scriptalias     =&gt; $scriptalias,\n  serveradmin     =&gt; $serveradmin,\n  access_log_file =&gt; &quot;ssl_${access_log_file}&quot;,\n  }\n</code></pre>\n\n<p>SSL vhosts only respond to HTTPS queries.</p>\n\n<h5><code>default_ssl_cert</code></h5>\n\n<p>The default SSL certification, which is automatically set based on your operating system  (<code>/etc/pki/tls/certs/localhost.crt</code> for RedHat, <code>/etc/ssl/certs/ssl-cert-snakeoil.pem</code> for Debian). This default will work out of the box but must be updated with your specific certificate information before being used in production.</p>\n\n<h5><code>default_ssl_key</code></h5>\n\n<p>The default SSL key, which is automatically set based on your operating system (<code>/etc/pki/tls/private/localhost.key</code> for RedHat, <code>/etc/ssl/private/ssl-cert-snakeoil.key</code> for Debian). This default will work out of the box but must be updated with your specific certificate information before being used in production.</p>\n\n<h5><code>default_ssl_chain</code></h5>\n\n<p>The default SSL chain, which is automatically set to &#39;undef&#39;. This default will work out of the box but must be updated with your specific certificate information before being used in production.</p>\n\n<h5><code>default_ssl_ca</code></h5>\n\n<p>The default certificate authority, which is automatically set to &#39;undef&#39;. This default will work out of the box but must be updated with your specific certificate information before being used in production.</p>\n\n<h5><code>default_ssl_crl_path</code></h5>\n\n<p>The default certificate revocation list path, which is automatically set to &#39;undef&#39;. This default will work out of the box but must be updated with your specific certificate information before being used in production.</p>\n\n<h5><code>default_ssl_crl</code></h5>\n\n<p>The default certificate revocation list to use, which is automatically set to &#39;undef&#39;. This default will work out of the box but must be updated with your specific certificate information before being used in production.</p>\n\n<h5><code>service_enable</code></h5>\n\n<p>Determines whether the &#39;httpd&#39; service is enabled when the machine is booted, meaning Puppet will check the service status to start/stop it. Defaults to &#39;true&#39;, meaning the service is enabled/running.</p>\n\n<h5><code>serveradmin</code></h5>\n\n<p>Sets the server administrator. Defaults to &#39;root@localhost&#39;.</p>\n\n<h5><code>servername</code></h5>\n\n<p>Sets the servername. Defaults to fqdn provided by facter.</p>\n\n<h5><code>sendfile</code></h5>\n\n<p>Makes Apache use the Linux kernel &#39;sendfile&#39; to serve static files. Defaults to &#39;false&#39;.</p>\n\n<h5><code>error_documents</code></h5>\n\n<p>Enables custom error documents. Defaults to &#39;false&#39;.</p>\n\n<h5><code>confd_dir</code></h5>\n\n<p>Changes the location of the configuration directory your custom configuration files are placed in. Default is based on your OS.</p>\n\n<h5><code>vhost_dir</code></h5>\n\n<p>Changes the location of the configuration directory your virtual host configuration files are placed in. Default is based on your OS.</p>\n\n<h5><code>mod_dir</code></h5>\n\n<p>Changes the location of the configuration directory your Apache modules configuration files are placed in. Default is based on your OS.</p>\n\n<h5><code>mpm_module</code></h5>\n\n<p>Configures which mpm module is loaded and configured for the httpd process by the <code>apache::mod::prefork</code> and <code>apache::mod::worker</code> classes. Must be set to <code>false</code> to explicitly declare <code>apache::mod::worker</code> or <code>apache::mod::prefork</code> classes with parameters. Valid values are <code>worker</code>, <code>prefork</code>, or the boolean <code>false</code>. Defaults to <code>prefork</code> on RedHat and <code>worker</code> on Debian.</p>\n\n<h5><code>conf_template</code></h5>\n\n<p>Setting this allows you to override the template used for the main apache configuration file.  This is a potentially risky thing to do as this module has been built around the concept of a minimal configuration file with most of the configuration coming in the form of conf.d/ entries.  Defaults to &#39;apache/httpd.conf.erb&#39;.</p>\n\n<h4>Class: <code>apache::default_mods</code></h4>\n\n<p>Installs default Apache modules based on what OS you are running</p>\n\n<pre><code>class { &#39;apache::default_mods&#39;: }\n</code></pre>\n\n<h4>Defined Type: <code>apache::mod</code></h4>\n\n<p>Used to enable arbitrary Apache httpd modules for which there is no specific <code>apache::mod::[name]</code> class. The <code>apache::mod</code> defined type will also install the required packages to enable the module, if any.</p>\n\n<pre><code>apache::mod { &#39;rewrite&#39;: }\napache::mod { &#39;ldap&#39;: }\n</code></pre>\n\n<h4>Classes: <code>apache::mod::[name]</code></h4>\n\n<p>There are many <code>apache::mod::[name]</code> classes within this module that can be declared using <code>include</code>:</p>\n\n<ul>\n<li><code>alias</code></li>\n<li><code>auth_basic</code></li>\n<li><code>auth_kerb</code></li>\n<li><code>autoindex</code></li>\n<li><code>cache</code></li>\n<li><code>cgi</code></li>\n<li><code>cgid</code></li>\n<li><code>dav</code></li>\n<li><code>dav_fs</code></li>\n<li><code>deflate</code></li>\n<li><code>dir</code>*</li>\n<li><code>disk_cache</code></li>\n<li><code>fcgid</code></li>\n<li><code>info</code></li>\n<li><code>ldap</code></li>\n<li><code>mime</code></li>\n<li><code>mime_magic</code></li>\n<li><code>mpm_event</code></li>\n<li><code>negotiation</code></li>\n<li><code>passenger</code>*</li>\n<li><code>perl</code></li>\n<li><code>php</code> (requires <a href=\"#mpm_module\"><code>mpm_module</code></a> set to <code>prefork</code>)</li>\n<li><code>prefork</code>*</li>\n<li><code>proxy</code>*</li>\n<li><code>proxy_html</code></li>\n<li><code>proxy_http</code></li>\n<li><code>python</code></li>\n<li><code>reqtimeout</code></li>\n<li><code>setenvif</code></li>\n<li><code>ssl</code>* (see <a href=\"#class-apachemodssl\">apache::mod::ssl</a> below)</li>\n<li><code>status</code></li>\n<li><code>userdir</code>*</li>\n<li><code>worker</code>*</li>\n<li><code>wsgi</code></li>\n<li><code>xsendfile</code></li>\n</ul>\n\n<p>Modules noted with a * indicate that the module has settings and, thus, a template that includes parameters. These parameters control the module&#39;s configuration. Most of the time, these parameters will not require any configuration or attention.</p>\n\n<p>The modules mentioned above, and other Apache modules that have templates, will cause template files to be dropped along with the mod install, and the module will not work without the template. Any mod without a template will install package but drop no files.</p>\n\n<h4>Class: <code>apache::mod::ssl</code></h4>\n\n<p>Installs Apache SSL capabilities and utilizes <code>ssl.conf.erb</code> template</p>\n\n<pre><code>class { &#39;apache::mod::ssl&#39;: }\n</code></pre>\n\n<p>To <em>use</em> SSL with a virtual host, you must either set the<code>default_ssl_vhost</code> parameter in <code>apache</code> to &#39;true&#39; or set the <code>ssl</code> parameter in <code>apache::vhost</code> to &#39;true&#39;.</p>\n\n<h4>Defined Type: <code>apache::vhost</code></h4>\n\n<p>The Apache module allows a lot of flexibility in the set up and configuration of virtual hosts. This flexibility is due, in part, to <code>vhost</code>&#39;s setup as a defined resource type, which allows it to be evaluated multiple times with different parameters.</p>\n\n<p>The <code>vhost</code> defined type allows you to have specialized configurations for virtual hosts that have requirements outside of the defaults. You can set up a default vhost within the base <code>apache</code> class as well as set a customized vhost setup as default. Your customized vhost (priority 10) will be privileged over the base class vhost (15).</p>\n\n<p>If you have a series of specific configurations and do not want a base <code>apache</code> class default vhost, make sure to set the base class default host to &#39;false&#39;.</p>\n\n<pre><code>class { &#39;apache&#39;:\n  default_vhost =&gt; false,\n}\n</code></pre>\n\n<p><strong>Parameters within <code>apache::vhost</code>:</strong></p>\n\n<p>The default values for each parameter will vary based on operating system and type of virtual host.</p>\n\n<h5><code>access_log</code></h5>\n\n<p>Specifies whether <code>*_access.log</code> directives should be configured. Valid values are &#39;true&#39; and &#39;false&#39;. Defaults to &#39;true&#39;.</p>\n\n<h5><code>access_log_file</code></h5>\n\n<p>Points to the <code>*_access.log</code> file. Defaults to &#39;undef&#39;.</p>\n\n<h5><code>access_log_pipe</code></h5>\n\n<p>Specifies a pipe to send access log messages to. Defaults to &#39;undef&#39;.</p>\n\n<h5><code>access_log_format</code></h5>\n\n<p>Specifies either a LogFormat nickname or custom format string for access log. Defaults to &#39;undef&#39;.</p>\n\n<h5><code>add_listen</code></h5>\n\n<p>Determines whether the vhost creates a listen statement. The default value is &#39;true&#39;.</p>\n\n<p>Setting <code>add_listen</code> to &#39;false&#39; stops the vhost from creating a listen statement, and this is important when you combine vhosts that are not passed an <code>ip</code> parameter with vhosts that <em>are</em> passed the <code>ip</code> parameter.</p>\n\n<h5><code>aliases</code></h5>\n\n<p>Passes a list of hashes to the vhost to create <code>Alias</code> statements as per the <a href=\"http://httpd.apache.org/docs/current/mod/mod_alias.html\"><code>mod_alias</code> documentation</a>. Each hash is expected to be of the form:</p>\n\n<pre lang=\"ruby\"><code>aliases =&gt; [ { alias =&gt; &#39;/alias&#39;, path =&gt; &#39;/path/to/directory&#39; } ],\n</code></pre>\n\n<p>For <code>Alias</code> to work, each will need a corresponding <code>&lt;Directory /path/to/directory&gt;</code> or <code>&lt;Location /path/to/directory&gt;</code> block.</p>\n\n<p><strong>Note:</strong> If <code>apache::mod::passenger</code> is loaded and <code>PassengerHighPerformance true</code> is set, then <code>Alias</code> may have issues honouring the <code>PassengerEnabled off</code> statement. See <a href=\"http://www.conandalton.net/2010/06/passengerenabled-off-not-working.html\">this article</a> for details.</p>\n\n<h5><code>block</code></h5>\n\n<p>Specifies the list of things Apache will block access to. The default is an empty set, &#39;[]&#39;. Currently, the only option is &#39;scm&#39;, which blocks web access to .svn, .git and .bzr directories. To add to this, please see the <a href=\"#development\">Development</a> section.</p>\n\n<h5><code>custom_fragment</code></h5>\n\n<p>Pass a string of custom configuration directives to be placed at the end of the vhost configuration.</p>\n\n<h5><code>default_vhost</code></h5>\n\n<p>Sets a given <code>apache::vhost</code> as the default to serve requests that do not match any other <code>apache::vhost</code> definitions. The default value is &#39;false&#39;.</p>\n\n<h5><code>directories</code></h5>\n\n<p>Passes a list of hashes to the vhost to create <code>&lt;Directory /path/to/directory&gt;...&lt;/Directory&gt;</code> directive blocks as per the <a href=\"http://httpd.apache.org/docs/2.2/mod/core.html#directory\">Apache core documentation</a>.  The <code>path</code> key is required in these hashes.  Usage will typically look like:</p>\n\n<pre><code>apache::vhost { &#39;sample.example.net&#39;:\n  docroot     =&gt; &#39;/path/to/directory&#39;,\n  directories =&gt; [\n    { path =&gt; &#39;/path/to/directory&#39;, &lt;directive&gt; =&gt; &lt;value&gt; },\n    { path =&gt; &#39;/path/to/another/directory&#39;, &lt;directive&gt; =&gt; &lt;value&gt; },\n  ],\n}\n</code></pre>\n\n<p><em>Note:</em> At least one directory should match <code>docroot</code> parameter, once you start declaring directories <code>apache::vhost</code> assumes that all required <code>&lt;Directory&gt;</code> blocks will be declared.</p>\n\n<p><em>Note:</em> If not defined a single default <code>&lt;Directory&gt;</code> block will be created that matches the <code>docroot</code> parameter.</p>\n\n<p>The directives will be embedded within the <code>Directory</code> directive block, missing directives should be undefined and not be added, resulting in their default vaules in Apache. Currently this is the list of supported directives:</p>\n\n<h6><code>addhandlers</code></h6>\n\n<p>Sets <code>AddHandler</code> directives as per the <a href=\"http://httpd.apache.org/docs/2.2/mod/mod_mime.html#addhandler\">Apache Core documentation</a>. Accepts a list of hashes of the form <code>{ handler =&gt; &#39;handler-name&#39;, extensions =&gt; [&#39;extension&#39;]}</code>. Note that <code>extensions</code> is a list of extenstions being handled by the handler.\nAn example: </p>\n\n<pre><code>apache::vhost { &#39;sample.example.net&#39;:\n  docroot     =&gt; &#39;/path/to/directory&#39;,\n  directories =&gt; [ { path =&gt; &#39;/path/to/directory&#39;,\n    addhandlers =&gt; [ { handler =&gt; &#39;cgi-script&#39;, extensions =&gt; [&#39;.cgi&#39;]} ],\n  } ],\n}\n</code></pre>\n\n<h6><code>allow</code></h6>\n\n<p>Sets an <code>Allow</code> directive as per the <a href=\"http://httpd.apache.org/docs/2.2/mod/mod_authz_host.html#allow\">Apache Core documentation</a>. An example:</p>\n\n<pre><code>apache::vhost { &#39;sample.example.net&#39;:\n  docroot     =&gt; &#39;/path/to/directory&#39;,\n  directories =&gt; [ { path =&gt; &#39;/path/to/directory&#39;, allow =&gt; &#39;from example.org&#39; } ],\n}\n</code></pre>\n\n<h6><code>allow_override</code></h6>\n\n<p>Sets the usage of <code>.htaccess</code> files as per the <a href=\"http://httpd.apache.org/docs/2.2/mod/core.html#allowoverride\">Apache core documentation</a>. Should accept in the form of a list or a string. An example:</p>\n\n<pre><code>apache::vhost { &#39;sample.example.net&#39;:\n  docroot     =&gt; &#39;/path/to/directory&#39;,\n  directories =&gt; [ { path =&gt; &#39;/path/to/directory&#39;, allow_override =&gt; [&#39;AuthConfig&#39;, &#39;Indexes&#39;] } ],\n}\n</code></pre>\n\n<h6><code>deny</code></h6>\n\n<p>Sets an <code>Deny</code> directive as per the <a href=\"http://httpd.apache.org/docs/2.2/mod/mod_authz_host.html#deny\">Apache Core documentation</a>. An example:</p>\n\n<pre><code>apache::vhost { &#39;sample.example.net&#39;:\n  docroot     =&gt; &#39;/path/to/directory&#39;,\n  directories =&gt; [ { path =&gt; &#39;/path/to/directory&#39;, deny =&gt; &#39;from example.org&#39; } ],\n}\n</code></pre>\n\n<h6><code>options</code></h6>\n\n<p>Lists the options for the given <code>&lt;Directory&gt;</code> block</p>\n\n<pre><code>apache::vhost { &#39;sample.example.net&#39;:\n  docroot     =&gt; &#39;/path/to/directory&#39;,\n  directories =&gt; [ { path =&gt; &#39;/path/to/directory&#39;, options =&gt; [&#39;Indexes&#39;,&#39;FollowSymLinks&#39;,&#39;MultiViews&#39;] }],\n}\n</code></pre>\n\n<h6><code>order</code></h6>\n\n<p>Sets the order of processing <code>Allow</code> and <code>Deny</code> statements as per <a href=\"http://httpd.apache.org/docs/2.2/mod/mod_authz_host.html#order\">Apache core documentation</a>. An example:</p>\n\n<pre><code>apache::vhost { &#39;sample.example.net&#39;:\n  docroot     =&gt; &#39;/path/to/directory&#39;,\n  directories =&gt; [ { path =&gt; &#39;/path/to/directory&#39;, order =&gt; &#39;Allow, Deny&#39; } ],\n}\n</code></pre>\n\n<h6><code>passenger_enabled</code></h6>\n\n<p>Sets the value for the <code>PassengerEnabled</code> directory to <code>on</code> or <code>off</code> as per the <a href=\"http://www.modrails.com/documentation/Users%20guide%20Apache.html#PassengerEnabled\">Passenger documentation</a>.</p>\n\n<pre><code>apache::vhost { &#39;sample.example.net&#39;:\n  docroot     =&gt; &#39;/path/to/directory&#39;,\n  directories =&gt; [ { path =&gt; &#39;/path/to/directory&#39;, passenger_enabled =&gt; &#39;off&#39; } ],\n}\n</code></pre>\n\n<p><strong>Note:</strong> This directive requires <code>apache::mod::passenger</code> to be active, Apache may not start with an unrecognised directive without it.</p>\n\n<p><strong>Note:</strong> Be aware that there is an <a href=\"http://www.conandalton.net/2010/06/passengerenabled-off-not-working.html\">issue</a> using the <code>PassengerEnabled</code> directive with the <code>PassengerHighPerformance</code> directive.</p>\n\n<h5><code>docroot</code></h5>\n\n<p>Provides the DocumentRoot directive, identifying the directory Apache serves files from.</p>\n\n<h5><code>docroot_group</code></h5>\n\n<p>Sets group access to the docroot directory. Defaults to &#39;root&#39;.</p>\n\n<h5><code>docroot_owner</code></h5>\n\n<p>Sets individual user access to the docroot directory. Defaults to &#39;root&#39;.</p>\n\n<h5><code>error_log</code></h5>\n\n<p>Specifies whether <code>*_error.log</code> directives should be configured. Defaults to &#39;true&#39;.</p>\n\n<h5><code>error_log_file</code></h5>\n\n<p>Points to the <code>*_error.log</code> file. Defaults to &#39;undef&#39;.</p>\n\n<h5><code>error_log_pipe</code></h5>\n\n<p>Specifies a pipe to send error log messages to. Defaults to &#39;undef&#39;.</p>\n\n<h5><code>ensure</code></h5>\n\n<p>Specifies if the vhost file is present or absent.</p>\n\n<h5><code>ip</code></h5>\n\n<p>The IP address the vhost listens on. Defaults to &#39;undef&#39;.</p>\n\n<h5><code>ip_based</code></h5>\n\n<p>Enables an IP-based vhost. This parameter inhibits the creation of a NameVirtualHost directive, since those are used to funnel requests to name-based vhosts. Defaults to &#39;false&#39;.</p>\n\n<h5><code>logroot</code></h5>\n\n<p>Specifies the location of the virtual host&#39;s logfiles. Defaults to <code>/var/log/&lt;apache log location&gt;/</code>.</p>\n\n<h5><code>no_proxy_uris</code></h5>\n\n<p>Specifies URLs you do not want to proxy. This parameter is meant to be used in combination with <code>proxy_dest</code>.</p>\n\n<h5><code>options</code></h5>\n\n<p>Lists the options for the given virtual host</p>\n\n<pre><code>apache::vhost { &#39;site.name.fdqn&#39;:\n  …\n  options =&gt; [&#39;Indexes&#39;,&#39;FollowSymLinks&#39;,&#39;MultiViews&#39;],\n}\n</code></pre>\n\n<h5><code>override</code></h5>\n\n<p>Sets the overrides for the given virtual host. Accepts an array of AllowOverride arguments.</p>\n\n<h5><code>port</code></h5>\n\n<p>Sets the port the host is configured on.</p>\n\n<h5><code>priority</code></h5>\n\n<p>Sets the relative load-order for Apache httpd VirtualHost configuration files. Defaults to &#39;25&#39;.</p>\n\n<p>If nothing matches the priority, the first name-based vhost will be used. Likewise, passing a higher priority will cause the alphabetically first name-based vhost to be used if no other names match.</p>\n\n<p><em>Note</em>: You should not need to use this parameter. However, if you do use it, be aware that the <code>default_vhost</code> parameter for <code>apache::vhost</code> passes a priority of &#39;15&#39;.</p>\n\n<h5><code>proxy_dest</code></h5>\n\n<p>Specifies the destination address of a proxypass configuration. Defaults to &#39;undef&#39;.</p>\n\n<h5><code>proxy_pass</code></h5>\n\n<p>Specifies an array of path =&gt; uri for a proxypass configuration. Defaults to &#39;undef&#39;.</p>\n\n<p>Example:\n$proxy_pass = [\n  { &#39;path&#39; =&gt; &#39;/a&#39;, &#39;url&#39; =&gt; &#39;http://backend-a/&#39; },\n  { &#39;path&#39; =&gt; &#39;/b&#39;, &#39;url&#39; =&gt; &#39;http://backend-b/&#39; },\n  { &#39;path&#39; =&gt; &#39;/c&#39;, &#39;url&#39; =&gt; &#39;http://backend-a/c&#39; },\n]</p>\n\n<p>apache::vhost { &#39;site.name.fdqn&#39;:\n  …\n  proxy_pass       =&gt; $proxy_pass,\n}</p>\n\n<h5><code>rack_base_uris</code></h5>\n\n<p>Specifies the resource identifiers for a rack configuration. The file paths specified will be listed as rack application roots for passenger/rack in the <code>_rack.erb</code> template. Defaults to &#39;undef&#39;.</p>\n\n<h5><code>redirect_dest</code></h5>\n\n<p>Specifies the address to redirect to. Defaults to &#39;undef&#39;.</p>\n\n<h5><code>redirect_source</code></h5>\n\n<p>Specifies the source items? that will redirect to the destination specified in <code>redirect_dest</code>. If more than one item for redirect is supplied, the source and destination must be the same length, and the items are order-dependent.</p>\n\n<pre><code>apache::vhost { &#39;site.name.fdqn&#39;:\n  …\n  redirect_source =&gt; [&#39;/images&#39;,&#39;/downloads&#39;],\n  redirect_dest =&gt; [&#39;http://img.example.com/&#39;,&#39;http://downloads.example.com/&#39;],\n}\n</code></pre>\n\n<h5><code>redirect_status</code></h5>\n\n<p>Specifies the status to append to the redirect. Defaults to &#39;undef&#39;.</p>\n\n<pre><code>apache::vhost { &#39;site.name.fdqn&#39;:\n  …\n  redirect_status =&gt; [&#39;temp&#39;,&#39;permanent&#39;],\n}\n</code></pre>\n\n<h5><code>request_headers</code></h5>\n\n<p>Specifies additional request headers.</p>\n\n<pre><code>apache::vhost { &#39;site.name.fdqn&#39;:\n  …\n  request_headers =&gt; [\n    &#39;append MirrorID &quot;mirror 12&quot;&#39;,\n    &#39;unset MirrorID&#39;,\n  ],\n}\n</code></pre>\n\n<h5><code>rewrite_base</code></h5>\n\n<p>Limits the <code>rewrite_rule</code> to the specified base URL. Defaults to &#39;undef&#39;.</p>\n\n<pre><code>apache::vhost { &#39;site.name.fdqn&#39;:\n  …\n  rewrite_rule =&gt; &#39;^index\\.html$ welcome.html&#39;,\n  rewrite_base =&gt; &#39;/blog/&#39;,\n}\n</code></pre>\n\n<p>The above example would limit the index.html -&gt; welcome.html rewrite to only something inside of <a href=\"http://example.com/blog/\">http://example.com/blog/</a>.</p>\n\n<h5><code>rewrite_cond</code></h5>\n\n<p>Rewrites a URL via <code>rewrite_rule</code> based on the truth of specified conditions. For example</p>\n\n<pre><code>apache::vhost { &#39;site.name.fdqn&#39;:\n  …\n  rewrite_cond =&gt; &#39;%{HTTP_USER_AGENT} ^MSIE&#39;,\n}\n</code></pre>\n\n<p>will rewrite URLs only if the visitor is using IE. Defaults to &#39;undef&#39;.</p>\n\n<p><em>Note</em>: At the moment, each vhost is limited to a single list of rewrite conditions. In the future, you will be able to specify multiple <code>rewrite_cond</code> and <code>rewrite_rules</code> per vhost, so that different conditions get different rewrites.</p>\n\n<h5><code>rewrite_rule</code></h5>\n\n<p>Creates URL rewrite rules. Defaults to &#39;undef&#39;. This parameter allows you to specify, for example, that anyone trying to access index.html will be served welcome.html.</p>\n\n<pre><code>apache::vhost { &#39;site.name.fdqn&#39;:\n  …\n  rewrite_rule =&gt; &#39;^index\\.html$ welcome.html&#39;,\n}\n</code></pre>\n\n<h5><code>scriptalias</code></h5>\n\n<p>Defines a directory of CGI scripts to be aliased to the path &#39;/cgi-bin&#39;</p>\n\n<h5><code>serveradmin</code></h5>\n\n<p>Specifies the email address Apache will display when it renders one of its error pages.</p>\n\n<h5><code>serveraliases</code></h5>\n\n<p>Sets the server aliases of the site.</p>\n\n<h5><code>servername</code></h5>\n\n<p>Sets the primary name of the virtual host.</p>\n\n<h5><code>setenv</code></h5>\n\n<p>Used by HTTPD to set environment variables for vhosts. Defaults to &#39;[]&#39;.</p>\n\n<h5><code>setenvif</code></h5>\n\n<p>Used by HTTPD to conditionally set environment variables for vhosts. Defaults to &#39;[]&#39;.</p>\n\n<h5><code>ssl</code></h5>\n\n<p>Enables SSL for the virtual host. SSL vhosts only respond to HTTPS queries. Valid values are &#39;true&#39; or &#39;false&#39;.</p>\n\n<h5><code>ssl_ca</code></h5>\n\n<p>Specifies the certificate authority.</p>\n\n<h5><code>ssl_cert</code></h5>\n\n<p>Specifies the SSL certification.</p>\n\n<h5><code>ssl_certs_dir</code></h5>\n\n<p>Specifies the location of the SSL certification directory. Defaults to <code>/etc/ssl/certs</code>.</p>\n\n<h5><code>ssl_chain</code></h5>\n\n<p>Specifies the SSL chain.</p>\n\n<h5><code>ssl_crl</code></h5>\n\n<p>Specifies the certificate revocation list to use.</p>\n\n<h5><code>ssl_crl_path</code></h5>\n\n<p>Specifies the location of the certificate revocation list.</p>\n\n<h5><code>ssl_key</code></h5>\n\n<p>Specifies the SSL key.</p>\n\n<h5><code>vhost_name</code></h5>\n\n<p>This parameter is for use with name-based virtual hosting. Defaults to &#39;*&#39;.</p>\n\n<h3>Virtual Host Examples</h3>\n\n<p>The Apache module allows you to set up pretty much any configuration of virtual host you might desire. This section will address some common configurations. Please see the <a href=\"https://github.com/puppetlabs/puppetlabs-apache/tree/master/tests\">Tests section</a> for even more examples.</p>\n\n<p>Configure a vhost with a server administrator</p>\n\n<pre><code>apache::vhost { &#39;third.example.com&#39;:\n  port        =&gt; &#39;80&#39;,\n  docroot     =&gt; &#39;/var/www/third&#39;,\n  serveradmin =&gt; &#39;admin@example.com&#39;,\n}\n</code></pre>\n\n<hr>\n\n<p>Set up a vhost with aliased servers</p>\n\n<pre><code>apache::vhost { &#39;sixth.example.com&#39;:\n  serveraliases =&gt; [\n    &#39;sixth.example.org&#39;,\n    &#39;sixth.example.net&#39;,\n  ],\n  port          =&gt; &#39;80&#39;,\n  docroot       =&gt; &#39;/var/www/fifth&#39;,\n}\n</code></pre>\n\n<hr>\n\n<p>Configure a vhost with a cgi-bin</p>\n\n<pre><code>apache::vhost { &#39;eleventh.example.com&#39;:\n  port        =&gt; &#39;80&#39;,\n  docroot     =&gt; &#39;/var/www/eleventh&#39;,\n  scriptalias =&gt; &#39;/usr/lib/cgi-bin&#39;,\n}\n</code></pre>\n\n<hr>\n\n<p>Set up a vhost with a rack configuration</p>\n\n<pre><code>apache::vhost { &#39;fifteenth.example.com&#39;:\n  port           =&gt; &#39;80&#39;,\n  docroot        =&gt; &#39;/var/www/fifteenth&#39;,\n  rack_base_uris =&gt; [&#39;/rackapp1&#39;, &#39;/rackapp2&#39;],\n}\n</code></pre>\n\n<hr>\n\n<p>Set up a mix of SSL and non-SSL vhosts at the same domain</p>\n\n<pre><code>#The non-ssl vhost\napache::vhost { &#39;first.example.com non-ssl&#39;:\n  servername =&gt; &#39;first.example.com&#39;,\n  port       =&gt; &#39;80&#39;,\n  docroot    =&gt; &#39;/var/www/first&#39;,\n}\n\n#The SSL vhost at the same domain\napache::vhost { &#39;first.example.com ssl&#39;:\n  servername =&gt; &#39;first.example.com&#39;,\n  port       =&gt; &#39;443&#39;,\n  docroot    =&gt; &#39;/var/www/first&#39;,\n  ssl        =&gt; true,\n}\n</code></pre>\n\n<hr>\n\n<p>Configure a vhost to redirect non-SSL connections to SSL</p>\n\n<pre><code>apache::vhost { &#39;sixteenth.example.com non-ssl&#39;:\n  servername      =&gt; &#39;sixteenth.example.com&#39;,\n  port            =&gt; &#39;80&#39;,\n  docroot         =&gt; &#39;/var/www/sixteenth&#39;,\n  redirect_status =&gt; &#39;permanent&#39;\n  redirect_dest   =&gt; &#39;https://sixteenth.example.com/&#39; \n}\napache::vhost { &#39;sixteenth.example.com ssl&#39;:\n  servername =&gt; &#39;sixteenth.example.com&#39;,\n  port       =&gt; &#39;443&#39;,\n  docroot    =&gt; &#39;/var/www/sixteenth&#39;,\n  ssl        =&gt; true,\n}\n</code></pre>\n\n<hr>\n\n<p>Set up IP-based vhosts on any listen port and have them respond to requests on specific IP addresses. In this example, we will set listening on ports 80 and 81. This is required because the example vhosts are not declared with a port parameter.</p>\n\n<pre><code>apache::listen { &#39;80&#39;: }\napache::listen { &#39;81&#39;: }\n</code></pre>\n\n<p>Then we will set up the IP-based vhosts</p>\n\n<pre><code>apache::vhost { &#39;first.example.com&#39;:\n  ip       =&gt; &#39;10.0.0.10&#39;,\n  docroot  =&gt; &#39;/var/www/first&#39;,\n  ip_based =&gt; true,\n}\napache::vhost { &#39;second.example.com&#39;:\n  ip       =&gt; &#39;10.0.0.11&#39;,\n  docroot  =&gt; &#39;/var/www/second&#39;,\n  ip_based =&gt; true,\n}\n</code></pre>\n\n<hr>\n\n<p>Configure a mix of name-based and IP-based vhosts. First, we will add two IP-based vhosts on 10.0.0.10, one SSL and one non-SSL</p>\n\n<pre><code>apache::vhost { &#39;The first IP-based vhost, non-ssl&#39;:\n  servername =&gt; &#39;first.example.com&#39;,\n  ip         =&gt; &#39;10.0.0.10&#39;,\n  port       =&gt; &#39;80&#39;,\n  ip_based   =&gt; true,\n  docroot    =&gt; &#39;/var/www/first&#39;,\n}\napache::vhost { &#39;The first IP-based vhost, ssl&#39;:\n  servername =&gt; &#39;first.example.com&#39;,\n  ip         =&gt; &#39;10.0.0.10&#39;,\n  port       =&gt; &#39;443&#39;,\n  ip_based   =&gt; true,\n  docroot    =&gt; &#39;/var/www/first-ssl&#39;,\n  ssl        =&gt; true,\n}\n</code></pre>\n\n<p>Then, we will add two name-based vhosts listening on 10.0.0.20</p>\n\n<pre><code>apache::vhost { &#39;second.example.com&#39;:\n  ip      =&gt; &#39;10.0.0.20&#39;,\n  port    =&gt; &#39;80&#39;,\n  docroot =&gt; &#39;/var/www/second&#39;,\n}\napache::vhost { &#39;third.example.com&#39;:\n  ip      =&gt; &#39;10.0.0.20&#39;,\n  port    =&gt; &#39;80&#39;,\n  docroot =&gt; &#39;/var/www/third&#39;,\n}\n</code></pre>\n\n<p>If you want to add two name-based vhosts so that they will answer on either 10.0.0.10 or 10.0.0.20, you <strong>MUST</strong> declare <code>add_listen =&gt; &#39;false&#39;</code> to disable the otherwise automatic &#39;Listen 80&#39;, as it will conflict with the preceding IP-based vhosts.</p>\n\n<pre><code>apache::vhost { &#39;fourth.example.com&#39;:\n  port       =&gt; &#39;80&#39;,\n  docroot    =&gt; &#39;/var/www/fourth&#39;,\n  add_listen =&gt; false,\n}\napache::vhost { &#39;fifth.example.com&#39;:\n  port       =&gt; &#39;80&#39;,\n  docroot    =&gt; &#39;/var/www/fifth&#39;,\n  add_listen =&gt; false,\n}\n</code></pre>\n\n<h2>Implementation</h2>\n\n<h3>Classes and Defined Types</h3>\n\n<h4>Class: <code>apache::dev</code></h4>\n\n<p>Installs Apache development libraries</p>\n\n<pre><code>class { &#39;apache::dev&#39;: }\n</code></pre>\n\n<h4>Defined Type: <code>apache::listen</code></h4>\n\n<p>Controls which ports Apache binds to for listening based on the title:</p>\n\n<pre><code>apache::listen { &#39;80&#39;: }\napache::listen { &#39;443&#39;: }\n</code></pre>\n\n<p>Declaring this defined type will add all <code>Listen</code> directives to the <code>ports.conf</code> file in the Apache httpd configuration directory.  <code>apache::listen</code> titles should always take the form of: <code>&lt;port&gt;</code>, <code>&lt;ipv4&gt;:&lt;port&gt;</code>, or <code>[&lt;ipv6&gt;]:&lt;port&gt;</code></p>\n\n<p>Apache httpd requires that <code>Listen</code> directives must be added for every port. The <code>apache::vhost</code> defined type will automatically add <code>Listen</code> directives unless the <code>apache::vhost</code> is passed <code>add_listen =&gt; false</code>.</p>\n\n<h4>Defined Type: <code>apache::namevirtualhost</code></h4>\n\n<p>Enables named-based hosting of a virtual host</p>\n\n<pre><code>class { &#39;apache::namevirtualhost`: }\n</code></pre>\n\n<p>Declaring this defined type will add all <code>NameVirtualHost</code> directives to the <code>ports.conf</code> file in the Apache https configuration directory. <code>apache::namevirtualhost</code> titles should always take the form of: <code>*</code>, <code>*:&lt;port&gt;</code>, <code>_default_:&lt;port&gt;</code>, <code>&lt;ip&gt;</code>, or <code>&lt;ip&gt;:&lt;port&gt;</code>.</p>\n\n<h4>Defined Type: <code>apache::balancermember</code></h4>\n\n<p>Define members of a proxy_balancer set (mod_proxy_balancer). Very useful when using exported resources.</p>\n\n<p>On every app server you can export a balancermember like this:</p>\n\n<pre><code>  @@apache::balancermember { &quot;${::fqdn}-puppet00&quot;:\n    balancer_cluster =&gt; &#39;puppet00&#39;,\n    url              =&gt; &quot;ajp://${::fqdn}:8009&quot;\n    options          =&gt; [&#39;ping=5&#39;, &#39;disablereuse=on&#39;, &#39;retry=5&#39;, &#39;ttl=120&#39;],\n  }\n</code></pre>\n\n<p>And on the proxy itself you create the balancer cluster using the defined type apache::balancer:</p>\n\n<pre><code>  apache::balancer { &#39;puppet00&#39;: }\n</code></pre>\n\n<p>If you need to use ProxySet in the balncer config you can do as so:</p>\n\n<pre><code>  apache::balancer { &#39;puppet01&#39;:\n    proxy_set =&gt; {&#39;stickysession&#39; =&gt; &#39;JSESSIONID&#39;},\n  }\n</code></pre>\n\n<h3>Templates</h3>\n\n<p>The Apache module relies heavily on templates to enable the <code>vhost</code> and <code>apache::mod</code> defined types. These templates are built based on Facter facts around your operating system. Unless explicitly called out, most templates are not meant for configuration.</p>\n\n<h2>Limitations</h2>\n\n<p>This has been tested on Ubuntu Precise, Debian Wheezy, and CentOS 5.8.</p>\n\n<h2>Development</h2>\n\n<h3>Overview</h3>\n\n<p>Puppet Labs modules on the Puppet Forge are open projects, and community contributions are essential for keeping them great. We can’t access the huge number of platforms and myriad of hardware, software, and deployment configurations that Puppet is intended to serve.</p>\n\n<p>We want to keep it as easy as possible to contribute changes so that our modules work in your environment. There are a few guidelines that we need contributors to follow so that we can have a chance of keeping on top of things.</p>\n\n<p>You can read the complete module contribution guide <a href=\"http://projects.puppetlabs.com/projects/module-site/wiki/Module_contributing\">on the Puppet Labs wiki.</a></p>\n\n<h3>Running tests</h3>\n\n<p>This project contains tests for both <a href=\"http://rspec-puppet.com/\">rspec-puppet</a> and <a href=\"https://github.com/puppetlabs/rspec-system\">rspec-system</a> to verify functionality. For in-depth information please see their respective documentation.</p>\n\n<p>Quickstart:</p>\n\n<pre><code>gem install bundler\nbundle install\nbundle exec rake spec\nbundle exec rake spec:system\n</code></pre>\n\n<h2>Copyright and License</h2>\n\n<p>Copyright (C) 2012 <a href=\"https://www.puppetlabs.com/\">Puppet Labs</a> Inc</p>\n\n<p>Puppet Labs can be contacted at: <a href=\"mailto:info@puppetlabs.com\">info@puppetlabs.com</a></p>\n\n<p>Licensed under the Apache License, Version 2.0 (the &quot;License&quot;);\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at</p>\n\n<p><a href=\"http://www.apache.org/licenses/LICENSE-2.0\">http://www.apache.org/licenses/LICENSE-2.0</a></p>\n\n<p>Unless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an &quot;AS IS&quot; BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.</p>\n</section>",
ruby-puppet-forge-2.3.2/spec/fixtures/v3/releases__module=puppetlabs-apache.json-710-      "changelog": "<section class=\"plaintext\"><pre>2013-07-26 Release 0.8.1\nBugfixes:\n- Update `apache::mpm_module` detection for worker&#x2F;prefork\n- Update `apache::mod::cgi` and `apache::mod::cgid` detection for\nworker&#x2F;prefork\n\n2013-07-16 Release 0.8.0\nFeatures:\n- Add `servername` parameter to `apache` class\n- Add `proxy_set` parameter to `apache::balancer` define\n\nBugfixes:\n- Fix ordering for multiple `apache::balancer` clusters\n- Fix symlinking for sites-available on Debian-based OSs\n- Fix dependency ordering for recursive confdir management\n- Fix `apache::mod::*` to notify the service on config change\n- Documentation updates\n\n2013-07-09 Release 0.7.0\nChanges:\n- Essentially rewrite the module -- too many to list\n- `apache::vhost` has many abilities -- see README.md for details\n- `apache::mod::*` classes provide httpd mod-loading capabilities\n- `apache` base class is much more configurable\n\nBugfixes:\n- Many. And many more to come\n\n2013-03-2 Release 0.6.0\n- update travis tests (add more supported versions)\n- add access log_parameter\n- make purging of vhost dir configurable\n\n2012-08-24 Release 0.4.0\nChanges:\n- `include apache` is now required when using apache::mod::*\n\nBugfixes:\n- Fix syntax for validate_re\n- Fix formatting in vhost template\n- Fix spec tests such that they pass\n\n2012-05-08 Puppet Labs &lt;info@puppetlabs.com&gt; - 0.0.4\ne62e362 Fix broken tests for ssl, vhost, vhost::*\n42c6363 Changes to match style guide and pass puppet-lint without error\n42bc8ba changed name =&gt; path for file resources in order to name namevar by it&#x27;s name\n72e13de One end too much\n0739641 style guide fixes: &#x27;true&#x27; &lt;&gt; true, $operatingsystem needs to be $::operatingsystem, etc.\n273f94d fix tests\na35ede5 (#13860) Make a2enmod&#x2F;a2dismo commands optional\n98d774e (#13860) Autorequire Package[&#x27;httpd&#x27;]\n05fcec5 (#13073) Add missing puppet spec tests\n541afda (#6899) Remove virtual a2mod definition\n976cb69 (#13072) Move mod python and wsgi package names to params\n323915a (#13060) Add .gitignore to repo\nfdf40af (#13060) Remove pkg directory from source tree\nfd90015 Add LICENSE file and update the ModuleFile\nd3d0d23 Re-enable local php class\nd7516c7 Make management of firewalls configurable for vhosts\n60f83ba Explicitly lookup scope of apache_name in templates.\nf4d287f (#12581) Add explicit ordering for vdir directory\n88a2ac6 (#11706) puppetlabs-apache depends on puppetlabs-firewall\na776a8b (#11071) Fix to work with latest firewall module\n2b79e8b (#11070) Add support for Scientific Linux\n405b3e9 Fix for a2mod\n57b9048 Commit apache::vhost::redirect Manifest\n8862d01 Commit apache::vhost::proxy Manifest\nd5c1fd0 Commit apache::mod::wsgi Manifest\na825ac7 Commit apache::mod::python Manifest\nb77062f Commit Templates\n9a51b4a Vhost File Declarations\n6cf7312 Defaults for Parameters\n6a5b11a Ensure installed\nf672e46 a2mod fix\n8a56ee9 add pthon support to apache\n</pre></section>",
##############################################
ruby-puppet-forge-2.3.2/spec/fixtures/v3/releases__module=puppetlabs-apache.json-1014-      "downloads": 6389,
ruby-puppet-forge-2.3.2/spec/fixtures/v3/releases__module=puppetlabs-apache.json:1015:      "readme": "<section class=\"markdown\"><h1>apache</h1>\n\n<p><a href=\"https://travis-ci.org/puppetlabs/puppetlabs-apache\"><img src=\"https://travis-ci.org/puppetlabs/puppetlabs-apache.png?branch=master\" alt=\"Build Status\"></a></p>\n\n<h4>Table of Contents</h4>\n\n<ol>\n<li><a href=\"#overview\">Overview - What is the Apache module?</a></li>\n<li><a href=\"#module-description\">Module Description - What does the module do?</a></li>\n<li><a href=\"#setup\">Setup - The basics of getting started with Apache</a>\n\n<ul>\n<li><a href=\"#beginning-with-apache\">Beginning with Apache - Installation</a></li>\n<li><a href=\"#configure-a-virtual-host\">Configure a Virtual Host - Basic options for getting started</a></li>\n</ul></li>\n<li><a href=\"#usage\">Usage - The classes, defined types, and their parameters available for configuration</a>\n\n<ul>\n<li><a href=\"#classes-and-defined-types\">Classes and Defined Types</a>\n\n<ul>\n<li><a href=\"#class-apache\">Class: apache</a></li>\n<li><a href=\"#classes-apachemodname\">Classes: apache::mod::*</a></li>\n<li><a href=\"#defined-type-apachevhost\">Defined Type: apache::vhost</a></li>\n</ul></li>\n<li><a href=\"#virtual-host-examples\">Virtual Host Examples - Demonstrations of some configuration options</a></li>\n</ul></li>\n<li><a href=\"#implementation\">Implementation - An under-the-hood peek at what the module is doing</a>\n\n<ul>\n<li><a href=\"#classes-and-defined-types\">Classes and Defined Types</a></li>\n<li><a href=\"#templates\">Templates</a></li>\n</ul></li>\n<li><a href=\"#limitations\">Limitations - OS compatibility, etc.</a></li>\n<li><a href=\"#development\">Development - Guide for contributing to the module</a></li>\n<li><a href=\"#release-notes\">Release Notes - Notes on the most recent updates to the module</a></li>\n</ol>\n\n<h2>Overview</h2>\n\n<p>The Apache module allows you to set up virtual hosts and manage web services with minimal effort.</p>\n\n<h2>Module Description</h2>\n\n<p>Apache is a widely-used web server, and this module provides a simplified way of creating configurations to manage your infrastructure. This includes the ability to configure and manage a range of different virtual host setups, as well as a streamlined way to install and configure Apache modules.</p>\n\n<h2>Setup</h2>\n\n<p><strong>What Apache affects:</strong></p>\n\n<ul>\n<li>configuration files and directories (created and written to)\n\n<ul>\n<li><strong>NOTE</strong>: Configurations that are <em>not</em> managed by Puppet will be purged.</li>\n</ul></li>\n<li>package/service/configuration files for Apache</li>\n<li>Apache modules</li>\n<li>virtual hosts</li>\n<li>listened-to ports</li>\n<li><code>/etc/make.conf</code> on FreeBSD</li>\n</ul>\n\n<h3>Beginning with Apache</h3>\n\n<p>To install Apache with the default parameters</p>\n\n<pre lang=\"puppet\"><code>    class { &#39;apache&#39;:  }\n</code></pre>\n\n<p>The defaults are determined by your operating system (e.g. Debian systems have one set of defaults, RedHat systems have another). These defaults will work well in a testing environment, but are not suggested for production. To establish customized parameters</p>\n\n<pre lang=\"puppet\"><code>    class { &#39;apache&#39;:\n      default_mods        =&gt; false,\n      default_confd_files =&gt; false,\n    }\n</code></pre>\n\n<h3>Configure a virtual host</h3>\n\n<p>Declaring the <code>apache</code> class will create a default virtual host by setting up a vhost on port 80, listening on all interfaces and serving <code>$apache::docroot</code>.</p>\n\n<pre lang=\"puppet\"><code>    class { &#39;apache&#39;: }\n</code></pre>\n\n<p>To configure a very basic, name-based virtual host</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;first.example.com&#39;:\n      port    =&gt; &#39;80&#39;,\n      docroot =&gt; &#39;/var/www/first&#39;,\n    }\n</code></pre>\n\n<p><em>Note:</em> The default priority is 15. If nothing matches this priority, the alphabetically first name-based vhost will be used. This is also true if you pass a higher priority and no names match anything else.</p>\n\n<p>A slightly more complicated example, which moves the docroot owner/group</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;second.example.com&#39;:\n      port          =&gt; &#39;80&#39;,\n      docroot       =&gt; &#39;/var/www/second&#39;,\n      docroot_owner =&gt; &#39;third&#39;,\n      docroot_group =&gt; &#39;third&#39;,\n    }\n</code></pre>\n\n<p>To set up a virtual host with SSL and default SSL certificates</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;ssl.example.com&#39;:\n      port    =&gt; &#39;443&#39;,\n      docroot =&gt; &#39;/var/www/ssl&#39;,\n      ssl     =&gt; true,\n    }\n</code></pre>\n\n<p>To set up a virtual host with SSL and specific SSL certificates</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;fourth.example.com&#39;:\n      port     =&gt; &#39;443&#39;,\n      docroot  =&gt; &#39;/var/www/fourth&#39;,\n      ssl      =&gt; true,\n      ssl_cert =&gt; &#39;/etc/ssl/fourth.example.com.cert&#39;,\n      ssl_key  =&gt; &#39;/etc/ssl/fourth.example.com.key&#39;,\n    }\n</code></pre>\n\n<p>To set up a virtual host with IP address different than &#39;*&#39;</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;subdomain.example.com&#39;:\n      ip      =&gt; &#39;127.0.0.1&#39;,\n      port    =&gt; &#39;80&#39;,\n      docrout =&gt; &#39;/var/www/subdomain&#39;,\n    }\n</code></pre>\n\n<p>To set up a virtual host with wildcard alias for subdomain mapped to same named directory\n<code>http://examle.com.loc =&gt; /var/www/example.com</code></p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;subdomain.loc&#39;:\n      vhost_name =&gt; &#39;*&#39;,\n      port       =&gt; &#39;80&#39;,\n      virtual_docroot&#39; =&gt; &#39;/var/www/%-2+&#39;,\n      docroot          =&gt; &#39;/var/www&#39;,\n      serveraliases    =&gt; [&#39;*.loc&#39;,],\n    }\n</code></pre>\n\n<p>To set up a virtual host with suPHP</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;suphp.example.com&#39;:\n      port                =&gt; &#39;80&#39;,\n      docroot             =&gt; &#39;/home/appuser/myphpapp&#39;,\n      suphp_addhandler    =&gt; &#39;x-httpd-php&#39;,\n      suphp_engine        =&gt; &#39;on&#39;,\n      suphp_configpath    =&gt; &#39;/etc/php5/apache2&#39;,\n      directories         =&gt; { path =&gt; &#39;/home/appuser/myphpapp&#39;,\n        &#39;suphp&#39;           =&gt; { user =&gt; &#39;myappuser&#39;, group =&gt; &#39;myappgroup&#39; },\n      }\n    }\n</code></pre>\n\n<p>To set up a virtual host with WSGI</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;wsgi.example.com&#39;:\n      port                        =&gt; &#39;80&#39;,\n      docroot                     =&gt; &#39;/var/www/pythonapp&#39;,\n      wsgi_daemon_process         =&gt; &#39;wsgi&#39;,\n      wsgi_daemon_process_options =&gt;\n        { processes =&gt; &#39;2&#39;, threads =&gt; &#39;15&#39;, display-name =&gt; &#39;%{GROUP}&#39; },\n      wsgi_process_group          =&gt; &#39;wsgi&#39;,\n      wsgi_script_aliases         =&gt; { &#39;/&#39; =&gt; &#39;/var/www/demo.wsgi&#39; },\n    }\n</code></pre>\n\n<p>Starting 2.2.16, httpd supports <a href=\"https://httpd.apache.org/docs/2.2/mod/mod_dir.html#fallbackresource\">FallbackResource</a> which is a simple replace for common RewriteRules:</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;wordpress.example.com&#39;:\n      port                =&gt; &#39;80&#39;,\n      docroot             =&gt; &#39;/var/www/wordpress&#39;,\n      fallbackresource    =&gt; &#39;/index.php&#39;,\n    }\n</code></pre>\n\n<p>Please note that the <code>disabled</code> argument to FallbackResource is only supported since 2.2.24.</p>\n\n<p>To see a list of all virtual host parameters, <a href=\"#defined-type-apachevhost\">please go here</a>. To see an extensive list of virtual host examples <a href=\"#virtual-host-examples\">please look here</a>.</p>\n\n<h2>Usage</h2>\n\n<h3>Classes and Defined Types</h3>\n\n<p>This module modifies Apache configuration files and directories and will purge any configuration not managed by Puppet. Configuration of Apache should be managed by Puppet, as non-puppet configuration files can cause unexpected failures.</p>\n\n<p>It is possible to temporarily disable full Puppet management by setting the <code>purge_configs</code> parameter within the base <code>apache</code> class to &#39;false&#39;. This option should only be used as a temporary means of saving and relocating customized configurations.</p>\n\n<h4>Class: <code>apache</code></h4>\n\n<p>The Apache module&#39;s primary class, <code>apache</code>, guides the basic setup of Apache on your system.</p>\n\n<p>You may establish a default vhost in this class, the <code>vhost</code> class, or both. You may add additional vhost configurations for specific virtual hosts using a declaration of the <code>vhost</code> type.</p>\n\n<p><strong>Parameters within <code>apache</code>:</strong></p>\n\n<h5><code>default_mods</code></h5>\n\n<p>Sets up Apache with default settings based on your OS. Defaults to &#39;true&#39;, set to &#39;false&#39; for customized configuration.</p>\n\n<h5><code>default_vhost</code></h5>\n\n<p>Sets up a default virtual host. Defaults to &#39;true&#39;, set to &#39;false&#39; to set up <a href=\"#configure-a-virtual-host\">customized virtual hosts</a>.</p>\n\n<h5><code>default_confd_files</code></h5>\n\n<p>Generates default set of include-able apache configuration files under  <code>${apache::confd_dir}</code> directory. These configuration files correspond to what is usually installed with apache package on given platform.</p>\n\n<h5><code>default_ssl_vhost</code></h5>\n\n<p>Sets up a default SSL virtual host. Defaults to &#39;false&#39;.</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;default-ssl&#39;:\n      port            =&gt; 443,\n      ssl             =&gt; true,\n      docroot         =&gt; $docroot,\n      scriptalias     =&gt; $scriptalias,\n      serveradmin     =&gt; $serveradmin,\n      access_log_file =&gt; &quot;ssl_${access_log_file}&quot;,\n      }\n</code></pre>\n\n<p>SSL vhosts only respond to HTTPS queries.</p>\n\n<h5><code>default_ssl_cert</code></h5>\n\n<p>The default SSL certification, which is automatically set based on your operating system  (<code>/etc/pki/tls/certs/localhost.crt</code> for RedHat, <code>/etc/ssl/certs/ssl-cert-snakeoil.pem</code> for Debian, <code>/usr/local/etc/apache22/server.crt</code> for FreeBSD). This default will work out of the box but must be updated with your specific certificate information before being used in production.</p>\n\n<h5><code>default_ssl_key</code></h5>\n\n<p>The default SSL key, which is automatically set based on your operating system (<code>/etc/pki/tls/private/localhost.key</code> for RedHat, <code>/etc/ssl/private/ssl-cert-snakeoil.key</code> for Debian, <code>/usr/local/etc/apache22/server.key</code> for FreeBSD). This default will work out of the box but must be updated with your specific certificate information before being used in production.</p>\n\n<h5><code>default_ssl_chain</code></h5>\n\n<p>The default SSL chain, which is automatically set to &#39;undef&#39;. This default will work out of the box but must be updated with your specific certificate information before being used in production.</p>\n\n<h5><code>default_ssl_ca</code></h5>\n\n<p>The default certificate authority, which is automatically set to &#39;undef&#39;. This default will work out of the box but must be updated with your specific certificate information before being used in production.</p>\n\n<h5><code>default_ssl_crl_path</code></h5>\n\n<p>The default certificate revocation list path, which is automatically set to &#39;undef&#39;. This default will work out of the box but must be updated with your specific certificate information before being used in production.</p>\n\n<h5><code>default_ssl_crl</code></h5>\n\n<p>The default certificate revocation list to use, which is automatically set to &#39;undef&#39;. This default will work out of the box but must be updated with your specific certificate information before being used in production.</p>\n\n<h5><code>service_name</code></h5>\n\n<p>Name of apache service to run. Defaults to: <code>&#39;httpd&#39;</code> on RedHat, <code>&#39;apache2&#39;</code> on Debian, and <code>&#39;apache22&#39;</code> on FreeBSD.</p>\n\n<h5><code>service_enable</code></h5>\n\n<p>Determines whether the &#39;httpd&#39; service is enabled when the machine is booted. Defaults to &#39;true&#39;.</p>\n\n<h5><code>service_ensure</code></h5>\n\n<p>Determines whether the service should be running. Can be set to &#39;undef&#39; which is useful when you want to let the service be managed by some other application like pacemaker. Defaults to &#39;running&#39;.</p>\n\n<h5><code>purge_configs</code></h5>\n\n<p>Removes all other apache configs and vhosts, which is automatically set to true. Setting this to false is a stopgap measure to allow the apache module to coexist with existing or otherwise managed configuration. It is recommended that you move your configuration entirely to resources within this module.</p>\n\n<h5><code>serveradmin</code></h5>\n\n<p>Sets the server administrator. Defaults to &#39;root@localhost&#39;.</p>\n\n<h5><code>servername</code></h5>\n\n<p>Sets the servername. Defaults to fqdn provided by facter.</p>\n\n<h5><code>server_root</code></h5>\n\n<p>A value to be set as <code>ServerRoot</code> in main configuration file (<code>httpd.conf</code>). Defaults to <code>/etc/httpd</code> on RedHat, <code>/etc/apache2</code> on Debian and <code>/usr/local</code> on FreeBSD.</p>\n\n<h5><code>sendfile</code></h5>\n\n<p>Makes Apache use the Linux kernel &#39;sendfile&#39; to serve static files. Defaults to &#39;On&#39;.</p>\n\n<h5><code>server_root</code></h5>\n\n<p>A value to be set as <code>ServerRoot</code> in main configuration file (<code>httpd.conf</code>). Defaults to <code>/etc/httpd</code> on RedHat and <code>/etc/apache2</code> on Debian.</p>\n\n<h5><code>error_documents</code></h5>\n\n<p>Enables custom error documents. Defaults to &#39;false&#39;.</p>\n\n<h5><code>httpd_dir</code></h5>\n\n<p>Changes the base location of the configuration directories used for the service. This is useful for specially repackaged HTTPD builds but may have unintended consequences when used in combination with the default distribution packages. Default is based on your OS.</p>\n\n<h5><code>confd_dir</code></h5>\n\n<p>Changes the location of the configuration directory your custom configuration files are placed in. Default is based on your OS.</p>\n\n<h5><code>vhost_dir</code></h5>\n\n<p>Changes the location of the configuration directory your virtual host configuration files are placed in. Default is based on your OS.</p>\n\n<h5><code>mod_dir</code></h5>\n\n<p>Changes the location of the configuration directory your Apache modules configuration files are placed in. Default is based on your OS.</p>\n\n<h5><code>mpm_module</code></h5>\n\n<p>Configures which mpm module is loaded and configured for the httpd process by the <code>apache::mod::event</code>, <code>apache::mod::itk</code>, <code>apache::mod::peruser</code>, <code>apache::mod::prefork</code> and <code>apache::mod::worker</code> classes. Must be set to <code>false</code> to explicitly declare <code>apache::mod::event</code>, <code>apache::mod::itk</code>, <code>apache::mod::peruser</code>,  <code>apache::mod::prefork</code> or <code>apache::mod::worker</code> classes with parameters. All possible values are <code>event</code>, <code>itk</code>, <code>peruser</code>, <code>prefork</code>, <code>worker</code> (valid values depend on agent&#39;s OS), or the boolean <code>false</code>. Defaults to <code>prefork</code> on RedHat and FreeBSD and <code>worker</code> on Debian. Note: on FreeBSD switching between different mpm modules is quite difficult (but possible). Before changing <code>$mpm_module</code> one has to deinstall all packages that depend on currently installed <code>apache</code>.</p>\n\n<h5><code>conf_template</code></h5>\n\n<p>Setting this allows you to override the template used for the main apache configuration file.  This is a potentially risky thing to do as this module has been built around the concept of a minimal configuration file with most of the configuration coming in the form of conf.d/ entries.  Defaults to &#39;apache/httpd.conf.erb&#39;.</p>\n\n<h5><code>keepalive</code></h5>\n\n<p>Setting this allows you to enable persistent connections.</p>\n\n<h5><code>keepalive_timeout</code></h5>\n\n<p>Amount of time the server will wait for subsequent requests on a persistent connection. Defaults to &#39;15&#39;.</p>\n\n<h5><code>logroot</code></h5>\n\n<p>Changes the location of the directory Apache log files are placed in. Defaut is based on your OS.</p>\n\n<h5><code>log_level</code></h5>\n\n<p>Changes the verbosity level of the error log. Defaults to &#39;warn&#39;. Valid values are <code>emerg</code>, <code>alert</code>, <code>crit</code>, <code>error</code>, <code>warn</code>, <code>notice</code>, <code>info</code> or <code>debug</code>.</p>\n\n<h5><code>ports_file</code></h5>\n\n<p>Changes the name of the file containing Apache ports configuration. Default is <code>${conf_dir}/ports.conf</code>.</p>\n\n<h5><code>server_tokens</code></h5>\n\n<p>Controls how much information Apache sends to the browser about itself and the operating system. See Apache documentation for &#39;ServerTokens&#39;. Defaults to &#39;OS&#39;.</p>\n\n<h5><code>server_signature</code></h5>\n\n<p>Allows the configuration of a trailing footer line under server-generated documents. See Apache documentation for &#39;ServerSignature&#39;. Defaults to &#39;On&#39;.</p>\n\n<h5><code>trace_enable</code></h5>\n\n<p>Controls, how TRACE requests per RFC 2616 are handled. See Apache documentation for &#39;TraceEnable&#39;. Defaults to &#39;On&#39;.</p>\n\n<h5><code>manage_user</code></h5>\n\n<p>Setting this to false will avoid the user resource to be created by this module. This is useful when you already have a user created in another puppet module and that you want to used it to run apache. Without this, it would result in a duplicate resource error.</p>\n\n<h5><code>manage_group</code></h5>\n\n<p>Setting this to false will avoid the group resource to be created by this module. This is useful when you already have a group created in another puppet module and that you want to used it for apache. Without this, it would result in a duplicate resource error.</p>\n\n<h5><code>package_ensure</code></h5>\n\n<p>Allow control over the package ensure statement. This is useful if you want to make sure apache is always at the latest version or whether it is only installed.</p>\n\n<h4>Class: <code>apache::default_mods</code></h4>\n\n<p>Installs default Apache modules based on what OS you are running</p>\n\n<pre lang=\"puppet\"><code>    class { &#39;apache::default_mods&#39;: }\n</code></pre>\n\n<h4>Defined Type: <code>apache::mod</code></h4>\n\n<p>Used to enable arbitrary Apache httpd modules for which there is no specific <code>apache::mod::[name]</code> class. The <code>apache::mod</code> defined type will also install the required packages to enable the module, if any.</p>\n\n<pre lang=\"puppet\"><code>    apache::mod { &#39;rewrite&#39;: }\n    apache::mod { &#39;ldap&#39;: }\n</code></pre>\n\n<h4>Classes: <code>apache::mod::[name]</code></h4>\n\n<p>There are many <code>apache::mod::[name]</code> classes within this module that can be declared using <code>include</code>:</p>\n\n<ul>\n<li><code>alias</code></li>\n<li><code>auth_basic</code></li>\n<li><code>auth_kerb</code></li>\n<li><code>autoindex</code></li>\n<li><code>cache</code></li>\n<li><code>cgi</code></li>\n<li><code>cgid</code></li>\n<li><code>dav</code></li>\n<li><code>dav_fs</code></li>\n<li><code>dav_svn</code></li>\n<li><code>deflate</code></li>\n<li><code>dev</code></li>\n<li><code>dir</code>*</li>\n<li><code>disk_cache</code></li>\n<li><code>event</code></li>\n<li><code>fastcgi</code></li>\n<li><code>fcgid</code></li>\n<li><code>headers</code></li>\n<li><code>info</code></li>\n<li><code>itk</code></li>\n<li><code>ldap</code></li>\n<li><code>mime</code></li>\n<li><code>mime_magic</code>*</li>\n<li><code>mpm_event</code></li>\n<li><code>negotiation</code></li>\n<li><code>nss</code>*</li>\n<li><code>passenger</code>*</li>\n<li><code>perl</code></li>\n<li><code>peruser</code></li>\n<li><code>php</code> (requires <a href=\"#mpm_module\"><code>mpm_module</code></a> set to <code>prefork</code>)</li>\n<li><code>prefork</code>*</li>\n<li><code>proxy</code>*</li>\n<li><code>proxy_ajp</code></li>\n<li><code>proxy_html</code></li>\n<li><code>proxy_http</code></li>\n<li><code>python</code></li>\n<li><code>reqtimeout</code></li>\n<li><code>rewrite</code></li>\n<li><code>rpaf</code>*</li>\n<li><code>setenvif</code></li>\n<li><code>ssl</code>* (see <a href=\"#class-apachemodssl\">apache::mod::ssl</a> below)</li>\n<li><code>status</code>*</li>\n<li><code>suphp</code></li>\n<li><code>userdir</code>*</li>\n<li><code>vhost_alias</code></li>\n<li><code>worker</code>*</li>\n<li><code>wsgi</code> (see <a href=\"#class-apachemodwsgi\">apache::mod::wsgi</a> below)</li>\n<li><code>xsendfile</code></li>\n</ul>\n\n<p>Modules noted with a * indicate that the module has settings and, thus, a template that includes parameters. These parameters control the module&#39;s configuration. Most of the time, these parameters will not require any configuration or attention.</p>\n\n<p>The modules mentioned above, and other Apache modules that have templates, will cause template files to be dropped along with the mod install, and the module will not work without the template. Any mod without a template will install package but drop no files.</p>\n\n<h4>Class: <code>apache::mod::ssl</code></h4>\n\n<p>Installs Apache SSL capabilities and utilizes <code>ssl.conf.erb</code> template. These are the defaults:</p>\n\n<pre lang=\"puppet\"><code>    class { &#39;apache::mod::ssl&#39;:\n      ssl_compression =&gt; false,\n      ssl_options     =&gt; [ &#39;StdEnvVars&#39; ],\n  }\n</code></pre>\n\n<p>To <em>use</em> SSL with a virtual host, you must either set the<code>default_ssl_vhost</code> parameter in <code>apache</code> to &#39;true&#39; or set the <code>ssl</code> parameter in <code>apache::vhost</code> to &#39;true&#39;.</p>\n\n<h4>Class: <code>apache::mod::wsgi</code></h4>\n\n<pre lang=\"puppet\"><code>    class { &#39;apache::mod::wsgi&#39;:\n      wsgi_socket_prefix =&gt; &quot;\\${APACHE_RUN_DIR}WSGI&quot;,\n      wsgi_python_home   =&gt; &#39;/path/to/virtenv&#39;,\n      wsgi_python_path   =&gt; &#39;/path/to/virtenv/site-packages&#39;,\n    }\n</code></pre>\n\n<h4>Defined Type: <code>apache::vhost</code></h4>\n\n<p>The Apache module allows a lot of flexibility in the set up and configuration of virtual hosts. This flexibility is due, in part, to <code>vhost</code>&#39;s setup as a defined resource type, which allows it to be evaluated multiple times with different parameters.</p>\n\n<p>The <code>vhost</code> defined type allows you to have specialized configurations for virtual hosts that have requirements outside of the defaults. You can set up a default vhost within the base <code>apache</code> class as well as set a customized vhost setup as default. Your customized vhost (priority 10) will be privileged over the base class vhost (15).</p>\n\n<p>If you have a series of specific configurations and do not want a base <code>apache</code> class default vhost, make sure to set the base class default host to &#39;false&#39;.</p>\n\n<pre lang=\"puppet\"><code>    class { &#39;apache&#39;:\n      default_vhost =&gt; false,\n    }\n</code></pre>\n\n<p><strong>Parameters within <code>apache::vhost</code>:</strong></p>\n\n<p>The default values for each parameter will vary based on operating system and type of virtual host.</p>\n\n<h5><code>access_log</code></h5>\n\n<p>Specifies whether <code>*_access.log</code> directives should be configured. Valid values are &#39;true&#39; and &#39;false&#39;. Defaults to &#39;true&#39;.</p>\n\n<h5><code>access_log_file</code></h5>\n\n<p>Points to the <code>*_access.log</code> file. Defaults to &#39;undef&#39;.</p>\n\n<h5><code>access_log_pipe</code></h5>\n\n<p>Specifies a pipe to send access log messages to. Defaults to &#39;undef&#39;.</p>\n\n<h5><code>access_log_syslog</code></h5>\n\n<p>Sends all access log messages to syslog. Defaults to &#39;undef&#39;.</p>\n\n<h5><code>access_log_format</code></h5>\n\n<p>Specifies either a LogFormat nickname or custom format string for access log. Defaults to &#39;undef&#39;.</p>\n\n<h5><code>add_listen</code></h5>\n\n<p>Determines whether the vhost creates a listen statement. The default value is &#39;true&#39;.</p>\n\n<p>Setting <code>add_listen</code> to &#39;false&#39; stops the vhost from creating a listen statement, and this is important when you combine vhosts that are not passed an <code>ip</code> parameter with vhosts that <em>are</em> passed the <code>ip</code> parameter.</p>\n\n<h5><code>aliases</code></h5>\n\n<p>Passes a list of hashes to the vhost to create <code>Alias</code> or <code>AliasMatch</code> statements as per the <a href=\"http://httpd.apache.org/docs/current/mod/mod_alias.html\"><code>mod_alias</code> documentation</a>. Each hash is expected to be of the form:</p>\n\n<pre><code>aliases =&gt; [\n  { aliasmatch =&gt; &#39;^/image/(.*)\\.jpg$&#39;, path =&gt; &#39;/files/jpg.images/$1.jpg&#39; }\n  { alias      =&gt; &#39;/image&#39;,             path =&gt; &#39;/ftp/pub/image&#39; },\n],\n</code></pre>\n\n<p>For <code>Alias</code> and <code>AliasMatch</code> to work, each will need a corresponding <code>&lt;Directory /path/to/directory&gt;</code> or <code>&lt;Location /path/to/directory&gt;</code> block. The <code>Alias</code> and <code>AliasMatch</code> directives are created in the order specified in the <code>aliases</code> paramter. As described in the <a href=\"http://httpd.apache.org/docs/current/mod/mod_alias.html\"><code>mod_alias</code> documentation</a> more specific <code>Alias</code> or <code>AliasMatch</code> directives should come before the more general ones to avoid shadowing.</p>\n\n<p><strong>Note:</strong> If <code>apache::mod::passenger</code> is loaded and <code>PassengerHighPerformance true</code> is set, then <code>Alias</code> may have issues honouring the <code>PassengerEnabled off</code> statement. See <a href=\"http://www.conandalton.net/2010/06/passengerenabled-off-not-working.html\">this article</a> for details.</p>\n\n<h5><code>block</code></h5>\n\n<p>Specifies the list of things Apache will block access to. The default is an empty set, &#39;[]&#39;. Currently, the only option is &#39;scm&#39;, which blocks web access to .svn, .git and .bzr directories. To add to this, please see the <a href=\"#development\">Development</a> section.</p>\n\n<h5><code>custom_fragment</code></h5>\n\n<p>Pass a string of custom configuration directives to be placed at the end of the vhost configuration.</p>\n\n<h5><code>default_vhost</code></h5>\n\n<p>Sets a given <code>apache::vhost</code> as the default to serve requests that do not match any other <code>apache::vhost</code> definitions. The default value is &#39;false&#39;.</p>\n\n<h5><code>directories</code></h5>\n\n<p>Passes a list of hashes to the vhost to create <code>&lt;Directory /path/to/directory&gt;...&lt;/Directory&gt;</code> directive blocks as per the <a href=\"http://httpd.apache.org/docs/2.2/mod/core.html#directory\">Apache core documentation</a>.  The <code>path</code> key is required in these hashes. An optional <code>provider</code> defaults to <code>directory</code>.  Usage will typically look like:</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;sample.example.net&#39;:\n      docroot     =&gt; &#39;/path/to/directory&#39;,\n      directories =&gt; [\n        { path =&gt; &#39;/path/to/directory&#39;, &lt;directive&gt; =&gt; &lt;value&gt; },\n        { path =&gt; &#39;/path/to/another/directory&#39;, &lt;directive&gt; =&gt; &lt;value&gt; },\n      ],\n    }\n</code></pre>\n\n<p><em>Note:</em> At least one directory should match <code>docroot</code> parameter, once you start declaring directories <code>apache::vhost</code> assumes that all required <code>&lt;Directory&gt;</code> blocks will be declared.</p>\n\n<p><em>Note:</em> If not defined a single default <code>&lt;Directory&gt;</code> block will be created that matches the <code>docroot</code> parameter.</p>\n\n<p><code>provider</code> can be set to any of <code>directory</code>, <code>files</code>, or <code>location</code>. If the <a href=\"https://httpd.apache.org/docs/2.2/mod/core.html#files\">pathspec starts with a <code>~</code></a>, httpd will interpret this as the equivalent of <code>DirectoryMatch</code>, <code>FilesMatch</code>, or <code>LocationMatch</code>, respectively.</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;files.example.net&#39;:\n      docroot     =&gt; &#39;/var/www/files&#39;,\n      directories =&gt; [\n        { path =&gt; &#39;~ (\\.swp|\\.bak|~)$&#39;, &#39;provider&#39; =&gt; &#39;files&#39;, &#39;deny&#39; =&gt; &#39;from all&#39; },\n      ],\n    }\n</code></pre>\n\n<p>The directives will be embedded within the <code>Directory</code> (<code>Files</code>, or <code>Location</code>) directive block, missing directives should be undefined and not be added, resulting in their default vaules in Apache. Currently this is the list of supported directives:</p>\n\n<h6><code>addhandlers</code></h6>\n\n<p>Sets <code>AddHandler</code> directives as per the <a href=\"http://httpd.apache.org/docs/2.2/mod/mod_mime.html#addhandler\">Apache Core documentation</a>. Accepts a list of hashes of the form <code>{ handler =&gt; &#39;handler-name&#39;, extensions =&gt; [&#39;extension&#39;]}</code>. Note that <code>extensions</code> is a list of extenstions being handled by the handler.\nAn example:</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;sample.example.net&#39;:\n      docroot     =&gt; &#39;/path/to/directory&#39;,\n      directories =&gt; [ { path =&gt; &#39;/path/to/directory&#39;,\n        addhandlers =&gt; [ { handler =&gt; &#39;cgi-script&#39;, extensions =&gt; [&#39;.cgi&#39;]} ],\n      } ],\n    }\n</code></pre>\n\n<h6><code>allow</code></h6>\n\n<p>Sets an <code>Allow</code> directive as per the <a href=\"http://httpd.apache.org/docs/2.2/mod/mod_authz_host.html#allow\">Apache Core documentation</a>. An example:</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;sample.example.net&#39;:\n      docroot     =&gt; &#39;/path/to/directory&#39;,\n      directories =&gt; [ { path =&gt; &#39;/path/to/directory&#39;, allow =&gt; &#39;from example.org&#39; } ],\n    }\n</code></pre>\n\n<h6><code>allow_override</code></h6>\n\n<p>Sets the usage of <code>.htaccess</code> files as per the <a href=\"http://httpd.apache.org/docs/2.2/mod/core.html#allowoverride\">Apache core documentation</a>. Should accept in the form of a list or a string. An example:</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;sample.example.net&#39;:\n      docroot     =&gt; &#39;/path/to/directory&#39;,\n      directories =&gt; [ { path =&gt; &#39;/path/to/directory&#39;, allow_override =&gt; [&#39;AuthConfig&#39;, &#39;Indexes&#39;] } ],\n    }\n</code></pre>\n\n<h6><code>deny</code></h6>\n\n<p>Sets an <code>Deny</code> directive as per the <a href=\"http://httpd.apache.org/docs/2.2/mod/mod_authz_host.html#deny\">Apache Core documentation</a>. An example:</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;sample.example.net&#39;:\n      docroot     =&gt; &#39;/path/to/directory&#39;,\n      directories =&gt; [ { path =&gt; &#39;/path/to/directory&#39;, deny =&gt; &#39;from example.org&#39; } ],\n    }\n</code></pre>\n\n<h6><code>error_documents</code></h6>\n\n<p>A list of hashes which can be used to override the <a href=\"https://httpd.apache.org/docs/2.2/mod/core.html#errordocument\">ErrorDocument</a> settings for this directory. Example:</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;sample.example.net&#39;:\n      directories =&gt; [ { path =&gt; &#39;/srv/www&#39;\n        error_documents =&gt; [\n          { &#39;error_code&#39; =&gt; &#39;503&#39;, &#39;document&#39; =&gt; &#39;/service-unavail&#39; },\n        ],\n      }]\n    }\n</code></pre>\n\n<h6><code>headers</code></h6>\n\n<p>Adds lines for <code>Header</code> directives as per the <a href=\"http://httpd.apache.org/docs/2.2/mod/mod_headers.html#header\">Apache Header documentation</a>. An example:</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;sample.example.net&#39;:\n      docroot     =&gt; &#39;/path/to/directory&#39;,\n      directories =&gt; {\n        path    =&gt; &#39;/path/to/directory&#39;,\n        headers =&gt; &#39;Set X-Robots-Tag &quot;noindex, noarchive, nosnippet&quot;&#39;,\n      },\n    }\n</code></pre>\n\n<h6><code>options</code></h6>\n\n<p>Lists the options for the given <code>&lt;Directory&gt;</code> block</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;sample.example.net&#39;:\n      docroot     =&gt; &#39;/path/to/directory&#39;,\n      directories =&gt; [ { path =&gt; &#39;/path/to/directory&#39;, options =&gt; [&#39;Indexes&#39;,&#39;FollowSymLinks&#39;,&#39;MultiViews&#39;] }],\n    }\n</code></pre>\n\n<h6><code>index_options</code></h6>\n\n<p>Styles the list</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;sample.example.net&#39;:\n      docroot     =&gt; &#39;/path/to/directory&#39;,\n      directories =&gt; [ { path =&gt; &#39;/path/to/directory&#39;, options =&gt; [&#39;Indexes&#39;,&#39;FollowSymLinks&#39;,&#39;MultiViews&#39;], index_options =&gt; [&#39;IgnoreCase&#39;, &#39;FancyIndexing&#39;, &#39;FoldersFirst&#39;, &#39;NameWidth=*&#39;, &#39;DescriptionWidth=*&#39;, &#39;SuppressHTMLPreamble&#39;] }],\n    }\n</code></pre>\n\n<h6><code>index_order_default</code></h6>\n\n<p>Sets the order of the list </p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;sample.example.net&#39;:\n      docroot     =&gt; &#39;/path/to/directory&#39;,\n      directories =&gt; [ { path =&gt; &#39;/path/to/directory&#39;, order =&gt; &#39;Allow,Deny&#39;, index_order_default =&gt; [&#39;Descending&#39;, &#39;Date&#39;]}, ],\n    }\n</code></pre>\n\n<h6><code>order</code></h6>\n\n<p>Sets the order of processing <code>Allow</code> and <code>Deny</code> statements as per <a href=\"http://httpd.apache.org/docs/2.2/mod/mod_authz_host.html#order\">Apache core documentation</a>. An example:</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;sample.example.net&#39;:\n      docroot     =&gt; &#39;/path/to/directory&#39;,\n      directories =&gt; [ { path =&gt; &#39;/path/to/directory&#39;, order =&gt; &#39;Allow,Deny&#39; } ],\n    }\n</code></pre>\n\n<h6><code>auth_type</code></h6>\n\n<p>Sets the value for <code>AuthType</code> as per the <a href=\"https://httpd.apache.org/docs/2.2/mod/core.html#authtype\">Apache AuthType\ndocumentation</a>.</p>\n\n<h6><code>auth_name</code></h6>\n\n<p>Sets the value for <code>AuthName</code> as per the <a href=\"https://httpd.apache.org/docs/2.2/mod/core.html#authname\">Apache AuthName\ndocumentation</a>.</p>\n\n<h6><code>auth_digest_algorithm</code></h6>\n\n<p>Sets the value for <code>AuthDigestAlgorithm</code> as per the <a href=\"https://httpd.apache.org/docs/2.2/mod/mod_auth_digest.html#authdigestalgorithm\">Apache\nAuthDigestAlgorithm\ndocumentation</a></p>\n\n<h6><code>auth_digest_domain</code></h6>\n\n<p>Sets the value for <code>AuthDigestDomain</code> as per the <a href=\"https://httpd.apache.org/docs/2.2/mod/mod_auth_digest.html#authdigestdomain\">Apache AuthDigestDomain\ndocumentation</a>.</p>\n\n<h6><code>auth_digest_nonce_lifetime</code></h6>\n\n<p>Sets the value for <code>AuthDigestNonceLifetime</code> as per the <a href=\"https://httpd.apache.org/docs/2.2/mod/mod_auth_digest.html#authdigestnoncelifetime\">Apache\nAuthDigestNonceLifetime\ndocumentation</a></p>\n\n<h6><code>auth_digest_provider</code></h6>\n\n<p>Sets the value for <code>AuthDigestProvider</code> as per the <a href=\"https://httpd.apache.org/docs/2.2/mod/mod_auth_digest.html#authdigestprovider\">Apache AuthDigestProvider\ndocumentation</a>.</p>\n\n<h6><code>auth_digest_qop</code></h6>\n\n<p>Sets the value for <code>AuthDigestQop</code> as per the <a href=\"https://httpd.apache.org/docs/2.2/mod/mod_auth_digest.html#authdigestqop\">Apache AuthDigestQop\ndocumentation</a>.</p>\n\n<h6><code>auth_digest_shmem_size</code></h6>\n\n<p>Sets the value for <code>AuthAuthDigestShmemSize</code> as per the <a href=\"https://httpd.apache.org/docs/2.2/mod/mod_auth_digest.html#authdigestshmemsize\">Apache AuthDigestShmemSize\ndocumentation</a>.</p>\n\n<h6><code>auth_basic_authoritative</code></h6>\n\n<p>Sets the value for <code>AuthBasicAuthoritative</code> as per the <a href=\"https://httpd.apache.org/docs/2.2/mod/mod_auth_basic.html#authbasicauthoritative\">Apache\nAuthBasicAuthoritative\ndocumentation</a>.</p>\n\n<h6><code>auth_basic_fake</code></h6>\n\n<p>Sets the value for <code>AuthBasicFake</code> as per the <a href=\"https://httpd.apache.org/docs/trunk/mod/mod_auth_basic.html#authbasicfake\">Apache AuthBasicFake\ndocumentation</a>.</p>\n\n<h6><code>auth_basic_provider</code></h6>\n\n<p>Sets the value for <code>AuthBasicProvider</code> as per the <a href=\"https://httpd.apache.org/docs/2.2/mod/mod_auth_basic.html#authbasicprovider\">Apache AuthBasicProvider\ndocumentation</a>.</p>\n\n<h6><code>auth_user_file</code></h6>\n\n<p>Sets the value for <code>AuthUserFile</code> as per the <a href=\"https://httpd.apache.org/docs/2.2/mod/mod_authn_file.html#authuserfile\">Apache AuthUserFile\ndocumentation</a>.</p>\n\n<h6><code>auth_require</code></h6>\n\n<p>Sets the value for <code>AuthName</code> as per the <a href=\"https://httpd.apache.org/docs/2.2/mod/core.html#require\">Apache Require\ndocumentation</a></p>\n\n<h6><code>passenger_enabled</code></h6>\n\n<p>Sets the value for the <code>PassengerEnabled</code> directory to <code>on</code> or <code>off</code> as per the <a href=\"http://www.modrails.com/documentation/Users%20guide%20Apache.html#PassengerEnabled\">Passenger documentation</a>.</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;sample.example.net&#39;:\n      docroot     =&gt; &#39;/path/to/directory&#39;,\n      directories =&gt; [ { path =&gt; &#39;/path/to/directory&#39;, passenger_enabled =&gt; &#39;off&#39; } ],\n    }\n</code></pre>\n\n<p><strong>Note:</strong> This directive requires <code>apache::mod::passenger</code> to be active, Apache may not start with an unrecognised directive without it.</p>\n\n<p><strong>Note:</strong> Be aware that there is an <a href=\"http://www.conandalton.net/2010/06/passengerenabled-off-not-working.html\">issue</a> using the <code>PassengerEnabled</code> directive with the <code>PassengerHighPerformance</code> directive.</p>\n\n<h6><code>ssl_options</code></h6>\n\n<p>String or list of <a href=\"https://httpd.apache.org/docs/2.2/mod/mod_ssl.html#ssloptions\"><code>SSLOptions</code></a> for the given <code>&lt;Directory&gt;</code> block. This overrides, or refines the <a href=\"https://httpd.apache.org/docs/2.2/mod/mod_ssl.html#ssloptions\"><code>SSLOptions</code></a> of the parent block (either vhost, or server).</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;secure.example.net&#39;:\n      docroot     =&gt; &#39;/path/to/directory&#39;,\n      directories =&gt; [\n        { path =&gt; &#39;/path/to/directory&#39;, ssl_options =&gt; &#39;+ExportCertData&#39; }\n        { path =&gt; &#39;/path/to/different/dir&#39;, ssl_options =&gt; [ &#39;-StdEnvVars&#39;, &#39;+ExportCertData&#39;] },\n      ],\n    }\n</code></pre>\n\n<h6><code>suphp</code></h6>\n\n<p>An array containing two values: User and group for the <a href=\"http://www.suphp.org/DocumentationView.html?file=apache/CONFIG\">suPHP_UserGroup</a> setting.\nThis directive must be used with <code>suphp_engine =&gt; on</code> in the vhost declaration. This directive only works in <code>&lt;Directory&gt;</code> or <code>&lt;Location&gt;</code>.</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;secure.example.net&#39;:\n      docroot     =&gt; &#39;/path/to/directory&#39;,\n      directories =&gt; [\n        { path =&gt; &#39;/path/to/directory&#39;, suphp =&gt; { user =&gt;  &#39;myappuser&#39;, group =&gt; &#39;myappgroup&#39; }\n      ],\n    }\n</code></pre>\n\n<h6><code>custom_fragment</code></h6>\n\n<p>Pass a string of custom configuration directives to be placed at the end of the\ndirectory configuration.</p>\n\n<h5><code>directoryindex</code></h5>\n\n<p>Set a DirectoryIndex directive, to set the list of resources to look for, when the client requests an index of the directory by specifying a / at the end of the directory name..</p>\n\n<h5><code>docroot</code></h5>\n\n<p>Provides the DocumentRoot directive, identifying the directory Apache serves files from.</p>\n\n<h5><code>docroot_group</code></h5>\n\n<p>Sets group access to the docroot directory. Defaults to &#39;root&#39;.</p>\n\n<h5><code>docroot_owner</code></h5>\n\n<p>Sets individual user access to the docroot directory. Defaults to &#39;root&#39;.</p>\n\n<h5><code>error_log</code></h5>\n\n<p>Specifies whether <code>*_error.log</code> directives should be configured. Defaults to &#39;true&#39;.</p>\n\n<h5><code>error_log_file</code></h5>\n\n<p>Points to the <code>*_error.log</code> file. Defaults to &#39;undef&#39;.</p>\n\n<h5><code>error_log_pipe</code></h5>\n\n<p>Specifies a pipe to send error log messages to. Defaults to &#39;undef&#39;.</p>\n\n<h5><code>error_log_syslog</code></h5>\n\n<p>Sends all error log messages to syslog. Defaults to &#39;undef&#39;.</p>\n\n<h5><code>error_documents</code></h5>\n\n<p>A list of hashes which can be used to override the <a href=\"https://httpd.apache.org/docs/2.2/mod/core.html#errordocument\">ErrorDocument</a> settings for this vhost. Defaults to <code>[]</code>. Example:</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;sample.example.net&#39;:\n      error_documents =&gt; [\n        { &#39;error_code&#39; =&gt; &#39;503&#39;, &#39;document&#39; =&gt; &#39;/service-unavail&#39; },\n        { &#39;error_code&#39; =&gt; &#39;407&#39;, &#39;document&#39; =&gt; &#39;https://example.com/proxy/login&#39; },\n      ],\n    }\n</code></pre>\n\n<h5><code>ensure</code></h5>\n\n<p>Specifies if the vhost file is present or absent.</p>\n\n<h5><code>fastcgi_server</code></h5>\n\n<p>Specifies the filename as an external FastCGI application. Defaults to &#39;undef&#39;.</p>\n\n<h5><code>fastcgi_socket</code></h5>\n\n<p>Filename used to communicate with the web server.  Defaults to &#39;undef&#39;.</p>\n\n<h5><code>fastcgi_dir</code></h5>\n\n<p>Directory to enable for FastCGI.  Defaults to &#39;undef&#39;.</p>\n\n<h5><code>additional_includes</code></h5>\n\n<p>Specifies paths to additional static vhost-specific Apache configuration files.\nThis option is useful when you need to implement a unique and/or custom\nconfiguration not supported by this module.</p>\n\n<h5><code>ip</code></h5>\n\n<p>The IP address the vhost listens on. Defaults to &#39;undef&#39;.</p>\n\n<h5><code>ip_based</code></h5>\n\n<p>Enables an IP-based vhost. This parameter inhibits the creation of a NameVirtualHost directive, since those are used to funnel requests to name-based vhosts. Defaults to &#39;false&#39;.</p>\n\n<h5><code>logroot</code></h5>\n\n<p>Specifies the location of the virtual host&#39;s logfiles. Defaults to <code>/var/log/&lt;apache log location&gt;/</code>.</p>\n\n<h5><code>log_level</code></h5>\n\n<p>Specifies the verbosity level of the error log. Defaults to <code>warn</code> for the global server configuration and can be overridden on a per-vhost basis using this parameter. Valid value for <code>log_level</code> is one of <code>emerg</code>, <code>alert</code>, <code>crit</code>, <code>error</code>, <code>warn</code>, <code>notice</code>, <code>info</code> or <code>debug</code>.</p>\n\n<h5><code>no_proxy_uris</code></h5>\n\n<p>Specifies URLs you do not want to proxy. This parameter is meant to be used in combination with <code>proxy_dest</code>.</p>\n\n<h5><code>options</code></h5>\n\n<p>Lists the options for the given virtual host</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;site.name.fdqn&#39;:\n      …\n      options =&gt; [&#39;Indexes&#39;,&#39;FollowSymLinks&#39;,&#39;MultiViews&#39;],\n    }\n</code></pre>\n\n<h5><code>override</code></h5>\n\n<p>Sets the overrides for the given virtual host. Accepts an array of AllowOverride arguments.</p>\n\n<h5><code>port</code></h5>\n\n<p>Sets the port the host is configured on.</p>\n\n<h5><code>priority</code></h5>\n\n<p>Sets the relative load-order for Apache httpd VirtualHost configuration files. Defaults to &#39;25&#39;.</p>\n\n<p>If nothing matches the priority, the first name-based vhost will be used. Likewise, passing a higher priority will cause the alphabetically first name-based vhost to be used if no other names match.</p>\n\n<p><em>Note</em>: You should not need to use this parameter. However, if you do use it, be aware that the <code>default_vhost</code> parameter for <code>apache::vhost</code> passes a priority of &#39;15&#39;.</p>\n\n<h5><code>proxy_dest</code></h5>\n\n<p>Specifies the destination address of a proxypass configuration. Defaults to &#39;undef&#39;.</p>\n\n<h5><code>proxy_pass</code></h5>\n\n<p>Specifies an array of path =&gt; uri for a proxypass configuration. Defaults to &#39;undef&#39;.</p>\n\n<p>Example:</p>\n\n<pre lang=\"puppet\"><code>$proxy_pass = [\n  { &#39;path&#39; =&gt; &#39;/a&#39;, &#39;url&#39; =&gt; &#39;http://backend-a/&#39; },\n  { &#39;path&#39; =&gt; &#39;/b&#39;, &#39;url&#39; =&gt; &#39;http://backend-b/&#39; },\n  { &#39;path&#39; =&gt; &#39;/c&#39;, &#39;url&#39; =&gt; &#39;http://backend-a/c&#39; }\n]\n\napache::vhost { &#39;site.name.fdqn&#39;:\n  …\n  proxy_pass       =&gt; $proxy_pass,\n}\n</code></pre>\n\n<h5><code>rack_base_uris</code></h5>\n\n<p>Specifies the resource identifiers for a rack configuration. The file paths specified will be listed as rack application roots for passenger/rack in the <code>_rack.erb</code> template. Defaults to &#39;undef&#39;.</p>\n\n<h5><code>redirect_dest</code></h5>\n\n<p>Specifies the address to redirect to. Defaults to &#39;undef&#39;.</p>\n\n<h5><code>redirect_source</code></h5>\n\n<p>Specifies the source items? that will redirect to the destination specified in <code>redirect_dest</code>. If more than one item for redirect is supplied, the source and destination must be the same length, and the items are order-dependent.</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;site.name.fdqn&#39;:\n      …\n      redirect_source =&gt; [&#39;/images&#39;,&#39;/downloads&#39;],\n      redirect_dest =&gt; [&#39;http://img.example.com/&#39;,&#39;http://downloads.example.com/&#39;],\n    }\n</code></pre>\n\n<h5><code>redirect_status</code></h5>\n\n<p>Specifies the status to append to the redirect. Defaults to &#39;undef&#39;.</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;site.name.fdqn&#39;:\n      …\n      redirect_status =&gt; [&#39;temp&#39;,&#39;permanent&#39;],\n    }\n</code></pre>\n\n<h5><code>request_headers</code></h5>\n\n<p>Specifies additional request headers.</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;site.name.fdqn&#39;:\n      …\n      request_headers =&gt; [\n        &#39;append MirrorID &quot;mirror 12&quot;&#39;,\n        &#39;unset MirrorID&#39;,\n      ],\n    }\n</code></pre>\n\n<h5><code>rewrite_base</code></h5>\n\n<p>Limits the <code>rewrite_rule</code> to the specified base URL. Defaults to &#39;undef&#39;.</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;site.name.fdqn&#39;:\n      …\n      rewrite_rule =&gt; &#39;^index\\.html$ welcome.html&#39;,\n      rewrite_base =&gt; &#39;/blog/&#39;,\n    }\n</code></pre>\n\n<p>The above example would limit the index.html -&gt; welcome.html rewrite to only something inside of <a href=\"http://example.com/blog/\">http://example.com/blog/</a>.</p>\n\n<h5><code>rewrite_cond</code></h5>\n\n<p>Rewrites a URL via <code>rewrite_rule</code> based on the truth of specified conditions. For example</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;site.name.fdqn&#39;:\n      …\n      rewrite_cond =&gt; &#39;%{HTTP_USER_AGENT} ^MSIE&#39;,\n    }\n</code></pre>\n\n<p>will rewrite URLs only if the visitor is using IE. Defaults to &#39;undef&#39;.</p>\n\n<p><em>Note</em>: At the moment, each vhost is limited to a single list of rewrite conditions. In the future, you will be able to specify multiple <code>rewrite_cond</code> and <code>rewrite_rules</code> per vhost, so that different conditions get different rewrites.</p>\n\n<h5><code>rewrite_rule</code></h5>\n\n<p>Creates URL rewrite rules. Defaults to &#39;undef&#39;. This parameter allows you to specify, for example, that anyone trying to access index.html will be served welcome.html.</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;site.name.fdqn&#39;:\n      …\n      rewrite_rule =&gt; &#39;^index\\.html$ welcome.html&#39;,\n    }\n</code></pre>\n\n<h5><code>scriptalias</code></h5>\n\n<p>Defines a directory of CGI scripts to be aliased to the path &#39;/cgi-bin&#39;</p>\n\n<h5><code>scriptaliases</code></h5>\n\n<p>Passes a list of hashes to the vhost to create <code>ScriptAlias</code> or <code>ScriptAliasMatch</code> statements as per the <a href=\"http://httpd.apache.org/docs/current/mod/mod_alias.html\"><code>mod_alias</code> documentation</a>. Each hash is expected to be of the form:</p>\n\n<pre lang=\"puppet\"><code>    scriptaliases =&gt; [\n      {\n        alias =&gt; &#39;/myscript&#39;,\n        path  =&gt; &#39;/usr/share/myscript&#39;,\n      },\n      {\n        aliasmatch =&gt; &#39;^/foo(.*)&#39;,\n        path       =&gt; &#39;/usr/share/fooscripts$1&#39;,\n      },\n      {\n        aliasmatch =&gt; &#39;^/bar/(.*)&#39;,\n        path       =&gt; &#39;/usr/share/bar/wrapper.sh/$1&#39;,\n      },\n      {\n        alias =&gt; &#39;/neatscript&#39;,\n        path  =&gt; &#39;/usr/share/neatscript&#39;,\n      },\n    ]\n</code></pre>\n\n<p>These directives are created in the order specified. As with <code>Alias</code> and <code>AliasMatch</code> directives the more specific aliases should come before the more general ones to avoid shadowing.</p>\n\n<h5><code>serveradmin</code></h5>\n\n<p>Specifies the email address Apache will display when it renders one of its error pages.</p>\n\n<h5><code>serveraliases</code></h5>\n\n<p>Sets the server aliases of the site.</p>\n\n<h5><code>servername</code></h5>\n\n<p>Sets the primary name of the virtual host.</p>\n\n<h5><code>setenv</code></h5>\n\n<p>Used by HTTPD to set environment variables for vhosts. Defaults to &#39;[]&#39;.</p>\n\n<h5><code>setenvif</code></h5>\n\n<p>Used by HTTPD to conditionally set environment variables for vhosts. Defaults to &#39;[]&#39;.</p>\n\n<h5><code>ssl</code></h5>\n\n<p>Enables SSL for the virtual host. SSL vhosts only respond to HTTPS queries. Valid values are &#39;true&#39; or &#39;false&#39;.</p>\n\n<h5><code>ssl_ca</code></h5>\n\n<p>Specifies the certificate authority.</p>\n\n<h5><code>ssl_cert</code></h5>\n\n<p>Specifies the SSL certification.</p>\n\n<h5><code>ssl_protocol</code></h5>\n\n<p>Specifies the SSL Protocol (SSLProtocol).</p>\n\n<h5><code>ssl_cipher</code></h5>\n\n<p>Specifies the SSLCipherSuite.</p>\n\n<h5><code>ssl_honorcipherorder</code></h5>\n\n<p>Sets SSLHonorCipherOrder directive, used to prefer the server&#39;s cipher preference order</p>\n\n<h5><code>ssl_certs_dir</code></h5>\n\n<p>Specifies the location of the SSL certification directory. Defaults to <code>/etc/ssl/certs</code> on Debian and <code>/etc/pki/tls/certs</code> on RedHat.</p>\n\n<h5><code>ssl_chain</code></h5>\n\n<p>Specifies the SSL chain.</p>\n\n<h5><code>ssl_crl</code></h5>\n\n<p>Specifies the certificate revocation list to use.</p>\n\n<h5><code>ssl_crl_path</code></h5>\n\n<p>Specifies the location of the certificate revocation list.</p>\n\n<h5><code>ssl_key</code></h5>\n\n<p>Specifies the SSL key.</p>\n\n<h5><code>ssl_verify_client</code></h5>\n\n<p>Sets <code>SSLVerifyClient</code> directives as per the <a href=\"http://httpd.apache.org/docs/2.2/mod/mod_ssl.html#sslverifyclient\">Apache Core documentation</a>. Defaults to undef.\nAn example:</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;sample.example.net&#39;:\n      …\n      ssl_verify_client =&gt; &#39;optional&#39;,\n    }\n</code></pre>\n\n<h5><code>ssl_verify_depth</code></h5>\n\n<p>Sets <code>SSLVerifyDepth</code> directives as per the <a href=\"http://httpd.apache.org/docs/2.2/mod/mod_ssl.html#sslverifydepth\">Apache Core documentation</a>. Defaults to undef.\nAn example:</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;sample.example.net&#39;:\n      …\n      ssl_verify_depth =&gt; 1,\n    }\n</code></pre>\n\n<h5><code>ssl_options</code></h5>\n\n<p>Sets <code>SSLOptions</code> directives as per the <a href=\"http://httpd.apache.org/docs/2.2/mod/mod_ssl.html#ssloptions\">Apache Core documentation</a>. This is the global setting for the vhost and can be a string or an array. Defaults to undef. A single string example:</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;sample.example.net&#39;:\n      …\n      ssl_options =&gt; &#39;+ExportCertData&#39;,\n    }\n</code></pre>\n\n<p>An array of strings example:</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;sample.example.net&#39;:\n      …\n      ssl_options =&gt; [ &#39;+StrictRequire&#39;, &#39;+ExportCertData&#39; ],\n    }\n</code></pre>\n\n<h5><code>ssl_proxyengine</code></h5>\n\n<p>Specifies whether to use <code>SSLProxyEngine</code> or not. Defaults to <code>false</code>.</p>\n\n<h5><code>vhost_name</code></h5>\n\n<p>This parameter is for use with name-based virtual hosting. Defaults to &#39;*&#39;.</p>\n\n<h5><code>itk</code></h5>\n\n<p>Hash containing infos to configure itk as per the <a href=\"http://mpm-itk.sesse.net/\">ITK documentation</a>.</p>\n\n<p>Keys could be:</p>\n\n<ul>\n<li>user + group</li>\n<li>assignuseridexpr</li>\n<li>assigngroupidexpr</li>\n<li>maxclientvhost</li>\n<li>nice</li>\n<li>limituidrange (Linux 3.5.0 or newer)</li>\n<li>limitgidrange (Linux 3.5.0 or newer)</li>\n</ul>\n\n<p>Usage will typically look like:</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;sample.example.net&#39;:\n      docroot     =&gt; &#39;/path/to/directory&#39;,\n      itk =&gt; {\n        user  =&gt; &#39;someuser&#39;,\n        group =&gt; &#39;somegroup&#39;,\n      },\n    }\n</code></pre>\n\n<h3>Virtual Host Examples</h3>\n\n<p>The Apache module allows you to set up pretty much any configuration of virtual host you might desire. This section will address some common configurations. Please see the <a href=\"https://github.com/puppetlabs/puppetlabs-apache/tree/master/tests\">Tests section</a> for even more examples.</p>\n\n<p>Configure a vhost with a server administrator</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;third.example.com&#39;:\n      port        =&gt; &#39;80&#39;,\n      docroot     =&gt; &#39;/var/www/third&#39;,\n      serveradmin =&gt; &#39;admin@example.com&#39;,\n    }\n</code></pre>\n\n<hr>\n\n<p>Set up a vhost with aliased servers</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;sixth.example.com&#39;:\n      serveraliases =&gt; [\n        &#39;sixth.example.org&#39;,\n        &#39;sixth.example.net&#39;,\n      ],\n      port          =&gt; &#39;80&#39;,\n      docroot       =&gt; &#39;/var/www/fifth&#39;,\n    }\n</code></pre>\n\n<hr>\n\n<p>Configure a vhost with a cgi-bin</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;eleventh.example.com&#39;:\n      port        =&gt; &#39;80&#39;,\n      docroot     =&gt; &#39;/var/www/eleventh&#39;,\n      scriptalias =&gt; &#39;/usr/lib/cgi-bin&#39;,\n    }\n</code></pre>\n\n<hr>\n\n<p>Set up a vhost with a rack configuration</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;fifteenth.example.com&#39;:\n      port           =&gt; &#39;80&#39;,\n      docroot        =&gt; &#39;/var/www/fifteenth&#39;,\n      rack_base_uris =&gt; [&#39;/rackapp1&#39;, &#39;/rackapp2&#39;],\n    }\n</code></pre>\n\n<hr>\n\n<p>Set up a mix of SSL and non-SSL vhosts at the same domain</p>\n\n<pre lang=\"puppet\"><code>    #The non-ssl vhost\n    apache::vhost { &#39;first.example.com non-ssl&#39;:\n      servername =&gt; &#39;first.example.com&#39;,\n      port       =&gt; &#39;80&#39;,\n      docroot    =&gt; &#39;/var/www/first&#39;,\n    }\n\n    #The SSL vhost at the same domain\n    apache::vhost { &#39;first.example.com ssl&#39;:\n      servername =&gt; &#39;first.example.com&#39;,\n      port       =&gt; &#39;443&#39;,\n      docroot    =&gt; &#39;/var/www/first&#39;,\n      ssl        =&gt; true,\n    }\n</code></pre>\n\n<hr>\n\n<p>Configure a vhost to redirect non-SSL connections to SSL</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;sixteenth.example.com non-ssl&#39;:\n      servername      =&gt; &#39;sixteenth.example.com&#39;,\n      port            =&gt; &#39;80&#39;,\n      docroot         =&gt; &#39;/var/www/sixteenth&#39;,\n      redirect_status =&gt; &#39;permanent&#39;\n      redirect_dest   =&gt; &#39;https://sixteenth.example.com/&#39;\n    }\n    apache::vhost { &#39;sixteenth.example.com ssl&#39;:\n      servername =&gt; &#39;sixteenth.example.com&#39;,\n      port       =&gt; &#39;443&#39;,\n      docroot    =&gt; &#39;/var/www/sixteenth&#39;,\n      ssl        =&gt; true,\n    }\n</code></pre>\n\n<hr>\n\n<p>Set up IP-based vhosts on any listen port and have them respond to requests on specific IP addresses. In this example, we will set listening on ports 80 and 81. This is required because the example vhosts are not declared with a port parameter.</p>\n\n<pre lang=\"puppet\"><code>    apache::listen { &#39;80&#39;: }\n    apache::listen { &#39;81&#39;: }\n</code></pre>\n\n<p>Then we will set up the IP-based vhosts</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;first.example.com&#39;:\n      ip       =&gt; &#39;10.0.0.10&#39;,\n      docroot  =&gt; &#39;/var/www/first&#39;,\n      ip_based =&gt; true,\n    }\n    apache::vhost { &#39;second.example.com&#39;:\n      ip       =&gt; &#39;10.0.0.11&#39;,\n      docroot  =&gt; &#39;/var/www/second&#39;,\n      ip_based =&gt; true,\n    }\n</code></pre>\n\n<hr>\n\n<p>Configure a mix of name-based and IP-based vhosts. First, we will add two IP-based vhosts on 10.0.0.10, one SSL and one non-SSL</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;The first IP-based vhost, non-ssl&#39;:\n      servername =&gt; &#39;first.example.com&#39;,\n      ip         =&gt; &#39;10.0.0.10&#39;,\n      port       =&gt; &#39;80&#39;,\n      ip_based   =&gt; true,\n      docroot    =&gt; &#39;/var/www/first&#39;,\n    }\n    apache::vhost { &#39;The first IP-based vhost, ssl&#39;:\n      servername =&gt; &#39;first.example.com&#39;,\n      ip         =&gt; &#39;10.0.0.10&#39;,\n      port       =&gt; &#39;443&#39;,\n      ip_based   =&gt; true,\n      docroot    =&gt; &#39;/var/www/first-ssl&#39;,\n      ssl        =&gt; true,\n    }\n</code></pre>\n\n<p>Then, we will add two name-based vhosts listening on 10.0.0.20</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;second.example.com&#39;:\n      ip      =&gt; &#39;10.0.0.20&#39;,\n      port    =&gt; &#39;80&#39;,\n      docroot =&gt; &#39;/var/www/second&#39;,\n    }\n    apache::vhost { &#39;third.example.com&#39;:\n      ip      =&gt; &#39;10.0.0.20&#39;,\n      port    =&gt; &#39;80&#39;,\n      docroot =&gt; &#39;/var/www/third&#39;,\n    }\n</code></pre>\n\n<p>If you want to add two name-based vhosts so that they will answer on either 10.0.0.10 or 10.0.0.20, you <strong>MUST</strong> declare <code>add_listen =&gt; &#39;false&#39;</code> to disable the otherwise automatic &#39;Listen 80&#39;, as it will conflict with the preceding IP-based vhosts.</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;fourth.example.com&#39;:\n      port       =&gt; &#39;80&#39;,\n      docroot    =&gt; &#39;/var/www/fourth&#39;,\n      add_listen =&gt; false,\n    }\n    apache::vhost { &#39;fifth.example.com&#39;:\n      port       =&gt; &#39;80&#39;,\n      docroot    =&gt; &#39;/var/www/fifth&#39;,\n      add_listen =&gt; false,\n    }\n</code></pre>\n\n<h2>Implementation</h2>\n\n<h3>Classes and Defined Types</h3>\n\n<h4>Class: <code>apache::dev</code></h4>\n\n<p>Installs Apache development libraries</p>\n\n<pre lang=\"puppet\"><code>    class { &#39;apache::dev&#39;: }\n</code></pre>\n\n<p>On FreeBSD you&#39;re required to define <code>apache::package</code> or <code>apache</code> class before <code>apache::dev</code>.</p>\n\n<h4>Defined Type: <code>apache::listen</code></h4>\n\n<p>Controls which ports Apache binds to for listening based on the title:</p>\n\n<pre lang=\"puppet\"><code>    apache::listen { &#39;80&#39;: }\n    apache::listen { &#39;443&#39;: }\n</code></pre>\n\n<p>Declaring this defined type will add all <code>Listen</code> directives to the <code>ports.conf</code> file in the Apache httpd configuration directory.  <code>apache::listen</code> titles should always take the form of: <code>&lt;port&gt;</code>, <code>&lt;ipv4&gt;:&lt;port&gt;</code>, or <code>[&lt;ipv6&gt;]:&lt;port&gt;</code></p>\n\n<p>Apache httpd requires that <code>Listen</code> directives must be added for every port. The <code>apache::vhost</code> defined type will automatically add <code>Listen</code> directives unless the <code>apache::vhost</code> is passed <code>add_listen =&gt; false</code>.</p>\n\n<h4>Defined Type: <code>apache::namevirtualhost</code></h4>\n\n<p>Enables named-based hosting of a virtual host</p>\n\n<pre lang=\"puppet\"><code>    class { &#39;apache::namevirtualhost`: }\n</code></pre>\n\n<p>Declaring this defined type will add all <code>NameVirtualHost</code> directives to the <code>ports.conf</code> file in the Apache https configuration directory. <code>apache::namevirtualhost</code> titles should always take the form of: <code>*</code>, <code>*:&lt;port&gt;</code>, <code>_default_:&lt;port&gt;</code>, <code>&lt;ip&gt;</code>, or <code>&lt;ip&gt;:&lt;port&gt;</code>.</p>\n\n<h4>Defined Type: <code>apache::balancermember</code></h4>\n\n<p>Define members of a proxy_balancer set (mod_proxy_balancer). Very useful when using exported resources.</p>\n\n<p>On every app server you can export a balancermember like this:</p>\n\n<pre lang=\"puppet\"><code>      @@apache::balancermember { &quot;${::fqdn}-puppet00&quot;:\n        balancer_cluster =&gt; &#39;puppet00&#39;,\n        url              =&gt; &quot;ajp://${::fqdn}:8009&quot;\n        options          =&gt; [&#39;ping=5&#39;, &#39;disablereuse=on&#39;, &#39;retry=5&#39;, &#39;ttl=120&#39;],\n      }\n</code></pre>\n\n<p>And on the proxy itself you create the balancer cluster using the defined type apache::balancer:</p>\n\n<pre lang=\"puppet\"><code>      apache::balancer { &#39;puppet00&#39;: }\n</code></pre>\n\n<p>If you need to use ProxySet in the balncer config you can do as so:</p>\n\n<pre lang=\"puppet\"><code>      apache::balancer { &#39;puppet01&#39;:\n        proxy_set =&gt; {&#39;stickysession&#39; =&gt; &#39;JSESSIONID&#39;},\n      }\n</code></pre>\n\n<h3>Templates</h3>\n\n<p>The Apache module relies heavily on templates to enable the <code>vhost</code> and <code>apache::mod</code> defined types. These templates are built based on Facter facts around your operating system. Unless explicitly called out, most templates are not meant for configuration.</p>\n\n<h2>Limitations</h2>\n\n<p>This has been tested on Ubuntu Precise, Debian Wheezy, CentOS 5.8, and FreeBSD 9.1.</p>\n\n<h2>Development</h2>\n\n<h3>Overview</h3>\n\n<p>Puppet Labs modules on the Puppet Forge are open projects, and community contributions are essential for keeping them great. We can’t access the huge number of platforms and myriad of hardware, software, and deployment configurations that Puppet is intended to serve.</p>\n\n<p>We want to keep it as easy as possible to contribute changes so that our modules work in your environment. There are a few guidelines that we need contributors to follow so that we can have a chance of keeping on top of things.</p>\n\n<p>You can read the complete module contribution guide <a href=\"http://projects.puppetlabs.com/projects/module-site/wiki/Module_contributing\">on the Puppet Labs wiki.</a></p>\n\n<h3>Running tests</h3>\n\n<p>This project contains tests for both <a href=\"http://rspec-puppet.com/\">rspec-puppet</a> and <a href=\"https://github.com/puppetlabs/rspec-system\">rspec-system</a> to verify functionality. For in-depth information please see their respective documentation.</p>\n\n<p>Quickstart:</p>\n\n<pre><code>gem install bundler\nbundle install\nbundle exec rake spec\nbundle exec rake spec:system\n</code></pre>\n\n<h2>Copyright and License</h2>\n\n<p>Copyright (C) 2012 <a href=\"https://www.puppetlabs.com/\">Puppet Labs</a> Inc</p>\n\n<p>Puppet Labs can be contacted at: <a href=\"mailto:info@puppetlabs.com\">info@puppetlabs.com</a></p>\n\n<p>Licensed under the Apache License, Version 2.0 (the &quot;License&quot;);\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at</p>\n\n<p><a href=\"http://www.apache.org/licenses/LICENSE-2.0\">http://www.apache.org/licenses/LICENSE-2.0</a></p>\n\n<p>Unless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an &quot;AS IS&quot; BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.</p>\n</section>",
ruby-puppet-forge-2.3.2/spec/fixtures/v3/releases__module=puppetlabs-apache.json-1016-      "changelog": "<section class=\"markdown\"><h2>2013-12-05 Release 0.10.0</h2>\n\n<h3>Summary:</h3>\n\n<p>This release adds FreeBSD osfamily support and various other improvements to some mods.</p>\n\n<h3>Features:</h3>\n\n<ul>\n<li>Add suPHP_UserGroup directive to directory context</li>\n<li>Add support for ScriptAliasMatch directives</li>\n<li>Set SSLOptions StdEnvVars in server context</li>\n<li>No implicit <Directory> entry for ScriptAlias path</li>\n<li>Add support for overriding ErrorDocument</li>\n<li>Add support for AliasMatch directives</li>\n<li>Disable default &quot;allow from all&quot; in vhost-directories</li>\n<li>Add WSGIPythonPath as an optional parameter to mod_wsgi. </li>\n<li>Add mod_rpaf support</li>\n<li>Add directives: IndexOptions, IndexOrderDefault</li>\n<li>Add ability to include additional external configurations in vhost</li>\n<li>need to use the provider variable not the provider key value from the directory hash for matches</li>\n<li>Support for FreeBSD and few other features</li>\n<li>Add new params to apache::mod::mime class</li>\n<li>Allow apache::mod to specify module id and path</li>\n<li>added $server_root parameter</li>\n<li>Add Allow and ExtendedStatus support to mod_status</li>\n<li>Expand vhost/_directories.pp directive support</li>\n<li>Add initial support for nss module (no directives in vhost template yet)</li>\n<li>added peruser and event mpms</li>\n<li>added $service_name parameter</li>\n<li>add parameter for TraceEnable</li>\n<li>Make LogLevel configurable for server and vhost</li>\n<li>Add documentation about $ip</li>\n<li>Add ability to pass ip (instead of wildcard) in default vhost files</li>\n</ul>\n\n<h3>Bugfixes:</h3>\n\n<ul>\n<li>Don&#39;t listen on port or set NameVirtualHost for non-existent vhost</li>\n<li>only apply Directory defaults when provider is a directory</li>\n<li>Working mod_authnz_ldap support on Debian/Ubuntu</li>\n</ul>\n\n<h2>2013-09-06 Release 0.9.0</h2>\n\n<h3>Summary:</h3>\n\n<p>This release adds more parameters to the base apache class and apache defined\nresource to make the module more flexible. It also adds or enhances SuPHP,\nWSGI, and Passenger mod support, and support for the ITK mpm module.</p>\n\n<h3>Backwards-incompatible Changes:</h3>\n\n<ul>\n<li>Remove many default mods that are not normally needed.</li>\n<li>Remove <code>rewrite_base</code> <code>apache::vhost</code> parameter; did not work anyway.</li>\n<li>Specify dependencies on stdlib &gt;=2.4.0 (this was already the case, but\nmaking explicit)</li>\n<li>Deprecate <code>a2mod</code> in favor of the <code>apache::mod::*</code> classes and <code>apache::mod</code>\ndefined resource.</li>\n</ul>\n\n<h3>Features:</h3>\n\n<ul>\n<li><code>apache</code> class\n\n<ul>\n<li>Add <code>httpd_dir</code> parameter to change the location of the configuration\nfiles.</li>\n<li>Add <code>logroot</code> parameter to change the logroot</li>\n<li>Add <code>ports_file</code> parameter to changes the <code>ports.conf</code> file location</li>\n<li>Add <code>keepalive</code> parameter to enable persistent connections</li>\n<li>Add <code>keepalive_timeout</code> parameter to change the timeout</li>\n<li>Update <code>default_mods</code> to be able to take an array of mods to enable.</li>\n</ul></li>\n<li><code>apache::vhost</code>\n\n<ul>\n<li>Add <code>wsgi_daemon_process</code>, <code>wsgi_daemon_process_options</code>,\n<code>wsgi_process_group</code>, and <code>wsgi_script_aliases</code> parameters for per-vhost\nWSGI configuration.</li>\n<li>Add <code>access_log_syslog</code> parameter to enable syslogging.</li>\n<li>Add <code>error_log_syslog</code> parameter to enable syslogging of errors.</li>\n<li>Add <code>directories</code> hash parameter. Please see README for documentation.</li>\n<li>Add <code>sslproxyengine</code> parameter to enable SSLProxyEngine</li>\n<li>Add <code>suphp_addhandler</code>, <code>suphp_engine</code>, and <code>suphp_configpath</code> for\nconfiguring SuPHP.</li>\n<li>Add <code>custom_fragment</code> parameter to allow for arbitrary apache\nconfiguration injection. (Feature pull requests are prefered over using\nthis, but it is available in a pinch.)</li>\n</ul></li>\n<li>Add <code>apache::mod::suphp</code> class for configuring SuPHP.</li>\n<li>Add <code>apache::mod::itk</code> class for configuring ITK mpm module.</li>\n<li>Update <code>apache::mod::wsgi</code> class for global WSGI configuration with\n<code>wsgi_socket_prefix</code> and <code>wsgi_python_home</code> parameters.</li>\n<li>Add README.passenger.md to document the <code>apache::mod::passenger</code> usage.\nAdded <code>passenger_high_performance</code>, <code>passenger_pool_idle_time</code>,\n<code>passenger_max_requests</code>, <code>passenger_stat_throttle_rate</code>, <code>rack_autodetect</code>,\nand <code>rails_autodetect</code> parameters.</li>\n<li>Separate the httpd service resource into a new <code>apache::service</code> class for\ndependency chaining of <code>Class[&#39;apache&#39;] -&gt; &lt;resource&gt; ~&gt;\nClass[&#39;apache::service&#39;]</code></li>\n<li>Added <code>apache::mod::proxy_balancer</code> class for <code>apache::balancer</code></li>\n</ul>\n\n<h3>Bugfixes:</h3>\n\n<ul>\n<li>Change dependency to puppetlabs-concat</li>\n<li>Fix ruby 1.9 bug for <code>a2mod</code></li>\n<li>Change servername to be <code>$::hostname</code> if there is no <code>$::fqdn</code></li>\n<li>Make <code>/etc/ssl/certs</code> the default ssl certs directory for RedHat non-5.</li>\n<li>Make <code>php</code> the default php package for RedHat non-5.</li>\n<li>Made <code>aliases</code> able to take a single alias hash instead of requiring an\narray.</li>\n</ul>\n\n<h2>2013-07-26 Release 0.8.1</h2>\n\n<h3>Bugfixes:</h3>\n\n<ul>\n<li>Update <code>apache::mpm_module</code> detection for worker/prefork</li>\n<li>Update <code>apache::mod::cgi</code> and <code>apache::mod::cgid</code> detection for\nworker/prefork</li>\n</ul>\n\n<h2>2013-07-16 Release 0.8.0</h2>\n\n<h3>Features:</h3>\n\n<ul>\n<li>Add <code>servername</code> parameter to <code>apache</code> class</li>\n<li>Add <code>proxy_set</code> parameter to <code>apache::balancer</code> define</li>\n</ul>\n\n<h3>Bugfixes:</h3>\n\n<ul>\n<li>Fix ordering for multiple <code>apache::balancer</code> clusters</li>\n<li>Fix symlinking for sites-available on Debian-based OSs</li>\n<li>Fix dependency ordering for recursive confdir management</li>\n<li>Fix <code>apache::mod::*</code> to notify the service on config change</li>\n<li>Documentation updates</li>\n</ul>\n\n<h2>2013-07-09 Release 0.7.0</h2>\n\n<h3>Changes:</h3>\n\n<ul>\n<li>Essentially rewrite the module -- too many to list</li>\n<li><code>apache::vhost</code> has many abilities -- see README.md for details</li>\n<li><code>apache::mod::*</code> classes provide httpd mod-loading capabilities</li>\n<li><code>apache</code> base class is much more configurable</li>\n</ul>\n\n<h3>Bugfixes:</h3>\n\n<ul>\n<li>Many. And many more to come</li>\n</ul>\n\n<h2>2013-03-2 Release 0.6.0</h2>\n\n<ul>\n<li>update travis tests (add more supported versions)</li>\n<li>add access log_parameter</li>\n<li>make purging of vhost dir configurable</li>\n</ul>\n\n<h2>2012-08-24 Release 0.4.0</h2>\n\n<h3>Changes:</h3>\n\n<ul>\n<li><code>include apache</code> is now required when using <code>apache::mod::*</code></li>\n</ul>\n\n<h3>Bugfixes:</h3>\n\n<ul>\n<li>Fix syntax for validate_re</li>\n<li>Fix formatting in vhost template</li>\n<li><p>Fix spec tests such that they pass</p>\n\n<p>2012-05-08 Puppet Labs <a href=\"mailto:info@puppetlabs.com\">info@puppetlabs.com</a> - 0.0.4\ne62e362 Fix broken tests for ssl, vhost, vhost::*\n42c6363 Changes to match style guide and pass puppet-lint without error\n42bc8ba changed name =&gt; path for file resources in order to name namevar by it&#39;s name\n72e13de One end too much\n0739641 style guide fixes: &#39;true&#39; &lt;&gt; true, $operatingsystem needs to be $::operatingsystem, etc.\n273f94d fix tests\na35ede5 (#13860) Make a2enmod/a2dismo commands optional\n98d774e (#13860) Autorequire Package[&#39;httpd&#39;]\n05fcec5 (#13073) Add missing puppet spec tests\n541afda (#6899) Remove virtual a2mod definition\n976cb69 (#13072) Move mod python and wsgi package names to params\n323915a (#13060) Add .gitignore to repo\nfdf40af (#13060) Remove pkg directory from source tree\nfd90015 Add LICENSE file and update the ModuleFile\nd3d0d23 Re-enable local php class\nd7516c7 Make management of firewalls configurable for vhosts\n60f83ba Explicitly lookup scope of apache_name in templates.\nf4d287f (#12581) Add explicit ordering for vdir directory\n88a2ac6 (#11706) puppetlabs-apache depends on puppetlabs-firewall\na776a8b (#11071) Fix to work with latest firewall module\n2b79e8b (#11070) Add support for Scientific Linux\n405b3e9 Fix for a2mod\n57b9048 Commit apache::vhost::redirect Manifest\n8862d01 Commit apache::vhost::proxy Manifest\nd5c1fd0 Commit apache::mod::wsgi Manifest\na825ac7 Commit apache::mod::python Manifest\nb77062f Commit Templates\n9a51b4a Vhost File Declarations\n6cf7312 Defaults for Parameters\n6a5b11a Ensure installed\nf672e46 a2mod fix\n8a56ee9 add pthon support to apache</p></li>\n</ul>\n</section>",
##############################################
ruby-puppet-forge-2.3.2/spec/fixtures/v3/releases__module=puppetlabs-apache.json-1741-      "downloads": 1586,
ruby-puppet-forge-2.3.2/spec/fixtures/v3/releases__module=puppetlabs-apache.json:1742:      "readme": "<section class=\"markdown\"><h1>apache</h1>\n\n<h4>Table of Contents</h4>\n\n<ol>\n<li><a href=\"#overview\">Overview - What is the Apache module?</a></li>\n<li><a href=\"#module-description\">Module Description - What does the module do?</a></li>\n<li><a href=\"#setup\">Setup - The basics of getting started with Apache</a>\n\n<ul>\n<li><a href=\"#beginning-with-apache\">Beginning with Apache - Installation</a></li>\n<li><a href=\"#configure-a-virtual-host\">Configure a Virtual Host - Basic options for getting started</a></li>\n</ul></li>\n<li><a href=\"#usage\">Usage - The classes, defined types, and their parameters available for configuration</a>\n\n<ul>\n<li><a href=\"#classes-and-defined-types\">Classes and Defined Types</a>\n\n<ul>\n<li><a href=\"#class-apache\">Class: apache</a></li>\n<li><a href=\"#classes-apachemodname\">Classes: apache::mod::*</a></li>\n<li><a href=\"#defined-type-apachevhost\">Defined Type: apache::vhost</a></li>\n</ul></li>\n<li><a href=\"#virtual-host-examples\">Virtual Host Examples - Demonstrations of some configuration options</a></li>\n</ul></li>\n<li><a href=\"#implementation\">Implementation - An under-the-hood peek at what the module is doing</a>\n\n<ul>\n<li><a href=\"#classes-and-defined-types\">Classes and Defined Types</a></li>\n<li><a href=\"#templates\">Templates</a></li>\n</ul></li>\n<li><a href=\"#limitations\">Limitations - OS compatibility, etc.</a></li>\n<li><a href=\"#development\">Development - Guide for contributing to the module</a></li>\n<li><a href=\"#release-notes\">Release Notes - Notes on the most recent updates to the module</a></li>\n</ol>\n\n<h2>Overview</h2>\n\n<p>The Apache module allows you to set up virtual hosts and manage web services with minimal effort.</p>\n\n<h2>Module Description</h2>\n\n<p>Apache is a widely-used web server, and this module provides a simplified way of creating configurations to manage your infrastructure. This includes the ability to configure and manage a range of different virtual host setups, as well as a streamlined way to install and configure Apache modules.</p>\n\n<h2>Setup</h2>\n\n<p><strong>What Apache affects:</strong></p>\n\n<ul>\n<li>configuration files and directories (created and written to)\n\n<ul>\n<li><strong>NOTE</strong>: Configurations that are <em>not</em> managed by Puppet will be purged.</li>\n</ul></li>\n<li>package/service/configuration files for Apache</li>\n<li>Apache modules</li>\n<li>virtual hosts</li>\n<li>listened-to ports</li>\n</ul>\n\n<h3>Beginning with Apache</h3>\n\n<p>To install Apache with the default parameters</p>\n\n<pre><code>class { &#39;apache&#39;:  }\n</code></pre>\n\n<p>The defaults are determined by your operating system (e.g. Debian systems have one set of defaults, RedHat systems have another). These defaults will work well in a testing environment, but are not suggested for production. To establish customized parameters</p>\n\n<pre><code>class { &#39;apache&#39;:\n  default_mods =&gt; false,\n  …\n}\n</code></pre>\n\n<h3>Configure a virtual host</h3>\n\n<p>Declaring the <code>apache</code> class will create a default virtual host by setting up a vhost on port 80, listening on all interfaces and serving <code>$apache::docroot</code>.</p>\n\n<pre><code>class { &#39;apache&#39;: }\n</code></pre>\n\n<p>To configure a very basic, name-based virtual host</p>\n\n<pre><code>apache::vhost { &#39;first.example.com&#39;:\n  port    =&gt; &#39;80&#39;,\n  docroot =&gt; &#39;/var/www/first&#39;,\n}\n</code></pre>\n\n<p><em>Note:</em> The default priority is 15. If nothing matches this priority, the alphabetically first name-based vhost will be used. This is also true if you pass a higher priority and no names match anything else.</p>\n\n<p>A slightly more complicated example, which moves the docroot owner/group</p>\n\n<pre><code>apache::vhost { &#39;second.example.com&#39;:\n  port          =&gt; &#39;80&#39;,\n  docroot       =&gt; &#39;/var/www/second&#39;,\n  docroot_owner =&gt; &#39;third&#39;,\n  docroot_group =&gt; &#39;third&#39;,\n}\n</code></pre>\n\n<p>To set up a virtual host with SSL and default SSL certificates</p>\n\n<pre><code>apache::vhost { &#39;ssl.example.com&#39;:\n  port    =&gt; &#39;443&#39;,\n  docroot =&gt; &#39;/var/www/ssl&#39;,\n  ssl     =&gt; true,\n}\n</code></pre>\n\n<p>To set up a virtual host with SSL and specific SSL certificates</p>\n\n<pre><code>apache::vhost { &#39;fourth.example.com&#39;:\n  port     =&gt; &#39;443&#39;,\n  docroot  =&gt; &#39;/var/www/fourth&#39;,\n  ssl      =&gt; true,\n  ssl_cert =&gt; &#39;/etc/ssl/fourth.example.com.cert&#39;,\n  ssl_key  =&gt; &#39;/etc/ssl/fourth.example.com.key&#39;,\n}\n</code></pre>\n\n<p>To set up a virtual host with wildcard alias for subdomain mapped to same named directory \n<code>http://examle.com.loc =&gt; /var/www/example.com</code></p>\n\n<pre><code>apache::vhost { &#39;subdomain.loc&#39;:\n  vhost_name =&gt; &#39;*&#39;,\n  port       =&gt; &#39;80&#39;,\n  virtual_docroot&#39; =&gt; &#39;/var/www/%-2+&#39;,\n  docroot          =&gt; &#39;/var/www&#39;,\n  serveraliases    =&gt; [&#39;*.loc&#39;,],\n}\n</code></pre>\n\n<p>To see a list of all virtual host parameters, <a href=\"#defined-type-apachevhost\">please go here</a>. To see an extensive list of virtual host examples <a href=\"#virtual-host-examples\">please look here</a>.</p>\n\n<h2>Usage</h2>\n\n<h3>Classes and Defined Types</h3>\n\n<p>This module modifies Apache configuration files and directories and will purge any configuration not managed by Puppet. Configuration of Apache should be managed by Puppet, as non-puppet configuration files can cause unexpected failures.</p>\n\n<p>It is possible to temporarily disable full Puppet management by setting the <code>purge_configs</code> parameter within the base <code>apache</code> class to &#39;false&#39;. This option should only be used as a temporary means of saving and relocating customized configurations.</p>\n\n<h4>Class: <code>apache</code></h4>\n\n<p>The Apache module&#39;s primary class, <code>apache</code>, guides the basic setup of Apache on your system.</p>\n\n<p>You may establish a default vhost in this class, the <code>vhost</code> class, or both. You may add additional vhost configurations for specific virtual hosts using a declaration of the <code>vhost</code> type.</p>\n\n<p><strong>Parameters within <code>apache</code>:</strong></p>\n\n<h5><code>default_mods</code></h5>\n\n<p>Sets up Apache with default settings based on your OS. Defaults to &#39;true&#39;, set to &#39;false&#39; for customized configuration.</p>\n\n<h5><code>default_vhost</code></h5>\n\n<p>Sets up a default virtual host. Defaults to &#39;true&#39;, set to &#39;false&#39; to set up <a href=\"#configure-a-virtual-host\">customized virtual hosts</a>.</p>\n\n<h5><code>default_ssl_vhost</code></h5>\n\n<p>Sets up a default SSL virtual host. Defaults to &#39;false&#39;.</p>\n\n<pre><code>apache::vhost { &#39;default-ssl&#39;:\n  port            =&gt; 443,\n  ssl             =&gt; true,\n  docroot         =&gt; $docroot,\n  scriptalias     =&gt; $scriptalias,\n  serveradmin     =&gt; $serveradmin,\n  access_log_file =&gt; &quot;ssl_${access_log_file}&quot;,\n  }\n</code></pre>\n\n<p>SSL vhosts only respond to HTTPS queries.</p>\n\n<h5><code>default_ssl_cert</code></h5>\n\n<p>The default SSL certification, which is automatically set based on your operating system  (<code>/etc/pki/tls/certs/localhost.crt</code> for RedHat, <code>/etc/ssl/certs/ssl-cert-snakeoil.pem</code> for Debian). This default will work out of the box but must be updated with your specific certificate information before being used in production.</p>\n\n<h5><code>default_ssl_key</code></h5>\n\n<p>The default SSL key, which is automatically set based on your operating system (<code>/etc/pki/tls/private/localhost.key</code> for RedHat, <code>/etc/ssl/private/ssl-cert-snakeoil.key</code> for Debian). This default will work out of the box but must be updated with your specific certificate information before being used in production.</p>\n\n<h5><code>default_ssl_chain</code></h5>\n\n<p>The default SSL chain, which is automatically set to &#39;undef&#39;. This default will work out of the box but must be updated with your specific certificate information before being used in production.</p>\n\n<h5><code>default_ssl_ca</code></h5>\n\n<p>The default certificate authority, which is automatically set to &#39;undef&#39;. This default will work out of the box but must be updated with your specific certificate information before being used in production.</p>\n\n<h5><code>default_ssl_crl_path</code></h5>\n\n<p>The default certificate revocation list path, which is automatically set to &#39;undef&#39;. This default will work out of the box but must be updated with your specific certificate information before being used in production.</p>\n\n<h5><code>default_ssl_crl</code></h5>\n\n<p>The default certificate revocation list to use, which is automatically set to &#39;undef&#39;. This default will work out of the box but must be updated with your specific certificate information before being used in production.</p>\n\n<h5><code>service_enable</code></h5>\n\n<p>Determines whether the &#39;httpd&#39; service is enabled when the machine is booted, meaning Puppet will check the service status to start/stop it. Defaults to &#39;true&#39;, meaning the service is enabled/running.</p>\n\n<h5><code>serveradmin</code></h5>\n\n<p>Sets the server administrator. Defaults to &#39;root@localhost&#39;.</p>\n\n<h5><code>servername</code></h5>\n\n<p>Sets the servername. Defaults to fqdn provided by facter.</p>\n\n<h5><code>sendfile</code></h5>\n\n<p>Makes Apache use the Linux kernel &#39;sendfile&#39; to serve static files. Defaults to &#39;false&#39;.</p>\n\n<h5><code>error_documents</code></h5>\n\n<p>Enables custom error documents. Defaults to &#39;false&#39;.</p>\n\n<h5><code>confd_dir</code></h5>\n\n<p>Changes the location of the configuration directory your custom configuration files are placed in. Default is based on your OS.</p>\n\n<h5><code>vhost_dir</code></h5>\n\n<p>Changes the location of the configuration directory your virtual host configuration files are placed in. Default is based on your OS.</p>\n\n<h5><code>mod_dir</code></h5>\n\n<p>Changes the location of the configuration directory your Apache modules configuration files are placed in. Default is based on your OS.</p>\n\n<h5><code>mpm_module</code></h5>\n\n<p>Configures which mpm module is loaded and configured for the httpd process by the <code>apache::mod::prefork</code> and <code>apache::mod::worker</code> classes. Must be set to <code>false</code> to explicitly declare <code>apache::mod::worker</code> or <code>apache::mod::prefork</code> classes with parameters. Valid values are <code>worker</code>, <code>prefork</code>, or the boolean <code>false</code>. Defaults to <code>prefork</code> on RedHat and <code>worker</code> on Debian.</p>\n\n<h5><code>conf_template</code></h5>\n\n<p>Setting this allows you to override the template used for the main apache configuration file.  This is a potentially risky thing to do as this module has been built around the concept of a minimal configuration file with most of the configuration coming in the form of conf.d/ entries.  Defaults to &#39;apache/httpd.conf.erb&#39;.</p>\n\n<h4>Class: <code>apache::default_mods</code></h4>\n\n<p>Installs default Apache modules based on what OS you are running</p>\n\n<pre><code>class { &#39;apache::default_mods&#39;: }\n</code></pre>\n\n<h4>Defined Type: <code>apache::mod</code></h4>\n\n<p>Used to enable arbitrary Apache httpd modules for which there is no specific <code>apache::mod::[name]</code> class. The <code>apache::mod</code> defined type will also install the required packages to enable the module, if any.</p>\n\n<pre><code>apache::mod { &#39;rewrite&#39;: }\napache::mod { &#39;ldap&#39;: }\n</code></pre>\n\n<h4>Classes: <code>apache::mod::[name]</code></h4>\n\n<p>There are many <code>apache::mod::[name]</code> classes within this module that can be declared using <code>include</code>:</p>\n\n<ul>\n<li><code>alias</code></li>\n<li><code>auth_basic</code></li>\n<li><code>auth_kerb</code></li>\n<li><code>autoindex</code></li>\n<li><code>cache</code></li>\n<li><code>cgi</code></li>\n<li><code>cgid</code></li>\n<li><code>dav</code></li>\n<li><code>dav_fs</code></li>\n<li><code>deflate</code></li>\n<li><code>dir</code>*</li>\n<li><code>disk_cache</code></li>\n<li><code>fcgid</code></li>\n<li><code>info</code></li>\n<li><code>ldap</code></li>\n<li><code>mime</code></li>\n<li><code>mime_magic</code></li>\n<li><code>mpm_event</code></li>\n<li><code>negotiation</code></li>\n<li><code>passenger</code>*</li>\n<li><code>perl</code></li>\n<li><code>php</code> (requires <a href=\"#mpm_module\"><code>mpm_module</code></a> set to <code>prefork</code>)</li>\n<li><code>prefork</code>*</li>\n<li><code>proxy</code>*</li>\n<li><code>proxy_html</code></li>\n<li><code>proxy_http</code></li>\n<li><code>python</code></li>\n<li><code>reqtimeout</code></li>\n<li><code>setenvif</code></li>\n<li><code>ssl</code>* (see <a href=\"#class-apachemodssl\">apache::mod::ssl</a> below)</li>\n<li><code>status</code></li>\n<li><code>userdir</code>*</li>\n<li><code>worker</code>*</li>\n<li><code>wsgi</code></li>\n<li><code>xsendfile</code></li>\n</ul>\n\n<p>Modules noted with a * indicate that the module has settings and, thus, a template that includes parameters. These parameters control the module&#39;s configuration. Most of the time, these parameters will not require any configuration or attention.</p>\n\n<p>The modules mentioned above, and other Apache modules that have templates, will cause template files to be dropped along with the mod install, and the module will not work without the template. Any mod without a template will install package but drop no files.</p>\n\n<h4>Class: <code>apache::mod::ssl</code></h4>\n\n<p>Installs Apache SSL capabilities and utilizes <code>ssl.conf.erb</code> template</p>\n\n<pre><code>class { &#39;apache::mod::ssl&#39;: }\n</code></pre>\n\n<p>To <em>use</em> SSL with a virtual host, you must either set the<code>default_ssl_vhost</code> parameter in <code>apache</code> to &#39;true&#39; or set the <code>ssl</code> parameter in <code>apache::vhost</code> to &#39;true&#39;.</p>\n\n<h4>Defined Type: <code>apache::vhost</code></h4>\n\n<p>The Apache module allows a lot of flexibility in the set up and configuration of virtual hosts. This flexibility is due, in part, to <code>vhost</code>&#39;s setup as a defined resource type, which allows it to be evaluated multiple times with different parameters.</p>\n\n<p>The <code>vhost</code> defined type allows you to have specialized configurations for virtual hosts that have requirements outside of the defaults. You can set up a default vhost within the base <code>apache</code> class as well as set a customized vhost setup as default. Your customized vhost (priority 10) will be privileged over the base class vhost (15).</p>\n\n<p>If you have a series of specific configurations and do not want a base <code>apache</code> class default vhost, make sure to set the base class default host to &#39;false&#39;.</p>\n\n<pre><code>class { &#39;apache&#39;:\n  default_vhost =&gt; false,\n}\n</code></pre>\n\n<p><strong>Parameters within <code>apache::vhost</code>:</strong></p>\n\n<p>The default values for each parameter will vary based on operating system and type of virtual host.</p>\n\n<h5><code>access_log</code></h5>\n\n<p>Specifies whether <code>*_access.log</code> directives should be configured. Valid values are &#39;true&#39; and &#39;false&#39;. Defaults to &#39;true&#39;.</p>\n\n<h5><code>access_log_file</code></h5>\n\n<p>Points to the <code>*_access.log</code> file. Defaults to &#39;undef&#39;.</p>\n\n<h5><code>access_log_pipe</code></h5>\n\n<p>Specifies a pipe to send access log messages to. Defaults to &#39;undef&#39;.</p>\n\n<h5><code>access_log_format</code></h5>\n\n<p>Specifies either a LogFormat nickname or custom format string for access log. Defaults to &#39;undef&#39;.</p>\n\n<h5><code>add_listen</code></h5>\n\n<p>Determines whether the vhost creates a listen statement. The default value is &#39;true&#39;.</p>\n\n<p>Setting <code>add_listen</code> to &#39;false&#39; stops the vhost from creating a listen statement, and this is important when you combine vhosts that are not passed an <code>ip</code> parameter with vhosts that <em>are</em> passed the <code>ip</code> parameter.</p>\n\n<h5><code>aliases</code></h5>\n\n<p>Passes a list of hashes to the vhost to create <code>Alias</code> statements as per the <a href=\"http://httpd.apache.org/docs/current/mod/mod_alias.html\"><code>mod_alias</code> documentation</a>. Each hash is expected to be of the form:</p>\n\n<pre lang=\"ruby\"><code>aliases =&gt; [ { alias =&gt; &#39;/alias&#39;, path =&gt; &#39;/path/to/directory&#39; } ],\n</code></pre>\n\n<p>For <code>Alias</code> to work, each will need a corresponding <code>&lt;Directory /path/to/directory&gt;</code> or <code>&lt;Location /path/to/directory&gt;</code> block.</p>\n\n<p><strong>Note:</strong> If <code>apache::mod::passenger</code> is loaded and <code>PassengerHighPerformance true</code> is set, then <code>Alias</code> may have issues honouring the <code>PassengerEnabled off</code> statement. See <a href=\"http://www.conandalton.net/2010/06/passengerenabled-off-not-working.html\">this article</a> for details.</p>\n\n<h5><code>block</code></h5>\n\n<p>Specifies the list of things Apache will block access to. The default is an empty set, &#39;[]&#39;. Currently, the only option is &#39;scm&#39;, which blocks web access to .svn, .git and .bzr directories. To add to this, please see the <a href=\"#development\">Development</a> section.</p>\n\n<h5><code>custom_fragment</code></h5>\n\n<p>Pass a string of custom configuration directives to be placed at the end of the vhost configuration.</p>\n\n<h5><code>default_vhost</code></h5>\n\n<p>Sets a given <code>apache::vhost</code> as the default to serve requests that do not match any other <code>apache::vhost</code> definitions. The default value is &#39;false&#39;.</p>\n\n<h5><code>directories</code></h5>\n\n<p>Passes a list of hashes to the vhost to create <code>&lt;Directory /path/to/directory&gt;...&lt;/Directory&gt;</code> directive blocks as per the <a href=\"http://httpd.apache.org/docs/2.2/mod/core.html#directory\">Apache core documentation</a>.  The <code>path</code> key is required in these hashes.  Usage will typically look like:</p>\n\n<pre><code>apache::vhost { &#39;sample.example.net&#39;:\n  docroot     =&gt; &#39;/path/to/directory&#39;,\n  directories =&gt; [\n    { path =&gt; &#39;/path/to/directory&#39;, &lt;directive&gt; =&gt; &lt;value&gt; },\n    { path =&gt; &#39;/path/to/another/directory&#39;, &lt;directive&gt; =&gt; &lt;value&gt; },\n  ],\n}\n</code></pre>\n\n<p><em>Note:</em> At least one directory should match <code>docroot</code> parameter, once you start declaring directories <code>apache::vhost</code> assumes that all required <code>&lt;Directory&gt;</code> blocks will be declared.</p>\n\n<p><em>Note:</em> If not defined a single default <code>&lt;Directory&gt;</code> block will be created that matches the <code>docroot</code> parameter.</p>\n\n<p>The directives will be embedded within the <code>Directory</code> directive block, missing directives should be undefined and not be added, resulting in their default vaules in Apache. Currently this is the list of supported directives:</p>\n\n<h6><code>addhandlers</code></h6>\n\n<p>Sets <code>AddHandler</code> directives as per the <a href=\"http://httpd.apache.org/docs/2.2/mod/mod_mime.html#addhandler\">Apache Core documentation</a>. Accepts a list of hashes of the form <code>{ handler =&gt; &#39;handler-name&#39;, extensions =&gt; [&#39;extension&#39;]}</code>. Note that <code>extensions</code> is a list of extenstions being handled by the handler.\nAn example: </p>\n\n<pre><code>apache::vhost { &#39;sample.example.net&#39;:\n  docroot     =&gt; &#39;/path/to/directory&#39;,\n  directories =&gt; [ { path =&gt; &#39;/path/to/directory&#39;,\n    addhandlers =&gt; [ { handler =&gt; &#39;cgi-script&#39;, extensions =&gt; [&#39;.cgi&#39;]} ],\n  } ],\n}\n</code></pre>\n\n<h6><code>allow</code></h6>\n\n<p>Sets an <code>Allow</code> directive as per the <a href=\"http://httpd.apache.org/docs/2.2/mod/mod_authz_host.html#allow\">Apache Core documentation</a>. An example:</p>\n\n<pre><code>apache::vhost { &#39;sample.example.net&#39;:\n  docroot     =&gt; &#39;/path/to/directory&#39;,\n  directories =&gt; [ { path =&gt; &#39;/path/to/directory&#39;, allow =&gt; &#39;from example.org&#39; } ],\n}\n</code></pre>\n\n<h6><code>allow_override</code></h6>\n\n<p>Sets the usage of <code>.htaccess</code> files as per the <a href=\"http://httpd.apache.org/docs/2.2/mod/core.html#allowoverride\">Apache core documentation</a>. Should accept in the form of a list or a string. An example:</p>\n\n<pre><code>apache::vhost { &#39;sample.example.net&#39;:\n  docroot     =&gt; &#39;/path/to/directory&#39;,\n  directories =&gt; [ { path =&gt; &#39;/path/to/directory&#39;, allow_override =&gt; [&#39;AuthConfig&#39;, &#39;Indexes&#39;] } ],\n}\n</code></pre>\n\n<h6><code>deny</code></h6>\n\n<p>Sets an <code>Deny</code> directive as per the <a href=\"http://httpd.apache.org/docs/2.2/mod/mod_authz_host.html#deny\">Apache Core documentation</a>. An example:</p>\n\n<pre><code>apache::vhost { &#39;sample.example.net&#39;:\n  docroot     =&gt; &#39;/path/to/directory&#39;,\n  directories =&gt; [ { path =&gt; &#39;/path/to/directory&#39;, deny =&gt; &#39;from example.org&#39; } ],\n}\n</code></pre>\n\n<h6><code>options</code></h6>\n\n<p>Lists the options for the given <code>&lt;Directory&gt;</code> block</p>\n\n<pre><code>apache::vhost { &#39;sample.example.net&#39;:\n  docroot     =&gt; &#39;/path/to/directory&#39;,\n  directories =&gt; [ { path =&gt; &#39;/path/to/directory&#39;, options =&gt; [&#39;Indexes&#39;,&#39;FollowSymLinks&#39;,&#39;MultiViews&#39;] }],\n}\n</code></pre>\n\n<h6><code>order</code></h6>\n\n<p>Sets the order of processing <code>Allow</code> and <code>Deny</code> statements as per <a href=\"http://httpd.apache.org/docs/2.2/mod/mod_authz_host.html#order\">Apache core documentation</a>. An example:</p>\n\n<pre><code>apache::vhost { &#39;sample.example.net&#39;:\n  docroot     =&gt; &#39;/path/to/directory&#39;,\n  directories =&gt; [ { path =&gt; &#39;/path/to/directory&#39;, order =&gt; &#39;Allow, Deny&#39; } ],\n}\n</code></pre>\n\n<h6><code>passenger_enabled</code></h6>\n\n<p>Sets the value for the <code>PassengerEnabled</code> directory to <code>on</code> or <code>off</code> as per the <a href=\"http://www.modrails.com/documentation/Users%20guide%20Apache.html#PassengerEnabled\">Passenger documentation</a>.</p>\n\n<pre><code>apache::vhost { &#39;sample.example.net&#39;:\n  docroot     =&gt; &#39;/path/to/directory&#39;,\n  directories =&gt; [ { path =&gt; &#39;/path/to/directory&#39;, passenger_enabled =&gt; &#39;off&#39; } ],\n}\n</code></pre>\n\n<p><strong>Note:</strong> This directive requires <code>apache::mod::passenger</code> to be active, Apache may not start with an unrecognised directive without it.</p>\n\n<p><strong>Note:</strong> Be aware that there is an <a href=\"http://www.conandalton.net/2010/06/passengerenabled-off-not-working.html\">issue</a> using the <code>PassengerEnabled</code> directive with the <code>PassengerHighPerformance</code> directive.</p>\n\n<h5><code>docroot</code></h5>\n\n<p>Provides the DocumentRoot directive, identifying the directory Apache serves files from.</p>\n\n<h5><code>docroot_group</code></h5>\n\n<p>Sets group access to the docroot directory. Defaults to &#39;root&#39;.</p>\n\n<h5><code>docroot_owner</code></h5>\n\n<p>Sets individual user access to the docroot directory. Defaults to &#39;root&#39;.</p>\n\n<h5><code>error_log</code></h5>\n\n<p>Specifies whether <code>*_error.log</code> directives should be configured. Defaults to &#39;true&#39;.</p>\n\n<h5><code>error_log_file</code></h5>\n\n<p>Points to the <code>*_error.log</code> file. Defaults to &#39;undef&#39;.</p>\n\n<h5><code>error_log_pipe</code></h5>\n\n<p>Specifies a pipe to send error log messages to. Defaults to &#39;undef&#39;.</p>\n\n<h5><code>ensure</code></h5>\n\n<p>Specifies if the vhost file is present or absent.</p>\n\n<h5><code>ip</code></h5>\n\n<p>The IP address the vhost listens on. Defaults to &#39;undef&#39;.</p>\n\n<h5><code>ip_based</code></h5>\n\n<p>Enables an IP-based vhost. This parameter inhibits the creation of a NameVirtualHost directive, since those are used to funnel requests to name-based vhosts. Defaults to &#39;false&#39;.</p>\n\n<h5><code>logroot</code></h5>\n\n<p>Specifies the location of the virtual host&#39;s logfiles. Defaults to <code>/var/log/&lt;apache log location&gt;/</code>.</p>\n\n<h5><code>no_proxy_uris</code></h5>\n\n<p>Specifies URLs you do not want to proxy. This parameter is meant to be used in combination with <code>proxy_dest</code>.</p>\n\n<h5><code>options</code></h5>\n\n<p>Lists the options for the given virtual host</p>\n\n<pre><code>apache::vhost { &#39;site.name.fdqn&#39;:\n  …\n  options =&gt; [&#39;Indexes&#39;,&#39;FollowSymLinks&#39;,&#39;MultiViews&#39;],\n}\n</code></pre>\n\n<h5><code>override</code></h5>\n\n<p>Sets the overrides for the given virtual host. Accepts an array of AllowOverride arguments.</p>\n\n<h5><code>port</code></h5>\n\n<p>Sets the port the host is configured on.</p>\n\n<h5><code>priority</code></h5>\n\n<p>Sets the relative load-order for Apache httpd VirtualHost configuration files. Defaults to &#39;25&#39;.</p>\n\n<p>If nothing matches the priority, the first name-based vhost will be used. Likewise, passing a higher priority will cause the alphabetically first name-based vhost to be used if no other names match.</p>\n\n<p><em>Note</em>: You should not need to use this parameter. However, if you do use it, be aware that the <code>default_vhost</code> parameter for <code>apache::vhost</code> passes a priority of &#39;15&#39;.</p>\n\n<h5><code>proxy_dest</code></h5>\n\n<p>Specifies the destination address of a proxypass configuration. Defaults to &#39;undef&#39;.</p>\n\n<h5><code>proxy_pass</code></h5>\n\n<p>Specifies an array of path =&gt; uri for a proxypass configuration. Defaults to &#39;undef&#39;.</p>\n\n<p>Example:\n$proxy_pass = [\n  { &#39;path&#39; =&gt; &#39;/a&#39;, &#39;url&#39; =&gt; &#39;http://backend-a/&#39; },\n  { &#39;path&#39; =&gt; &#39;/b&#39;, &#39;url&#39; =&gt; &#39;http://backend-b/&#39; },\n  { &#39;path&#39; =&gt; &#39;/c&#39;, &#39;url&#39; =&gt; &#39;http://backend-a/c&#39; },\n]</p>\n\n<p>apache::vhost { &#39;site.name.fdqn&#39;:\n  …\n  proxy_pass       =&gt; $proxy_pass,\n}</p>\n\n<h5><code>rack_base_uris</code></h5>\n\n<p>Specifies the resource identifiers for a rack configuration. The file paths specified will be listed as rack application roots for passenger/rack in the <code>_rack.erb</code> template. Defaults to &#39;undef&#39;.</p>\n\n<h5><code>redirect_dest</code></h5>\n\n<p>Specifies the address to redirect to. Defaults to &#39;undef&#39;.</p>\n\n<h5><code>redirect_source</code></h5>\n\n<p>Specifies the source items? that will redirect to the destination specified in <code>redirect_dest</code>. If more than one item for redirect is supplied, the source and destination must be the same length, and the items are order-dependent.</p>\n\n<pre><code>apache::vhost { &#39;site.name.fdqn&#39;:\n  …\n  redirect_source =&gt; [&#39;/images&#39;,&#39;/downloads&#39;],\n  redirect_dest =&gt; [&#39;http://img.example.com/&#39;,&#39;http://downloads.example.com/&#39;],\n}\n</code></pre>\n\n<h5><code>redirect_status</code></h5>\n\n<p>Specifies the status to append to the redirect. Defaults to &#39;undef&#39;.</p>\n\n<pre><code>apache::vhost { &#39;site.name.fdqn&#39;:\n  …\n  redirect_status =&gt; [&#39;temp&#39;,&#39;permanent&#39;],\n}\n</code></pre>\n\n<h5><code>request_headers</code></h5>\n\n<p>Specifies additional request headers.</p>\n\n<pre><code>apache::vhost { &#39;site.name.fdqn&#39;:\n  …\n  request_headers =&gt; [\n    &#39;append MirrorID &quot;mirror 12&quot;&#39;,\n    &#39;unset MirrorID&#39;,\n  ],\n}\n</code></pre>\n\n<h5><code>rewrite_base</code></h5>\n\n<p>Limits the <code>rewrite_rule</code> to the specified base URL. Defaults to &#39;undef&#39;.</p>\n\n<pre><code>apache::vhost { &#39;site.name.fdqn&#39;:\n  …\n  rewrite_rule =&gt; &#39;^index\\.html$ welcome.html&#39;,\n  rewrite_base =&gt; &#39;/blog/&#39;,\n}\n</code></pre>\n\n<p>The above example would limit the index.html -&gt; welcome.html rewrite to only something inside of <a href=\"http://example.com/blog/\">http://example.com/blog/</a>.</p>\n\n<h5><code>rewrite_cond</code></h5>\n\n<p>Rewrites a URL via <code>rewrite_rule</code> based on the truth of specified conditions. For example</p>\n\n<pre><code>apache::vhost { &#39;site.name.fdqn&#39;:\n  …\n  rewrite_cond =&gt; &#39;%{HTTP_USER_AGENT} ^MSIE&#39;,\n}\n</code></pre>\n\n<p>will rewrite URLs only if the visitor is using IE. Defaults to &#39;undef&#39;.</p>\n\n<p><em>Note</em>: At the moment, each vhost is limited to a single list of rewrite conditions. In the future, you will be able to specify multiple <code>rewrite_cond</code> and <code>rewrite_rules</code> per vhost, so that different conditions get different rewrites.</p>\n\n<h5><code>rewrite_rule</code></h5>\n\n<p>Creates URL rewrite rules. Defaults to &#39;undef&#39;. This parameter allows you to specify, for example, that anyone trying to access index.html will be served welcome.html.</p>\n\n<pre><code>apache::vhost { &#39;site.name.fdqn&#39;:\n  …\n  rewrite_rule =&gt; &#39;^index\\.html$ welcome.html&#39;,\n}\n</code></pre>\n\n<h5><code>scriptalias</code></h5>\n\n<p>Defines a directory of CGI scripts to be aliased to the path &#39;/cgi-bin&#39;</p>\n\n<h5><code>serveradmin</code></h5>\n\n<p>Specifies the email address Apache will display when it renders one of its error pages.</p>\n\n<h5><code>serveraliases</code></h5>\n\n<p>Sets the server aliases of the site.</p>\n\n<h5><code>servername</code></h5>\n\n<p>Sets the primary name of the virtual host.</p>\n\n<h5><code>setenv</code></h5>\n\n<p>Used by HTTPD to set environment variables for vhosts. Defaults to &#39;[]&#39;.</p>\n\n<h5><code>setenvif</code></h5>\n\n<p>Used by HTTPD to conditionally set environment variables for vhosts. Defaults to &#39;[]&#39;.</p>\n\n<h5><code>ssl</code></h5>\n\n<p>Enables SSL for the virtual host. SSL vhosts only respond to HTTPS queries. Valid values are &#39;true&#39; or &#39;false&#39;.</p>\n\n<h5><code>ssl_ca</code></h5>\n\n<p>Specifies the certificate authority.</p>\n\n<h5><code>ssl_cert</code></h5>\n\n<p>Specifies the SSL certification.</p>\n\n<h5><code>ssl_certs_dir</code></h5>\n\n<p>Specifies the location of the SSL certification directory. Defaults to <code>/etc/ssl/certs</code>.</p>\n\n<h5><code>ssl_chain</code></h5>\n\n<p>Specifies the SSL chain.</p>\n\n<h5><code>ssl_crl</code></h5>\n\n<p>Specifies the certificate revocation list to use.</p>\n\n<h5><code>ssl_crl_path</code></h5>\n\n<p>Specifies the location of the certificate revocation list.</p>\n\n<h5><code>ssl_key</code></h5>\n\n<p>Specifies the SSL key.</p>\n\n<h5><code>vhost_name</code></h5>\n\n<p>This parameter is for use with name-based virtual hosting. Defaults to &#39;*&#39;.</p>\n\n<h3>Virtual Host Examples</h3>\n\n<p>The Apache module allows you to set up pretty much any configuration of virtual host you might desire. This section will address some common configurations. Please see the <a href=\"https://github.com/puppetlabs/puppetlabs-apache/tree/master/tests\">Tests section</a> for even more examples.</p>\n\n<p>Configure a vhost with a server administrator</p>\n\n<pre><code>apache::vhost { &#39;third.example.com&#39;:\n  port        =&gt; &#39;80&#39;,\n  docroot     =&gt; &#39;/var/www/third&#39;,\n  serveradmin =&gt; &#39;admin@example.com&#39;,\n}\n</code></pre>\n\n<hr>\n\n<p>Set up a vhost with aliased servers</p>\n\n<pre><code>apache::vhost { &#39;sixth.example.com&#39;:\n  serveraliases =&gt; [\n    &#39;sixth.example.org&#39;,\n    &#39;sixth.example.net&#39;,\n  ],\n  port          =&gt; &#39;80&#39;,\n  docroot       =&gt; &#39;/var/www/fifth&#39;,\n}\n</code></pre>\n\n<hr>\n\n<p>Configure a vhost with a cgi-bin</p>\n\n<pre><code>apache::vhost { &#39;eleventh.example.com&#39;:\n  port        =&gt; &#39;80&#39;,\n  docroot     =&gt; &#39;/var/www/eleventh&#39;,\n  scriptalias =&gt; &#39;/usr/lib/cgi-bin&#39;,\n}\n</code></pre>\n\n<hr>\n\n<p>Set up a vhost with a rack configuration</p>\n\n<pre><code>apache::vhost { &#39;fifteenth.example.com&#39;:\n  port           =&gt; &#39;80&#39;,\n  docroot        =&gt; &#39;/var/www/fifteenth&#39;,\n  rack_base_uris =&gt; [&#39;/rackapp1&#39;, &#39;/rackapp2&#39;],\n}\n</code></pre>\n\n<hr>\n\n<p>Set up a mix of SSL and non-SSL vhosts at the same domain</p>\n\n<pre><code>#The non-ssl vhost\napache::vhost { &#39;first.example.com non-ssl&#39;:\n  servername =&gt; &#39;first.example.com&#39;,\n  port       =&gt; &#39;80&#39;,\n  docroot    =&gt; &#39;/var/www/first&#39;,\n}\n\n#The SSL vhost at the same domain\napache::vhost { &#39;first.example.com ssl&#39;:\n  servername =&gt; &#39;first.example.com&#39;,\n  port       =&gt; &#39;443&#39;,\n  docroot    =&gt; &#39;/var/www/first&#39;,\n  ssl        =&gt; true,\n}\n</code></pre>\n\n<hr>\n\n<p>Configure a vhost to redirect non-SSL connections to SSL</p>\n\n<pre><code>apache::vhost { &#39;sixteenth.example.com non-ssl&#39;:\n  servername      =&gt; &#39;sixteenth.example.com&#39;,\n  port            =&gt; &#39;80&#39;,\n  docroot         =&gt; &#39;/var/www/sixteenth&#39;,\n  redirect_status =&gt; &#39;permanent&#39;\n  redirect_dest   =&gt; &#39;https://sixteenth.example.com/&#39; \n}\napache::vhost { &#39;sixteenth.example.com ssl&#39;:\n  servername =&gt; &#39;sixteenth.example.com&#39;,\n  port       =&gt; &#39;443&#39;,\n  docroot    =&gt; &#39;/var/www/sixteenth&#39;,\n  ssl        =&gt; true,\n}\n</code></pre>\n\n<hr>\n\n<p>Set up IP-based vhosts on any listen port and have them respond to requests on specific IP addresses. In this example, we will set listening on ports 80 and 81. This is required because the example vhosts are not declared with a port parameter.</p>\n\n<pre><code>apache::listen { &#39;80&#39;: }\napache::listen { &#39;81&#39;: }\n</code></pre>\n\n<p>Then we will set up the IP-based vhosts</p>\n\n<pre><code>apache::vhost { &#39;first.example.com&#39;:\n  ip       =&gt; &#39;10.0.0.10&#39;,\n  docroot  =&gt; &#39;/var/www/first&#39;,\n  ip_based =&gt; true,\n}\napache::vhost { &#39;second.example.com&#39;:\n  ip       =&gt; &#39;10.0.0.11&#39;,\n  docroot  =&gt; &#39;/var/www/second&#39;,\n  ip_based =&gt; true,\n}\n</code></pre>\n\n<hr>\n\n<p>Configure a mix of name-based and IP-based vhosts. First, we will add two IP-based vhosts on 10.0.0.10, one SSL and one non-SSL</p>\n\n<pre><code>apache::vhost { &#39;The first IP-based vhost, non-ssl&#39;:\n  servername =&gt; &#39;first.example.com&#39;,\n  ip         =&gt; &#39;10.0.0.10&#39;,\n  port       =&gt; &#39;80&#39;,\n  ip_based   =&gt; true,\n  docroot    =&gt; &#39;/var/www/first&#39;,\n}\napache::vhost { &#39;The first IP-based vhost, ssl&#39;:\n  servername =&gt; &#39;first.example.com&#39;,\n  ip         =&gt; &#39;10.0.0.10&#39;,\n  port       =&gt; &#39;443&#39;,\n  ip_based   =&gt; true,\n  docroot    =&gt; &#39;/var/www/first-ssl&#39;,\n  ssl        =&gt; true,\n}\n</code></pre>\n\n<p>Then, we will add two name-based vhosts listening on 10.0.0.20</p>\n\n<pre><code>apache::vhost { &#39;second.example.com&#39;:\n  ip      =&gt; &#39;10.0.0.20&#39;,\n  port    =&gt; &#39;80&#39;,\n  docroot =&gt; &#39;/var/www/second&#39;,\n}\napache::vhost { &#39;third.example.com&#39;:\n  ip      =&gt; &#39;10.0.0.20&#39;,\n  port    =&gt; &#39;80&#39;,\n  docroot =&gt; &#39;/var/www/third&#39;,\n}\n</code></pre>\n\n<p>If you want to add two name-based vhosts so that they will answer on either 10.0.0.10 or 10.0.0.20, you <strong>MUST</strong> declare <code>add_listen =&gt; &#39;false&#39;</code> to disable the otherwise automatic &#39;Listen 80&#39;, as it will conflict with the preceding IP-based vhosts.</p>\n\n<pre><code>apache::vhost { &#39;fourth.example.com&#39;:\n  port       =&gt; &#39;80&#39;,\n  docroot    =&gt; &#39;/var/www/fourth&#39;,\n  add_listen =&gt; false,\n}\napache::vhost { &#39;fifth.example.com&#39;:\n  port       =&gt; &#39;80&#39;,\n  docroot    =&gt; &#39;/var/www/fifth&#39;,\n  add_listen =&gt; false,\n}\n</code></pre>\n\n<h2>Implementation</h2>\n\n<h3>Classes and Defined Types</h3>\n\n<h4>Class: <code>apache::dev</code></h4>\n\n<p>Installs Apache development libraries</p>\n\n<pre><code>class { &#39;apache::dev&#39;: }\n</code></pre>\n\n<h4>Defined Type: <code>apache::listen</code></h4>\n\n<p>Controls which ports Apache binds to for listening based on the title:</p>\n\n<pre><code>apache::listen { &#39;80&#39;: }\napache::listen { &#39;443&#39;: }\n</code></pre>\n\n<p>Declaring this defined type will add all <code>Listen</code> directives to the <code>ports.conf</code> file in the Apache httpd configuration directory.  <code>apache::listen</code> titles should always take the form of: <code>&lt;port&gt;</code>, <code>&lt;ipv4&gt;:&lt;port&gt;</code>, or <code>[&lt;ipv6&gt;]:&lt;port&gt;</code></p>\n\n<p>Apache httpd requires that <code>Listen</code> directives must be added for every port. The <code>apache::vhost</code> defined type will automatically add <code>Listen</code> directives unless the <code>apache::vhost</code> is passed <code>add_listen =&gt; false</code>.</p>\n\n<h4>Defined Type: <code>apache::namevirtualhost</code></h4>\n\n<p>Enables named-based hosting of a virtual host</p>\n\n<pre><code>class { &#39;apache::namevirtualhost`: }\n</code></pre>\n\n<p>Declaring this defined type will add all <code>NameVirtualHost</code> directives to the <code>ports.conf</code> file in the Apache https configuration directory. <code>apache::namevirtualhost</code> titles should always take the form of: <code>*</code>, <code>*:&lt;port&gt;</code>, <code>_default_:&lt;port&gt;</code>, <code>&lt;ip&gt;</code>, or <code>&lt;ip&gt;:&lt;port&gt;</code>.</p>\n\n<h4>Defined Type: <code>apache::balancermember</code></h4>\n\n<p>Define members of a proxy_balancer set (mod_proxy_balancer). Very useful when using exported resources.</p>\n\n<p>On every app server you can export a balancermember like this:</p>\n\n<pre><code>  @@apache::balancermember { &quot;${::fqdn}-puppet00&quot;:\n    balancer_cluster =&gt; &#39;puppet00&#39;,\n    url              =&gt; &quot;ajp://${::fqdn}:8009&quot;\n    options          =&gt; [&#39;ping=5&#39;, &#39;disablereuse=on&#39;, &#39;retry=5&#39;, &#39;ttl=120&#39;],\n  }\n</code></pre>\n\n<p>And on the proxy itself you create the balancer cluster using the defined type apache::balancer:</p>\n\n<pre><code>  apache::balancer { &#39;puppet00&#39;: }\n</code></pre>\n\n<p>If you need to use ProxySet in the balncer config you can do as so:</p>\n\n<pre><code>  apache::balancer { &#39;puppet01&#39;:\n    proxy_set =&gt; {&#39;stickysession&#39; =&gt; &#39;JSESSIONID&#39;},\n  }\n</code></pre>\n\n<h3>Templates</h3>\n\n<p>The Apache module relies heavily on templates to enable the <code>vhost</code> and <code>apache::mod</code> defined types. These templates are built based on Facter facts around your operating system. Unless explicitly called out, most templates are not meant for configuration.</p>\n\n<h2>Limitations</h2>\n\n<p>This has been tested on Ubuntu Precise, Debian Wheezy, and CentOS 5.8.</p>\n\n<h2>Development</h2>\n\n<h3>Overview</h3>\n\n<p>Puppet Labs modules on the Puppet Forge are open projects, and community contributions are essential for keeping them great. We can’t access the huge number of platforms and myriad of hardware, software, and deployment configurations that Puppet is intended to serve.</p>\n\n<p>We want to keep it as easy as possible to contribute changes so that our modules work in your environment. There are a few guidelines that we need contributors to follow so that we can have a chance of keeping on top of things.</p>\n\n<p>You can read the complete module contribution guide <a href=\"http://projects.puppetlabs.com/projects/module-site/wiki/Module_contributing\">on the Puppet Labs wiki.</a></p>\n\n<h3>Running tests</h3>\n\n<p>This project contains tests for both <a href=\"http://rspec-puppet.com/\">rspec-puppet</a> and <a href=\"https://github.com/puppetlabs/rspec-system\">rspec-system</a> to verify functionality. For in-depth information please see their respective documentation.</p>\n\n<p>Quickstart:</p>\n\n<pre><code>gem install bundler\nbundle install\nbundle exec rake spec\nbundle exec rake spec:system\n</code></pre>\n\n<h2>Copyright and License</h2>\n\n<p>Copyright (C) 2012 <a href=\"https://www.puppetlabs.com/\">Puppet Labs</a> Inc</p>\n\n<p>Puppet Labs can be contacted at: <a href=\"mailto:info@puppetlabs.com\">info@puppetlabs.com</a></p>\n\n<p>Licensed under the Apache License, Version 2.0 (the &quot;License&quot;);\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at</p>\n\n<p><a href=\"http://www.apache.org/licenses/LICENSE-2.0\">http://www.apache.org/licenses/LICENSE-2.0</a></p>\n\n<p>Unless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an &quot;AS IS&quot; BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.</p>\n</section>",
ruby-puppet-forge-2.3.2/spec/fixtures/v3/releases__module=puppetlabs-apache.json-1743-      "changelog": "<section class=\"plaintext\"><pre>2013-07-16 Release 0.8.0\nFeatures:\n- Add `servername` parameter to `apache` class\n- Add `proxy_set` parameter to `apache::balancer` define\n\nBugfixes:\n- Fix ordering for multiple `apache::balancer` clusters\n- Fix symlinking for sites-available on Debian-based OSs\n- Fix dependency ordering for recursive confdir management\n- Fix `apache::mod::*` to notify the service on config change\n- Documentation updates\n\n2013-07-09 Release 0.7.0\nChanges:\n- Essentially rewrite the module -- too many to list\n- `apache::vhost` has many abilities -- see README.md for details\n- `apache::mod::*` classes provide httpd mod-loading capabilities\n- `apache` base class is much more configurable\n\nBugfixes:\n- Many. And many more to come\n\n2013-03-2 Release 0.6.0\n- update travis tests (add more supported versions)\n- add access log_parameter\n- make purging of vhost dir configurable\n\n2012-08-24 Release 0.4.0\nChanges:\n- `include apache` is now required when using apache::mod::*\n\nBugfixes:\n- Fix syntax for validate_re\n- Fix formatting in vhost template\n- Fix spec tests such that they pass\n\n2012-05-08 Puppet Labs &lt;info@puppetlabs.com&gt; - 0.0.4\ne62e362 Fix broken tests for ssl, vhost, vhost::*\n42c6363 Changes to match style guide and pass puppet-lint without error\n42bc8ba changed name =&gt; path for file resources in order to name namevar by it&#x27;s name\n72e13de One end too much\n0739641 style guide fixes: &#x27;true&#x27; &lt;&gt; true, $operatingsystem needs to be $::operatingsystem, etc.\n273f94d fix tests\na35ede5 (#13860) Make a2enmod&#x2F;a2dismo commands optional\n98d774e (#13860) Autorequire Package[&#x27;httpd&#x27;]\n05fcec5 (#13073) Add missing puppet spec tests\n541afda (#6899) Remove virtual a2mod definition\n976cb69 (#13072) Move mod python and wsgi package names to params\n323915a (#13060) Add .gitignore to repo\nfdf40af (#13060) Remove pkg directory from source tree\nfd90015 Add LICENSE file and update the ModuleFile\nd3d0d23 Re-enable local php class\nd7516c7 Make management of firewalls configurable for vhosts\n60f83ba Explicitly lookup scope of apache_name in templates.\nf4d287f (#12581) Add explicit ordering for vdir directory\n88a2ac6 (#11706) puppetlabs-apache depends on puppetlabs-firewall\na776a8b (#11071) Fix to work with latest firewall module\n2b79e8b (#11070) Add support for Scientific Linux\n405b3e9 Fix for a2mod\n57b9048 Commit apache::vhost::redirect Manifest\n8862d01 Commit apache::vhost::proxy Manifest\nd5c1fd0 Commit apache::mod::wsgi Manifest\na825ac7 Commit apache::mod::python Manifest\nb77062f Commit Templates\n9a51b4a Vhost File Declarations\n6cf7312 Defaults for Parameters\n6a5b11a Ensure installed\nf672e46 a2mod fix\n8a56ee9 add pthon support to apache\n</pre></section>",
##############################################
ruby-puppet-forge-2.3.2/spec/fixtures/v3/releases__module=puppetlabs-apache.json-1991-      "downloads": 1228,
ruby-puppet-forge-2.3.2/spec/fixtures/v3/releases__module=puppetlabs-apache.json:1992:      "readme": "<section class=\"markdown\"><h1>apache</h1>\n\n<h4>Table of Contents</h4>\n\n<ol>\n<li><a href=\"#overview\">Overview - What is the Apache module?</a></li>\n<li><a href=\"#module-description\">Module Description - What does the module do?</a></li>\n<li><a href=\"#setup\">Setup - The basics of getting started with Apache</a>\n\n<ul>\n<li><a href=\"#beginning-with-apache\">Beginning with Apache - Installation</a></li>\n<li><a href=\"#configure-a-virtual-host\">Configure a Virtual Host - Basic options for getting started</a></li>\n</ul></li>\n<li><a href=\"#usage\">Usage - The classes, defined types, and their parameters available for configuration</a>\n\n<ul>\n<li><a href=\"#classes-and-defined-types\">Classes and Defined Types</a>\n\n<ul>\n<li><a href=\"#class-apache\">Class: apache</a></li>\n<li><a href=\"#classes-apachemodname\">Classes: apache::mod::*</a></li>\n<li><a href=\"#defined-type-apachevhost\">Defined Type: apache::vhost</a></li>\n</ul></li>\n<li><a href=\"#virtual-host-examples\">Virtual Host Examples - Demonstrations of some configuration options</a></li>\n</ul></li>\n<li><a href=\"#implementation\">Implementation - An under-the-hood peek at what the module is doing</a>\n\n<ul>\n<li><a href=\"#classes-and-defined-types\">Classes and Defined Types</a></li>\n<li><a href=\"#templates\">Templates</a></li>\n</ul></li>\n<li><a href=\"#limitations\">Limitations - OS compatibility, etc.</a></li>\n<li><a href=\"#development\">Development - Guide for contributing to the module</a></li>\n<li><a href=\"#release-notes\">Release Notes - Notes on the most recent updates to the module</a></li>\n</ol>\n\n<h2>Overview</h2>\n\n<p>The Apache module allows you to set up virtual hosts and manage web services with minimal effort.</p>\n\n<h2>Module Description</h2>\n\n<p>Apache is a widely-used web server, and this module provides a simplified way of creating configurations to manage your infrastructure. This includes the ability to configure and manage a range of different virtual host setups, as well as a streamlined way to install and configure Apache modules.</p>\n\n<h2>Setup</h2>\n\n<p><strong>What Apache affects:</strong></p>\n\n<ul>\n<li>configuration files and directories (created and written to)\n\n<ul>\n<li><strong>NOTE</strong>: Configurations that are <em>not</em> managed by Puppet will be purged.</li>\n</ul></li>\n<li>package/service/configuration files for Apache</li>\n<li>Apache modules</li>\n<li>virtual hosts</li>\n<li>listened-to ports</li>\n</ul>\n\n<h3>Beginning with Apache</h3>\n\n<p>To install Apache with the default parameters</p>\n\n<pre><code>class { &#39;apache&#39;:  }\n</code></pre>\n\n<p>The defaults are determined by your operating system (e.g. Debian systems have one set of defaults, RedHat systems have another). These defaults will work well in a testing environment, but are not suggested for production. To establish customized parameters</p>\n\n<pre><code>class { &#39;apache&#39;:\n  default_mods =&gt; false,\n  …\n}\n</code></pre>\n\n<h3>Configure a virtual host</h3>\n\n<p>Declaring the <code>apache</code> class will create a default virtual host by setting up a vhost on port 80, listening on all interfaces and serving <code>$apache::docroot</code>.</p>\n\n<pre><code>class { &#39;apache&#39;: }\n</code></pre>\n\n<p>To configure a very basic, name-based virtual host</p>\n\n<pre><code>apache::vhost { &#39;first.example.com&#39;:\n  port    =&gt; &#39;80&#39;,\n  docroot =&gt; &#39;/var/www/first&#39;,\n}\n</code></pre>\n\n<p><em>Note:</em> The default priority is 15. If nothing matches this priority, the alphabetically first name-based vhost will be used. This is also true if you pass a higher priority and no names match anything else.</p>\n\n<p>A slightly more complicated example, which moves the docroot owner/group</p>\n\n<pre><code>apache::vhost { &#39;second.example.com&#39;:\n  port          =&gt; &#39;80&#39;,\n  docroot       =&gt; &#39;/var/www/second&#39;,\n  docroot_owner =&gt; &#39;third&#39;,\n  docroot_group =&gt; &#39;third&#39;,\n}\n</code></pre>\n\n<p>To set up a virtual host with SSL and default SSL certificates</p>\n\n<pre><code>apache::vhost { &#39;ssl.example.com&#39;:\n  port    =&gt; &#39;443&#39;,\n  docroot =&gt; &#39;/var/www/ssl&#39;,\n  ssl     =&gt; true,\n}\n</code></pre>\n\n<p>To set up a virtual host with SSL and specific SSL certificates</p>\n\n<pre><code>apache::vhost { &#39;fourth.example.com&#39;:\n  port     =&gt; &#39;443&#39;,\n  docroot  =&gt; &#39;/var/www/fourth&#39;,\n  ssl      =&gt; true,\n  ssl_cert =&gt; &#39;/etc/ssl/fourth.example.com.cert&#39;,\n  ssl_key  =&gt; &#39;/etc/ssl/fourth.example.com.key&#39;,\n}\n</code></pre>\n\n<p>To set up a virtual host with wildcard alias for subdomain mapped to same named directory \n<code>http://examle.com.loc =&gt; /var/www/example.com</code></p>\n\n<pre><code>apache::vhost { &#39;subdomain.loc&#39;:\n  vhost_name =&gt; &#39;*&#39;,\n  port       =&gt; &#39;80&#39;,\n  virtual_docroot&#39; =&gt; &#39;/var/www/%-2+&#39;,\n  docroot          =&gt; &#39;/var/www&#39;,\n  serveraliases    =&gt; [&#39;*.loc&#39;,],\n}\n</code></pre>\n\n<p>To see a list of all virtual host parameters, <a href=\"#defined-type-apachevhost\">please go here</a>. To see an extensive list of virtual host examples <a href=\"#virtual-host-examples\">please look here</a>.</p>\n\n<h2>Usage</h2>\n\n<h3>Classes and Defined Types</h3>\n\n<p>This module modifies Apache configuration files and directories and will purge any configuration not managed by Puppet. Configuration of Apache should be managed by Puppet, as non-puppet configuration files can cause unexpected failures.</p>\n\n<p>It is possible to temporarily disable full Puppet management by setting the <code>purge_configs</code> parameter within the base <code>apache</code> class to &#39;false&#39;. This option should only be used as a temporary means of saving and relocating customized configurations.</p>\n\n<h4>Class: <code>apache</code></h4>\n\n<p>The Apache module&#39;s primary class, <code>apache</code>, guides the basic setup of Apache on your system.</p>\n\n<p>You may establish a default vhost in this class, the <code>vhost</code> class, or both. You may add additional vhost configurations for specific virtual hosts using a declaration of the <code>vhost</code> type.</p>\n\n<p><strong>Parameters within <code>apache</code>:</strong></p>\n\n<h5><code>default_mods</code></h5>\n\n<p>Sets up Apache with default settings based on your OS. Defaults to &#39;true&#39;, set to &#39;false&#39; for customized configuration.</p>\n\n<h5><code>default_vhost</code></h5>\n\n<p>Sets up a default virtual host. Defaults to &#39;true&#39;, set to &#39;false&#39; to set up <a href=\"#configure-a-virtual-host\">customized virtual hosts</a>.</p>\n\n<h5><code>default_ssl_vhost</code></h5>\n\n<p>Sets up a default SSL virtual host. Defaults to &#39;false&#39;.</p>\n\n<pre><code>apache::vhost { &#39;default-ssl&#39;:\n  port            =&gt; 443,\n  ssl             =&gt; true,\n  docroot         =&gt; $docroot,\n  scriptalias     =&gt; $scriptalias,\n  serveradmin     =&gt; $serveradmin,\n  access_log_file =&gt; &quot;ssl_${access_log_file}&quot;,\n  }\n</code></pre>\n\n<p>SSL vhosts only respond to HTTPS queries.</p>\n\n<h5><code>default_ssl_cert</code></h5>\n\n<p>The default SSL certification, which is automatically set based on your operating system  (<code>/etc/pki/tls/certs/localhost.crt</code> for RedHat, <code>/etc/ssl/certs/ssl-cert-snakeoil.pem</code> for Debian). This default will work out of the box but must be updated with your specific certificate information before being used in production.</p>\n\n<h5><code>default_ssl_key</code></h5>\n\n<p>The default SSL key, which is automatically set based on your operating system (<code>/etc/pki/tls/private/localhost.key</code> for RedHat, <code>/etc/ssl/private/ssl-cert-snakeoil.key</code> for Debian). This default will work out of the box but must be updated with your specific certificate information before being used in production.</p>\n\n<h5><code>default_ssl_chain</code></h5>\n\n<p>The default SSL chain, which is automatically set to &#39;undef&#39;. This default will work out of the box but must be updated with your specific certificate information before being used in production.</p>\n\n<h5><code>default_ssl_ca</code></h5>\n\n<p>The default certificate authority, which is automatically set to &#39;undef&#39;. This default will work out of the box but must be updated with your specific certificate information before being used in production.</p>\n\n<h5><code>default_ssl_crl_path</code></h5>\n\n<p>The default certificate revocation list path, which is automatically set to &#39;undef&#39;. This default will work out of the box but must be updated with your specific certificate information before being used in production.</p>\n\n<h5><code>default_ssl_crl</code></h5>\n\n<p>The default certificate revocation list to use, which is automatically set to &#39;undef&#39;. This default will work out of the box but must be updated with your specific certificate information before being used in production.</p>\n\n<h5><code>service_enable</code></h5>\n\n<p>Determines whether the &#39;httpd&#39; service is enabled when the machine is booted, meaning Puppet will check the service status to start/stop it. Defaults to &#39;true&#39;, meaning the service is enabled/running.</p>\n\n<h5><code>serveradmin</code></h5>\n\n<p>Sets the server administrator. Defaults to &#39;root@localhost&#39;.</p>\n\n<h5><code>sendfile</code></h5>\n\n<p>Makes Apache use the Linux kernel &#39;sendfile&#39; to serve static files. Defaults to &#39;false&#39;.</p>\n\n<h5><code>error_documents</code></h5>\n\n<p>Enables custom error documents. Defaults to &#39;false&#39;.</p>\n\n<h5><code>confd_dir</code></h5>\n\n<p>Changes the location of the configuration directory your custom configuration files are placed in. Default is based on your OS.</p>\n\n<h5><code>vhost_dir</code></h5>\n\n<p>Changes the location of the configuration directory your virtual host configuration files are placed in. Default is based on your OS.</p>\n\n<h5><code>mod_dir</code></h5>\n\n<p>Changes the location of the configuration directory your Apache modules configuration files are placed in. Default is based on your OS.</p>\n\n<h5><code>mpm_module</code></h5>\n\n<p>Configures which mpm module is loaded and configured for the httpd process by the <code>apache::mod::prefork</code> and <code>apache::mod::worker</code> classes. Must be set to <code>false</code> to explicitly declare <code>apache::mod::worker</code> or <code>apache::mod::prefork</code> classes with parameters. Valid values are <code>worker</code>, <code>prefork</code>, or the boolean <code>false</code>. Defaults to <code>prefork</code> on RedHat and <code>worker</code> on Debian.</p>\n\n<h5><code>conf_template</code></h5>\n\n<p>Setting this allows you to override the template used for the main apache configuration file.  This is a potentially risky thing to do as this module has been built around the concept of a minimal configuration file with most of the configuration coming in the form of conf.d/ entries.  Defaults to &#39;apache/httpd.conf.erb&#39;.</p>\n\n<h4>Class: <code>apache::default_mods</code></h4>\n\n<p>Installs default Apache modules based on what OS you are running</p>\n\n<pre><code>class { &#39;apache::default_mods&#39;: }\n</code></pre>\n\n<h4>Defined Type: <code>apache::mod</code></h4>\n\n<p>Used to enable arbitrary Apache httpd modules for which there is no specific <code>apache::mod::[name]</code> class. The <code>apache::mod</code> defined type will also install the required packages to enable the module, if any.</p>\n\n<pre><code>apache::mod { &#39;rewrite&#39;: }\napache::mod { &#39;ldap&#39;: }\n</code></pre>\n\n<h4>Classes: <code>apache::mod::[name]</code></h4>\n\n<p>There are many <code>apache::mod::[name]</code> classes within this module that can be declared using <code>include</code>:</p>\n\n<ul>\n<li><code>alias</code></li>\n<li><code>auth_basic</code></li>\n<li><code>auth_kerb</code></li>\n<li><code>autoindex</code></li>\n<li><code>cache</code></li>\n<li><code>cgi</code></li>\n<li><code>cgid</code></li>\n<li><code>dav</code></li>\n<li><code>dav_fs</code></li>\n<li><code>deflate</code></li>\n<li><code>dir</code>*</li>\n<li><code>disk_cache</code></li>\n<li><code>fcgid</code></li>\n<li><code>info</code></li>\n<li><code>ldap</code></li>\n<li><code>mime</code></li>\n<li><code>mime_magic</code></li>\n<li><code>mpm_event</code></li>\n<li><code>negotiation</code></li>\n<li><code>passenger</code>*</li>\n<li><code>perl</code></li>\n<li><code>php</code> (requires <a href=\"#mpm_module\"><code>mpm_module</code></a> set to <code>prefork</code>)</li>\n<li><code>prefork</code>*</li>\n<li><code>proxy</code>*</li>\n<li><code>proxy_html</code></li>\n<li><code>proxy_http</code></li>\n<li><code>python</code></li>\n<li><code>reqtimeout</code></li>\n<li><code>setenvif</code></li>\n<li><code>ssl</code>* (see <a href=\"#class-apachemodssl\">apache::mod::ssl</a> below)</li>\n<li><code>status</code></li>\n<li><code>userdir</code>*</li>\n<li><code>worker</code>*</li>\n<li><code>wsgi</code></li>\n<li><code>xsendfile</code></li>\n</ul>\n\n<p>Modules noted with a * indicate that the module has settings and, thus, a template that includes parameters. These parameters control the module&#39;s configuration. Most of the time, these parameters will not require any configuration or attention.</p>\n\n<p>The modules mentioned above, and other Apache modules that have templates, will cause template files to be dropped along with the mod install, and the module will not work without the template. Any mod without a template will install package but drop no files.</p>\n\n<h4>Class: <code>apache::mod::ssl</code></h4>\n\n<p>Installs Apache SSL capabilities and utilizes <code>ssl.conf.erb</code> template</p>\n\n<pre><code>class { &#39;apache::mod::ssl&#39;: }\n</code></pre>\n\n<p>To <em>use</em> SSL with a virtual host, you must either set the<code>default_ssl_vhost</code> parameter in <code>apache</code> to &#39;true&#39; or set the <code>ssl</code> parameter in <code>apache::vhost</code> to &#39;true&#39;.</p>\n\n<h4>Defined Type: <code>apache::vhost</code></h4>\n\n<p>The Apache module allows a lot of flexibility in the set up and configuration of virtual hosts. This flexibility is due, in part, to <code>vhost</code>&#39;s setup as a defined resource type, which allows it to be evaluated multiple times with different parameters.</p>\n\n<p>The <code>vhost</code> defined type allows you to have specialized configurations for virtual hosts that have requirements outside of the defaults. You can set up a default vhost within the base <code>apache</code> class as well as set a customized vhost setup as default. Your customized vhost (priority 10) will be privileged over the base class vhost (15).</p>\n\n<p>If you have a series of specific configurations and do not want a base <code>apache</code> class default vhost, make sure to set the base class default host to &#39;false&#39;.</p>\n\n<pre><code>class { &#39;apache&#39;:\n  default_vhost =&gt; false,\n}\n</code></pre>\n\n<p><strong>Parameters within <code>apache::vhost</code>:</strong></p>\n\n<p>The default values for each parameter will vary based on operating system and type of virtual host.</p>\n\n<h5><code>access_log</code></h5>\n\n<p>Specifies whether <code>*_access.log</code> directives should be configured. Valid values are &#39;true&#39; and &#39;false&#39;. Defaults to &#39;true&#39;.</p>\n\n<h5><code>access_log_file</code></h5>\n\n<p>Points to the <code>*_access.log</code> file. Defaults to &#39;undef&#39;.</p>\n\n<h5><code>access_log_pipe</code></h5>\n\n<p>Specifies a pipe to send access log messages to. Defaults to &#39;undef&#39;.</p>\n\n<h5><code>access_log_format</code></h5>\n\n<p>Specifies either a LogFormat nickname or custom format string for access log. Defaults to &#39;undef&#39;.</p>\n\n<h5><code>add_listen</code></h5>\n\n<p>Determines whether the vhost creates a listen statement. The default value is &#39;true&#39;.</p>\n\n<p>Setting <code>add_listen</code> to &#39;false&#39; stops the vhost from creating a listen statement, and this is important when you combine vhosts that are not passed an <code>ip</code> parameter with vhosts that <em>are</em> passed the <code>ip</code> parameter.</p>\n\n<h5><code>aliases</code></h5>\n\n<p>Passes a list of hashes to the vhost to create <code>Alias</code> statements as per the <a href=\"http://httpd.apache.org/docs/current/mod/mod_alias.html\"><code>mod_alias</code> documentation</a>. Each hash is expected to be of the form:</p>\n\n<pre lang=\"ruby\"><code>aliases =&gt; [ { alias =&gt; &#39;/alias&#39;, path =&gt; &#39;/path/to/directory&#39; } ],\n</code></pre>\n\n<p>For <code>Alias</code> to work, each will need a corresponding <code>&lt;Directory /path/to/directory&gt;</code> or <code>&lt;Location /path/to/directory&gt;</code> block.</p>\n\n<p><strong>Note:</strong> If <code>apache::mod::passenger</code> is loaded and <code>PassengerHighPerformance true</code> is set, then <code>Alias</code> may have issues honouring the <code>PassengerEnabled off</code> statement. See <a href=\"http://www.conandalton.net/2010/06/passengerenabled-off-not-working.html\">this article</a> for details.</p>\n\n<h5><code>block</code></h5>\n\n<p>Specifies the list of things Apache will block access to. The default is an empty set, &#39;[]&#39;. Currently, the only option is &#39;scm&#39;, which blocks web access to .svn, .git and .bzr directories. To add to this, please see the <a href=\"#development\">Development</a> section.</p>\n\n<h5><code>custom_fragment</code></h5>\n\n<p>Pass a string of custom configuration directives to be placed at the end of the vhost configuration.</p>\n\n<h5><code>default_vhost</code></h5>\n\n<p>Sets a given <code>apache::vhost</code> as the default to serve requests that do not match any other <code>apache::vhost</code> definitions. The default value is &#39;false&#39;.</p>\n\n<h5><code>directories</code></h5>\n\n<p>Passes a list of hashes to the vhost to create <code>&lt;Directory /path/to/directory&gt;...&lt;/Directory&gt;</code> directive blocks as per the <a href=\"http://httpd.apache.org/docs/2.2/mod/core.html#directory\">Apache core documentation</a>. Each hash should be of the form of:</p>\n\n<pre lang=\"ruby\"><code>directory =&gt; [ { path =&gt; &#39;/path/to/directory&#39;, &lt;directive&gt; =&gt; &lt;value&gt; } ],\n</code></pre>\n\n<p><em>Note:</em> At least one directory should match <code>docroot</code> parameter, once you start declaring directories <code>apache::vhost</code> assumes that all required <code>&lt;Directory&gt;</code> blocks will be declared.</p>\n\n<p><em>Note:</em> If not defined a single default <code>&lt;Directory&gt;</code> block will be created that matches the <code>docroot</code> parameter.</p>\n\n<p>The directives will be embedded within the <code>Directory</code> directive block, missing directives should be undefined and not be added, resulting in their default vaules in Apache. Currently this is the list of supported directives:</p>\n\n<h6><code>addhandlers</code></h6>\n\n<p>Sets <code>AddHandler</code> directives as per the <a href=\"http://httpd.apache.org/docs/2.2/mod/mod_mime.html#addhandler\">Apache Core documentation</a>. Accepts a list of hashes of the form <code>{ handler =&gt; &#39;handler-name&#39;, extensions =&gt; [&#39;extension&#39;]}</code>. Note that <code>extensions</code> is a list of extenstions being handled by the handler.\nAn example: </p>\n\n<pre lang=\"ruby\"><code>directory =&gt; [ { path =&gt; &#39;/path/to/directory&#39;,\n  addhandlers =&gt; [ { handler =&gt; &#39;cgi-script&#39;, extensions =&gt; [&#39;.cgi&#39;]} ]\n} ]\n</code></pre>\n\n<h6><code>allow</code></h6>\n\n<p>Sets an <code>Allow</code> directive as per the <a href=\"http://httpd.apache.org/docs/2.2/mod/mod_authz_host.html#allow\">Apache Core documentation</a>. An example:</p>\n\n<pre lang=\"ruby\"><code>directory =&gt; [ { path =&gt; &#39;/path/to/directory&#39;, allow =&gt; &#39;from example.org&#39; } ],\n</code></pre>\n\n<h6><code>allow_override</code></h6>\n\n<p>Sets the usage of <code>.htaccess</code> files as per the <a href=\"http://httpd.apache.org/docs/2.2/mod/core.html#allowoverride\">Apache core documentation</a>. Should accept in the form of a list or a string. An example:</p>\n\n<pre lang=\"ruby\"><code>directory =&gt; [ { path =&gt; &#39;/path/to/directory&#39;, allow_override =&gt; [&#39;AuthConfig&#39;, &#39;Indexes&#39;] } ],\n</code></pre>\n\n<h6><code>deny</code></h6>\n\n<p>Sets an <code>Deny</code> directive as per the <a href=\"http://httpd.apache.org/docs/2.2/mod/mod_authz_host.html#deny\">Apache Core documentation</a>. An example:</p>\n\n<pre lang=\"ruby\"><code>directory =&gt; [ { path =&gt; &#39;/path/to/directory&#39;, deny =&gt; &#39;from example.org&#39; } ],\n</code></pre>\n\n<h6><code>options</code></h6>\n\n<p>Lists the options for the given <code>&lt;Directory&gt;</code> block</p>\n\n<pre lang=\"ruby\"><code>  directory =&gt; [ { path =&gt; &#39;/path/to/directory&#39;, options =&gt; [&#39;Indexes&#39;,&#39;FollowSymLinks&#39;,&#39;MultiViews&#39;] }]\n</code></pre>\n\n<h6><code>order</code></h6>\n\n<p>Sets the order of processing <code>Allow</code> and <code>Deny</code> statements as per <a href=\"http://httpd.apache.org/docs/2.2/mod/mod_authz_host.html#order\">Apache core documentation</a>. An example:</p>\n\n<pre lang=\"ruby\"><code>directory =&gt; [ { path =&gt; &#39;/path/to/directory&#39;, order =&gt; &#39;Allow, Deny&#39; } ],\n</code></pre>\n\n<h6><code>passenger_enabled</code></h6>\n\n<p>Sets the value for the <code>PassengerEnabled</code> directory to <code>on</code> or <code>off</code> as per the <a href=\"http://www.modrails.com/documentation/Users%20guide%20Apache.html#PassengerEnabled\">Passenger documentation</a>.</p>\n\n<pre lang=\"ruby\"><code>directory =&gt; [ { path =&gt; &#39;/path/to/directory&#39;, passenger_enabled =&gt; &#39;off&#39; } ],\n</code></pre>\n\n<p><strong>Note:</strong> This directive requires <code>apache::mod::passenger</code> to be active, Apache may not start with an unrecognised directive without it.</p>\n\n<p><strong>Note:</strong> Be aware that there is an <a href=\"http://www.conandalton.net/2010/06/passengerenabled-off-not-working.html\">issue</a> using the <code>PassengerEnabled</code> directive with the <code>PassengerHighPerformance</code> directive.</p>\n\n<h5><code>docroot</code></h5>\n\n<p>Provides the DocumentRoot directive, identifying the directory Apache serves files from.</p>\n\n<h5><code>docroot_group</code></h5>\n\n<p>Sets group access to the docroot directory. Defaults to &#39;root&#39;.</p>\n\n<h5><code>docroot_owner</code></h5>\n\n<p>Sets individual user access to the docroot directory. Defaults to &#39;root&#39;.</p>\n\n<h5><code>error_log</code></h5>\n\n<p>Specifies whether <code>*_error.log</code> directives should be configured. Defaults to &#39;true&#39;.</p>\n\n<h5><code>error_log_file</code></h5>\n\n<p>Points to the <code>*_error.log</code> file. Defaults to &#39;undef&#39;.</p>\n\n<h5><code>error_log_pipe</code></h5>\n\n<p>Specifies a pipe to send error log messages to. Defaults to &#39;undef&#39;.</p>\n\n<h5><code>ensure</code></h5>\n\n<p>Specifies if the vhost file is present or absent.</p>\n\n<h5><code>ip</code></h5>\n\n<p>The IP address the vhost listens on. Defaults to &#39;undef&#39;.</p>\n\n<h5><code>ip_based</code></h5>\n\n<p>Enables an IP-based vhost. This parameter inhibits the creation of a NameVirtualHost directive, since those are used to funnel requests to name-based vhosts. Defaults to &#39;false&#39;.</p>\n\n<h5><code>logroot</code></h5>\n\n<p>Specifies the location of the virtual host&#39;s logfiles. Defaults to <code>/var/log/&lt;apache log location&gt;/</code>.</p>\n\n<h5><code>no_proxy_uris</code></h5>\n\n<p>Specifies URLs you do not want to proxy. This parameter is meant to be used in combination with <code>proxy_dest</code>.</p>\n\n<h5><code>options</code></h5>\n\n<p>Lists the options for the given virtual host</p>\n\n<pre><code>apache::vhost { &#39;site.name.fdqn&#39;:\n  …\n  options =&gt; [&#39;Indexes&#39;,&#39;FollowSymLinks&#39;,&#39;MultiViews&#39;],\n}\n</code></pre>\n\n<h5><code>override</code></h5>\n\n<p>Sets the overrides for the given virtual host. Accepts an array of AllowOverride arguments.</p>\n\n<h5><code>port</code></h5>\n\n<p>Sets the port the host is configured on.</p>\n\n<h5><code>priority</code></h5>\n\n<p>Sets the relative load-order for Apache httpd VirtualHost configuration files. Defaults to &#39;25&#39;.</p>\n\n<p>If nothing matches the priority, the first name-based vhost will be used. Likewise, passing a higher priority will cause the alphabetically first name-based vhost to be used if no other names match.</p>\n\n<p><em>Note</em>: You should not need to use this parameter. However, if you do use it, be aware that the <code>default_vhost</code> parameter for <code>apache::vhost</code> passes a priority of &#39;15&#39;.</p>\n\n<h5><code>proxy_dest</code></h5>\n\n<p>Specifies the destination address of a proxypass configuration. Defaults to &#39;undef&#39;.</p>\n\n<h5><code>proxy_pass</code></h5>\n\n<p>Specifies an array of path =&gt; uri for a proxypass configuration. Defaults to &#39;undef&#39;.</p>\n\n<p>Example:\n$proxy_pass = [\n  { &#39;path&#39; =&gt; &#39;/a&#39;, &#39;url&#39; =&gt; &#39;http://backend-a/&#39; },\n  { &#39;path&#39; =&gt; &#39;/b&#39;, &#39;url&#39; =&gt; &#39;http://backend-b/&#39; },\n  { &#39;path&#39; =&gt; &#39;/c&#39;, &#39;url&#39; =&gt; &#39;http://backend-a/c&#39; },\n]</p>\n\n<p>apache::vhost { &#39;site.name.fdqn&#39;:\n  …\n  proxy_pass       =&gt; $proxy_pass,\n}</p>\n\n<h5><code>rack_base_uris</code></h5>\n\n<p>Specifies the resource identifiers for a rack configuration. The file paths specified will be listed as rack application roots for passenger/rack in the <code>_rack.erb</code> template. Defaults to &#39;undef&#39;.</p>\n\n<h5><code>redirect_dest</code></h5>\n\n<p>Specifies the address to redirect to. Defaults to &#39;undef&#39;.</p>\n\n<h5><code>redirect_source</code></h5>\n\n<p>Specifies the source items? that will redirect to the destination specified in <code>redirect_dest</code>. If more than one item for redirect is supplied, the source and destination must be the same length, and the items are order-dependent.</p>\n\n<pre><code>apache::vhost { &#39;site.name.fdqn&#39;:\n  …\n  redirect_source =&gt; [&#39;/images&#39;,&#39;/downloads&#39;],\n  redirect_dest =&gt; [&#39;http://img.example.com/&#39;,&#39;http://downloads.example.com/&#39;],\n}\n</code></pre>\n\n<h5><code>redirect_status</code></h5>\n\n<p>Specifies the status to append to the redirect. Defaults to &#39;undef&#39;.</p>\n\n<pre><code>apache::vhost { &#39;site.name.fdqn&#39;:\n  …\n  redirect_status =&gt; [&#39;temp&#39;,&#39;permanent&#39;],\n}\n</code></pre>\n\n<h5><code>request_headers</code></h5>\n\n<p>Specifies additional request headers.</p>\n\n<pre><code>apache::vhost { &#39;site.name.fdqn&#39;:\n  …\n  request_headers =&gt; [\n    &#39;append MirrorID &quot;mirror 12&quot;&#39;,\n    &#39;unset MirrorID&#39;,\n  ],\n}\n</code></pre>\n\n<h5><code>rewrite_base</code></h5>\n\n<p>Limits the <code>rewrite_rule</code> to the specified base URL. Defaults to &#39;undef&#39;.</p>\n\n<pre><code>apache::vhost { &#39;site.name.fdqn&#39;:\n  …\n  rewrite_rule =&gt; &#39;^index\\.html$ welcome.html&#39;,\n  rewrite_base =&gt; &#39;/blog/&#39;,\n}\n</code></pre>\n\n<p>The above example would limit the index.html -&gt; welcome.html rewrite to only something inside of <a href=\"http://example.com/blog/\">http://example.com/blog/</a>.</p>\n\n<h5><code>rewrite_cond</code></h5>\n\n<p>Rewrites a URL via <code>rewrite_rule</code> based on the truth of specified conditions. For example</p>\n\n<pre><code>apache::vhost { &#39;site.name.fdqn&#39;:\n  …\n  rewrite_cond =&gt; &#39;%{HTTP_USER_AGENT} ^MSIE&#39;,\n}\n</code></pre>\n\n<p>will rewrite URLs only if the visitor is using IE. Defaults to &#39;undef&#39;.</p>\n\n<p><em>Note</em>: At the moment, each vhost is limited to a single list of rewrite conditions. In the future, you will be able to specify multiple <code>rewrite_cond</code> and <code>rewrite_rules</code> per vhost, so that different conditions get different rewrites.</p>\n\n<h5><code>rewrite_rule</code></h5>\n\n<p>Creates URL rewrite rules. Defaults to &#39;undef&#39;. This parameter allows you to specify, for example, that anyone trying to access index.html will be served welcome.html.</p>\n\n<pre><code>apache::vhost { &#39;site.name.fdqn&#39;:\n  …\n  rewrite_rule =&gt; &#39;^index\\.html$ welcome.html&#39;,\n}\n</code></pre>\n\n<h5><code>scriptalias</code></h5>\n\n<p>Defines a directory of CGI scripts to be aliased to the path &#39;/cgi-bin&#39;</p>\n\n<h5><code>serveradmin</code></h5>\n\n<p>Specifies the email address Apache will display when it renders one of its error pages.</p>\n\n<h5><code>serveraliases</code></h5>\n\n<p>Sets the server aliases of the site.</p>\n\n<h5><code>servername</code></h5>\n\n<p>Sets the primary name of the virtual host.</p>\n\n<h5><code>setenv</code></h5>\n\n<p>Used by HTTPD to set environment variables for vhosts. Defaults to &#39;[]&#39;.</p>\n\n<h5><code>setenvif</code></h5>\n\n<p>Used by HTTPD to conditionally set environment variables for vhosts. Defaults to &#39;[]&#39;.</p>\n\n<h5><code>ssl</code></h5>\n\n<p>Enables SSL for the virtual host. SSL vhosts only respond to HTTPS queries. Valid values are &#39;true&#39; or &#39;false&#39;.</p>\n\n<h5><code>ssl_ca</code></h5>\n\n<p>Specifies the certificate authority.</p>\n\n<h5><code>ssl_cert</code></h5>\n\n<p>Specifies the SSL certification.</p>\n\n<h5><code>ssl_certs_dir</code></h5>\n\n<p>Specifies the location of the SSL certification directory. Defaults to <code>/etc/ssl/certs</code>.</p>\n\n<h5><code>ssl_chain</code></h5>\n\n<p>Specifies the SSL chain.</p>\n\n<h5><code>ssl_crl</code></h5>\n\n<p>Specifies the certificate revocation list to use.</p>\n\n<h5><code>ssl_crl_path</code></h5>\n\n<p>Specifies the location of the certificate revocation list.</p>\n\n<h5><code>ssl_key</code></h5>\n\n<p>Specifies the SSL key.</p>\n\n<h5><code>vhost_name</code></h5>\n\n<p>This parameter is for use with name-based virtual hosting. Defaults to &#39;*&#39;.</p>\n\n<h3>Virtual Host Examples</h3>\n\n<p>The Apache module allows you to set up pretty much any configuration of virtual host you might desire. This section will address some common configurations. Please see the <a href=\"https://github.com/puppetlabs/puppetlabs-apache/tree/master/tests\">Tests section</a> for even more examples.</p>\n\n<p>Configure a vhost with a server administrator</p>\n\n<pre><code>apache::vhost { &#39;third.example.com&#39;:\n  port        =&gt; &#39;80&#39;,\n  docroot     =&gt; &#39;/var/www/third&#39;,\n  serveradmin =&gt; &#39;admin@example.com&#39;,\n}\n</code></pre>\n\n<hr>\n\n<p>Set up a vhost with aliased servers</p>\n\n<pre><code>apache::vhost { &#39;sixth.example.com&#39;:\n  serveraliases =&gt; [\n    &#39;sixth.example.org&#39;,\n    &#39;sixth.example.net&#39;,\n  ],\n  port          =&gt; &#39;80&#39;,\n  docroot       =&gt; &#39;/var/www/fifth&#39;,\n}\n</code></pre>\n\n<hr>\n\n<p>Configure a vhost with a cgi-bin</p>\n\n<pre><code>apache::vhost { &#39;eleventh.example.com&#39;:\n  port        =&gt; &#39;80&#39;,\n  docroot     =&gt; &#39;/var/www/eleventh&#39;,\n  scriptalias =&gt; &#39;/usr/lib/cgi-bin&#39;,\n}\n</code></pre>\n\n<hr>\n\n<p>Set up a vhost with a rack configuration</p>\n\n<pre><code>apache::vhost { &#39;fifteenth.example.com&#39;:\n  port           =&gt; &#39;80&#39;,\n  docroot        =&gt; &#39;/var/www/fifteenth&#39;,\n  rack_base_uris =&gt; [&#39;/rackapp1&#39;, &#39;/rackapp2&#39;],\n}\n</code></pre>\n\n<hr>\n\n<p>Set up a mix of SSL and non-SSL vhosts at the same domain</p>\n\n<pre><code>#The non-ssl vhost\napache::vhost { &#39;first.example.com non-ssl&#39;:\n  servername =&gt; &#39;first.example.com&#39;,\n  port       =&gt; &#39;80&#39;,\n  docroot    =&gt; &#39;/var/www/first&#39;,\n}\n\n#The SSL vhost at the same domain\napache::vhost { &#39;first.example.com ssl&#39;:\n  servername =&gt; &#39;first.example.com&#39;,\n  port       =&gt; &#39;443&#39;,\n  docroot    =&gt; &#39;/var/www/first&#39;,\n  ssl        =&gt; true,\n}\n</code></pre>\n\n<hr>\n\n<p>Configure a vhost to redirect non-SSL connections to SSL</p>\n\n<pre><code>apache::vhost { &#39;sixteenth.example.com non-ssl&#39;:\n  servername      =&gt; &#39;sixteenth.example.com&#39;,\n  port            =&gt; &#39;80&#39;,\n  docroot         =&gt; &#39;/var/www/sixteenth&#39;,\n  redirect_status =&gt; &#39;permanent&#39;\n  redirect_dest   =&gt; &#39;https://sixteenth.example.com/&#39; \n}\napache::vhost { &#39;sixteenth.example.com ssl&#39;:\n  servername =&gt; &#39;sixteenth.example.com&#39;,\n  port       =&gt; &#39;443&#39;,\n  docroot    =&gt; &#39;/var/www/sixteenth&#39;,\n  ssl        =&gt; true,\n}\n</code></pre>\n\n<hr>\n\n<p>Set up IP-based vhosts on any listen port and have them respond to requests on specific IP addresses. In this example, we will set listening on ports 80 and 81. This is required because the example vhosts are not declared with a port parameter.</p>\n\n<pre><code>apache::listen { &#39;80&#39;: }\napache::listen { &#39;81&#39;: }\n</code></pre>\n\n<p>Then we will set up the IP-based vhosts</p>\n\n<pre><code>apache::vhost { &#39;first.example.com&#39;:\n  ip       =&gt; &#39;10.0.0.10&#39;,\n  docroot  =&gt; &#39;/var/www/first&#39;,\n  ip_based =&gt; true,\n}\napache::vhost { &#39;second.example.com&#39;:\n  ip       =&gt; &#39;10.0.0.11&#39;,\n  docroot  =&gt; &#39;/var/www/second&#39;,\n  ip_based =&gt; true,\n}\n</code></pre>\n\n<hr>\n\n<p>Configure a mix of name-based and IP-based vhosts. First, we will add two IP-based vhosts on 10.0.0.10, one SSL and one non-SSL</p>\n\n<pre><code>apache::vhost { &#39;The first IP-based vhost, non-ssl&#39;:\n  servername =&gt; &#39;first.example.com&#39;,\n  ip         =&gt; &#39;10.0.0.10&#39;,\n  port       =&gt; &#39;80&#39;,\n  ip_based   =&gt; true,\n  docroot    =&gt; &#39;/var/www/first&#39;,\n}\napache::vhost { &#39;The first IP-based vhost, ssl&#39;:\n  servername =&gt; &#39;first.example.com&#39;,\n  ip         =&gt; &#39;10.0.0.10&#39;,\n  port       =&gt; &#39;443&#39;,\n  ip_based   =&gt; true,\n  docroot    =&gt; &#39;/var/www/first-ssl&#39;,\n  ssl        =&gt; true,\n}\n</code></pre>\n\n<p>Then, we will add two name-based vhosts listening on 10.0.0.20</p>\n\n<pre><code>apache::vhost { &#39;second.example.com&#39;:\n  ip      =&gt; &#39;10.0.0.20&#39;,\n  port    =&gt; &#39;80&#39;,\n  docroot =&gt; &#39;/var/www/second&#39;,\n}\napache::vhost { &#39;third.example.com&#39;:\n  ip      =&gt; &#39;10.0.0.20&#39;,\n  port    =&gt; &#39;80&#39;,\n  docroot =&gt; &#39;/var/www/third&#39;,\n}\n</code></pre>\n\n<p>If you want to add two name-based vhosts so that they will answer on either 10.0.0.10 or 10.0.0.20, you <strong>MUST</strong> declare <code>add_listen =&gt; &#39;false&#39;</code> to disable the otherwise automatic &#39;Listen 80&#39;, as it will conflict with the preceding IP-based vhosts.</p>\n\n<pre><code>apache::vhost { &#39;fourth.example.com&#39;:\n  port       =&gt; &#39;80&#39;,\n  docroot    =&gt; &#39;/var/www/fourth&#39;,\n  add_listen =&gt; false,\n}\napache::vhost { &#39;fifth.example.com&#39;:\n  port       =&gt; &#39;80&#39;,\n  docroot    =&gt; &#39;/var/www/fifth&#39;,\n  add_listen =&gt; false,\n}\n</code></pre>\n\n<h2>Implementation</h2>\n\n<h3>Classes and Defined Types</h3>\n\n<h4>Class: <code>apache::dev</code></h4>\n\n<p>Installs Apache development libraries</p>\n\n<pre><code>class { &#39;apache::dev&#39;: }\n</code></pre>\n\n<h4>Defined Type: <code>apache::listen</code></h4>\n\n<p>Controls which ports Apache binds to for listening based on the title:</p>\n\n<pre><code>apache::listen { &#39;80&#39;: }\napache::listen { &#39;443&#39;: }\n</code></pre>\n\n<p>Declaring this defined type will add all <code>Listen</code> directives to the <code>ports.conf</code> file in the Apache httpd configuration directory.  <code>apache::listen</code> titles should always take the form of: <code>&lt;port&gt;</code>, <code>&lt;ipv4&gt;:&lt;port&gt;</code>, or <code>[&lt;ipv6&gt;]:&lt;port&gt;</code></p>\n\n<p>Apache httpd requires that <code>Listen</code> directives must be added for every port. The <code>apache::vhost</code> defined type will automatically add <code>Listen</code> directives unless the <code>apache::vhost</code> is passed <code>add_listen =&gt; false</code>.</p>\n\n<h4>Defined Type: <code>apache::namevirtualhost</code></h4>\n\n<p>Enables named-based hosting of a virtual host</p>\n\n<pre><code>class { &#39;apache::namevirtualhost`: }\n</code></pre>\n\n<p>Declaring this defined type will add all <code>NameVirtualHost</code> directives to the <code>ports.conf</code> file in the Apache https configuration directory. <code>apache::namevirtualhost</code> titles should always take the form of: <code>*</code>, <code>*:&lt;port&gt;</code>, <code>_default_:&lt;port&gt;</code>, <code>&lt;ip&gt;</code>, or <code>&lt;ip&gt;:&lt;port&gt;</code>.</p>\n\n<h4>Defined Type: <code>apache::balancermember</code></h4>\n\n<p>Define members of a proxy_balancer set (mod_proxy_balancer). Very useful when using exported resources.</p>\n\n<p>On every app server you can export a balancermember like this:</p>\n\n<pre><code>  @@apache::balancermember { &quot;${::fqdn}-puppet00&quot;:\n    balancer_cluster =&gt; &#39;puppet00&#39;,\n    url              =&gt; &quot;ajp://${::fqdn}:8009&quot;\n    options          =&gt; [&#39;ping=5&#39;, &#39;disablereuse=on&#39;, &#39;retry=5&#39;, &#39;ttl=120&#39;],\n  }\n</code></pre>\n\n<p>And on the proxy itself you create the balancer cluster using the defined type apache::balancer:</p>\n\n<pre><code>  apache::balancer { &#39;puppet00&#39;: }\n</code></pre>\n\n<h3>Templates</h3>\n\n<p>The Apache module relies heavily on templates to enable the <code>vhost</code> and <code>apache::mod</code> defined types. These templates are built based on Facter facts around your operating system. Unless explicitly called out, most templates are not meant for configuration.</p>\n\n<h2>Limitations</h2>\n\n<p>This has been tested on Ubuntu Precise, Debian Wheezy, and CentOS 5.8.</p>\n\n<h2>Development</h2>\n\n<h3>Overview</h3>\n\n<p>Puppet Labs modules on the Puppet Forge are open projects, and community contributions are essential for keeping them great. We can’t access the huge number of platforms and myriad of hardware, software, and deployment configurations that Puppet is intended to serve.</p>\n\n<p>We want to keep it as easy as possible to contribute changes so that our modules work in your environment. There are a few guidelines that we need contributors to follow so that we can have a chance of keeping on top of things.</p>\n\n<p>You can read the complete module contribution guide <a href=\"http://projects.puppetlabs.com/projects/module-site/wiki/Module_contributing\">on the Puppet Labs wiki.</a></p>\n\n<h3>Running tests</h3>\n\n<p>This project contains tests for both <a href=\"http://rspec-puppet.com/\">rspec-puppet</a> and <a href=\"https://github.com/puppetlabs/rspec-system\">rspec-system</a> to verify functionality. For in-depth information please see their respective documentation.</p>\n\n<p>Quickstart:</p>\n\n<pre><code>gem install bundler\nbundle install\nbundle exec rake spec\nbundle exec rake spec:system\n</code></pre>\n\n<h2>Copyright and License</h2>\n\n<p>Copyright (C) 2012 <a href=\"https://www.puppetlabs.com/\">Puppet Labs</a> Inc</p>\n\n<p>Puppet Labs can be contacted at: <a href=\"mailto:info@puppetlabs.com\">info@puppetlabs.com</a></p>\n\n<p>Licensed under the Apache License, Version 2.0 (the &quot;License&quot;);\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at</p>\n\n<p><a href=\"http://www.apache.org/licenses/LICENSE-2.0\">http://www.apache.org/licenses/LICENSE-2.0</a></p>\n\n<p>Unless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an &quot;AS IS&quot; BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.</p>\n</section>",
ruby-puppet-forge-2.3.2/spec/fixtures/v3/releases__module=puppetlabs-apache.json-1993-      "changelog": "<section class=\"plaintext\"><pre>2013-07-09 Release 0.7.0\nChanges:\n- Essentially rewrite the module -- too many to list\n- `apache::vhost` has many abilities -- see README.md for details\n- `apache::mod::*` classes provide httpd mod-loading capabilities\n- `apache` base class is much more configurable\n\nBugfixes:\n- Many. And many more to come\n\n2013-03-2 Release 0.6.0\n- update travis tests (add more supported versions)\n- add access log_parameter\n- make purging of vhost dir configurable\n\n2012-08-24 Release 0.4.0\nChanges:\n- `include apache` is now required when using apache::mod::*\n\nBugfixes:\n- Fix syntax for validate_re\n- Fix formatting in vhost template\n- Fix spec tests such that they pass\n\n2012-05-08 Puppet Labs &lt;info@puppetlabs.com&gt; - 0.0.4\ne62e362 Fix broken tests for ssl, vhost, vhost::*\n42c6363 Changes to match style guide and pass puppet-lint without error\n42bc8ba changed name =&gt; path for file resources in order to name namevar by it&#x27;s name\n72e13de One end too much\n0739641 style guide fixes: &#x27;true&#x27; &lt;&gt; true, $operatingsystem needs to be $::operatingsystem, etc.\n273f94d fix tests\na35ede5 (#13860) Make a2enmod&#x2F;a2dismo commands optional\n98d774e (#13860) Autorequire Package[&#x27;httpd&#x27;]\n05fcec5 (#13073) Add missing puppet spec tests\n541afda (#6899) Remove virtual a2mod definition\n976cb69 (#13072) Move mod python and wsgi package names to params\n323915a (#13060) Add .gitignore to repo\nfdf40af (#13060) Remove pkg directory from source tree\nfd90015 Add LICENSE file and update the ModuleFile\nd3d0d23 Re-enable local php class\nd7516c7 Make management of firewalls configurable for vhosts\n60f83ba Explicitly lookup scope of apache_name in templates.\nf4d287f (#12581) Add explicit ordering for vdir directory\n88a2ac6 (#11706) puppetlabs-apache depends on puppetlabs-firewall\na776a8b (#11071) Fix to work with latest firewall module\n2b79e8b (#11070) Add support for Scientific Linux\n405b3e9 Fix for a2mod\n57b9048 Commit apache::vhost::redirect Manifest\n8862d01 Commit apache::vhost::proxy Manifest\nd5c1fd0 Commit apache::mod::wsgi Manifest\na825ac7 Commit apache::mod::python Manifest\nb77062f Commit Templates\n9a51b4a Vhost File Declarations\n6cf7312 Defaults for Parameters\n6a5b11a Ensure installed\nf672e46 a2mod fix\n8a56ee9 add pthon support to apache\n</pre></section>",
##############################################
ruby-puppet-forge-2.3.2/spec/fixtures/v3/modules__query=apache.json-321-        "downloads": 6389,
ruby-puppet-forge-2.3.2/spec/fixtures/v3/modules__query=apache.json:322:        "readme": "<section class=\"markdown\"><h1>apache</h1>\n\n<p><a href=\"https://travis-ci.org/puppetlabs/puppetlabs-apache\"><img src=\"https://travis-ci.org/puppetlabs/puppetlabs-apache.png?branch=master\" alt=\"Build Status\"></a></p>\n\n<h4>Table of Contents</h4>\n\n<ol>\n<li><a href=\"#overview\">Overview - What is the Apache module?</a></li>\n<li><a href=\"#module-description\">Module Description - What does the module do?</a></li>\n<li><a href=\"#setup\">Setup - The basics of getting started with Apache</a>\n\n<ul>\n<li><a href=\"#beginning-with-apache\">Beginning with Apache - Installation</a></li>\n<li><a href=\"#configure-a-virtual-host\">Configure a Virtual Host - Basic options for getting started</a></li>\n</ul></li>\n<li><a href=\"#usage\">Usage - The classes, defined types, and their parameters available for configuration</a>\n\n<ul>\n<li><a href=\"#classes-and-defined-types\">Classes and Defined Types</a>\n\n<ul>\n<li><a href=\"#class-apache\">Class: apache</a></li>\n<li><a href=\"#classes-apachemodname\">Classes: apache::mod::*</a></li>\n<li><a href=\"#defined-type-apachevhost\">Defined Type: apache::vhost</a></li>\n</ul></li>\n<li><a href=\"#virtual-host-examples\">Virtual Host Examples - Demonstrations of some configuration options</a></li>\n</ul></li>\n<li><a href=\"#implementation\">Implementation - An under-the-hood peek at what the module is doing</a>\n\n<ul>\n<li><a href=\"#classes-and-defined-types\">Classes and Defined Types</a></li>\n<li><a href=\"#templates\">Templates</a></li>\n</ul></li>\n<li><a href=\"#limitations\">Limitations - OS compatibility, etc.</a></li>\n<li><a href=\"#development\">Development - Guide for contributing to the module</a></li>\n<li><a href=\"#release-notes\">Release Notes - Notes on the most recent updates to the module</a></li>\n</ol>\n\n<h2>Overview</h2>\n\n<p>The Apache module allows you to set up virtual hosts and manage web services with minimal effort.</p>\n\n<h2>Module Description</h2>\n\n<p>Apache is a widely-used web server, and this module provides a simplified way of creating configurations to manage your infrastructure. This includes the ability to configure and manage a range of different virtual host setups, as well as a streamlined way to install and configure Apache modules.</p>\n\n<h2>Setup</h2>\n\n<p><strong>What Apache affects:</strong></p>\n\n<ul>\n<li>configuration files and directories (created and written to)\n\n<ul>\n<li><strong>NOTE</strong>: Configurations that are <em>not</em> managed by Puppet will be purged.</li>\n</ul></li>\n<li>package/service/configuration files for Apache</li>\n<li>Apache modules</li>\n<li>virtual hosts</li>\n<li>listened-to ports</li>\n<li><code>/etc/make.conf</code> on FreeBSD</li>\n</ul>\n\n<h3>Beginning with Apache</h3>\n\n<p>To install Apache with the default parameters</p>\n\n<pre lang=\"puppet\"><code>    class { &#39;apache&#39;:  }\n</code></pre>\n\n<p>The defaults are determined by your operating system (e.g. Debian systems have one set of defaults, RedHat systems have another). These defaults will work well in a testing environment, but are not suggested for production. To establish customized parameters</p>\n\n<pre lang=\"puppet\"><code>    class { &#39;apache&#39;:\n      default_mods        =&gt; false,\n      default_confd_files =&gt; false,\n    }\n</code></pre>\n\n<h3>Configure a virtual host</h3>\n\n<p>Declaring the <code>apache</code> class will create a default virtual host by setting up a vhost on port 80, listening on all interfaces and serving <code>$apache::docroot</code>.</p>\n\n<pre lang=\"puppet\"><code>    class { &#39;apache&#39;: }\n</code></pre>\n\n<p>To configure a very basic, name-based virtual host</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;first.example.com&#39;:\n      port    =&gt; &#39;80&#39;,\n      docroot =&gt; &#39;/var/www/first&#39;,\n    }\n</code></pre>\n\n<p><em>Note:</em> The default priority is 15. If nothing matches this priority, the alphabetically first name-based vhost will be used. This is also true if you pass a higher priority and no names match anything else.</p>\n\n<p>A slightly more complicated example, which moves the docroot owner/group</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;second.example.com&#39;:\n      port          =&gt; &#39;80&#39;,\n      docroot       =&gt; &#39;/var/www/second&#39;,\n      docroot_owner =&gt; &#39;third&#39;,\n      docroot_group =&gt; &#39;third&#39;,\n    }\n</code></pre>\n\n<p>To set up a virtual host with SSL and default SSL certificates</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;ssl.example.com&#39;:\n      port    =&gt; &#39;443&#39;,\n      docroot =&gt; &#39;/var/www/ssl&#39;,\n      ssl     =&gt; true,\n    }\n</code></pre>\n\n<p>To set up a virtual host with SSL and specific SSL certificates</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;fourth.example.com&#39;:\n      port     =&gt; &#39;443&#39;,\n      docroot  =&gt; &#39;/var/www/fourth&#39;,\n      ssl      =&gt; true,\n      ssl_cert =&gt; &#39;/etc/ssl/fourth.example.com.cert&#39;,\n      ssl_key  =&gt; &#39;/etc/ssl/fourth.example.com.key&#39;,\n    }\n</code></pre>\n\n<p>To set up a virtual host with IP address different than &#39;*&#39;</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;subdomain.example.com&#39;:\n      ip      =&gt; &#39;127.0.0.1&#39;,\n      port    =&gt; &#39;80&#39;,\n      docrout =&gt; &#39;/var/www/subdomain&#39;,\n    }\n</code></pre>\n\n<p>To set up a virtual host with wildcard alias for subdomain mapped to same named directory\n<code>http://examle.com.loc =&gt; /var/www/example.com</code></p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;subdomain.loc&#39;:\n      vhost_name =&gt; &#39;*&#39;,\n      port       =&gt; &#39;80&#39;,\n      virtual_docroot&#39; =&gt; &#39;/var/www/%-2+&#39;,\n      docroot          =&gt; &#39;/var/www&#39;,\n      serveraliases    =&gt; [&#39;*.loc&#39;,],\n    }\n</code></pre>\n\n<p>To set up a virtual host with suPHP</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;suphp.example.com&#39;:\n      port                =&gt; &#39;80&#39;,\n      docroot             =&gt; &#39;/home/appuser/myphpapp&#39;,\n      suphp_addhandler    =&gt; &#39;x-httpd-php&#39;,\n      suphp_engine        =&gt; &#39;on&#39;,\n      suphp_configpath    =&gt; &#39;/etc/php5/apache2&#39;,\n      directories         =&gt; { path =&gt; &#39;/home/appuser/myphpapp&#39;,\n        &#39;suphp&#39;           =&gt; { user =&gt; &#39;myappuser&#39;, group =&gt; &#39;myappgroup&#39; },\n      }\n    }\n</code></pre>\n\n<p>To set up a virtual host with WSGI</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;wsgi.example.com&#39;:\n      port                        =&gt; &#39;80&#39;,\n      docroot                     =&gt; &#39;/var/www/pythonapp&#39;,\n      wsgi_daemon_process         =&gt; &#39;wsgi&#39;,\n      wsgi_daemon_process_options =&gt;\n        { processes =&gt; &#39;2&#39;, threads =&gt; &#39;15&#39;, display-name =&gt; &#39;%{GROUP}&#39; },\n      wsgi_process_group          =&gt; &#39;wsgi&#39;,\n      wsgi_script_aliases         =&gt; { &#39;/&#39; =&gt; &#39;/var/www/demo.wsgi&#39; },\n    }\n</code></pre>\n\n<p>Starting 2.2.16, httpd supports <a href=\"https://httpd.apache.org/docs/2.2/mod/mod_dir.html#fallbackresource\">FallbackResource</a> which is a simple replace for common RewriteRules:</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;wordpress.example.com&#39;:\n      port                =&gt; &#39;80&#39;,\n      docroot             =&gt; &#39;/var/www/wordpress&#39;,\n      fallbackresource    =&gt; &#39;/index.php&#39;,\n    }\n</code></pre>\n\n<p>Please note that the <code>disabled</code> argument to FallbackResource is only supported since 2.2.24.</p>\n\n<p>To see a list of all virtual host parameters, <a href=\"#defined-type-apachevhost\">please go here</a>. To see an extensive list of virtual host examples <a href=\"#virtual-host-examples\">please look here</a>.</p>\n\n<h2>Usage</h2>\n\n<h3>Classes and Defined Types</h3>\n\n<p>This module modifies Apache configuration files and directories and will purge any configuration not managed by Puppet. Configuration of Apache should be managed by Puppet, as non-puppet configuration files can cause unexpected failures.</p>\n\n<p>It is possible to temporarily disable full Puppet management by setting the <code>purge_configs</code> parameter within the base <code>apache</code> class to &#39;false&#39;. This option should only be used as a temporary means of saving and relocating customized configurations.</p>\n\n<h4>Class: <code>apache</code></h4>\n\n<p>The Apache module&#39;s primary class, <code>apache</code>, guides the basic setup of Apache on your system.</p>\n\n<p>You may establish a default vhost in this class, the <code>vhost</code> class, or both. You may add additional vhost configurations for specific virtual hosts using a declaration of the <code>vhost</code> type.</p>\n\n<p><strong>Parameters within <code>apache</code>:</strong></p>\n\n<h5><code>default_mods</code></h5>\n\n<p>Sets up Apache with default settings based on your OS. Defaults to &#39;true&#39;, set to &#39;false&#39; for customized configuration.</p>\n\n<h5><code>default_vhost</code></h5>\n\n<p>Sets up a default virtual host. Defaults to &#39;true&#39;, set to &#39;false&#39; to set up <a href=\"#configure-a-virtual-host\">customized virtual hosts</a>.</p>\n\n<h5><code>default_confd_files</code></h5>\n\n<p>Generates default set of include-able apache configuration files under  <code>${apache::confd_dir}</code> directory. These configuration files correspond to what is usually installed with apache package on given platform.</p>\n\n<h5><code>default_ssl_vhost</code></h5>\n\n<p>Sets up a default SSL virtual host. Defaults to &#39;false&#39;.</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;default-ssl&#39;:\n      port            =&gt; 443,\n      ssl             =&gt; true,\n      docroot         =&gt; $docroot,\n      scriptalias     =&gt; $scriptalias,\n      serveradmin     =&gt; $serveradmin,\n      access_log_file =&gt; &quot;ssl_${access_log_file}&quot;,\n      }\n</code></pre>\n\n<p>SSL vhosts only respond to HTTPS queries.</p>\n\n<h5><code>default_ssl_cert</code></h5>\n\n<p>The default SSL certification, which is automatically set based on your operating system  (<code>/etc/pki/tls/certs/localhost.crt</code> for RedHat, <code>/etc/ssl/certs/ssl-cert-snakeoil.pem</code> for Debian, <code>/usr/local/etc/apache22/server.crt</code> for FreeBSD). This default will work out of the box but must be updated with your specific certificate information before being used in production.</p>\n\n<h5><code>default_ssl_key</code></h5>\n\n<p>The default SSL key, which is automatically set based on your operating system (<code>/etc/pki/tls/private/localhost.key</code> for RedHat, <code>/etc/ssl/private/ssl-cert-snakeoil.key</code> for Debian, <code>/usr/local/etc/apache22/server.key</code> for FreeBSD). This default will work out of the box but must be updated with your specific certificate information before being used in production.</p>\n\n<h5><code>default_ssl_chain</code></h5>\n\n<p>The default SSL chain, which is automatically set to &#39;undef&#39;. This default will work out of the box but must be updated with your specific certificate information before being used in production.</p>\n\n<h5><code>default_ssl_ca</code></h5>\n\n<p>The default certificate authority, which is automatically set to &#39;undef&#39;. This default will work out of the box but must be updated with your specific certificate information before being used in production.</p>\n\n<h5><code>default_ssl_crl_path</code></h5>\n\n<p>The default certificate revocation list path, which is automatically set to &#39;undef&#39;. This default will work out of the box but must be updated with your specific certificate information before being used in production.</p>\n\n<h5><code>default_ssl_crl</code></h5>\n\n<p>The default certificate revocation list to use, which is automatically set to &#39;undef&#39;. This default will work out of the box but must be updated with your specific certificate information before being used in production.</p>\n\n<h5><code>service_name</code></h5>\n\n<p>Name of apache service to run. Defaults to: <code>&#39;httpd&#39;</code> on RedHat, <code>&#39;apache2&#39;</code> on Debian, and <code>&#39;apache22&#39;</code> on FreeBSD.</p>\n\n<h5><code>service_enable</code></h5>\n\n<p>Determines whether the &#39;httpd&#39; service is enabled when the machine is booted. Defaults to &#39;true&#39;.</p>\n\n<h5><code>service_ensure</code></h5>\n\n<p>Determines whether the service should be running. Can be set to &#39;undef&#39; which is useful when you want to let the service be managed by some other application like pacemaker. Defaults to &#39;running&#39;.</p>\n\n<h5><code>purge_configs</code></h5>\n\n<p>Removes all other apache configs and vhosts, which is automatically set to true. Setting this to false is a stopgap measure to allow the apache module to coexist with existing or otherwise managed configuration. It is recommended that you move your configuration entirely to resources within this module.</p>\n\n<h5><code>serveradmin</code></h5>\n\n<p>Sets the server administrator. Defaults to &#39;root@localhost&#39;.</p>\n\n<h5><code>servername</code></h5>\n\n<p>Sets the servername. Defaults to fqdn provided by facter.</p>\n\n<h5><code>server_root</code></h5>\n\n<p>A value to be set as <code>ServerRoot</code> in main configuration file (<code>httpd.conf</code>). Defaults to <code>/etc/httpd</code> on RedHat, <code>/etc/apache2</code> on Debian and <code>/usr/local</code> on FreeBSD.</p>\n\n<h5><code>sendfile</code></h5>\n\n<p>Makes Apache use the Linux kernel &#39;sendfile&#39; to serve static files. Defaults to &#39;On&#39;.</p>\n\n<h5><code>server_root</code></h5>\n\n<p>A value to be set as <code>ServerRoot</code> in main configuration file (<code>httpd.conf</code>). Defaults to <code>/etc/httpd</code> on RedHat and <code>/etc/apache2</code> on Debian.</p>\n\n<h5><code>error_documents</code></h5>\n\n<p>Enables custom error documents. Defaults to &#39;false&#39;.</p>\n\n<h5><code>httpd_dir</code></h5>\n\n<p>Changes the base location of the configuration directories used for the service. This is useful for specially repackaged HTTPD builds but may have unintended consequences when used in combination with the default distribution packages. Default is based on your OS.</p>\n\n<h5><code>confd_dir</code></h5>\n\n<p>Changes the location of the configuration directory your custom configuration files are placed in. Default is based on your OS.</p>\n\n<h5><code>vhost_dir</code></h5>\n\n<p>Changes the location of the configuration directory your virtual host configuration files are placed in. Default is based on your OS.</p>\n\n<h5><code>mod_dir</code></h5>\n\n<p>Changes the location of the configuration directory your Apache modules configuration files are placed in. Default is based on your OS.</p>\n\n<h5><code>mpm_module</code></h5>\n\n<p>Configures which mpm module is loaded and configured for the httpd process by the <code>apache::mod::event</code>, <code>apache::mod::itk</code>, <code>apache::mod::peruser</code>, <code>apache::mod::prefork</code> and <code>apache::mod::worker</code> classes. Must be set to <code>false</code> to explicitly declare <code>apache::mod::event</code>, <code>apache::mod::itk</code>, <code>apache::mod::peruser</code>,  <code>apache::mod::prefork</code> or <code>apache::mod::worker</code> classes with parameters. All possible values are <code>event</code>, <code>itk</code>, <code>peruser</code>, <code>prefork</code>, <code>worker</code> (valid values depend on agent&#39;s OS), or the boolean <code>false</code>. Defaults to <code>prefork</code> on RedHat and FreeBSD and <code>worker</code> on Debian. Note: on FreeBSD switching between different mpm modules is quite difficult (but possible). Before changing <code>$mpm_module</code> one has to deinstall all packages that depend on currently installed <code>apache</code>.</p>\n\n<h5><code>conf_template</code></h5>\n\n<p>Setting this allows you to override the template used for the main apache configuration file.  This is a potentially risky thing to do as this module has been built around the concept of a minimal configuration file with most of the configuration coming in the form of conf.d/ entries.  Defaults to &#39;apache/httpd.conf.erb&#39;.</p>\n\n<h5><code>keepalive</code></h5>\n\n<p>Setting this allows you to enable persistent connections.</p>\n\n<h5><code>keepalive_timeout</code></h5>\n\n<p>Amount of time the server will wait for subsequent requests on a persistent connection. Defaults to &#39;15&#39;.</p>\n\n<h5><code>logroot</code></h5>\n\n<p>Changes the location of the directory Apache log files are placed in. Defaut is based on your OS.</p>\n\n<h5><code>log_level</code></h5>\n\n<p>Changes the verbosity level of the error log. Defaults to &#39;warn&#39;. Valid values are <code>emerg</code>, <code>alert</code>, <code>crit</code>, <code>error</code>, <code>warn</code>, <code>notice</code>, <code>info</code> or <code>debug</code>.</p>\n\n<h5><code>ports_file</code></h5>\n\n<p>Changes the name of the file containing Apache ports configuration. Default is <code>${conf_dir}/ports.conf</code>.</p>\n\n<h5><code>server_tokens</code></h5>\n\n<p>Controls how much information Apache sends to the browser about itself and the operating system. See Apache documentation for &#39;ServerTokens&#39;. Defaults to &#39;OS&#39;.</p>\n\n<h5><code>server_signature</code></h5>\n\n<p>Allows the configuration of a trailing footer line under server-generated documents. See Apache documentation for &#39;ServerSignature&#39;. Defaults to &#39;On&#39;.</p>\n\n<h5><code>trace_enable</code></h5>\n\n<p>Controls, how TRACE requests per RFC 2616 are handled. See Apache documentation for &#39;TraceEnable&#39;. Defaults to &#39;On&#39;.</p>\n\n<h5><code>manage_user</code></h5>\n\n<p>Setting this to false will avoid the user resource to be created by this module. This is useful when you already have a user created in another puppet module and that you want to used it to run apache. Without this, it would result in a duplicate resource error.</p>\n\n<h5><code>manage_group</code></h5>\n\n<p>Setting this to false will avoid the group resource to be created by this module. This is useful when you already have a group created in another puppet module and that you want to used it for apache. Without this, it would result in a duplicate resource error.</p>\n\n<h5><code>package_ensure</code></h5>\n\n<p>Allow control over the package ensure statement. This is useful if you want to make sure apache is always at the latest version or whether it is only installed.</p>\n\n<h4>Class: <code>apache::default_mods</code></h4>\n\n<p>Installs default Apache modules based on what OS you are running</p>\n\n<pre lang=\"puppet\"><code>    class { &#39;apache::default_mods&#39;: }\n</code></pre>\n\n<h4>Defined Type: <code>apache::mod</code></h4>\n\n<p>Used to enable arbitrary Apache httpd modules for which there is no specific <code>apache::mod::[name]</code> class. The <code>apache::mod</code> defined type will also install the required packages to enable the module, if any.</p>\n\n<pre lang=\"puppet\"><code>    apache::mod { &#39;rewrite&#39;: }\n    apache::mod { &#39;ldap&#39;: }\n</code></pre>\n\n<h4>Classes: <code>apache::mod::[name]</code></h4>\n\n<p>There are many <code>apache::mod::[name]</code> classes within this module that can be declared using <code>include</code>:</p>\n\n<ul>\n<li><code>alias</code></li>\n<li><code>auth_basic</code></li>\n<li><code>auth_kerb</code></li>\n<li><code>autoindex</code></li>\n<li><code>cache</code></li>\n<li><code>cgi</code></li>\n<li><code>cgid</code></li>\n<li><code>dav</code></li>\n<li><code>dav_fs</code></li>\n<li><code>dav_svn</code></li>\n<li><code>deflate</code></li>\n<li><code>dev</code></li>\n<li><code>dir</code>*</li>\n<li><code>disk_cache</code></li>\n<li><code>event</code></li>\n<li><code>fastcgi</code></li>\n<li><code>fcgid</code></li>\n<li><code>headers</code></li>\n<li><code>info</code></li>\n<li><code>itk</code></li>\n<li><code>ldap</code></li>\n<li><code>mime</code></li>\n<li><code>mime_magic</code>*</li>\n<li><code>mpm_event</code></li>\n<li><code>negotiation</code></li>\n<li><code>nss</code>*</li>\n<li><code>passenger</code>*</li>\n<li><code>perl</code></li>\n<li><code>peruser</code></li>\n<li><code>php</code> (requires <a href=\"#mpm_module\"><code>mpm_module</code></a> set to <code>prefork</code>)</li>\n<li><code>prefork</code>*</li>\n<li><code>proxy</code>*</li>\n<li><code>proxy_ajp</code></li>\n<li><code>proxy_html</code></li>\n<li><code>proxy_http</code></li>\n<li><code>python</code></li>\n<li><code>reqtimeout</code></li>\n<li><code>rewrite</code></li>\n<li><code>rpaf</code>*</li>\n<li><code>setenvif</code></li>\n<li><code>ssl</code>* (see <a href=\"#class-apachemodssl\">apache::mod::ssl</a> below)</li>\n<li><code>status</code>*</li>\n<li><code>suphp</code></li>\n<li><code>userdir</code>*</li>\n<li><code>vhost_alias</code></li>\n<li><code>worker</code>*</li>\n<li><code>wsgi</code> (see <a href=\"#class-apachemodwsgi\">apache::mod::wsgi</a> below)</li>\n<li><code>xsendfile</code></li>\n</ul>\n\n<p>Modules noted with a * indicate that the module has settings and, thus, a template that includes parameters. These parameters control the module&#39;s configuration. Most of the time, these parameters will not require any configuration or attention.</p>\n\n<p>The modules mentioned above, and other Apache modules that have templates, will cause template files to be dropped along with the mod install, and the module will not work without the template. Any mod without a template will install package but drop no files.</p>\n\n<h4>Class: <code>apache::mod::ssl</code></h4>\n\n<p>Installs Apache SSL capabilities and utilizes <code>ssl.conf.erb</code> template. These are the defaults:</p>\n\n<pre lang=\"puppet\"><code>    class { &#39;apache::mod::ssl&#39;:\n      ssl_compression =&gt; false,\n      ssl_options     =&gt; [ &#39;StdEnvVars&#39; ],\n  }\n</code></pre>\n\n<p>To <em>use</em> SSL with a virtual host, you must either set the<code>default_ssl_vhost</code> parameter in <code>apache</code> to &#39;true&#39; or set the <code>ssl</code> parameter in <code>apache::vhost</code> to &#39;true&#39;.</p>\n\n<h4>Class: <code>apache::mod::wsgi</code></h4>\n\n<pre lang=\"puppet\"><code>    class { &#39;apache::mod::wsgi&#39;:\n      wsgi_socket_prefix =&gt; &quot;\\${APACHE_RUN_DIR}WSGI&quot;,\n      wsgi_python_home   =&gt; &#39;/path/to/virtenv&#39;,\n      wsgi_python_path   =&gt; &#39;/path/to/virtenv/site-packages&#39;,\n    }\n</code></pre>\n\n<h4>Defined Type: <code>apache::vhost</code></h4>\n\n<p>The Apache module allows a lot of flexibility in the set up and configuration of virtual hosts. This flexibility is due, in part, to <code>vhost</code>&#39;s setup as a defined resource type, which allows it to be evaluated multiple times with different parameters.</p>\n\n<p>The <code>vhost</code> defined type allows you to have specialized configurations for virtual hosts that have requirements outside of the defaults. You can set up a default vhost within the base <code>apache</code> class as well as set a customized vhost setup as default. Your customized vhost (priority 10) will be privileged over the base class vhost (15).</p>\n\n<p>If you have a series of specific configurations and do not want a base <code>apache</code> class default vhost, make sure to set the base class default host to &#39;false&#39;.</p>\n\n<pre lang=\"puppet\"><code>    class { &#39;apache&#39;:\n      default_vhost =&gt; false,\n    }\n</code></pre>\n\n<p><strong>Parameters within <code>apache::vhost</code>:</strong></p>\n\n<p>The default values for each parameter will vary based on operating system and type of virtual host.</p>\n\n<h5><code>access_log</code></h5>\n\n<p>Specifies whether <code>*_access.log</code> directives should be configured. Valid values are &#39;true&#39; and &#39;false&#39;. Defaults to &#39;true&#39;.</p>\n\n<h5><code>access_log_file</code></h5>\n\n<p>Points to the <code>*_access.log</code> file. Defaults to &#39;undef&#39;.</p>\n\n<h5><code>access_log_pipe</code></h5>\n\n<p>Specifies a pipe to send access log messages to. Defaults to &#39;undef&#39;.</p>\n\n<h5><code>access_log_syslog</code></h5>\n\n<p>Sends all access log messages to syslog. Defaults to &#39;undef&#39;.</p>\n\n<h5><code>access_log_format</code></h5>\n\n<p>Specifies either a LogFormat nickname or custom format string for access log. Defaults to &#39;undef&#39;.</p>\n\n<h5><code>add_listen</code></h5>\n\n<p>Determines whether the vhost creates a listen statement. The default value is &#39;true&#39;.</p>\n\n<p>Setting <code>add_listen</code> to &#39;false&#39; stops the vhost from creating a listen statement, and this is important when you combine vhosts that are not passed an <code>ip</code> parameter with vhosts that <em>are</em> passed the <code>ip</code> parameter.</p>\n\n<h5><code>aliases</code></h5>\n\n<p>Passes a list of hashes to the vhost to create <code>Alias</code> or <code>AliasMatch</code> statements as per the <a href=\"http://httpd.apache.org/docs/current/mod/mod_alias.html\"><code>mod_alias</code> documentation</a>. Each hash is expected to be of the form:</p>\n\n<pre><code>aliases =&gt; [\n  { aliasmatch =&gt; &#39;^/image/(.*)\\.jpg$&#39;, path =&gt; &#39;/files/jpg.images/$1.jpg&#39; }\n  { alias      =&gt; &#39;/image&#39;,             path =&gt; &#39;/ftp/pub/image&#39; },\n],\n</code></pre>\n\n<p>For <code>Alias</code> and <code>AliasMatch</code> to work, each will need a corresponding <code>&lt;Directory /path/to/directory&gt;</code> or <code>&lt;Location /path/to/directory&gt;</code> block. The <code>Alias</code> and <code>AliasMatch</code> directives are created in the order specified in the <code>aliases</code> paramter. As described in the <a href=\"http://httpd.apache.org/docs/current/mod/mod_alias.html\"><code>mod_alias</code> documentation</a> more specific <code>Alias</code> or <code>AliasMatch</code> directives should come before the more general ones to avoid shadowing.</p>\n\n<p><strong>Note:</strong> If <code>apache::mod::passenger</code> is loaded and <code>PassengerHighPerformance true</code> is set, then <code>Alias</code> may have issues honouring the <code>PassengerEnabled off</code> statement. See <a href=\"http://www.conandalton.net/2010/06/passengerenabled-off-not-working.html\">this article</a> for details.</p>\n\n<h5><code>block</code></h5>\n\n<p>Specifies the list of things Apache will block access to. The default is an empty set, &#39;[]&#39;. Currently, the only option is &#39;scm&#39;, which blocks web access to .svn, .git and .bzr directories. To add to this, please see the <a href=\"#development\">Development</a> section.</p>\n\n<h5><code>custom_fragment</code></h5>\n\n<p>Pass a string of custom configuration directives to be placed at the end of the vhost configuration.</p>\n\n<h5><code>default_vhost</code></h5>\n\n<p>Sets a given <code>apache::vhost</code> as the default to serve requests that do not match any other <code>apache::vhost</code> definitions. The default value is &#39;false&#39;.</p>\n\n<h5><code>directories</code></h5>\n\n<p>Passes a list of hashes to the vhost to create <code>&lt;Directory /path/to/directory&gt;...&lt;/Directory&gt;</code> directive blocks as per the <a href=\"http://httpd.apache.org/docs/2.2/mod/core.html#directory\">Apache core documentation</a>.  The <code>path</code> key is required in these hashes. An optional <code>provider</code> defaults to <code>directory</code>.  Usage will typically look like:</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;sample.example.net&#39;:\n      docroot     =&gt; &#39;/path/to/directory&#39;,\n      directories =&gt; [\n        { path =&gt; &#39;/path/to/directory&#39;, &lt;directive&gt; =&gt; &lt;value&gt; },\n        { path =&gt; &#39;/path/to/another/directory&#39;, &lt;directive&gt; =&gt; &lt;value&gt; },\n      ],\n    }\n</code></pre>\n\n<p><em>Note:</em> At least one directory should match <code>docroot</code> parameter, once you start declaring directories <code>apache::vhost</code> assumes that all required <code>&lt;Directory&gt;</code> blocks will be declared.</p>\n\n<p><em>Note:</em> If not defined a single default <code>&lt;Directory&gt;</code> block will be created that matches the <code>docroot</code> parameter.</p>\n\n<p><code>provider</code> can be set to any of <code>directory</code>, <code>files</code>, or <code>location</code>. If the <a href=\"https://httpd.apache.org/docs/2.2/mod/core.html#files\">pathspec starts with a <code>~</code></a>, httpd will interpret this as the equivalent of <code>DirectoryMatch</code>, <code>FilesMatch</code>, or <code>LocationMatch</code>, respectively.</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;files.example.net&#39;:\n      docroot     =&gt; &#39;/var/www/files&#39;,\n      directories =&gt; [\n        { path =&gt; &#39;~ (\\.swp|\\.bak|~)$&#39;, &#39;provider&#39; =&gt; &#39;files&#39;, &#39;deny&#39; =&gt; &#39;from all&#39; },\n      ],\n    }\n</code></pre>\n\n<p>The directives will be embedded within the <code>Directory</code> (<code>Files</code>, or <code>Location</code>) directive block, missing directives should be undefined and not be added, resulting in their default vaules in Apache. Currently this is the list of supported directives:</p>\n\n<h6><code>addhandlers</code></h6>\n\n<p>Sets <code>AddHandler</code> directives as per the <a href=\"http://httpd.apache.org/docs/2.2/mod/mod_mime.html#addhandler\">Apache Core documentation</a>. Accepts a list of hashes of the form <code>{ handler =&gt; &#39;handler-name&#39;, extensions =&gt; [&#39;extension&#39;]}</code>. Note that <code>extensions</code> is a list of extenstions being handled by the handler.\nAn example:</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;sample.example.net&#39;:\n      docroot     =&gt; &#39;/path/to/directory&#39;,\n      directories =&gt; [ { path =&gt; &#39;/path/to/directory&#39;,\n        addhandlers =&gt; [ { handler =&gt; &#39;cgi-script&#39;, extensions =&gt; [&#39;.cgi&#39;]} ],\n      } ],\n    }\n</code></pre>\n\n<h6><code>allow</code></h6>\n\n<p>Sets an <code>Allow</code> directive as per the <a href=\"http://httpd.apache.org/docs/2.2/mod/mod_authz_host.html#allow\">Apache Core documentation</a>. An example:</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;sample.example.net&#39;:\n      docroot     =&gt; &#39;/path/to/directory&#39;,\n      directories =&gt; [ { path =&gt; &#39;/path/to/directory&#39;, allow =&gt; &#39;from example.org&#39; } ],\n    }\n</code></pre>\n\n<h6><code>allow_override</code></h6>\n\n<p>Sets the usage of <code>.htaccess</code> files as per the <a href=\"http://httpd.apache.org/docs/2.2/mod/core.html#allowoverride\">Apache core documentation</a>. Should accept in the form of a list or a string. An example:</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;sample.example.net&#39;:\n      docroot     =&gt; &#39;/path/to/directory&#39;,\n      directories =&gt; [ { path =&gt; &#39;/path/to/directory&#39;, allow_override =&gt; [&#39;AuthConfig&#39;, &#39;Indexes&#39;] } ],\n    }\n</code></pre>\n\n<h6><code>deny</code></h6>\n\n<p>Sets an <code>Deny</code> directive as per the <a href=\"http://httpd.apache.org/docs/2.2/mod/mod_authz_host.html#deny\">Apache Core documentation</a>. An example:</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;sample.example.net&#39;:\n      docroot     =&gt; &#39;/path/to/directory&#39;,\n      directories =&gt; [ { path =&gt; &#39;/path/to/directory&#39;, deny =&gt; &#39;from example.org&#39; } ],\n    }\n</code></pre>\n\n<h6><code>error_documents</code></h6>\n\n<p>A list of hashes which can be used to override the <a href=\"https://httpd.apache.org/docs/2.2/mod/core.html#errordocument\">ErrorDocument</a> settings for this directory. Example:</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;sample.example.net&#39;:\n      directories =&gt; [ { path =&gt; &#39;/srv/www&#39;\n        error_documents =&gt; [\n          { &#39;error_code&#39; =&gt; &#39;503&#39;, &#39;document&#39; =&gt; &#39;/service-unavail&#39; },\n        ],\n      }]\n    }\n</code></pre>\n\n<h6><code>headers</code></h6>\n\n<p>Adds lines for <code>Header</code> directives as per the <a href=\"http://httpd.apache.org/docs/2.2/mod/mod_headers.html#header\">Apache Header documentation</a>. An example:</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;sample.example.net&#39;:\n      docroot     =&gt; &#39;/path/to/directory&#39;,\n      directories =&gt; {\n        path    =&gt; &#39;/path/to/directory&#39;,\n        headers =&gt; &#39;Set X-Robots-Tag &quot;noindex, noarchive, nosnippet&quot;&#39;,\n      },\n    }\n</code></pre>\n\n<h6><code>options</code></h6>\n\n<p>Lists the options for the given <code>&lt;Directory&gt;</code> block</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;sample.example.net&#39;:\n      docroot     =&gt; &#39;/path/to/directory&#39;,\n      directories =&gt; [ { path =&gt; &#39;/path/to/directory&#39;, options =&gt; [&#39;Indexes&#39;,&#39;FollowSymLinks&#39;,&#39;MultiViews&#39;] }],\n    }\n</code></pre>\n\n<h6><code>index_options</code></h6>\n\n<p>Styles the list</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;sample.example.net&#39;:\n      docroot     =&gt; &#39;/path/to/directory&#39;,\n      directories =&gt; [ { path =&gt; &#39;/path/to/directory&#39;, options =&gt; [&#39;Indexes&#39;,&#39;FollowSymLinks&#39;,&#39;MultiViews&#39;], index_options =&gt; [&#39;IgnoreCase&#39;, &#39;FancyIndexing&#39;, &#39;FoldersFirst&#39;, &#39;NameWidth=*&#39;, &#39;DescriptionWidth=*&#39;, &#39;SuppressHTMLPreamble&#39;] }],\n    }\n</code></pre>\n\n<h6><code>index_order_default</code></h6>\n\n<p>Sets the order of the list </p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;sample.example.net&#39;:\n      docroot     =&gt; &#39;/path/to/directory&#39;,\n      directories =&gt; [ { path =&gt; &#39;/path/to/directory&#39;, order =&gt; &#39;Allow,Deny&#39;, index_order_default =&gt; [&#39;Descending&#39;, &#39;Date&#39;]}, ],\n    }\n</code></pre>\n\n<h6><code>order</code></h6>\n\n<p>Sets the order of processing <code>Allow</code> and <code>Deny</code> statements as per <a href=\"http://httpd.apache.org/docs/2.2/mod/mod_authz_host.html#order\">Apache core documentation</a>. An example:</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;sample.example.net&#39;:\n      docroot     =&gt; &#39;/path/to/directory&#39;,\n      directories =&gt; [ { path =&gt; &#39;/path/to/directory&#39;, order =&gt; &#39;Allow,Deny&#39; } ],\n    }\n</code></pre>\n\n<h6><code>auth_type</code></h6>\n\n<p>Sets the value for <code>AuthType</code> as per the <a href=\"https://httpd.apache.org/docs/2.2/mod/core.html#authtype\">Apache AuthType\ndocumentation</a>.</p>\n\n<h6><code>auth_name</code></h6>\n\n<p>Sets the value for <code>AuthName</code> as per the <a href=\"https://httpd.apache.org/docs/2.2/mod/core.html#authname\">Apache AuthName\ndocumentation</a>.</p>\n\n<h6><code>auth_digest_algorithm</code></h6>\n\n<p>Sets the value for <code>AuthDigestAlgorithm</code> as per the <a href=\"https://httpd.apache.org/docs/2.2/mod/mod_auth_digest.html#authdigestalgorithm\">Apache\nAuthDigestAlgorithm\ndocumentation</a></p>\n\n<h6><code>auth_digest_domain</code></h6>\n\n<p>Sets the value for <code>AuthDigestDomain</code> as per the <a href=\"https://httpd.apache.org/docs/2.2/mod/mod_auth_digest.html#authdigestdomain\">Apache AuthDigestDomain\ndocumentation</a>.</p>\n\n<h6><code>auth_digest_nonce_lifetime</code></h6>\n\n<p>Sets the value for <code>AuthDigestNonceLifetime</code> as per the <a href=\"https://httpd.apache.org/docs/2.2/mod/mod_auth_digest.html#authdigestnoncelifetime\">Apache\nAuthDigestNonceLifetime\ndocumentation</a></p>\n\n<h6><code>auth_digest_provider</code></h6>\n\n<p>Sets the value for <code>AuthDigestProvider</code> as per the <a href=\"https://httpd.apache.org/docs/2.2/mod/mod_auth_digest.html#authdigestprovider\">Apache AuthDigestProvider\ndocumentation</a>.</p>\n\n<h6><code>auth_digest_qop</code></h6>\n\n<p>Sets the value for <code>AuthDigestQop</code> as per the <a href=\"https://httpd.apache.org/docs/2.2/mod/mod_auth_digest.html#authdigestqop\">Apache AuthDigestQop\ndocumentation</a>.</p>\n\n<h6><code>auth_digest_shmem_size</code></h6>\n\n<p>Sets the value for <code>AuthAuthDigestShmemSize</code> as per the <a href=\"https://httpd.apache.org/docs/2.2/mod/mod_auth_digest.html#authdigestshmemsize\">Apache AuthDigestShmemSize\ndocumentation</a>.</p>\n\n<h6><code>auth_basic_authoritative</code></h6>\n\n<p>Sets the value for <code>AuthBasicAuthoritative</code> as per the <a href=\"https://httpd.apache.org/docs/2.2/mod/mod_auth_basic.html#authbasicauthoritative\">Apache\nAuthBasicAuthoritative\ndocumentation</a>.</p>\n\n<h6><code>auth_basic_fake</code></h6>\n\n<p>Sets the value for <code>AuthBasicFake</code> as per the <a href=\"https://httpd.apache.org/docs/trunk/mod/mod_auth_basic.html#authbasicfake\">Apache AuthBasicFake\ndocumentation</a>.</p>\n\n<h6><code>auth_basic_provider</code></h6>\n\n<p>Sets the value for <code>AuthBasicProvider</code> as per the <a href=\"https://httpd.apache.org/docs/2.2/mod/mod_auth_basic.html#authbasicprovider\">Apache AuthBasicProvider\ndocumentation</a>.</p>\n\n<h6><code>auth_user_file</code></h6>\n\n<p>Sets the value for <code>AuthUserFile</code> as per the <a href=\"https://httpd.apache.org/docs/2.2/mod/mod_authn_file.html#authuserfile\">Apache AuthUserFile\ndocumentation</a>.</p>\n\n<h6><code>auth_require</code></h6>\n\n<p>Sets the value for <code>AuthName</code> as per the <a href=\"https://httpd.apache.org/docs/2.2/mod/core.html#require\">Apache Require\ndocumentation</a></p>\n\n<h6><code>passenger_enabled</code></h6>\n\n<p>Sets the value for the <code>PassengerEnabled</code> directory to <code>on</code> or <code>off</code> as per the <a href=\"http://www.modrails.com/documentation/Users%20guide%20Apache.html#PassengerEnabled\">Passenger documentation</a>.</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;sample.example.net&#39;:\n      docroot     =&gt; &#39;/path/to/directory&#39;,\n      directories =&gt; [ { path =&gt; &#39;/path/to/directory&#39;, passenger_enabled =&gt; &#39;off&#39; } ],\n    }\n</code></pre>\n\n<p><strong>Note:</strong> This directive requires <code>apache::mod::passenger</code> to be active, Apache may not start with an unrecognised directive without it.</p>\n\n<p><strong>Note:</strong> Be aware that there is an <a href=\"http://www.conandalton.net/2010/06/passengerenabled-off-not-working.html\">issue</a> using the <code>PassengerEnabled</code> directive with the <code>PassengerHighPerformance</code> directive.</p>\n\n<h6><code>ssl_options</code></h6>\n\n<p>String or list of <a href=\"https://httpd.apache.org/docs/2.2/mod/mod_ssl.html#ssloptions\"><code>SSLOptions</code></a> for the given <code>&lt;Directory&gt;</code> block. This overrides, or refines the <a href=\"https://httpd.apache.org/docs/2.2/mod/mod_ssl.html#ssloptions\"><code>SSLOptions</code></a> of the parent block (either vhost, or server).</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;secure.example.net&#39;:\n      docroot     =&gt; &#39;/path/to/directory&#39;,\n      directories =&gt; [\n        { path =&gt; &#39;/path/to/directory&#39;, ssl_options =&gt; &#39;+ExportCertData&#39; }\n        { path =&gt; &#39;/path/to/different/dir&#39;, ssl_options =&gt; [ &#39;-StdEnvVars&#39;, &#39;+ExportCertData&#39;] },\n      ],\n    }\n</code></pre>\n\n<h6><code>suphp</code></h6>\n\n<p>An array containing two values: User and group for the <a href=\"http://www.suphp.org/DocumentationView.html?file=apache/CONFIG\">suPHP_UserGroup</a> setting.\nThis directive must be used with <code>suphp_engine =&gt; on</code> in the vhost declaration. This directive only works in <code>&lt;Directory&gt;</code> or <code>&lt;Location&gt;</code>.</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;secure.example.net&#39;:\n      docroot     =&gt; &#39;/path/to/directory&#39;,\n      directories =&gt; [\n        { path =&gt; &#39;/path/to/directory&#39;, suphp =&gt; { user =&gt;  &#39;myappuser&#39;, group =&gt; &#39;myappgroup&#39; }\n      ],\n    }\n</code></pre>\n\n<h6><code>custom_fragment</code></h6>\n\n<p>Pass a string of custom configuration directives to be placed at the end of the\ndirectory configuration.</p>\n\n<h5><code>directoryindex</code></h5>\n\n<p>Set a DirectoryIndex directive, to set the list of resources to look for, when the client requests an index of the directory by specifying a / at the end of the directory name..</p>\n\n<h5><code>docroot</code></h5>\n\n<p>Provides the DocumentRoot directive, identifying the directory Apache serves files from.</p>\n\n<h5><code>docroot_group</code></h5>\n\n<p>Sets group access to the docroot directory. Defaults to &#39;root&#39;.</p>\n\n<h5><code>docroot_owner</code></h5>\n\n<p>Sets individual user access to the docroot directory. Defaults to &#39;root&#39;.</p>\n\n<h5><code>error_log</code></h5>\n\n<p>Specifies whether <code>*_error.log</code> directives should be configured. Defaults to &#39;true&#39;.</p>\n\n<h5><code>error_log_file</code></h5>\n\n<p>Points to the <code>*_error.log</code> file. Defaults to &#39;undef&#39;.</p>\n\n<h5><code>error_log_pipe</code></h5>\n\n<p>Specifies a pipe to send error log messages to. Defaults to &#39;undef&#39;.</p>\n\n<h5><code>error_log_syslog</code></h5>\n\n<p>Sends all error log messages to syslog. Defaults to &#39;undef&#39;.</p>\n\n<h5><code>error_documents</code></h5>\n\n<p>A list of hashes which can be used to override the <a href=\"https://httpd.apache.org/docs/2.2/mod/core.html#errordocument\">ErrorDocument</a> settings for this vhost. Defaults to <code>[]</code>. Example:</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;sample.example.net&#39;:\n      error_documents =&gt; [\n        { &#39;error_code&#39; =&gt; &#39;503&#39;, &#39;document&#39; =&gt; &#39;/service-unavail&#39; },\n        { &#39;error_code&#39; =&gt; &#39;407&#39;, &#39;document&#39; =&gt; &#39;https://example.com/proxy/login&#39; },\n      ],\n    }\n</code></pre>\n\n<h5><code>ensure</code></h5>\n\n<p>Specifies if the vhost file is present or absent.</p>\n\n<h5><code>fastcgi_server</code></h5>\n\n<p>Specifies the filename as an external FastCGI application. Defaults to &#39;undef&#39;.</p>\n\n<h5><code>fastcgi_socket</code></h5>\n\n<p>Filename used to communicate with the web server.  Defaults to &#39;undef&#39;.</p>\n\n<h5><code>fastcgi_dir</code></h5>\n\n<p>Directory to enable for FastCGI.  Defaults to &#39;undef&#39;.</p>\n\n<h5><code>additional_includes</code></h5>\n\n<p>Specifies paths to additional static vhost-specific Apache configuration files.\nThis option is useful when you need to implement a unique and/or custom\nconfiguration not supported by this module.</p>\n\n<h5><code>ip</code></h5>\n\n<p>The IP address the vhost listens on. Defaults to &#39;undef&#39;.</p>\n\n<h5><code>ip_based</code></h5>\n\n<p>Enables an IP-based vhost. This parameter inhibits the creation of a NameVirtualHost directive, since those are used to funnel requests to name-based vhosts. Defaults to &#39;false&#39;.</p>\n\n<h5><code>logroot</code></h5>\n\n<p>Specifies the location of the virtual host&#39;s logfiles. Defaults to <code>/var/log/&lt;apache log location&gt;/</code>.</p>\n\n<h5><code>log_level</code></h5>\n\n<p>Specifies the verbosity level of the error log. Defaults to <code>warn</code> for the global server configuration and can be overridden on a per-vhost basis using this parameter. Valid value for <code>log_level</code> is one of <code>emerg</code>, <code>alert</code>, <code>crit</code>, <code>error</code>, <code>warn</code>, <code>notice</code>, <code>info</code> or <code>debug</code>.</p>\n\n<h5><code>no_proxy_uris</code></h5>\n\n<p>Specifies URLs you do not want to proxy. This parameter is meant to be used in combination with <code>proxy_dest</code>.</p>\n\n<h5><code>options</code></h5>\n\n<p>Lists the options for the given virtual host</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;site.name.fdqn&#39;:\n      …\n      options =&gt; [&#39;Indexes&#39;,&#39;FollowSymLinks&#39;,&#39;MultiViews&#39;],\n    }\n</code></pre>\n\n<h5><code>override</code></h5>\n\n<p>Sets the overrides for the given virtual host. Accepts an array of AllowOverride arguments.</p>\n\n<h5><code>port</code></h5>\n\n<p>Sets the port the host is configured on.</p>\n\n<h5><code>priority</code></h5>\n\n<p>Sets the relative load-order for Apache httpd VirtualHost configuration files. Defaults to &#39;25&#39;.</p>\n\n<p>If nothing matches the priority, the first name-based vhost will be used. Likewise, passing a higher priority will cause the alphabetically first name-based vhost to be used if no other names match.</p>\n\n<p><em>Note</em>: You should not need to use this parameter. However, if you do use it, be aware that the <code>default_vhost</code> parameter for <code>apache::vhost</code> passes a priority of &#39;15&#39;.</p>\n\n<h5><code>proxy_dest</code></h5>\n\n<p>Specifies the destination address of a proxypass configuration. Defaults to &#39;undef&#39;.</p>\n\n<h5><code>proxy_pass</code></h5>\n\n<p>Specifies an array of path =&gt; uri for a proxypass configuration. Defaults to &#39;undef&#39;.</p>\n\n<p>Example:</p>\n\n<pre lang=\"puppet\"><code>$proxy_pass = [\n  { &#39;path&#39; =&gt; &#39;/a&#39;, &#39;url&#39; =&gt; &#39;http://backend-a/&#39; },\n  { &#39;path&#39; =&gt; &#39;/b&#39;, &#39;url&#39; =&gt; &#39;http://backend-b/&#39; },\n  { &#39;path&#39; =&gt; &#39;/c&#39;, &#39;url&#39; =&gt; &#39;http://backend-a/c&#39; }\n]\n\napache::vhost { &#39;site.name.fdqn&#39;:\n  …\n  proxy_pass       =&gt; $proxy_pass,\n}\n</code></pre>\n\n<h5><code>rack_base_uris</code></h5>\n\n<p>Specifies the resource identifiers for a rack configuration. The file paths specified will be listed as rack application roots for passenger/rack in the <code>_rack.erb</code> template. Defaults to &#39;undef&#39;.</p>\n\n<h5><code>redirect_dest</code></h5>\n\n<p>Specifies the address to redirect to. Defaults to &#39;undef&#39;.</p>\n\n<h5><code>redirect_source</code></h5>\n\n<p>Specifies the source items? that will redirect to the destination specified in <code>redirect_dest</code>. If more than one item for redirect is supplied, the source and destination must be the same length, and the items are order-dependent.</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;site.name.fdqn&#39;:\n      …\n      redirect_source =&gt; [&#39;/images&#39;,&#39;/downloads&#39;],\n      redirect_dest =&gt; [&#39;http://img.example.com/&#39;,&#39;http://downloads.example.com/&#39;],\n    }\n</code></pre>\n\n<h5><code>redirect_status</code></h5>\n\n<p>Specifies the status to append to the redirect. Defaults to &#39;undef&#39;.</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;site.name.fdqn&#39;:\n      …\n      redirect_status =&gt; [&#39;temp&#39;,&#39;permanent&#39;],\n    }\n</code></pre>\n\n<h5><code>request_headers</code></h5>\n\n<p>Specifies additional request headers.</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;site.name.fdqn&#39;:\n      …\n      request_headers =&gt; [\n        &#39;append MirrorID &quot;mirror 12&quot;&#39;,\n        &#39;unset MirrorID&#39;,\n      ],\n    }\n</code></pre>\n\n<h5><code>rewrite_base</code></h5>\n\n<p>Limits the <code>rewrite_rule</code> to the specified base URL. Defaults to &#39;undef&#39;.</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;site.name.fdqn&#39;:\n      …\n      rewrite_rule =&gt; &#39;^index\\.html$ welcome.html&#39;,\n      rewrite_base =&gt; &#39;/blog/&#39;,\n    }\n</code></pre>\n\n<p>The above example would limit the index.html -&gt; welcome.html rewrite to only something inside of <a href=\"http://example.com/blog/\">http://example.com/blog/</a>.</p>\n\n<h5><code>rewrite_cond</code></h5>\n\n<p>Rewrites a URL via <code>rewrite_rule</code> based on the truth of specified conditions. For example</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;site.name.fdqn&#39;:\n      …\n      rewrite_cond =&gt; &#39;%{HTTP_USER_AGENT} ^MSIE&#39;,\n    }\n</code></pre>\n\n<p>will rewrite URLs only if the visitor is using IE. Defaults to &#39;undef&#39;.</p>\n\n<p><em>Note</em>: At the moment, each vhost is limited to a single list of rewrite conditions. In the future, you will be able to specify multiple <code>rewrite_cond</code> and <code>rewrite_rules</code> per vhost, so that different conditions get different rewrites.</p>\n\n<h5><code>rewrite_rule</code></h5>\n\n<p>Creates URL rewrite rules. Defaults to &#39;undef&#39;. This parameter allows you to specify, for example, that anyone trying to access index.html will be served welcome.html.</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;site.name.fdqn&#39;:\n      …\n      rewrite_rule =&gt; &#39;^index\\.html$ welcome.html&#39;,\n    }\n</code></pre>\n\n<h5><code>scriptalias</code></h5>\n\n<p>Defines a directory of CGI scripts to be aliased to the path &#39;/cgi-bin&#39;</p>\n\n<h5><code>scriptaliases</code></h5>\n\n<p>Passes a list of hashes to the vhost to create <code>ScriptAlias</code> or <code>ScriptAliasMatch</code> statements as per the <a href=\"http://httpd.apache.org/docs/current/mod/mod_alias.html\"><code>mod_alias</code> documentation</a>. Each hash is expected to be of the form:</p>\n\n<pre lang=\"puppet\"><code>    scriptaliases =&gt; [\n      {\n        alias =&gt; &#39;/myscript&#39;,\n        path  =&gt; &#39;/usr/share/myscript&#39;,\n      },\n      {\n        aliasmatch =&gt; &#39;^/foo(.*)&#39;,\n        path       =&gt; &#39;/usr/share/fooscripts$1&#39;,\n      },\n      {\n        aliasmatch =&gt; &#39;^/bar/(.*)&#39;,\n        path       =&gt; &#39;/usr/share/bar/wrapper.sh/$1&#39;,\n      },\n      {\n        alias =&gt; &#39;/neatscript&#39;,\n        path  =&gt; &#39;/usr/share/neatscript&#39;,\n      },\n    ]\n</code></pre>\n\n<p>These directives are created in the order specified. As with <code>Alias</code> and <code>AliasMatch</code> directives the more specific aliases should come before the more general ones to avoid shadowing.</p>\n\n<h5><code>serveradmin</code></h5>\n\n<p>Specifies the email address Apache will display when it renders one of its error pages.</p>\n\n<h5><code>serveraliases</code></h5>\n\n<p>Sets the server aliases of the site.</p>\n\n<h5><code>servername</code></h5>\n\n<p>Sets the primary name of the virtual host.</p>\n\n<h5><code>setenv</code></h5>\n\n<p>Used by HTTPD to set environment variables for vhosts. Defaults to &#39;[]&#39;.</p>\n\n<h5><code>setenvif</code></h5>\n\n<p>Used by HTTPD to conditionally set environment variables for vhosts. Defaults to &#39;[]&#39;.</p>\n\n<h5><code>ssl</code></h5>\n\n<p>Enables SSL for the virtual host. SSL vhosts only respond to HTTPS queries. Valid values are &#39;true&#39; or &#39;false&#39;.</p>\n\n<h5><code>ssl_ca</code></h5>\n\n<p>Specifies the certificate authority.</p>\n\n<h5><code>ssl_cert</code></h5>\n\n<p>Specifies the SSL certification.</p>\n\n<h5><code>ssl_protocol</code></h5>\n\n<p>Specifies the SSL Protocol (SSLProtocol).</p>\n\n<h5><code>ssl_cipher</code></h5>\n\n<p>Specifies the SSLCipherSuite.</p>\n\n<h5><code>ssl_honorcipherorder</code></h5>\n\n<p>Sets SSLHonorCipherOrder directive, used to prefer the server&#39;s cipher preference order</p>\n\n<h5><code>ssl_certs_dir</code></h5>\n\n<p>Specifies the location of the SSL certification directory. Defaults to <code>/etc/ssl/certs</code> on Debian and <code>/etc/pki/tls/certs</code> on RedHat.</p>\n\n<h5><code>ssl_chain</code></h5>\n\n<p>Specifies the SSL chain.</p>\n\n<h5><code>ssl_crl</code></h5>\n\n<p>Specifies the certificate revocation list to use.</p>\n\n<h5><code>ssl_crl_path</code></h5>\n\n<p>Specifies the location of the certificate revocation list.</p>\n\n<h5><code>ssl_key</code></h5>\n\n<p>Specifies the SSL key.</p>\n\n<h5><code>ssl_verify_client</code></h5>\n\n<p>Sets <code>SSLVerifyClient</code> directives as per the <a href=\"http://httpd.apache.org/docs/2.2/mod/mod_ssl.html#sslverifyclient\">Apache Core documentation</a>. Defaults to undef.\nAn example:</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;sample.example.net&#39;:\n      …\n      ssl_verify_client =&gt; &#39;optional&#39;,\n    }\n</code></pre>\n\n<h5><code>ssl_verify_depth</code></h5>\n\n<p>Sets <code>SSLVerifyDepth</code> directives as per the <a href=\"http://httpd.apache.org/docs/2.2/mod/mod_ssl.html#sslverifydepth\">Apache Core documentation</a>. Defaults to undef.\nAn example:</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;sample.example.net&#39;:\n      …\n      ssl_verify_depth =&gt; 1,\n    }\n</code></pre>\n\n<h5><code>ssl_options</code></h5>\n\n<p>Sets <code>SSLOptions</code> directives as per the <a href=\"http://httpd.apache.org/docs/2.2/mod/mod_ssl.html#ssloptions\">Apache Core documentation</a>. This is the global setting for the vhost and can be a string or an array. Defaults to undef. A single string example:</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;sample.example.net&#39;:\n      …\n      ssl_options =&gt; &#39;+ExportCertData&#39;,\n    }\n</code></pre>\n\n<p>An array of strings example:</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;sample.example.net&#39;:\n      …\n      ssl_options =&gt; [ &#39;+StrictRequire&#39;, &#39;+ExportCertData&#39; ],\n    }\n</code></pre>\n\n<h5><code>ssl_proxyengine</code></h5>\n\n<p>Specifies whether to use <code>SSLProxyEngine</code> or not. Defaults to <code>false</code>.</p>\n\n<h5><code>vhost_name</code></h5>\n\n<p>This parameter is for use with name-based virtual hosting. Defaults to &#39;*&#39;.</p>\n\n<h5><code>itk</code></h5>\n\n<p>Hash containing infos to configure itk as per the <a href=\"http://mpm-itk.sesse.net/\">ITK documentation</a>.</p>\n\n<p>Keys could be:</p>\n\n<ul>\n<li>user + group</li>\n<li>assignuseridexpr</li>\n<li>assigngroupidexpr</li>\n<li>maxclientvhost</li>\n<li>nice</li>\n<li>limituidrange (Linux 3.5.0 or newer)</li>\n<li>limitgidrange (Linux 3.5.0 or newer)</li>\n</ul>\n\n<p>Usage will typically look like:</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;sample.example.net&#39;:\n      docroot     =&gt; &#39;/path/to/directory&#39;,\n      itk =&gt; {\n        user  =&gt; &#39;someuser&#39;,\n        group =&gt; &#39;somegroup&#39;,\n      },\n    }\n</code></pre>\n\n<h3>Virtual Host Examples</h3>\n\n<p>The Apache module allows you to set up pretty much any configuration of virtual host you might desire. This section will address some common configurations. Please see the <a href=\"https://github.com/puppetlabs/puppetlabs-apache/tree/master/tests\">Tests section</a> for even more examples.</p>\n\n<p>Configure a vhost with a server administrator</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;third.example.com&#39;:\n      port        =&gt; &#39;80&#39;,\n      docroot     =&gt; &#39;/var/www/third&#39;,\n      serveradmin =&gt; &#39;admin@example.com&#39;,\n    }\n</code></pre>\n\n<hr>\n\n<p>Set up a vhost with aliased servers</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;sixth.example.com&#39;:\n      serveraliases =&gt; [\n        &#39;sixth.example.org&#39;,\n        &#39;sixth.example.net&#39;,\n      ],\n      port          =&gt; &#39;80&#39;,\n      docroot       =&gt; &#39;/var/www/fifth&#39;,\n    }\n</code></pre>\n\n<hr>\n\n<p>Configure a vhost with a cgi-bin</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;eleventh.example.com&#39;:\n      port        =&gt; &#39;80&#39;,\n      docroot     =&gt; &#39;/var/www/eleventh&#39;,\n      scriptalias =&gt; &#39;/usr/lib/cgi-bin&#39;,\n    }\n</code></pre>\n\n<hr>\n\n<p>Set up a vhost with a rack configuration</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;fifteenth.example.com&#39;:\n      port           =&gt; &#39;80&#39;,\n      docroot        =&gt; &#39;/var/www/fifteenth&#39;,\n      rack_base_uris =&gt; [&#39;/rackapp1&#39;, &#39;/rackapp2&#39;],\n    }\n</code></pre>\n\n<hr>\n\n<p>Set up a mix of SSL and non-SSL vhosts at the same domain</p>\n\n<pre lang=\"puppet\"><code>    #The non-ssl vhost\n    apache::vhost { &#39;first.example.com non-ssl&#39;:\n      servername =&gt; &#39;first.example.com&#39;,\n      port       =&gt; &#39;80&#39;,\n      docroot    =&gt; &#39;/var/www/first&#39;,\n    }\n\n    #The SSL vhost at the same domain\n    apache::vhost { &#39;first.example.com ssl&#39;:\n      servername =&gt; &#39;first.example.com&#39;,\n      port       =&gt; &#39;443&#39;,\n      docroot    =&gt; &#39;/var/www/first&#39;,\n      ssl        =&gt; true,\n    }\n</code></pre>\n\n<hr>\n\n<p>Configure a vhost to redirect non-SSL connections to SSL</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;sixteenth.example.com non-ssl&#39;:\n      servername      =&gt; &#39;sixteenth.example.com&#39;,\n      port            =&gt; &#39;80&#39;,\n      docroot         =&gt; &#39;/var/www/sixteenth&#39;,\n      redirect_status =&gt; &#39;permanent&#39;\n      redirect_dest   =&gt; &#39;https://sixteenth.example.com/&#39;\n    }\n    apache::vhost { &#39;sixteenth.example.com ssl&#39;:\n      servername =&gt; &#39;sixteenth.example.com&#39;,\n      port       =&gt; &#39;443&#39;,\n      docroot    =&gt; &#39;/var/www/sixteenth&#39;,\n      ssl        =&gt; true,\n    }\n</code></pre>\n\n<hr>\n\n<p>Set up IP-based vhosts on any listen port and have them respond to requests on specific IP addresses. In this example, we will set listening on ports 80 and 81. This is required because the example vhosts are not declared with a port parameter.</p>\n\n<pre lang=\"puppet\"><code>    apache::listen { &#39;80&#39;: }\n    apache::listen { &#39;81&#39;: }\n</code></pre>\n\n<p>Then we will set up the IP-based vhosts</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;first.example.com&#39;:\n      ip       =&gt; &#39;10.0.0.10&#39;,\n      docroot  =&gt; &#39;/var/www/first&#39;,\n      ip_based =&gt; true,\n    }\n    apache::vhost { &#39;second.example.com&#39;:\n      ip       =&gt; &#39;10.0.0.11&#39;,\n      docroot  =&gt; &#39;/var/www/second&#39;,\n      ip_based =&gt; true,\n    }\n</code></pre>\n\n<hr>\n\n<p>Configure a mix of name-based and IP-based vhosts. First, we will add two IP-based vhosts on 10.0.0.10, one SSL and one non-SSL</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;The first IP-based vhost, non-ssl&#39;:\n      servername =&gt; &#39;first.example.com&#39;,\n      ip         =&gt; &#39;10.0.0.10&#39;,\n      port       =&gt; &#39;80&#39;,\n      ip_based   =&gt; true,\n      docroot    =&gt; &#39;/var/www/first&#39;,\n    }\n    apache::vhost { &#39;The first IP-based vhost, ssl&#39;:\n      servername =&gt; &#39;first.example.com&#39;,\n      ip         =&gt; &#39;10.0.0.10&#39;,\n      port       =&gt; &#39;443&#39;,\n      ip_based   =&gt; true,\n      docroot    =&gt; &#39;/var/www/first-ssl&#39;,\n      ssl        =&gt; true,\n    }\n</code></pre>\n\n<p>Then, we will add two name-based vhosts listening on 10.0.0.20</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;second.example.com&#39;:\n      ip      =&gt; &#39;10.0.0.20&#39;,\n      port    =&gt; &#39;80&#39;,\n      docroot =&gt; &#39;/var/www/second&#39;,\n    }\n    apache::vhost { &#39;third.example.com&#39;:\n      ip      =&gt; &#39;10.0.0.20&#39;,\n      port    =&gt; &#39;80&#39;,\n      docroot =&gt; &#39;/var/www/third&#39;,\n    }\n</code></pre>\n\n<p>If you want to add two name-based vhosts so that they will answer on either 10.0.0.10 or 10.0.0.20, you <strong>MUST</strong> declare <code>add_listen =&gt; &#39;false&#39;</code> to disable the otherwise automatic &#39;Listen 80&#39;, as it will conflict with the preceding IP-based vhosts.</p>\n\n<pre lang=\"puppet\"><code>    apache::vhost { &#39;fourth.example.com&#39;:\n      port       =&gt; &#39;80&#39;,\n      docroot    =&gt; &#39;/var/www/fourth&#39;,\n      add_listen =&gt; false,\n    }\n    apache::vhost { &#39;fifth.example.com&#39;:\n      port       =&gt; &#39;80&#39;,\n      docroot    =&gt; &#39;/var/www/fifth&#39;,\n      add_listen =&gt; false,\n    }\n</code></pre>\n\n<h2>Implementation</h2>\n\n<h3>Classes and Defined Types</h3>\n\n<h4>Class: <code>apache::dev</code></h4>\n\n<p>Installs Apache development libraries</p>\n\n<pre lang=\"puppet\"><code>    class { &#39;apache::dev&#39;: }\n</code></pre>\n\n<p>On FreeBSD you&#39;re required to define <code>apache::package</code> or <code>apache</code> class before <code>apache::dev</code>.</p>\n\n<h4>Defined Type: <code>apache::listen</code></h4>\n\n<p>Controls which ports Apache binds to for listening based on the title:</p>\n\n<pre lang=\"puppet\"><code>    apache::listen { &#39;80&#39;: }\n    apache::listen { &#39;443&#39;: }\n</code></pre>\n\n<p>Declaring this defined type will add all <code>Listen</code> directives to the <code>ports.conf</code> file in the Apache httpd configuration directory.  <code>apache::listen</code> titles should always take the form of: <code>&lt;port&gt;</code>, <code>&lt;ipv4&gt;:&lt;port&gt;</code>, or <code>[&lt;ipv6&gt;]:&lt;port&gt;</code></p>\n\n<p>Apache httpd requires that <code>Listen</code> directives must be added for every port. The <code>apache::vhost</code> defined type will automatically add <code>Listen</code> directives unless the <code>apache::vhost</code> is passed <code>add_listen =&gt; false</code>.</p>\n\n<h4>Defined Type: <code>apache::namevirtualhost</code></h4>\n\n<p>Enables named-based hosting of a virtual host</p>\n\n<pre lang=\"puppet\"><code>    class { &#39;apache::namevirtualhost`: }\n</code></pre>\n\n<p>Declaring this defined type will add all <code>NameVirtualHost</code> directives to the <code>ports.conf</code> file in the Apache https configuration directory. <code>apache::namevirtualhost</code> titles should always take the form of: <code>*</code>, <code>*:&lt;port&gt;</code>, <code>_default_:&lt;port&gt;</code>, <code>&lt;ip&gt;</code>, or <code>&lt;ip&gt;:&lt;port&gt;</code>.</p>\n\n<h4>Defined Type: <code>apache::balancermember</code></h4>\n\n<p>Define members of a proxy_balancer set (mod_proxy_balancer). Very useful when using exported resources.</p>\n\n<p>On every app server you can export a balancermember like this:</p>\n\n<pre lang=\"puppet\"><code>      @@apache::balancermember { &quot;${::fqdn}-puppet00&quot;:\n        balancer_cluster =&gt; &#39;puppet00&#39;,\n        url              =&gt; &quot;ajp://${::fqdn}:8009&quot;\n        options          =&gt; [&#39;ping=5&#39;, &#39;disablereuse=on&#39;, &#39;retry=5&#39;, &#39;ttl=120&#39;],\n      }\n</code></pre>\n\n<p>And on the proxy itself you create the balancer cluster using the defined type apache::balancer:</p>\n\n<pre lang=\"puppet\"><code>      apache::balancer { &#39;puppet00&#39;: }\n</code></pre>\n\n<p>If you need to use ProxySet in the balncer config you can do as so:</p>\n\n<pre lang=\"puppet\"><code>      apache::balancer { &#39;puppet01&#39;:\n        proxy_set =&gt; {&#39;stickysession&#39; =&gt; &#39;JSESSIONID&#39;},\n      }\n</code></pre>\n\n<h3>Templates</h3>\n\n<p>The Apache module relies heavily on templates to enable the <code>vhost</code> and <code>apache::mod</code> defined types. These templates are built based on Facter facts around your operating system. Unless explicitly called out, most templates are not meant for configuration.</p>\n\n<h2>Limitations</h2>\n\n<p>This has been tested on Ubuntu Precise, Debian Wheezy, CentOS 5.8, and FreeBSD 9.1.</p>\n\n<h2>Development</h2>\n\n<h3>Overview</h3>\n\n<p>Puppet Labs modules on the Puppet Forge are open projects, and community contributions are essential for keeping them great. We can’t access the huge number of platforms and myriad of hardware, software, and deployment configurations that Puppet is intended to serve.</p>\n\n<p>We want to keep it as easy as possible to contribute changes so that our modules work in your environment. There are a few guidelines that we need contributors to follow so that we can have a chance of keeping on top of things.</p>\n\n<p>You can read the complete module contribution guide <a href=\"http://projects.puppetlabs.com/projects/module-site/wiki/Module_contributing\">on the Puppet Labs wiki.</a></p>\n\n<h3>Running tests</h3>\n\n<p>This project contains tests for both <a href=\"http://rspec-puppet.com/\">rspec-puppet</a> and <a href=\"https://github.com/puppetlabs/rspec-system\">rspec-system</a> to verify functionality. For in-depth information please see their respective documentation.</p>\n\n<p>Quickstart:</p>\n\n<pre><code>gem install bundler\nbundle install\nbundle exec rake spec\nbundle exec rake spec:system\n</code></pre>\n\n<h2>Copyright and License</h2>\n\n<p>Copyright (C) 2012 <a href=\"https://www.puppetlabs.com/\">Puppet Labs</a> Inc</p>\n\n<p>Puppet Labs can be contacted at: <a href=\"mailto:info@puppetlabs.com\">info@puppetlabs.com</a></p>\n\n<p>Licensed under the Apache License, Version 2.0 (the &quot;License&quot;);\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at</p>\n\n<p><a href=\"http://www.apache.org/licenses/LICENSE-2.0\">http://www.apache.org/licenses/LICENSE-2.0</a></p>\n\n<p>Unless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an &quot;AS IS&quot; BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.</p>\n</section>",
ruby-puppet-forge-2.3.2/spec/fixtures/v3/modules__query=apache.json-323-        "changelog": "<section class=\"markdown\"><h2>2013-12-05 Release 0.10.0</h2>\n\n<h3>Summary:</h3>\n\n<p>This release adds FreeBSD osfamily support and various other improvements to some mods.</p>\n\n<h3>Features:</h3>\n\n<ul>\n<li>Add suPHP_UserGroup directive to directory context</li>\n<li>Add support for ScriptAliasMatch directives</li>\n<li>Set SSLOptions StdEnvVars in server context</li>\n<li>No implicit <Directory> entry for ScriptAlias path</li>\n<li>Add support for overriding ErrorDocument</li>\n<li>Add support for AliasMatch directives</li>\n<li>Disable default &quot;allow from all&quot; in vhost-directories</li>\n<li>Add WSGIPythonPath as an optional parameter to mod_wsgi. </li>\n<li>Add mod_rpaf support</li>\n<li>Add directives: IndexOptions, IndexOrderDefault</li>\n<li>Add ability to include additional external configurations in vhost</li>\n<li>need to use the provider variable not the provider key value from the directory hash for matches</li>\n<li>Support for FreeBSD and few other features</li>\n<li>Add new params to apache::mod::mime class</li>\n<li>Allow apache::mod to specify module id and path</li>\n<li>added $server_root parameter</li>\n<li>Add Allow and ExtendedStatus support to mod_status</li>\n<li>Expand vhost/_directories.pp directive support</li>\n<li>Add initial support for nss module (no directives in vhost template yet)</li>\n<li>added peruser and event mpms</li>\n<li>added $service_name parameter</li>\n<li>add parameter for TraceEnable</li>\n<li>Make LogLevel configurable for server and vhost</li>\n<li>Add documentation about $ip</li>\n<li>Add ability to pass ip (instead of wildcard) in default vhost files</li>\n</ul>\n\n<h3>Bugfixes:</h3>\n\n<ul>\n<li>Don&#39;t listen on port or set NameVirtualHost for non-existent vhost</li>\n<li>only apply Directory defaults when provider is a directory</li>\n<li>Working mod_authnz_ldap support on Debian/Ubuntu</li>\n</ul>\n\n<h2>2013-09-06 Release 0.9.0</h2>\n\n<h3>Summary:</h3>\n\n<p>This release adds more parameters to the base apache class and apache defined\nresource to make the module more flexible. It also adds or enhances SuPHP,\nWSGI, and Passenger mod support, and support for the ITK mpm module.</p>\n\n<h3>Backwards-incompatible Changes:</h3>\n\n<ul>\n<li>Remove many default mods that are not normally needed.</li>\n<li>Remove <code>rewrite_base</code> <code>apache::vhost</code> parameter; did not work anyway.</li>\n<li>Specify dependencies on stdlib &gt;=2.4.0 (this was already the case, but\nmaking explicit)</li>\n<li>Deprecate <code>a2mod</code> in favor of the <code>apache::mod::*</code> classes and <code>apache::mod</code>\ndefined resource.</li>\n</ul>\n\n<h3>Features:</h3>\n\n<ul>\n<li><code>apache</code> class\n\n<ul>\n<li>Add <code>httpd_dir</code> parameter to change the location of the configuration\nfiles.</li>\n<li>Add <code>logroot</code> parameter to change the logroot</li>\n<li>Add <code>ports_file</code> parameter to changes the <code>ports.conf</code> file location</li>\n<li>Add <code>keepalive</code> parameter to enable persistent connections</li>\n<li>Add <code>keepalive_timeout</code> parameter to change the timeout</li>\n<li>Update <code>default_mods</code> to be able to take an array of mods to enable.</li>\n</ul></li>\n<li><code>apache::vhost</code>\n\n<ul>\n<li>Add <code>wsgi_daemon_process</code>, <code>wsgi_daemon_process_options</code>,\n<code>wsgi_process_group</code>, and <code>wsgi_script_aliases</code> parameters for per-vhost\nWSGI configuration.</li>\n<li>Add <code>access_log_syslog</code> parameter to enable syslogging.</li>\n<li>Add <code>error_log_syslog</code> parameter to enable syslogging of errors.</li>\n<li>Add <code>directories</code> hash parameter. Please see README for documentation.</li>\n<li>Add <code>sslproxyengine</code> parameter to enable SSLProxyEngine</li>\n<li>Add <code>suphp_addhandler</code>, <code>suphp_engine</code>, and <code>suphp_configpath</code> for\nconfiguring SuPHP.</li>\n<li>Add <code>custom_fragment</code> parameter to allow for arbitrary apache\nconfiguration injection. (Feature pull requests are prefered over using\nthis, but it is available in a pinch.)</li>\n</ul></li>\n<li>Add <code>apache::mod::suphp</code> class for configuring SuPHP.</li>\n<li>Add <code>apache::mod::itk</code> class for configuring ITK mpm module.</li>\n<li>Update <code>apache::mod::wsgi</code> class for global WSGI configuration with\n<code>wsgi_socket_prefix</code> and <code>wsgi_python_home</code> parameters.</li>\n<li>Add README.passenger.md to document the <code>apache::mod::passenger</code> usage.\nAdded <code>passenger_high_performance</code>, <code>passenger_pool_idle_time</code>,\n<code>passenger_max_requests</code>, <code>passenger_stat_throttle_rate</code>, <code>rack_autodetect</code>,\nand <code>rails_autodetect</code> parameters.</li>\n<li>Separate the httpd service resource into a new <code>apache::service</code> class for\ndependency chaining of <code>Class[&#39;apache&#39;] -&gt; &lt;resource&gt; ~&gt;\nClass[&#39;apache::service&#39;]</code></li>\n<li>Added <code>apache::mod::proxy_balancer</code> class for <code>apache::balancer</code></li>\n</ul>\n\n<h3>Bugfixes:</h3>\n\n<ul>\n<li>Change dependency to puppetlabs-concat</li>\n<li>Fix ruby 1.9 bug for <code>a2mod</code></li>\n<li>Change servername to be <code>$::hostname</code> if there is no <code>$::fqdn</code></li>\n<li>Make <code>/etc/ssl/certs</code> the default ssl certs directory for RedHat non-5.</li>\n<li>Make <code>php</code> the default php package for RedHat non-5.</li>\n<li>Made <code>aliases</code> able to take a single alias hash instead of requiring an\narray.</li>\n</ul>\n\n<h2>2013-07-26 Release 0.8.1</h2>\n\n<h3>Bugfixes:</h3>\n\n<ul>\n<li>Update <code>apache::mpm_module</code> detection for worker/prefork</li>\n<li>Update <code>apache::mod::cgi</code> and <code>apache::mod::cgid</code> detection for\nworker/prefork</li>\n</ul>\n\n<h2>2013-07-16 Release 0.8.0</h2>\n\n<h3>Features:</h3>\n\n<ul>\n<li>Add <code>servername</code> parameter to <code>apache</code> class</li>\n<li>Add <code>proxy_set</code> parameter to <code>apache::balancer</code> define</li>\n</ul>\n\n<h3>Bugfixes:</h3>\n\n<ul>\n<li>Fix ordering for multiple <code>apache::balancer</code> clusters</li>\n<li>Fix symlinking for sites-available on Debian-based OSs</li>\n<li>Fix dependency ordering for recursive confdir management</li>\n<li>Fix <code>apache::mod::*</code> to notify the service on config change</li>\n<li>Documentation updates</li>\n</ul>\n\n<h2>2013-07-09 Release 0.7.0</h2>\n\n<h3>Changes:</h3>\n\n<ul>\n<li>Essentially rewrite the module -- too many to list</li>\n<li><code>apache::vhost</code> has many abilities -- see README.md for details</li>\n<li><code>apache::mod::*</code> classes provide httpd mod-loading capabilities</li>\n<li><code>apache</code> base class is much more configurable</li>\n</ul>\n\n<h3>Bugfixes:</h3>\n\n<ul>\n<li>Many. And many more to come</li>\n</ul>\n\n<h2>2013-03-2 Release 0.6.0</h2>\n\n<ul>\n<li>update travis tests (add more supported versions)</li>\n<li>add access log_parameter</li>\n<li>make purging of vhost dir configurable</li>\n</ul>\n\n<h2>2012-08-24 Release 0.4.0</h2>\n\n<h3>Changes:</h3>\n\n<ul>\n<li><code>include apache</code> is now required when using <code>apache::mod::*</code></li>\n</ul>\n\n<h3>Bugfixes:</h3>\n\n<ul>\n<li>Fix syntax for validate_re</li>\n<li>Fix formatting in vhost template</li>\n<li><p>Fix spec tests such that they pass</p>\n\n<p>2012-05-08 Puppet Labs <a href=\"mailto:info@puppetlabs.com\">info@puppetlabs.com</a> - 0.0.4\ne62e362 Fix broken tests for ssl, vhost, vhost::*\n42c6363 Changes to match style guide and pass puppet-lint without error\n42bc8ba changed name =&gt; path for file resources in order to name namevar by it&#39;s name\n72e13de One end too much\n0739641 style guide fixes: &#39;true&#39; &lt;&gt; true, $operatingsystem needs to be $::operatingsystem, etc.\n273f94d fix tests\na35ede5 (#13860) Make a2enmod/a2dismo commands optional\n98d774e (#13860) Autorequire Package[&#39;httpd&#39;]\n05fcec5 (#13073) Add missing puppet spec tests\n541afda (#6899) Remove virtual a2mod definition\n976cb69 (#13072) Move mod python and wsgi package names to params\n323915a (#13060) Add .gitignore to repo\nfdf40af (#13060) Remove pkg directory from source tree\nfd90015 Add LICENSE file and update the ModuleFile\nd3d0d23 Re-enable local php class\nd7516c7 Make management of firewalls configurable for vhosts\n60f83ba Explicitly lookup scope of apache_name in templates.\nf4d287f (#12581) Add explicit ordering for vdir directory\n88a2ac6 (#11706) puppetlabs-apache depends on puppetlabs-firewall\na776a8b (#11071) Fix to work with latest firewall module\n2b79e8b (#11070) Add support for Scientific Linux\n405b3e9 Fix for a2mod\n57b9048 Commit apache::vhost::redirect Manifest\n8862d01 Commit apache::vhost::proxy Manifest\nd5c1fd0 Commit apache::mod::wsgi Manifest\na825ac7 Commit apache::mod::python Manifest\nb77062f Commit Templates\n9a51b4a Vhost File Declarations\n6cf7312 Defaults for Parameters\n6a5b11a Ensure installed\nf672e46 a2mod fix\n8a56ee9 add pthon support to apache</p></li>\n</ul>\n</section>",
##############################################
ruby-puppet-forge-2.3.2/spec/fixtures/v3/modules__query=apache.json-611-        "downloads": 966,
ruby-puppet-forge-2.3.2/spec/fixtures/v3/modules__query=apache.json:612:        "readme": "<section class=\"plaintext\"><pre>apache\n\nReleased 20100625 - Garrett Honeycutt - GPLv2\n\nManages apache servers, remote restarts, and mod_ssl, mod_php, mod_python, mod_perl\n\nYou can also easily setup a web server by only specifying the apache config file, such as\n\napache::vhost { &quot;mediawiki&quot;:\n    source =&gt; &quot;puppet:&#x2F;&#x2F;&#x2F;modules&#x2F;mediawiki&#x2F;mediawiki.conf&quot;,\n}\n\n# Definition: apache::vhost\n#\n# setup a vhost\n#\n# Parameters:   \n#   $ensure  - defaults to &#x27;present&#x27;\n#   $content - quoted content or a template\n#   $source  - file to grab with the VirtualHost information\n#\n# Actions:\n#   sets up a vhost\n#\n# Requires:\n#   $content our $source must be set\n#\n# Sample Usage:\n# in the mediawiki module you could setup the web portion with the following\n# code, where the mediawiki.conf file contains the &lt;VirtualHost&gt; statements\n#\n#    apache::vhost { &quot;mediawiki&quot;:\n#        source =&gt; &quot;puppet:&#x2F;&#x2F;&#x2F;modules&#x2F;mediawiki&#x2F;mediawiki.conf&quot;,\n#    } # apache::vhost\n\n# Definition: apache::module\n#\n# setup an apache module - this is used primarily by apache\n# subclasses, such as apache::php, apache::perl, etc\n#       \n# Parameters:    \n#   $ensure  - default to &#x27;present&#x27;\n#   $content - quoted content or a template\n#   $source  - file to grab with the VirtualHost information\n#\n# Actions:\n#   sets up an apache module\n#       \n# Requires:\n#   $content our $source must be set\n#       \n# Sample Usage:  \n# this would install the php.conf which includes the LoadModule,\n# AddHandler, AddType and related info that apache needs\n#\n#    apache::module{&quot;php&quot;: \n#        source =&gt; &quot;puppet:&#x2F;&#x2F;&#x2F;modules&#x2F;apache&#x2F;php.conf&quot;,   \n#    } # apache::module\n\n\n# Definition: apache::ssl::set_cert\n#\n# install certificate\n#\n# Parameters:   \n#   $certfile   - public cert\n#   $certkey    - private key\n#   $ip         - ip address to use, uses $ipaddress from facter by default\n#   $port       - port to use, uses 443 by default\n#   $cachain    - cachain file\n#   $revokefile - revoke file\n#\n# Actions:\n#   installs certs\n#\n# Requires:\n#   $certfile must be set\n#   $certkey must be set\n#\n# Sample Usage:\n#    # *.yoursite.com\n#    @set_cert { &quot;staryoursite&quot;:\n#        certfile =&gt; &quot;&#x2F;etc&#x2F;pki&#x2F;tls&#x2F;certs&#x2F;yoursite_cert.pem&quot;,\n#        certkey  =&gt; &quot;&#x2F;etc&#x2F;pki&#x2F;tls&#x2F;private&#x2F;yoursite_key.pem&quot;,\n#    } # @set_cert\n</pre></section>",
ruby-puppet-forge-2.3.2/spec/fixtures/v3/modules__query=apache.json-613-        "changelog": "<section class=\"plaintext\"><pre>1.0.0 - initial release\n1.0.1 - added documentation\n</pre></section>",