spec/support/dna.json in engineyard-metadata-0.1.2 vs spec/support/dna.json in engineyard-metadata-0.2.0

- old
+ new

@@ -1,60 +1,59 @@ { "db_slaves": [ ], - "aws_secret_key": "AWS-SECRET-KEY", - "ruby_version": "Ruby 1.8.7", + "aws_secret_key": "aidjaoisjaoisdoaisjdoij", + "ruby_version": "Ruby 1.9.2", "user_ssh_key": [ - "ssh-rsa AAAAB3NzaC1yc2EAAAAB key-a", - "ssh-rsa AAAAB3NzaC1yc2EAAAAB key-b", - "ssh-rsa AAAAB3NzaC1yc2EAAAAB key-c" + "ssh-rsa a", + "ssh-rsa b", + "ssh-rsa c", + "ssh-rsa d", + "ssh-rsa e" ], "backup_interval": 24, - "admin_ssh_key": "ssh-rsa AAAAB3NzaC1yc2EAAAAB ey-cloud-production\n", - "internal_ssh_public_key": "ssh-rsa AAAAB3NzaC1yc2EAAAAB \n", - "internal_ssh_private_key": "-----BEGIN RSA PRIVATE KEY-----\nPRIVATE-KEY\n-----END RSA PRIVATE KEY-----\n", + "admin_ssh_key": "ssh-rsa f\n", + "internal_ssh_public_key": "ssh-rsa d\n", + "internal_ssh_private_key": "-----BEGIN RSA PRIVATE KEY-----ddd-----END RSA PRIVATE KEY-----\n", + "mailserver": "smtp.engineyard.com", "utility_instances": [ - { - "name": "FAKE_ENVIRONMENT_NAME_util_1", - "hostname": "internal_util_1.compute-1.internal" - } + ], "instance_role": "app_master", - "mailserver": "smtp.engineyard.com", "crons": [ ], "removed_applications": [ ], "backup_window": 10, - "members": [ - "internal_app_master.compute-1.internal" - ], - "alert_email": "ALERT-EMAIL", "gems_to_install": [ { "name": "rails", - "version": "3.0.0" + "version": "3.0.3" + }, + { + "name": "rails", + "version": "3.0.3" } ], "applications": { - "APP-NAME": { + "cm1_master_blue": { "auth": { "active": false }, "newrelic": false, "https_bind_port": 443, - "repository_name": "FAKE_REPOSITORY_URI", + "repository_name": "git@github.com:brighterplanet/cm1.git", "type": "rack", "migration_command": "rake db:migrate", "http_bind_port": 80, "revision": "", "run_deploy": false, "branch": "HEAD", - "deploy_key": "-----BEGIN RSA PRIVATE KEY-----\nAPPS-0-DEPLOY-KEY\n-----END RSA PRIVATE KEY-----\n", + "deploy_key": "-----BEGIN RSA PRIVATE KEY-----\nijd-----END RSA PRIVATE KEY-----\n", "deploy_action": "deploy", "run_migrations": false, "services": [ { "resource": "mongrel", @@ -70,199 +69,265 @@ ], "recipes": [ "memcached", "monit", "nginx", - "nginx-passenger" + "unicorn" ], "vhosts": [ { "name": "_", - "role": "FAKE_ENVIRONMENT_NAME" + "role": "cm1_production_blue" + }, + { + "name": "_", + "chain": "-----BEGIN CERTIFICATE-----\r\ndd\r\n-----END CERTIFICATE-----", + "role": "cm1_production_blue", + "crt": "-----BEGIN CERTIFICATE-----\nsd\n-----END CERTIFICATE-----", + "key": "-----BEGIN RSA PRIVATE KEY-----\nsd\n-----END RSA PRIVATE KEY-----" } ] + }, + "cm1_certified_blue": { + "auth": { + "active": false + }, + "newrelic": false, + "https_bind_port": 443, + "repository_name": "git@github.com:brighterplanet/cm1.git", + "type": "rack", + "migration_command": "rake db:migrate", + "http_bind_port": 80, + "revision": "", + "run_deploy": false, + "branch": "HEAD", + "deploy_key": "-----BEGIN RSA PRIVATE KEY-----\nsdad\n-----END RSA PRIVATE KEY-----\n", + "deploy_action": "deploy", + "run_migrations": false, + "services": [ + { + "resource": "mongrel", + "mongrel_base_port": 5000, + "mongrel_mem_limit": 150, + "mongrel_instance_count": 3 + }, + { + "resource": "memcached", + "base_port": 11211, + "mem_limit": 128 + } + ], + "recipes": [ + "memcached", + "monit", + "nginx", + "unicorn" + ], + "vhosts": [ + { + "name": "certified.cm1-production-blue.carbon.brighterplanet.com", + "role": "cm1_production_blue" + } + ] } }, - "aws_secret_id": "AWS-SECRET-ID", + "members": [ + "ip-10-126-17-47.ec2.internal" + ], + "alert_email": "a@a.com", + "aws_secret_id": "asdjaoisd", "users": [ { "gid": "1000", - "username": "FAKE_SSH_USERNAME", + "username": "deploy", "uid": "1000", "comment": "", "password": "USERS-0-PASSWORD" } ], - "environment": { - "name": "FAKE_ENVIRONMENT_NAME", - "stack": "FAKE_STACK_NAME", - "framework_env": "production" - }, "master_app_server": { - "private_dns_name": "internal_app_master.compute-1.internal", - "public_ip": "external_app_master.compute-1.amazonaws.com" + "public_ip": "ec2-174-129-212-130.compute-1.amazonaws.com", + "private_dns_name": "ip-10-126-17-47.ec2.internal" }, - "reporting_url": "https://cloud.engineyard.com/reporting/abcde", + "environment": { + "name": "cm1_production_blue", + "framework_env": "production", + "stack": "nginx_unicorn" + }, + "reporting_url": "https://cloud.engineyard.com/reporting/asdasdasdasd", "packages_to_install": [ - { - "name": "dev-libs/oniguruma" - } + ], - "db_host": "FAKE_DB_HOST", - "haproxy": { - "username": "HAPROXY-USERNAME", - "password": "HAPROXY-PASSWORD" - }, + "db_host": "ec2-67-202-19-255.compute-1.amazonaws.com", "engineyard": { + "this": "i-ff17d493", "environment": { "apps": [ { - "name": "FAKE_APP_NAME", + "name": "cm1_certified_blue", "newrelic": false, "components": [ + { + "collection": [ + ], + "key": "addons" + } ], - "database_name": "FAKE_APP_NAME", + "database_name": "cm1_certified_blue", "migration_command": "rake db:migrate", "type": "rack", - "repository_name": "FAKE_REPOSITORY_URI", + "repository_name": "git@github.com:brighterplanet/cm1.git", "run_deploy": false, "revision": "", "bundled": null, "branch": "HEAD", "run_migrations": false, "deploy_action": "deploy", - "deploy_key": "-----BEGIN RSA PRIVATE KEY-----\nAPPS-0-DEPLOY-KEY\n-----END RSA PRIVATE KEY-----\n", + "deploy_key": "-----BEGIN RSA PRIVATE KEY-----\nasdasd\n-----END RSA PRIVATE KEY-----\n", "gems": [ { "name": "rails", - "version": "3.0.0", + "version": "3.0.3", "source": null } ], "vhosts": [ { "ssl_cert": null, - "domain_name": "_" + "domain_name": "certified.cm1-production-blue.carbon.brighterplanet.com" } ], "ebuilds": [ - { - "name": "dev-libs/oniguruma" - } + ] - } - ], - "aws_secret_key": "AWS-SECRET-KEY", - "name": "FAKE_ENVIRONMENT_NAME", - "ssh_keys": [ - "ssh-rsa AAAAB3NzaC1yc2EAAAAB key-a", - "ssh-rsa AAAAB3NzaC1yc2EAAAAB key-b", - "ssh-rsa AAAAB3NzaC1yc2EAAAAB key-c" - ], - "instances": [ + }, { - "name": null, - "public_hostname": "app_master.compute-1.amazonaws.com", + "name": "cm1_master_blue", + "newrelic": false, "components": [ { - "key": "ssmtp" + "collection": [ + + ], + "key": "addons" } ], - "role": "app_master", - "enabled": true, - "id": "i-deadbeef", - "private_hostname": "internal_app_master.compute-1.internal", - "reporting_url": "https://cloud.engineyard.com/reporting/abcde", - "awsm_token": "app_master-aws_token" - }, - { - "name": null, - "public_hostname": "app_1.compute-1.amazonaws.com", - "components": [ + "database_name": "cm1_master_blue", + "migration_command": "rake db:migrate", + "type": "rack", + "repository_name": "git@github.com:brighterplanet/cm1.git", + "run_deploy": false, + "revision": "", + "bundled": null, + "branch": "HEAD", + "run_migrations": false, + "deploy_action": "deploy", + "deploy_key": "-----BEGIN RSA PRIVATE KEY-----\nasdsd\n-----END RSA PRIVATE KEY-----\n", + "gems": [ { - "key": "ssmtp" + "name": "rails", + "version": "3.0.3", + "source": null } ], - "role": "app", - "enabled": true, - "id": "i-app_1", - "private_hostname": "internal_app_master.compute-1.internal", - "reporting_url": "https://cloud.engineyard.com/reporting/abcde", - "awsm_token": "app_1-aws_token" - }, - { - "name": null, - "public_hostname": "FAKE_DB_MASTER_PUBLIC_HOSTNAME", - "components": [ + "vhosts": [ { - "key": "ssmtp" + "ssl_cert": { + "certificate": "-----BEGIN CERTIFICATE-----\n\n-----END CERTIFICATE-----", + "certificate_chain": "-----BEGIN CERTIFICATE-----\r\n\r\n-----END CERTIFICATE-----", + "private_key": "-----BEGIN RSA PRIVATE KEY-----\n\n-----END RSA PRIVATE KEY-----" + }, + "domain_name": "_" } ], - "role": "db_master", - "enabled": true, - "id": "i-db_master", - "private_hostname": "internal_db_master.compute-1.internal", - "reporting_url": "https://cloud.engineyard.com/reporting/abcde", - "awsm_token": "db_master-aws_token" - }, + "ebuilds": [ + + ] + } + ], + "aws_secret_key": "BeqxA/9O7/sz3ENzXOwLiSsPsqbHECHdySjZQhIK", + "name": "cm1_production_blue", + "ssh_keys": [ + "ssh-rsa a", + "ssh-rsa b", + "ssh-rsa c", + "ssh-rsa d", + "ssh-rsa e" + ], + "instances": [ { "name": null, - "public_hostname": "db_slave_1.compute-1.amazonaws.com", + "public_hostname": "ec2-174-129-212-130.compute-1.amazonaws.com", "components": [ { "key": "ssmtp" } ], - "role": "db_slave", + "stonith_config": { + "endpoint_uri": "https://cloud.engineyard.com/stonith", + "endpoint_token": "asdasd", + "monitor_host": "ip-10-126-17-47.ec2.internal", + "endpoint_id": "i-ff17d493" + }, + "role": "app_master", "enabled": true, - "id": "i-db_slave_1", - "private_hostname": "internal_db_slave_1.compute-1.internal", - "reporting_url": "https://cloud.engineyard.com/reporting/abcde", - "awsm_token": "db_slave_1-aws_token" + "id": "i-ff17d493", + "private_hostname": "ip-10-126-17-47.ec2.internal", + "reporting_url": "https://cloud.engineyard.com/reporting/asdasd", + "awsm_token": "asasdasd" }, { - "name": "foobarfoo", - "public_hostname": "FAKE_UTIL_1_PUBLIC_HOSTNAME", + "name": null, + "public_hostname": "ec2-67-202-19-255.compute-1.amazonaws.com", "components": [ { "key": "ssmtp" } ], - "role": "util", + "stonith_config": { + "endpoint_uri": "https://cloud.engineyard.com/stonith", + "endpoint_token": "asdasd", + "monitor_host": "ip-10-126-17-47.ec2.internal", + "endpoint_id": "i-f917d495" + }, + "role": "db_master", "enabled": true, - "id": "i-util_1", - "private_hostname": "internal_util_1.compute-1.internal", - "reporting_url": "https://cloud.engineyard.com/reporting/abcde", - "awsm_token": "util_1-aws_token" + "id": "i-f917d495", + "private_hostname": "ip-10-126-18-67.ec2.internal", + "reporting_url": "https://cloud.engineyard.com/reporting/asdasd", + "awsm_token": "asasd" } ], "stonith_endpoint": "https://cloud.engineyard.com/stonith", "ruby_version": null, "framework_env": "production", "backup_interval": 24, - "admin_ssh_key": "ssh-rsa AAAAB3NzaC1 ey-cloud-production\n", - "internal_ssh_public_key": "ssh-rsa AAAAB3NzaC1yc2EAAAAB \n", - "ssh_username": "FAKE_SSH_USERNAME", - "internal_ssh_private_key": "-----BEGIN RSA PRIVATE KEY-----\nINTERNAL-SSH-PRIVATE-KEY\n-----END RSA PRIVATE KEY-----\n", + "admin_ssh_key": "ssh-rsa asdasd\n", + "internal_ssh_public_key": "ssh-rsa asdasd \n", + "ssh_username": "deploy", + "internal_ssh_private_key": "-----BEGIN RSA PRIVATE KEY-----\nasasd-----END RSA PRIVATE KEY-----\n", "mailserver": "smtp.engineyard.com", "components": [ { - "key": "ruby_187" + "key": "ruby_192" } ], - "stats_password": "STATS-PASSWORD", "crons": [ ], + "stats_password": "asdasdasd", "backup_window": 10, - "stack_name": "FAKE_STACK_NAME", - "alert_email": "ALERT-EMAIL", - "ssh_password": "SSH-PASSWORD", + "stack_name": "nginx_unicorn", + "alert_email": "a@a.com", + "ssh_password": "USERS-0-PASSWORD", "db_stack_name": "mysql", - "aws_secret_id": "AWS-SECRET-ID", + "aws_secret_id": "asasd", "newrelic_key": null, "monitoring": "monit" - }, - "this": "i-deadbeef" + } + }, + "haproxy": { + "username": "deploy", + "password": "asdasasd" } }