-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathapache.pp
More file actions
25 lines (22 loc) · 678 Bytes
/
Copy pathapache.pp
File metadata and controls
25 lines (22 loc) · 678 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
class drupalstack::apache {
package { 'apache2': ensure => present, }
file { 'drupal.conf':
path => '/etc/apache2/sites-available/default',
source => 'puppet:///modules/drupalstack/drupal.conf',
ensure => present,
require => Package['apache2'],
notify => Service['apache2-service'],
}
service { 'apache2-service':
name => 'apache2',
ensure => running,
enable => true,
hasstatus => true,
hasrestart => true,
}
exec { '/usr/sbin/a2enmod rewrite':
unless => '/bin/readlink -e /etc/apache2/mods-enabled/rewrite.load',
require => Package['apache2'],
notify => Service['apache2-service'],
}
}