aboutsummaryrefslogtreecommitdiff
path: root/manifests/init.pp
blob: dcfaa7fda5a3db112d255107863e7ec93e1fc224 (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
class drupal inherits pear {

  case $apache_www_folder {
    '': { fail("you need to define \$apache_www_folder for drupal module") }
  }

  # We use drupal source from upstream 
  package { "drupal6":
      ensure => absent,
  }

  # Drupal shell
  package { "drush":
      ensure => installed,
  }

  # Drupal management script
  file { "/usr/local/sbin/drupal":
    ensure  => present,
    content => template('drupal/drupal.sh.erb'),
    owner   => root,
    group   => root,
    mode    => 755,
  }
}