Created
April 5, 2014 14:07
-
-
Save Bluehorn/9992454 to your computer and use it in GitHub Desktop.
Puppet: roundcube module notifies apache
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class apache { | |
include apache::packages | |
include apache::service | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class apache::packages { | |
package { "apache2-mpm-prefork": | |
ensure => present, | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class apache::service { | |
require apache::packages | |
service { "apache2": | |
ensure => running, | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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