Skip to content

Commit

Permalink
(syntax) parameter_types part 6
Browse files Browse the repository at this point in the history
  • Loading branch information
david22swan committed May 27, 2022
1 parent 6195606 commit d2780c3
Show file tree
Hide file tree
Showing 9 changed files with 270 additions and 270 deletions.
4 changes: 2 additions & 2 deletions manifests/mpm.pp
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
#
# @api private
define apache::mpm (
$lib_path = $apache::lib_path,
$apache_version = $apache::apache_version,
String $lib_path = $apache::lib_path,
Optional[String] $apache_version = $apache::apache_version,
) {
if ! defined(Class['apache']) {
fail('You must include the apache base class before using any apache defined resources')
Expand Down
4 changes: 2 additions & 2 deletions manifests/package.pp
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
#
# @api private
class apache::package (
$ensure = 'present',
$mpm_module = $apache::params::mpm_module,
String $ensure = 'present',
String $mpm_module = $apache::params::mpm_module,
) inherits apache::params {
# The base class must be included first because it is used by parameter defaults
if ! defined(Class['apache']) {
Expand Down
6 changes: 3 additions & 3 deletions manifests/peruser/multiplexer.pp
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
#
# @api private
define apache::peruser::multiplexer (
$user = $apache::user,
$group = $apache::group,
$file = undef,
String $user = $apache::user,
String $group = $apache::group,
Optional[String] $file = undef,
) {
if ! $file {
$filename = "${name}.conf"
Expand Down
6 changes: 3 additions & 3 deletions manifests/peruser/processor.pp
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
#
# @api private
define apache::peruser::processor (
$user,
$group,
$file = undef,
String $user,
String $group,
Optional[String] $file = undef,
) {
if ! $file {
$filename = "${name}.conf"
Expand Down
10 changes: 5 additions & 5 deletions manifests/service.pp
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
#
# @api private
class apache::service (
$service_name = $apache::params::service_name,
Boolean $service_enable = true,
$service_ensure = 'running',
Boolean $service_manage = true,
$service_restart = undef
String $service_name = $apache::params::service_name,
Boolean $service_enable = true,
Variant[Boolean,String] $service_ensure = 'running',
Boolean $service_manage = true,
Optional[String] $service_restart = undef
) {
# The base class must be included first because parameter defaults depend on it
if ! defined(Class['apache::params']) {
Expand Down
492 changes: 246 additions & 246 deletions manifests/vhost.pp

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions manifests/vhost/custom.pp
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@
# Specifies whether to validate the configuration file before notifying the Apache service.
#
define apache::vhost::custom (
$content,
$ensure = 'present',
$priority = '25',
$verify_config = true,
String $content,
String $ensure = 'present',
Variant[Integer,String] $priority = '25',
Boolean $verify_config = true,
) {
include apache

Expand Down
8 changes: 4 additions & 4 deletions manifests/vhost/fragment.pp
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,10 @@
#
define apache::vhost::fragment (
String[1] $vhost,
Optional[Integer[0]] $port = undef,
$priority = undef,
Optional[String] $content = undef,
Integer[0] $order = 900,
Optional[Integer[0]] $port = undef,
Optional[Variant[Integer,String]] $priority = undef,
Optional[String] $content = undef,
Integer[0] $order = 900,
) {
# This copies the logic from apache::vhost
if $priority {
Expand Down
2 changes: 1 addition & 1 deletion manifests/vhosts.pp
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
# `apache::vhost` defined type's parameters.
#
class apache::vhosts (
$vhosts = {},
Hash $vhosts = {},
) {
include apache
create_resources('apache::vhost', $vhosts)
Expand Down

0 comments on commit d2780c3

Please sign in to comment.