Created
September 23, 2012 00:05
-
-
Save big-samantha/3768299 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
# Install pear via package, and install necessary modules. | |
class manage_pear { | |
include | |
'pear', | |
'manage_pear::packages' | |
package { 'php5-dev' : | |
ensure => present, | |
} | |
} | |
class manage_pear::packages { | |
pear::package { 'pecl/mongo': | |
version => '1.2.12', | |
} | |
} | |
class manage_pear::restart_apache { | |
service { 'restartapache': | |
name => 'apache2', | |
hasstatus => yes, | |
hasrestart => yes, | |
ensure => running, | |
subscribe => Class[manage_pear::packages], | |
} | |
} | |
Class['manage_pear'] -> Class ['manage_pear::packages'] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment