aboutsummaryrefslogtreecommitdiff
path: root/manifests/init.pp
blob: 577e6fefa8ffd6c2bf8531581dc8fdfb548e701a (plain)
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
class drupal {
  include php::composer
  include drupal::drush
  include drupal::makefiles
  include drupal::maintenance

  # TODO: old location, remove in the future
  file { "/usr/local/sbin/drupal":
    ensure => absent,
  }

  # Drupal management script
  file { "/usr/local/bin/drupal":
    ensure  => present,
    source  => 'puppet:///modules/drupal/drupal',
    owner   => root,
    group   => root,
    mode    => 755,
  }

  # Drupal shared folder
  file { "/usr/local/share/drupal":
    ensure  => directory,
    owner   => root,
    group   => root,
    mode    => 755,
  }

  # See https://drupal.org/SA-CORE-2013-003
  file { "/tmp/.htaccess":
    ensure  => present,
    owner   => root,
    group   => root,
    mode    => 644,
    source  => "puppet:///modules/drupal/htaccess",
  }

  # Ensure there's no old, buggy code in drupal farms
  file { [ '/var/www/data/drupal-6/backup', '/var/www/data/drupal-7/backup' ]:
    ensure  => absent,
    recurse => true,
    force   => true,
    backup  => false,
  }
}