Skip to content

Instantly share code, notes, and snippets.

@cdenneen
Created March 29, 2013 20:00
Show Gist options
  • Save cdenneen/5273236 to your computer and use it in GitHub Desktop.
Save cdenneen/5273236 to your computer and use it in GitHub Desktop.
Example of node definition inheritance
node base_node {
include ntp
include ap_ssh
include ap_fw
include sudo
}
node mongo_videohub_default inherits base_node {
include mongodb
firewall { '100 allow MongoDB access':
dport => [27017, 28017],
proto => tcp,
action => accept,
}
}
node "rndeapvhmdb1.rnd.local", "rndeapvhmdb2.rnd.local", "rndeapvhmdb3.rnd.local" inherits mongo_videohub_default {
class { 'projects::videohub_mongodb': videohub_env => "qa", }
host { "linuxmgr":
ip => "10.1.67.62",
host_aliases => "linuxmgr.ap.org",
ensure => "present", #Change to absent when load balancer has been setup
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment