Created
August 11, 2011 20:01
-
-
Save robbyt/1140598 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
case $cloud { | |
'rackspace': { | |
Host <<| tag == 'normal_server_private-rackspace' |>> | |
Host <<| tag == 'normal_server_public-us-east-1' |>> | |
Host <<| tag == 'normal_server_public-us-west-1' |>> | |
} | |
'ec2',default: { | |
case $server_type { | |
'puppet': { | |
case $ec2_region { | |
'us-west-1': { | |
Host <<| tag == 'puppetmaster_private-us-west-1' |>> | |
Host <<| tag == 'normal_server_private-us-west-1' |>> | |
Host <<| tag == 'normal_server_public-us-east-1' |>> | |
Host <<| tag == 'normal_server_public-rackspace' |>> | |
} | |
'us-east-1',default: { | |
Host <<| tag == 'puppetmaster_private-us-east-1' |>> | |
Host <<| tag == 'normal_server_private-us-east-1' |>> | |
Host <<| tag == 'normal_server_public-us-west-1' |>> | |
Host <<| tag == 'normal_server_public-rackspace' |>> | |
} | |
} | |
} | |
default: { | |
case $ec2_region { | |
'us-west-1': { | |
Host <<| tag == 'normal_server_private-us-west-1' |>> | |
Host <<| tag == 'normal_server_public-us-east-1' |>> | |
Host <<| tag == 'normal_server_public-rackspace' |>> | |
} | |
'us-east-1',default: { | |
Host <<| tag == 'normal_server_private-us-east-1' |>> | |
Host <<| tag == 'normal_server_public-us-west-1' |>> | |
Host <<| tag == 'normal_server_public-rackspace' |>> | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment