Sha256: 0a01bac158ac943da6d4441f9d6c1a6cea0adf7770ab1e8e11b4163de00d450c

Contents?: true

Size: 468 Bytes

Versions: 80

Compression:

Stored size: 468 Bytes

Contents

define apache::vhost( $port, $docroot, $ssl=true, $template='apache/vhost-default.conf.erb', $priority, $serveraliases = '' ) {
  include apache
  $vdir = $operatingsystem? {
    'ubuntu' => '/etc/apache2/sites-enabled/',
    default => '/etc/httpd/conf.d',
  }
  file{"${vdir}/${priority}-${name}":
    content => template($template),
    owner => 'root',
    group => 'root',
    mode => '777',
    require => Package['httpd'],
    notify => Service['httpd'],
  }
}

Version data entries

80 entries across 80 versions & 3 rubygems

Version Path
puppet-2.7.26 spec/fixtures/releases/jamtur01-apache/manifests/vhost.pp
puppet-3.6.2 spec/fixtures/releases/jamtur01-apache/manifests/vhost.pp
puppet-3.6.2-x86-mingw32 spec/fixtures/releases/jamtur01-apache/manifests/vhost.pp
puppet-3.6.1 spec/fixtures/releases/jamtur01-apache/manifests/vhost.pp
puppet-3.6.1-x86-mingw32 spec/fixtures/releases/jamtur01-apache/manifests/vhost.pp
puppet-3.6.0 spec/fixtures/releases/jamtur01-apache/manifests/vhost.pp
puppet-3.6.0-x86-mingw32 spec/fixtures/releases/jamtur01-apache/manifests/vhost.pp
puppet-3.6.0.rc1 spec/fixtures/releases/jamtur01-apache/manifests/vhost.pp
puppet-3.6.0.rc1-x86-mingw32 spec/fixtures/releases/jamtur01-apache/manifests/vhost.pp
puppet-3.5.1 spec/fixtures/releases/jamtur01-apache/manifests/vhost.pp
puppet-3.5.1-x86-mingw32 spec/fixtures/releases/jamtur01-apache/manifests/vhost.pp
puppet-3.5.1.rc1 spec/fixtures/releases/jamtur01-apache/manifests/vhost.pp
puppet-3.5.1.rc1-x86-mingw32 spec/fixtures/releases/jamtur01-apache/manifests/vhost.pp
puppet-3.5.0.rc3 spec/fixtures/releases/jamtur01-apache/manifests/vhost.pp
puppet-3.5.0.rc3-x86-mingw32 spec/fixtures/releases/jamtur01-apache/manifests/vhost.pp
puppet-3.5.0.rc2 spec/fixtures/releases/jamtur01-apache/manifests/vhost.pp
puppet-3.5.0.rc2-x86-mingw32 spec/fixtures/releases/jamtur01-apache/manifests/vhost.pp
puppet-3.5.0.rc1 spec/fixtures/releases/jamtur01-apache/manifests/vhost.pp
puppet-3.5.0.rc1-x86-mingw32 spec/fixtures/releases/jamtur01-apache/manifests/vhost.pp
puppet-3.4.3 spec/fixtures/releases/jamtur01-apache/manifests/vhost.pp