|
16 | 16 | * [Classes: apache::mod::*](#classes-apachemodname) |
17 | 17 | * [Class: apache::mod::alias](#class-apachemodalias) |
18 | 18 | * [Class: apache::mod::event](#class-apachemodevent) |
| 19 | + * [Class: apache::mod::geoip](#class-apachemodgeoip) |
19 | 20 | * [Class: apache::mod::info](#class-apachemodinfo) |
20 | 21 | * [Class: apache::mod::pagespeed](#class-apachemodpagespeed) |
21 | 22 | * [Class: apache::mod::php](#class-apachemodphp) |
@@ -624,6 +625,25 @@ Installs and manages mod_auth_cas. The parameters `cas_login_url` and `cas_valid |
624 | 625 |
|
625 | 626 | Full documentation on mod_auth_cas is available from [JASIG](https://github.com/Jasig/mod_auth_cas). |
626 | 627 |
|
| 628 | +####Class: `apache::mod::geoip` |
| 629 | + |
| 630 | +Installs and manages mod_geoip. |
| 631 | + |
| 632 | +Full documentation on mod_geoip is available from [MaxMind](http://dev.maxmind.com/geoip/legacy/mod_geoip2/). |
| 633 | + |
| 634 | +These are the default settings: |
| 635 | + |
| 636 | +```puppet |
| 637 | + class {'apache::mod::geoip': |
| 638 | + $enable => 'Off', |
| 639 | + $dbfile => '/usr/share/GeoIP/GeoIP.dat', |
| 640 | + $flag => 'Standard', |
| 641 | + $output => 'All', |
| 642 | + } |
| 643 | +``` |
| 644 | + |
| 645 | +The parameter `dbfile` can be a single directory or a hash of directories. |
| 646 | + |
627 | 647 | ####Class: `apache::mod::info` |
628 | 648 |
|
629 | 649 | Installs and manages mod_info which provides a comprehensive overview of the server configuration. |
@@ -1829,6 +1849,22 @@ An array of hashes used to override the [ErrorDocument](https://httpd.apache.org |
1829 | 1849 | } |
1830 | 1850 | ``` |
1831 | 1851 |
|
| 1852 | +######`geoip_enable` |
| 1853 | + |
| 1854 | +Sets the [GeoIPEnable](http://dev.maxmind.com/geoip/legacy/mod_geoip2/#Configuration) directive. |
| 1855 | +Note that you must declare `class {'apache::mod::geoip': }` before using this directive. |
| 1856 | + |
| 1857 | +```puppet |
| 1858 | + apache::vhost { 'first.example.com': |
| 1859 | + docroot => '/var/www/first', |
| 1860 | + directories => [ |
| 1861 | + { path => '/var/www/first', |
| 1862 | + geoip_enable => 'On', |
| 1863 | + }, |
| 1864 | + ], |
| 1865 | + } |
| 1866 | +``` |
| 1867 | + |
1832 | 1868 | ######`headers` |
1833 | 1869 |
|
1834 | 1870 | Adds lines for [Header](http://httpd.apache.org/docs/current/mod/mod_headers.html#header) directives. |
|
0 commit comments