Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- define apache::vhost($port, $document_root,$servername, $vhost_name='*', $vhost_dir){
- File {
- mode => 0677,
- }
- file { 'index':
- path => "${document_root}/index.html",
- ensure => file,
- content => template('apache/index.html.erb'),
- before => File['config_file'],
- }
- file { 'config_file':
- path => "${vhost_dir}/${servername}.conf",
- ensure => file,
- content => template('apache/vhost.conf.erb'),
- require => Package['apache'],
- notify => Service['apache'],
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement