From 5bafe7947a20b1d6208577ad6151053701243382 Mon Sep 17 00:00:00 2001 From: elijah Date: Wed, 14 Nov 2012 23:08:59 -0800 Subject: inherit .json from leap_platform/provider_base --- test/default_test.rb | 14 -------- test/leap_platform/provider_base/common.json | 25 +++++++++++++ test/leap_platform/provider_base/provider.json | 27 ++++++++++++++ test/leap_platform/provider_base/services/ca.json | 6 ++++ .../provider_base/services/couchdb.json | 22 ++++++++++++ .../provider_base/services/openvpn.json | 18 ++++++++++ .../provider_base/services/webapp.json | 21 +++++++++++ test/leap_platform/provider_templates/common.json | 0 test/leap_platform/provider_templates/node.json | 0 .../leap_platform/provider_templates/provider.json | 0 test/leap_platform/puppet/BLAH | 0 test/provider/common.json | 20 +---------- test/provider/files/ca/ca.crt | 24 ------------- test/provider/files/ca/ca.key | 41 ---------------------- test/provider/files/ca/dh.key | 9 ----- test/provider/files/vpn1/vpn1.rewire.co.crt | 26 -------------- test/provider/files/vpn1/vpn1.rewire.co.key | 41 ---------------------- test/provider/provider.json | 17 +-------- test/provider/secrets.json | 1 + test/provider/services/couchdb.json | 7 ---- test/provider/services/openvpn.json | 16 --------- test/provider/services/webapp.json | 16 --------- 22 files changed, 122 insertions(+), 229 deletions(-) delete mode 100644 test/default_test.rb create mode 100644 test/leap_platform/provider_base/common.json create mode 100644 test/leap_platform/provider_base/provider.json create mode 100644 test/leap_platform/provider_base/services/ca.json create mode 100644 test/leap_platform/provider_base/services/couchdb.json create mode 100644 test/leap_platform/provider_base/services/openvpn.json create mode 100644 test/leap_platform/provider_base/services/webapp.json create mode 100644 test/leap_platform/provider_templates/common.json create mode 100644 test/leap_platform/provider_templates/node.json create mode 100644 test/leap_platform/provider_templates/provider.json create mode 100644 test/leap_platform/puppet/BLAH delete mode 100644 test/provider/files/ca/ca.crt delete mode 100644 test/provider/files/ca/ca.key delete mode 100644 test/provider/files/ca/dh.key delete mode 100644 test/provider/files/vpn1/vpn1.rewire.co.crt delete mode 100644 test/provider/files/vpn1/vpn1.rewire.co.key delete mode 100644 test/provider/services/couchdb.json delete mode 100644 test/provider/services/openvpn.json delete mode 100644 test/provider/services/webapp.json (limited to 'test') diff --git a/test/default_test.rb b/test/default_test.rb deleted file mode 100644 index c363bbb..0000000 --- a/test/default_test.rb +++ /dev/null @@ -1,14 +0,0 @@ -require 'test_helper' - -class DefaultTest < Test::Unit::TestCase - - def setup - end - - def teardown - end - - def test_the_truth - assert true - end -end diff --git a/test/leap_platform/provider_base/common.json b/test/leap_platform/provider_base/common.json new file mode 100644 index 0000000..f355780 --- /dev/null +++ b/test/leap_platform/provider_base/common.json @@ -0,0 +1,25 @@ +{ + "ip_address": "REQUIRED", + "services": [], + "domain": { + "full_suffix": "= global.provider.domain", + "internal_suffix": "= global.provider.internal_domain", + "full": "= node.name + '.' + domain.full_suffix", + "internal": "= node.name + '.' + domain.internal_suffix", + "name": "= node.name + '.' + (dns.public ? domain.full_suffix : domain.internal_suffix)" + }, + "dns": { + "public": "= service_type != 'internal_service'" + }, + "ssh": { + "authorized_keys": "= file :authorized_keys", + "known_hosts": "= file :known_hosts", + "port": 22 + }, + "x509": { + "use": false, + "cert": "= x509.use ? file(:node_x509_cert, :missing => 'x509 certificate for node $node. Run `leap update-cert`') : nil", + "key": "= x509.use ? file(:node_x509_key, :missing => 'x509 key for node $node. Run `leap update-cert`') : nil" + }, + "local": "= self.vagrant?" +} diff --git a/test/leap_platform/provider_base/provider.json b/test/leap_platform/provider_base/provider.json new file mode 100644 index 0000000..a144d04 --- /dev/null +++ b/test/leap_platform/provider_base/provider.json @@ -0,0 +1,27 @@ +{ + "domain": "REQUIRED", + "internal_domain": "= domain.sub(/\\..*$/,'.i')", + "name": { + "en": "REQUIRED" + }, + "description": { + "en": "REQUIRED" + }, + "languages": ["en"], + "default_language": "en", + "enrollment_policy": "open", + "ca": { + "name": "= global.provider.ca.organization + ' Root CA'", + "organization": "= global.provider.name[global.provider.default_language]", + "organizational_unit": "= 'https://' + global.common.domain.full_suffix", + "bit_size": 4096, + "life_span": "10y", + "server_certificates": { + "bit_size": 3248, + "life_span": "1y" + } + }, + "vagrant":{ + "network":"10.5.5.0/24" + } +} \ No newline at end of file diff --git a/test/leap_platform/provider_base/services/ca.json b/test/leap_platform/provider_base/services/ca.json new file mode 100644 index 0000000..68f970f --- /dev/null +++ b/test/leap_platform/provider_base/services/ca.json @@ -0,0 +1,6 @@ +{ + "service_type": "internal_service", + "x509": { + "use": true + } +} diff --git a/test/leap_platform/provider_base/services/couchdb.json b/test/leap_platform/provider_base/services/couchdb.json new file mode 100644 index 0000000..1c8005c --- /dev/null +++ b/test/leap_platform/provider_base/services/couchdb.json @@ -0,0 +1,22 @@ +{ + "service_type": "internal_service", + "x509": { + "use": true + }, + "couch": { + "users": { + "admin": { + "username": "admin", + "password": "= secret :couch_admin_password" + }, + "webapp": { + "username": "webapp", + "password": "= secret :couch_webapp_password" + }, + "ca_daemon": { + "username": "ca_daemon", + "password": "= secret :couch_ca_daemon_password" + } + } + } +} diff --git a/test/leap_platform/provider_base/services/openvpn.json b/test/leap_platform/provider_base/services/openvpn.json new file mode 100644 index 0000000..0a6b2c4 --- /dev/null +++ b/test/leap_platform/provider_base/services/openvpn.json @@ -0,0 +1,18 @@ +# +# "server_crt": "= file :node_x509_cert", +# "server_key": "= file :node_x509_key" +# +{ + "service_type": "user_service", + "x509": { + "use": true + }, + "openvpn": { + "ports": ["80", "443", "53", "1194"], + "filter_dns": false, + "nat": true, + "ca_crt": "= file :ca_cert", + "ca_key": "= file :ca_key", + "dh": "= file :dh_params" + } +} diff --git a/test/leap_platform/provider_base/services/webapp.json b/test/leap_platform/provider_base/services/webapp.json new file mode 100644 index 0000000..cf023a9 --- /dev/null +++ b/test/leap_platform/provider_base/services/webapp.json @@ -0,0 +1,21 @@ +{ + "service_type": "public_service", + "x509": { + "use": true, + "commercial_cert": "= try_file [:commercial_cert, global.provider.domain]", + "commercial_key": "= try_file [:commercial_key, global.provider.domain]" + }, + "api_domain": "= 'api.' + domain.full_suffix", + "dns": { + "aliases": "= [domain.full, api_domain]" + }, + "webapp": { + "modules": ["user", "billing", "help"], + "couchdb_hosts": "= nodes[:services => :couchdb].field('domain.name')", + "couchdb_user": "= global.services[:couchdb].couch.users[:webapp]" + }, + "definition_files": { + "provider": "= file('service-definitions/provider.json.erb')", + "eip_service": "file('service-definitions/eip-service.json.erb')" + } +} \ No newline at end of file diff --git a/test/leap_platform/provider_templates/common.json b/test/leap_platform/provider_templates/common.json new file mode 100644 index 0000000..e69de29 diff --git a/test/leap_platform/provider_templates/node.json b/test/leap_platform/provider_templates/node.json new file mode 100644 index 0000000..e69de29 diff --git a/test/leap_platform/provider_templates/provider.json b/test/leap_platform/provider_templates/provider.json new file mode 100644 index 0000000..e69de29 diff --git a/test/leap_platform/puppet/BLAH b/test/leap_platform/puppet/BLAH new file mode 100644 index 0000000..e69de29 diff --git a/test/provider/common.json b/test/provider/common.json index 85a93cb..1ccd624 100644 --- a/test/provider/common.json +++ b/test/provider/common.json @@ -2,25 +2,7 @@ # Options put here are inherited by all nodes. # { - "domain": { - "full_suffix": "= global.provider.domain", - "internal_suffix": "= global.provider.internal_domain", - "full": "= node.name + '.' + domain.full_suffix", - "internal": "= node.name + '.' + domain.internal_suffix", - "name": "= node.name + '.' + (dns.public ? domain.full_suffix : domain.internal_suffix)" - }, - "dns": { - "public": "= service_type != 'internal_service'" - }, "ssh": { - "authorized_keys": "= file :authorized_keys", - "known_hosts": "= file :known_hosts", "port": 22 - }, - "x509": { - "use": false, - "cert": "= x509.use ? file(:node_x509_cert) : nil", - "key": "= x509.use ? file(:node_x509_key) : nil" - }, - "local": "= self.vagrant?" + } } diff --git a/test/provider/files/ca/ca.crt b/test/provider/files/ca/ca.crt deleted file mode 100644 index ed12e15..0000000 --- a/test/provider/files/ca/ca.crt +++ /dev/null @@ -1,24 +0,0 @@ ------BEGIN CERTIFICATE----- -MIIECzCCAl2gAwIBAgIEUFDp9TANBgkqhkiG9w0BAQsFADAPMQ0wCwYDVQQDEwRU -RVNUMB4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CEK8PSldk+XFzPWFWn5ndKCczcvd -1BQc392n12ZstEuzm6+d9A0D3kCxralJUXUC+4kThq4Rtjey/gBjyZQnZ+5tIxMF -5ZFAStEglNxqm6HB17q7owJqTvIg9Cf9GATsvoFFQDJrBXewRX7cWVeSr0zNSQB4 -ydIlSUOkyE3AyfLN+lx8NVS/I7gp4fWDuHrh27NKKDtMxalxPL5pTGO7l4uTybLY -4aVzQYGvzA5HVS++VAtcTQ6TP9p4HURL2cllEU9u9A== ------END CERTIFICATE----- diff --git a/test/provider/files/ca/ca.key b/test/provider/files/ca/ca.key deleted file mode 100644 index 9721c35..0000000 --- a/test/provider/files/ca/ca.key +++ /dev/null @@ -1,41 +0,0 @@ ------BEGIN RSA PRIVATE KEY----- -MIIHRwIBAAKCAZcA2yhLWb3CP2K/5RUFd96rXhJH3iBKi33p4m7s9lVGtwaUZ789 -F9uZ/EXeP+Bcz0HywiTIzYvjo4y04rDWI5Mq1hh0yG2dRJ3cVGyFYa1h67L44J72 -6ZTSN9kMFnaleVSZKoI2p8PQ4+SSxgsYONBQqNoR3WhRHCkIby4RT7e2ME0Iy4TC -FwwShRiYjy3i+yzaF0Vv4sp59Uw9PPOiI0z+jxn8A3NYILSpJbkWwHjAaFRLkcos -M6vi0AKB3FolJa0CoUUCfIx4b2Dxqp49Mz5RGWpWfPMZySsnAFt3jLTMSm/9HtIC -JIA/vblycHUYqm3B2tw0ggedCM50A6W42DomVFeu/p9XWACmRrgg18kB/XIx/58D -RZ1nbZQlD1Snu13OLyUv7cewSkTHg/M3LO6rMTD0snpJSYxwT9U/TS3hGNM5Widz -BwuO9RFjyO3YND0TfokQ/BSjIAur8N5sYGN4rYobMFlw67UdkDBYstZHb75Yq4IR -dtFtqHBIiVsx+YB7zEbHhtseiXQPUD7Ca7S7GMDN7oW9SQIDAQABAoIBljYtMttf -boqO1dNCrBRi5kgeCsgdgXAUU2IXe9q1YALUzJENFIQ2VE2p0/REeYz+x4043K77 -Wu3OVdUIVBd9RQSiD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nEDDIQAImeJ+rD8VENq72 -vhzIAAGIcYjbiFFeIHBD5PRWenBtvjcM3rFJIRvfiKaMyVK4VKoX8ZdVRhT5yBZu -961wxwMHU+P+8jbcVJsEgkFdN0scR7CgNZnDlL7WcSLVhVzXbxpWW2+XzlTMpXyq -q/JeFUcYwv5Q4tmepycA9BZC/8w9DUpf92iexXtDdwrBTQRLJpYC6sVUebFDALMG -tu1tLl7MZMkw0nsOLQKBzADgsOGBja+KGrV1lEaJi8BrQWe5VhYLnqR8ZFrDjpqo -/H4Aq5pPd/SnG6izyMnpTTYVoKYBBe8VkDse+NKYlYKuSocuXUD9XHd1xKTzAQbV -8rqLtsszFZJ4rcA8ZzoHodPuqfqZBVYAuCTVtFiVViDhufN7GckSkf0GiXB+HHDM -9lAlWm1Mg+mcpdOCAvWjyON6V16/6lurZDr3e1mWzDL2lmoh8hRs2AmDClUMmzha -/Mc+o5CI09pu5wcu1Y4JAqxTtmIv8NMWCSKjZQKBzACtm7UzsHrKC3REfb5YM4oS -zI5SRWCj+umQrAX5XCjc7O4J0MECSW9pda3x+nei1Ay9EOpdBz+pggJ+ipDVa4qf -qfZ/NiAknBiB+4UiSNnUcWtK792AbAfD2if98e40rU5zlbkUxnphytyDwueqcKPY -HGoBRSng3IZyIZR/VCzOwWCpUyLw492D3cVZe1AgeRNhcATiHgIGMUT2zc21Jmh2 -XJn5wohQvUzvnpyll5xlZf6c2EtqMJ9kEwV1Xbwu16aXpXf11Y9iY38EXA== ------END RSA PRIVATE KEY----- diff --git a/test/provider/files/ca/dh.key b/test/provider/files/ca/dh.key deleted file mode 100644 index 190e39e..0000000 --- a/test/provider/files/ca/dh.key +++ /dev/null @@ -1,9 +0,0 @@ ------BEGIN DH PARAMETERS----- -MIIBOAKCATEAuk7D6dsadjJpiW97APv/cjqYBEMCfGIaQMCfaB42VBw3Bk0yfgpA -ItvhY6gJHK+LIXlQLuOgfCFu7N4Ny0wP9lMi4Q2de2t9uyabzYRFnK+42WA5LKag -57xErne+RgIgmGpwKkRAa8BGmghy+wKg2/Tmsw+EMOHqQL5TtnDbcNuNKDHyahST -sw0Chew1esitR+KgY6MJJFdyV3/sGQaGa1Y2vw2rn9a+6HWGZLmzcUcYNwMCIqTL -h9gFk2JvnDs1cO+dsN/XDV8BjsEtnarXB6OOVgQzclfcGuqM2/9mVfeEQiowYqMk -ot9gDeUZVwDqmqh2+sG9q83BEp+AsnQIIerju8URmgIXYTJw7i6IX2vXKqUm96za -IBeGmS71ZSsmgABITDbYenqnvw2A938bEwIBBQ== ------END DH PARAMETERS----- diff --git a/test/provider/files/vpn1/vpn1.rewire.co.crt b/test/provider/files/vpn1/vpn1.rewire.co.crt deleted file mode 100644 index d2c9734..0000000 --- a/test/provider/files/vpn1/vpn1.rewire.co.crt +++ /dev/null @@ -1,26 +0,0 @@ ------BEGIN CERTIFICATE----- -MIIEWjCCAqygAwIBAgIEUFDqXzANBgkqhkiG9w0BAQsFADAPMQ0wCwYDVQQDEwRU -RVNUMB4XDTEyMDkxMjIwMDIzOVoXDTEzMDkxMjIwMDIzOVowKzEPMA0GA1UEChMG -eHgub3JnMRgwFgYDVQQDEw9ob3N0bmFtZS54eC5vcmcwggG4MA0GCSqGSIb3DQEB -AQUAA4IBpQAwggGgAoIBlwCvGqkXry509EWGAqbFUB5nqvsvA3kSIh0prgzaPYCg -MMst58ZB89eTgiuM+U3jSF7LZr+CuE1DAb4m2U2f8D8IfViwK1yCa5AohG+LCmwe -4w4bgXtxwEBDac4u23JZ4AKE/EcKMeBbXe2d3o1S3P3XdN1ZVP0DVw04+H8cdh+0 -ggvhAA+9W/NvAQCAffL8sospj9nbl2OhRnrlFAzMWECyEyySPK5TEchU0hnFBRys -DuYso5klLC6QXfSOkCSCOg9WQgjoyYBndTYxS3GwBnwyM+5V4TNtdc+P4vkkj+ZB -D9R9oMpamUuuRQvk5/hJa7i8AaBy7ZmOO9QtL3866ONa6cLUN/QfBUkgM5iS6oQt -X/qKxZFFYZPZUGBJqavuT+n4FB8XlIwcnqunK7rLD9OZwumYuZlHDtdAsgQ9Fd2z -06e7sDp28jcrk6gmpOapLqNPtPHVOGNA6mCZza4LonDMOSQKTfb6ZEXty+a8f2ig -zErhHvmyCvREytDc9pIf2bL+Sz4ULTq62GDKf1Y3tRi2uHFjhKLTAgMBAAGjdjB0 -MAwGA1UdEwEB/wQCMAAwEwYDVR0lBAwwCgYIKwYBBQUHAwEwDwYDVR0PAQH/BAUD -AwegADAdBgNVHQ4EFgQUmQ5YZjESlkYq2FBaYqGp2HAnSfAwHwYDVR0jBBgwFoAU -/z1/F2dGNow5Kac+jx7NtyIM0BAwDQYJKoZIhvcNAQELBQADggGXAHiaPMSeIzac -rRZQ/dJA7VDgvuFcY67zj9531zsDVi848kBkpSZ+9UyZOdhy5b9Din/IAVvd/XUP -+VWwVsvKPbrWK79T/w8wj5nQR0uYfLdpMu7ZGjPhNes+/DnMX8Are2eb012g1km/ -HhOUxNg8/YpOJI4ZRnZls7j+u5kmHhc47sOQH9sY1FkHcWJ+K/lVhTk8Fmcm1vbN -p7rjO4BItPVDxle0XF6bItwF1ahsK9MTzJIEO9ulHQnKYdhT9BcJbcwA3vhcn8nN -uPN/RbDcWZTjONy58LVr7GxDQ267nZs5/wj4Cv3vDVq83kQJ7lCsYGTvxOejHWeQ -QjcXREdBih9CPO3f86TOI8GRipIGvDcEll4DzgGRi+uTSWG69uC9yud/7+rnLd9Z -WlobzAzRwljnR3aNACq0adYv1Wl05Fi2ab+QqL/C5ySrF5jL4OFUMpBu7nDPjty0 -KjQSmI9t6By6ORx14XT6piSlvSFn5phdMexXx1AYZEtdPSQduh2OquIPjN/qSdHO -J+ZXOqDL1Jv+a89ghE8= ------END CERTIFICATE----- diff --git a/test/provider/files/vpn1/vpn1.rewire.co.key b/test/provider/files/vpn1/vpn1.rewire.co.key deleted file mode 100644 index 3fdf38a..0000000 --- a/test/provider/files/vpn1/vpn1.rewire.co.key +++ /dev/null @@ -1,41 +0,0 @@ ------BEGIN RSA PRIVATE KE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MTBXT9N0zEah -TK4XxfRc+5Gkry0nvGrwDEJeOiFrloUzwmzndF9jbJqcvynaNgcCw5VKICsWIbrD -T8mnWiIJHJF+wv51fa3tEXd/TQrU9w+jYo/ioQKBzACluagmFiDwMcJFowdUYyya -WJtxEQHej5PfyHRijBZ/qzhvPxyF2Ae2D5L9RS+uHsJA0ZVJDQgzkvrSZ8IcS/Q4 -q+zX3/AzgDL6IQGQIsETaAmFCco4RMLFaDMyDx/OJR29df+ibqYvfSoUkcmK8OyF -PWS0AobzJnqIaDpRCCvD/sL9PCkrUm33HoDBfxuvEsqZypNVmq+/3myWc9gIMOmZ -fpWS+744tFnNO9RdmZ8OZel4+iv8CGZvQxk14S+lpaSCpX+Zmfyy5PfPRg== ------END RSA PRIVATE KEY----- diff --git a/test/provider/provider.json b/test/provider/provider.json index 6e7618f..3db2441 100644 --- a/test/provider/provider.json +++ b/test/provider/provider.json @@ -3,7 +3,6 @@ # { "domain": "bitmask.net", - "internal_domain": "= domain.sub(/\\..*$/,'.i')", "name": { "en": "Bitmask" }, @@ -12,19 +11,5 @@ }, "languages": ["en"], "default_language": "en", - "enrollment_policy": "open", - "ca": { - "name": "= global.provider.ca.organization + ' Root CA'", - "organization": "= global.provider.name[global.provider.default_language]", - "organizational_unit": "= 'https://' + global.common.domain.full_suffix", - "bit_size": 4096, - "life_span": "10y", - "server_certificates": { - "bit_size": 3248, - "life_span": "1y" - } - }, - "vagrant":{ - "network":"10.5.5.0/24" - } + "enrollment_policy": "open" } \ No newline at end of file diff --git a/test/provider/secrets.json b/test/provider/secrets.json index 3654472..fd7bd65 100644 --- a/test/provider/secrets.json +++ b/test/provider/secrets.json @@ -1,4 +1,5 @@ { "couch_admin_password": "Wf@W&@fQeK@qcItm-9fH~9ve8A4V5Dua", + "couch_ca_daemon_password": "jc7BQumjI7fs~naLrS_&%@bWImGz75+I", "couch_webapp_password": "rXYr3RfJyqutsLZ6zQZ=&@WPXWnvdMpe" } diff --git a/test/provider/services/couchdb.json b/test/provider/services/couchdb.json deleted file mode 100644 index 1cbc84e..0000000 --- a/test/provider/services/couchdb.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "service_type": "internal_service", - "users": { - "admin": {"username":"admin", "password":"= secret :couch_admin_password"}, - "webapp": {"username":"webapp", "password":"= secret :couch_webapp_password"} - } -} \ No newline at end of file diff --git a/test/provider/services/openvpn.json b/test/provider/services/openvpn.json deleted file mode 100644 index 958320f..0000000 --- a/test/provider/services/openvpn.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "openvpn": { - "ports": ["80", "443", "53", "1194"], - "filter_dns": false, - "nat": true, - "ca_crt": "= file 'ca/ca.crt'", - "ca_key": "= file 'ca/ca.key'", - "dh": "= file 'ca/dh.pem'", - "server_crt": "= file :node_x509_cert", - "server_key": "= file :node_x509_key" - }, - "service_type": "user_service" - #"x509": { - # "use": true - #} -} diff --git a/test/provider/services/webapp.json b/test/provider/services/webapp.json deleted file mode 100644 index 247df49..0000000 --- a/test/provider/services/webapp.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "webapp": { - "modules": ["user", "billing", "help"], - "couchdb_hosts": "= nodes[:services => :couchdb].field('domain.name')", - "couchdb_users": "= global.services['couchdb'].users['admin']" - }, - "definition_files": { - "provider": "= file('service-definitions/provider.json.erb')", - "eip_service": "file('service-definitions/eip-service.json.erb')" - }, - "service_type": "public_service", - "api_domain": "= 'api.' + domain.full_suffix", - "dns": { - "aliases": "= [domain.full, api_domain]" - } -} \ No newline at end of file -- cgit v1.2.3