Giter Club home page Giter Club logo

puppet-module-apache's Introduction

Puppet module for configuring the apache webserver. Currently only tested on Debian.

Install into your <puppet module_path>/apache

Use include apache to install a basic apache server listening on port 80. There are no sites defined/enabled by default, however.

Tuneables

$apache

Name of the apache package you want installed. It is assumed the service will have the same name.

Default: apache2

$apache_worker

Name of the apache worker package you want installed.

Default: apache2-mpm-prefork

$apache_conf_dir

Path to the config directory for apache.

Default: /etc/${apache}

$apache_conf_file

Name of the main apache config file.

Default: ${apache}.conf

$apache_init_script

Path to the init script for apache.

Default: /etc/init.d/${apache}

$apache_sites_available

Path to the directory which will contain config files for defined sites.

Default: ${apache_conf_dir}/sites-available

$apache_sites_enabled

Path to the directory which will contain the symlinks for active sites.

Default: ${apache_conf_dir}/sites-enabled

$apache_mods_available

Path to the directory which will contain config files for apache modules.

Default: ${apache_conf_dir}/mods-available

$apache_mods_enabled

Path to the directory which will contain the symlinks for active modules.

Default: ${apache_conf_dir}/mods-enabled

$apache_listen_address

The address apache should listen on.

Default: *

$apache_listen_port

The port apache should listen on.

Default: 80

$apache_run_user

System user to run apache as.

Default: www-data

$apache_run_group

System group to run apache as.

Default: www-data

Defined Types

apache::config

Config snippets which will be pulled in via Include to your apache configuration.

Parameters:

  • ensure (default: present)
  • content
  • Note content and source are mutually exclusive.
  • source
  • Note content and source are mutually exclusive.
  • order
  • Order in which this config snippet will be included.
apache::vhost

Sets up apache virtual hosts by creating files in ${apache_sites_available} and, if enabled, symlinks in ${apache_sites_enabled}.

Parameters:

  • ensure
  • content
  • Note content and source are mutually exclusive.
  • source
  • Note content and source are mutually exclusive.

Custom Types/Providers

apachemodule

Custom type to manage Apache modules. Note that all uses of apachemodule must require => Package["apache"] to get around limitations in Puppet's provider suitability checking.:

apachemodule {
"status":
ensure => present, require => Package["apache"];

}

a2mod
Provider for apachemodule which uses a2enmod and a2dismod. Assumes that the module dir ($apache_mods_enabled) is /etc/apache2/mods-enabled

puppet-module-apache's People

Contributors

plathrop avatar ieure avatar michalbryxi avatar

Stargazers

 avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.