Skip to content

Instantly share code, notes, and snippets.

@igalic
Created December 6, 2013 18:22
Show Gist options
  • Save igalic/7829725 to your computer and use it in GitHub Desktop.
Save igalic/7829725 to your computer and use it in GitHub Desktop.
# KVM Hosts
node /steak|bacon/ inherits default {
$role = 'kvmhost'
class { $role: }
}
# Infrastructure Servers
node /git.*\.esat/ inherits default {
$role = 'git-server'
class { 'gitsrv': }
}
# Proxy Servers
node /prx01.*\.esat/ inherits default {
class { 'apps::lb': }
}
# Application Servers
node /phpapp.*\.esat/ inherits default {
$service = 'webapp'
class { 'apps::web': }
}
# db Servers
node /mydb.*\.esat/ inherits default {
$role = 'mydb-server'
class { 'apps::db': }
}
node /pgdb.*\.esat/ inherits default {
$role = 'pgdb-server'
class { 'pgdbsrv': }
}
node default {
include base
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment