27 Commits

Author SHA1 Message Date
Yolanda Robla
208feadbcd Add logrotate class to Apache
Adding this subclass to httpd configuration, to allow
modules using this manifest to setup log rotation for
apache on demand.
Please note that apache is installing a logrotate file by
default here, but naming that on same way will overwrite it,
and allow our desired log rotation.

Depends-On: I7451ecc550b50b85c55784ef598f6b45412117fc
Change-Id: I3ef60fd9386795007e5b55264cc6e91fa0b67c68
2015-08-15 09:13:17 +02:00
Spencer Krum
de611fb20e Remove a2mod definion
One snuck past the global renaming

Change-Id: I1d60946a30a32d0a117e61cc969e065fa39993e8
2015-02-25 03:27:55 -08:00
Spencer Krum
dab0f45bea Rename apache2 to httpd globally
This renames the classes and defined types from apache to httpd.
With the 'httpd' module available, we can migrate usage of 'apache'
to 'httpd.' Eventually this will free the 'apache' namespace.

A native ruby type and provider is contained in this class. It is
not namespaced to the class name so it has been renamed from a2mod
to httpd_mod.

Change-Id: I056eb28a13e7ccc95f1496019bedc332c17dd458
2015-02-05 05:49:30 -08:00
Ian Wienand
482441c9af Add rake "lint" target, fix errors
Add the rake "lint" target, and fix resulting minor errors, which were:

---
 manifests/mod/python.pp - WARNING: class not documented on line 1
 manifests/mod/wsgi.pp - WARNING: class not documented on line 1
 manifests/vhost.pp - WARNING: variable not enclosed in {} on line 80
 manifests/vhost.pp - WARNING: variable not enclosed in {} on line 82
 manifests/vhost/redirect.pp - WARNING: variable not enclosed in {} on line 43
 manifests/vhost/redirect.pp - WARNING: variable not enclosed in {} on line 45
---

Change-Id: I2213f314d4bf92b4ddf58dbb19a80783380a55ce
2014-11-20 10:56:33 +11:00
Eric Shamow
42c636341f Changes to match style guide and pass puppet-lint without error
No substantive behavior changes - only spacing, line alignment,
quotation, etc.
2012-04-20 21:07:54 -07:00
Walter Heck
42bc8ba49a changed name => path for file resources in order to name namevar by it's name 2012-04-16 15:31:54 +08:00
Walter Heck
073964152d style guide fixes: 'true' <> true, $operatingsystem needs to be $::operatingsystem, etc. 2012-04-16 15:20:00 +08:00
William Van Hevelingen
05fcec5f9c (#13073) Add missing puppet spec tests
This commit adds full puppet spec coverage
for all classes and defines.
2012-03-16 00:38:53 -07:00
William Van Hevelingen
541afdaf9e (#6899) Remove virtual a2mod definition
Previously users were required to realize rewrite,
headers, and expires on debian systems. This commit
removes the virtual a2mod definition which makes the
three a2mod resources consistent with other operating
systems and other a2mod resources.
2012-03-13 11:45:03 -07:00
William Van Hevelingen
976cb69648 (#13072) Move mod python and wsgi package names to params
Previously apache::mod::python and apache::mod::wsgi used
a case statement to determine which package to install. This
commit moves the package names to the params class and fixes
the syntax errors introduced in commit 2b79e8b when the
selectors were changed to include Scientific Linux.
2012-03-12 19:58:34 -07:00
Ryan Coleman
5d8013a8c3 Merge pull request #13 from marut/ticket_12902_php_dependency_problem
(#12902) Re-enable local php class

Reviewed by Ryan Coleman (ryan@puppetlabs.com)
2012-03-12 02:11:56 -07:00
Ryan Coleman
3c0c1ac882 Merge pull request #12 from bodepd/make_vhost_firewalls_optional
Make management of firewalls configurable for vhosts

Reviewed by Ryan Coleman (ryan@puppetlabs.com)
2012-03-12 02:06:19 -07:00
Reid Vandewiele
d3d0d23d06 Re-enable local php class
Previously, commit 8a56ee91 removed local control of the apache::php_package
management in favor of "include php". However, no dependency was added to the
Modulefile and to date the php module referenced in apache::php has not been
released.

This commit reinstates apache local class management of php to the apache::php
class (at least until such time as the puppetlabs-php module is released).
2012-02-29 20:17:54 -08:00
Dan Bode
d7516c7662 Make management of firewalls configurable for vhosts
Previously, it was necessary to configure a firewall
entry for every port associated with a vhost.

This commit makes the confuration of firewalls for vhosts
configurable. This configuration option has been added to spare
users from having to configure firewalls if they do not wish
to.
2012-02-21 13:04:52 -08:00
Adrien Thebo
f4d287f053 (#12581) Add explicit ordering for vdir directory
The apache::params::vdir directory depends on the existence of the
httpd package, and trying to include the module may cause an ordering
failure. Added the necessary explicit ordering.
2012-02-11 22:00:30 -08:00
David Alden
a776a8b46d (#11071) Fix to work with latest firewall module
The firewall module deprecated the use of jump => accept, this patch now
changes this parameter to action => accept making it compatible with the
latest release.
2011-12-01 01:05:56 +00:00
David Alden
2b79e8bdd1 (#11070) Add support for Scientific Linux
This patch adds Scientific Linux to the various case statements so it is
supported. This also fixed the various templates so that the log location
is variable depending on weither the OS is Redhat based or Debian based.
2011-12-01 00:56:45 +00:00
Gary Larizza
57b904839b Commit apache::vhost::redirect Manifest 2011-07-15 15:27:50 -07:00
Gary Larizza
8862d013e6 Commit apache::vhost::proxy Manifest 2011-07-15 15:27:39 -07:00
Gary Larizza
d5c1fd0185 Commit apache::mod::wsgi Manifest 2011-07-15 15:27:27 -07:00
Gary Larizza
a825ac7d8d Commit apache::mod::python Manifest 2011-07-15 15:27:14 -07:00
Gary Larizza
9a51b4aa8d Vhost File Declarations
Include apache::vhost file declarations and templates.
2011-07-15 15:26:22 -07:00
Gary Larizza
6cf7312ff3 Defaults for Parameters
Set sane default parameters for the apache::vhost subclass
and enter them into apache::params.
2011-07-15 15:25:31 -07:00
Gary Larizza
6a5b11a4e0 Ensure installed
Use installed vs. present syntax
2011-07-15 15:23:46 -07:00
Gary Larizza
f672e46905 a2mod fix
Only use @a2mod if you're running an OS that supports it.
2011-07-15 15:23:24 -07:00
Zach
8a56ee91f0 add pthon support to apache 2010-11-21 16:34:48 -05:00
James Turnbull
35721a3f35 Initial commit 2010-09-01 18:01:04 -04:00