Defines
httpd_mod( $load_content => 'undef', $conf_content => 'undef', $mod_name, $enabled => 'true', $load_source => 'undef', $conf_source => 'undef' )
The httpd_mod resource represents
a single Apache module to manage, triggering a restart of the Apache server
whenever its configuration is modified.
Parameters
- mod_name
- The name of the Apache module.
- load_content
- The raw content to use for the load configuration file, as a string.
Mutually exclusive with load_source.
- load_source
- A source file for the load configuration, which will be copied into place
on the local system, with the same usage as the file resource. Mutually
exclusive with load_content.
- conf_content
- Optional. The raw content to use for the main configuration file (if any),
as a string. Mutually exclusive with conf_source.
- conf_source
- Optional. A source file for the main configuration (if any), which will be
copied into place on the local system, with the same usage as the file
resource. Mutually exclusive with conf_content.
- enabled
- Optional. Whether the module should be enabled. Defaults to true.
Examples
undine_apache::http_mod { 'mod_rewrite':
mod_name => 'rewrite',
load_source => 'puppet:///modules/my_rw_module/rewrite.load',
}
undine_apache::http_mod { 'mod_ssl':
mod_name => 'ssl',
load_source => 'puppet:///modules/my_ssl_module/ssl.load',
conf_source => 'puppet:///modules/my_ssl_module/ssl.conf',
}
httpd_mod( $load_content => 'undef', $conf_content => 'undef', $mod_name, $enabled => 'true', $load_source => 'undef', $conf_source => 'undef' )
The httpd_mod resource represents
a single Apache module to manage, triggering a restart of the Apache server
whenever its configuration is modified.
Parameters
- mod_name
- The name of the Apache module.
- load_content
- The raw content to use for the load configuration file, as a string.
Mutually exclusive with load_source.
- load_source
- A source file for the load configuration, which will be copied into place
on the local system, with the same usage as the file resource. Mutually
exclusive with load_content.
- conf_content
- Optional. The raw content to use for the main configuration file (if any),
as a string. Mutually exclusive with conf_source.
- conf_source
- Optional. A source file for the main configuration (if any), which will be
copied into place on the local system, with the same usage as the file
resource. Mutually exclusive with conf_content.
- enabled
- Optional. Whether the module should be enabled. Defaults to true.
Examples
undine_apache::http_mod { 'mod_rewrite':
mod_name => 'rewrite',
load_source => 'puppet:///modules/my_rw_module/rewrite.load',
}
undine_apache::http_mod { 'mod_ssl':
mod_name => 'ssl',
load_source => 'puppet:///modules/my_ssl_module/ssl.load',
conf_source => 'puppet:///modules/my_ssl_module/ssl.conf',
}
misc_conf_file( $source => 'undef', $path => 'title', $ensure => 'file', $content => 'undef' )
The misc_conf_file resource
represents a single configuration file to manage, triggering an restart of
the Apache server when modified. Fundamentally, this is a wrapper around a
file resource that notifies the Apache service.
Configuration for Apache modules should be explicitly specified by
declaring an undine_apache::httpd_mod resource. This is intended for other
configruation external to Apache that requires an Apache restart to take
effect, such as php.ini.
Parameters
- content
- The raw content to use for the file, as a string. Mutually exclusive with
source.
- source
- A source file, which will be copied into place on the local system, with
the same usage as the file resource. Mutually exclusive with content.
- ensure
- Optional. Whether and what type of file should exist, as defined by the
file resource, with the exception of link. Defaults to file.
- path
- Optional. The destination path of the file. Defaults to the resource title.
Examples
undine_apache::misc_conf_file { '/etc/php/php.ini':
source => 'puppet:///modules/my_php_module/php.ini',
}
misc_conf_file( $source => 'undef', $path => 'title', $ensure => 'file', $content => 'undef' )
The misc_conf_file resource
represents a single configuration file to manage, triggering an restart of
the Apache server when modified. Fundamentally, this is a wrapper around a
file resource that notifies the Apache service.
Configuration for Apache modules should be explicitly specified by
declaring an undine_apache::httpd_mod resource. This is intended for other
configruation external to Apache that requires an Apache restart to take
effect, such as php.ini.
Parameters
- content
- The raw content to use for the file, as a string. Mutually exclusive with
source.
- source
- A source file, which will be copied into place on the local system, with
the same usage as the file resource. Mutually exclusive with content.
- ensure
- Optional. Whether and what type of file should exist, as defined by the
file resource, with the exception of link. Defaults to file.
- path
- Optional. The destination path of the file. Defaults to the resource title.
Examples
undine_apache::misc_conf_file { '/etc/php/php.ini':
source => 'puppet:///modules/my_php_module/php.ini',
}
virtualhost( $document_root, $server_name => 'title' )
The virtualhost resource
represents a single Apache VirtualHost configuration, triggering a restart
of the Apache server whenever it is modified. The configuration is stored
in sites-available, then enabled using a2ensite.
Parameters
- server_name
- The name to provide to the VirtualHost‘s ServerName directive.
Defaults to the resouce title.
- document_root
- The DocumentRoot from which to serve files.
Examples
undine_apache::virtualhost { 'mysite.local':
document_root => '/var/www/html/mydir',
}
virtualhost( $document_root, $server_name => 'title' )
The virtualhost resource
represents a single Apache VirtualHost configuration, triggering a restart
of the Apache server whenever it is modified. The configuration is stored
in sites-available, then enabled using a2ensite.
Parameters
- server_name
- The name to provide to the VirtualHost‘s ServerName directive.
Defaults to the resouce title.
- document_root
- The DocumentRoot from which to serve files.
Examples
undine_apache::virtualhost { 'mysite.local':
document_root => '/var/www/html/mydir',
}