Skip to content

Instantly share code, notes, and snippets.

@kepstin
Created August 8, 2013 20:00
Show Gist options
  • Save kepstin/6188173 to your computer and use it in GitHub Desktop.
Save kepstin/6188173 to your computer and use it in GitHub Desktop.
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