Created
March 29, 2013 20:00
-
-
Save cdenneen/5273236 to your computer and use it in GitHub Desktop.
Example of node definition inheritance
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
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