Forge Home

apache

Apache Web Server Management

12,199 downloads

9,624 latest version

3.0 quality score

We run a couple of automated
scans to help you access a
module's quality. Each module is
given a score based on how well
the author has formatted their
code and documentation and
modules are also checked for
malware using VirusTotal.

Please note, the information below
is for guidance only and neither of
these methods should be considered
an endorsement by Puppet.

Version information

  • 0.1.4 (latest)
  • 0.1.3
  • 0.1.2
  • 0.1.1
  • 0.1.0
  • 0.0.6
  • 0.0.5
  • 0.0.4
  • 0.0.3
  • 0.0.1
released Sep 19th 2014

Start using this module

  • r10k or Code Manager
  • Bolt
  • Manual installation
  • Direct download

Add this module to your Puppetfile:

mod 'arusso-apache', '0.1.4'
Learn more about managing modules with a Puppetfile

Add this module to your Bolt project:

bolt module add arusso-apache
Learn more about using this module with an existing project

Manually install this module globally with Puppet module tool:

puppet module install arusso-apache --version 0.1.4

Direct download is not typically how you would use a Puppet module to manage your infrastructure, but you may want to download the module in order to inspect the code.

Download
Tags: apache, rhel

Documentation

arusso/apache — version 0.1.4 Sep 19th 2014

apache Module

This module manages apache with particular emphasis on providing mechanisms to allow for unmanaged (by Puppet) configuration of virtual hosts.

Examples

  # configure the global apache
  class { 'apache':
    service_ensure => true,
    service_enable => true,
    server_admin   => 'webmaster@example.com',
  }

  # setup a vhost for www.example.com, mark it as the default vhost and
  # add a few aliases.
  apache::vhost { 'www.example.com':
    document_root => '/var/www/html/www.example.com',
    is_default    => true,
    server_name   => 'www.example.com',
    server_alias  => [ 'www-2.example.com',
                      'blog.example.com' ],
    ssl           => false,
  }

  # if server_name is not specified, the $namevar is used. So in this case
  # server_name = 'www2.example.com'.  This one has ssl setup using a
  # self-signed cert (since not intermedaite cert is provided).
  apache::vhost { 'www2.example.com':
    ssl          => true,
    ssl_key_file => '/etc/pki/tls/private/private.key',
    ssl_crt_file => '/etc/pki/tls/certs/public.crt',
  }

  # another ssl example, this time with an intermediate cert being provided
  apache::vhost { 'www3.example.com:
    ssl          => true,
    ssl_key_file => '/etc/pki/tls/private/private.key',
    ssl_crt_file => '/etc/pki/tls/certs/public.crt',
    ssl_int_file => '/etc/pki/tls/certs/intermediate.crt',
  }

License

See LICENSE file

Copyright

Copyright © 2013 The Regents of the University of California

Contact

Aaron Russo arusso@berkeley.edu

Support

Please log tickets and issues at the Projects site