Sha256: e95043b698a88daf39d39ca392b14e28920a560d357b53532d4f1f6356125fb3

Contents?: true

Size: 908 Bytes

Versions: 709

Compression:

Stored size: 908 Bytes

Contents

# ensure apache is installed
class apache {
  include apache::params
  package{'httpd':
    name   => $apache::params::apache_name,
    ensure => present,
  }
  service { 'httpd':
    name      => $apache::params::apache_name,
    ensure    => running,
    enable    => true,
    subscribe => Package['httpd'],
  }
  #
  # May want to purge all none realize modules using the resources resource type.
  # A2mod resource type is broken.  Look into fixing it and moving it into apache.
  #
  A2mod { require => Package['httpd'], notify => Service['httpd']}
  @a2mod {
   'rewrite' : ensure => present;
   'headers' : ensure => present;
   'expires' : ensure => present;
  }
  $vdir = $operatingsystem? {
    'ubuntu' => '/etc/apache2/sites-enabled/',
    default => '/etc/httpd/conf.d',
  }
  file { $vdir:
    ensure => directory,
    recurse => true,
    purge => true,
    notify => Service['httpd'],
  }
}

Version data entries

709 entries across 709 versions & 2 rubygems

Version Path
puppet-7.28.0 spec/fixtures/releases/jamtur01-apache/manifests/init.pp
puppet-7.28.0-x86-mingw32 spec/fixtures/releases/jamtur01-apache/manifests/init.pp
puppet-7.28.0-x64-mingw32 spec/fixtures/releases/jamtur01-apache/manifests/init.pp
puppet-7.28.0-universal-darwin spec/fixtures/releases/jamtur01-apache/manifests/init.pp
puppet-7.27.0 spec/fixtures/releases/jamtur01-apache/manifests/init.pp
puppet-7.27.0-x86-mingw32 spec/fixtures/releases/jamtur01-apache/manifests/init.pp
puppet-7.27.0-x64-mingw32 spec/fixtures/releases/jamtur01-apache/manifests/init.pp
puppet-7.27.0-universal-darwin spec/fixtures/releases/jamtur01-apache/manifests/init.pp
puppet-7.26.0 spec/fixtures/releases/jamtur01-apache/manifests/init.pp
puppet-7.26.0-x86-mingw32 spec/fixtures/releases/jamtur01-apache/manifests/init.pp
puppet-7.26.0-x64-mingw32 spec/fixtures/releases/jamtur01-apache/manifests/init.pp
puppet-7.26.0-universal-darwin spec/fixtures/releases/jamtur01-apache/manifests/init.pp
puppet-7.25.0 spec/fixtures/releases/jamtur01-apache/manifests/init.pp
puppet-7.25.0-x86-mingw32 spec/fixtures/releases/jamtur01-apache/manifests/init.pp
puppet-7.25.0-x64-mingw32 spec/fixtures/releases/jamtur01-apache/manifests/init.pp
puppet-7.25.0-universal-darwin spec/fixtures/releases/jamtur01-apache/manifests/init.pp
puppet-7.24.0 spec/fixtures/releases/jamtur01-apache/manifests/init.pp
puppet-7.24.0-x86-mingw32 spec/fixtures/releases/jamtur01-apache/manifests/init.pp
puppet-7.24.0-x64-mingw32 spec/fixtures/releases/jamtur01-apache/manifests/init.pp
puppet-7.24.0-universal-darwin spec/fixtures/releases/jamtur01-apache/manifests/init.pp