Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1218 from damonconway/2673
Browse files Browse the repository at this point in the history
(#2673) Adding dev_packages to apache class. Allows use of httpd24u-d…
DavidS committed Oct 13, 2015
2 parents 6124598 + 680f3a9 commit a2a6395
Showing 3 changed files with 16 additions and 1 deletion.
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -889,6 +889,20 @@ Configures a default virtual host when the class is declared. Valid options: Boo

To configure [customized virtual hosts][Configuring virtual hosts], set this parameter's value to 'false'.

##### `dev_packages`

Configures a specific dev package to use. Valid options: String. Default: 'OS default httpd dev package'.

Example for using httpd 2.4 from the IUS yum repo:

~~~ puppet
include ::apache::dev
class { 'apache':
apache_name => 'httpd24u',
dev_packages => 'httpd24u-devel',
}
~~~

##### `docroot`

Sets the default [`DocumentRoot`][] location. Default: Determined by your operating system.
2 changes: 1 addition & 1 deletion manifests/dev.pp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
class apache::dev {
include ::apache::params
$packages = $::apache::params::dev_packages
$packages = $::apache::dev_packages
if $packages { # FreeBSD doesn't have dev packages to install
package { $packages:
ensure => present,
1 change: 1 addition & 0 deletions manifests/init.pp
Original file line number Diff line number Diff line change
@@ -28,6 +28,7 @@
$default_ssl_crl = undef,
$default_ssl_crl_check = undef,
$default_type = 'none',
$dev_packages = $::apache::params::dev_packages,
$ip = undef,
$service_enable = true,
$service_manage = true,

0 comments on commit a2a6395

Please sign in to comment.