Permalink
Browse files

Standardize key name syntax in config files

Use string names for all keys (as opposed to using strings for some keys
and symbols for other keys).
  • Loading branch information...
jasonrudolph committed Sep 17, 2012
1 parent c419838 commit fe2e5bd95e831af9ab82a4f0f958dea8a0ebd944
@@ -2,8 +2,8 @@
#
# Settings in this file override settings in aws_config.yml
aws_credentials:
:aws_access_key_id: <your aws access key id>
:aws_secret_access_key: <your aws secret access key>
aws_access_key_id: <your aws access key id>
aws_secret_access_key: <your aws secret access key>
server:
private_key: |
@@ -1,6 +1,6 @@
server:
creation_config:
:flavor_id: <instance type, e.g. 'm1.large'>
:image_id: <ami to bootstrap with. Must be some UBUNTU image. e.g. "ami-fd589594">
:groups: <security group to place the new deployment in, e.g. "default">
:key_name: <name of the public/private keypair to start instance with>
flavor_id: <instance type, e.g. 'm1.large'>
image_id: <ami to bootstrap with. Must be some UBUNTU image. e.g. "ami-fd589594">
groups: <security group to place the new deployment in, e.g. "default">
key_name: <name of the public/private keypair to start instance with>
@@ -6,18 +6,18 @@
<<-YAML
server:
creation_config:
:flavor_id: 'm1.large'
:image_id: "ami-fd589594"
:groups: default
:key_name: relevance_aws
flavor_id: 'm1.large'
image_id: "ami-fd589594"
groups: default
key_name: relevance_aws
YAML
end
let(:private_aws_config) do
<<-YAML
aws_credentials:
:aws_access_key_id: AKIAIQZWXGD2S56W2MMQ
:aws_secret_access_key: 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
aws_access_key_id: AKIAIQZWXGD2S56W2MMQ
aws_secret_access_key: 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
server:
private_key: |
@@ -67,7 +67,7 @@ def cleanup_configs(path)
create_configs_at '/tmp/elzar'
config = Elzar::AwsConfig.load_configs '/tmp/elzar'
config['server']['creation_config'][:flavor_id].should == 'm1.large'
config['server']['creation_config']['flavor_id'].should == 'm1.large'
config['server']['private_key'].should match(/Secrets/)
end

0 comments on commit fe2e5bd

Please sign in to comment.