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, } }