Skip to content

Instantly share code, notes, and snippets.

@Bluehorn
Created April 5, 2014 14:07
Show Gist options
  • Save Bluehorn/9992454 to your computer and use it in GitHub Desktop.
Save Bluehorn/9992454 to your computer and use it in GitHub Desktop.
Puppet: roundcube module notifies apache
class apache {
include apache::packages
include apache::service
}
class apache::packages {
package { "apache2-mpm-prefork":
ensure => present,
}
}
class apache::service {
require apache::packages
service { "apache2":
ensure => running,
}
}
class roundcube {
vcsrepo { "/usr/local/share/roundcube":
# ...
}
# ...
include apache::service
file { "/etc/roundcube/debian-db.php":
content => template("roundcube/debian-db.php"),
owner => "root",
group => "www-data",
mode => "0640",
notify => Class["apache::service"]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment