Created
June 27, 2012 21:15
server-classes.pp
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
############################# | |
# Base Server Class | |
############################# | |
class server::base { | |
# User Management | |
include org::users | |
realize ( | |
Users::Virtual::Localuser["user3"], | |
) | |
# utility packages | |
include ntp | |
class { 'sysstat': sardays => '30' } | |
class { 'resolver': | |
dns_domain => [ 'example.com' ], | |
dns_servers => [ '172.16.0.23'], | |
search => [ 'example.com' , 'example2.com' ], | |
} | |
} | |
############################# | |
# Web-Frontend Server Class | |
############################# | |
class server::web-frontend { | |
realize ( | |
Users::Virtual::Localuser["user1"], | |
Users::Virtual::Localuser["user2"], | |
) | |
# Install web packages | |
$web-frontend-packages = [ "apache2", | |
"gfortran", | |
"apache2.2-common", | |
"apache2-mpm-worker", | |
"apache2-threaded-dev", | |
"libapache2-mod-wsgi", | |
"python-dev", | |
"python-mysqldb", | |
"python-gdcm", | |
"python-numpy", | |
"python-scipy", | |
"python-matplotlib", | |
"python-imaging" ] | |
package { $web-frontend-packages: } | |
} | |
############################# | |
# MySQL Server Class | |
############################# | |
class server::db-mysql { | |
$db-mysql-packages = [ "xfsprogs" ] | |
package { $db-mysql-packages: } | |
} | |
############################# | |
# RabbitMQ Server Class | |
############################# | |
class server::db-rabbitmq { | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment