Created
August 8, 2013 20:00
-
-
Save kepstin/6188173 to your computer and use it in GitHub Desktop.
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 webserver { | |
concat { '/etc/apache/vhostsfile': | |
} | |
} | |
define webserver::vhost($param) { | |
concat::fragment { "webserver_vhost_$name": | |
target => '/etc/apache/vhostsfile', | |
content => template('vhost_template'), | |
} | |
} | |
class internal_webserver { | |
include webserver | |
webserver::vhost{ 'internal.site': | |
param => 'some stuff', | |
} | |
} | |
class more_hosts { | |
include webserver | |
webserver::vhost{ 'another.host.1': | |
param => 'different stuff', | |
} | |
} | |
include internal_webserver | |
include more_hosts |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment