Sha256: 4a27d9b5789507d8407c57ee58c5bae28ac1d9a9e34a91dd474fc8a65cb5cd4d

Contents?: true

Size: 469 Bytes

Versions: 633

Compression:

Stored size: 469 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 => '0777',
    require => Package['httpd'],
    notify => Service['httpd'],
  }
}

Version data entries

633 entries across 633 versions & 1 rubygems

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