diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2016-10-14 09:29:36 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2016-10-14 09:29:36 -0300 |
commit | 26cc2360fbf79c4e361de7b59e0c4d00e2d9b201 (patch) | |
tree | dbf9820da4fadcfda5a5fe99b248e4f02ea41c93 /manifests/init.pp | |
parent | a484a682bde86e1f7e4489dcaaee0c8651084915 (diff) | |
download | puppet-drupal-26cc2360fbf79c4e361de7b59e0c4d00e2d9b201.tar.gz puppet-drupal-26cc2360fbf79c4e361de7b59e0c4d00e2d9b201.tar.bz2 |
Use drupal user for cronjobs
Diffstat (limited to 'manifests/init.pp')
-rw-r--r-- | manifests/init.pp | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/manifests/init.pp b/manifests/init.pp index 577e6fe..da68b08 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -4,6 +4,29 @@ class drupal { include drupal::makefiles include drupal::maintenance + group { 'drupal': + ensure => present, + allowdupe => false, + } + + user { 'drupal': + ensure => present, + allowdupe => false, + shell => '/bin/bash', + gid => 'drupal', + home => '/var/lib/drupal', + require => Group['drupal'], + } + + # This shall hold drush-backups in the future + file { '/var/lib/drupal': + ensure => directory, + owner => 'drupal', + group => 'drupal', + mode => 0750, + require => User['drupal'], + } + # TODO: old location, remove in the future file { "/usr/local/sbin/drupal": ensure => absent, |