aboutsummaryrefslogtreecommitdiff
path: root/test/leap_platform
diff options
context:
space:
mode:
authorelijah <elijah@riseup.net>2014-05-20 23:37:44 -0700
committerelijah <elijah@riseup.net>2014-05-20 23:37:44 -0700
commit7f89d03d68f96e692da2653db30f8aae2ac1729b (patch)
treee94c3a76bdee6f4f1fc84c86a837321c868ccd58 /test/leap_platform
parent16a202b173ca6389e66e523b8e88d417d01d3db8 (diff)
downloadleap_cli-7f89d03d68f96e692da2653db30f8aae2ac1729b.tar.gz
leap_cli-7f89d03d68f96e692da2653db30f8aae2ac1729b.tar.bz2
added support for environmentally scoped services and tags (e.g. services/webapp.production.json). requires latest platform.
Diffstat (limited to 'test/leap_platform')
-rw-r--r--test/leap_platform/platform.rb18
1 files changed, 15 insertions, 3 deletions
diff --git a/test/leap_platform/platform.rb b/test/leap_platform/platform.rb
index 9f63b4c..52bb8df 100644
--- a/test/leap_platform/platform.rb
+++ b/test/leap_platform/platform.rb
@@ -1,15 +1,16 @@
+# encoding: utf-8
#
# These are variables defined by this leap_platform and used by leap_cli.
#
Leap::Platform.define do
- self.version = "1.1.2"
- self.compatible_cli = "1.1.2".."1.99"
+ self.version = "0.5.2"
+ self.compatible_cli = "1.5.4".."1.99"
#
# the facter facts that should be gathered
#
- self.facts = ["ec2_local_ipv4"]
+ self.facts = ["ec2_local_ipv4", "ec2_public_ipv4"]
#
# the named paths for this platform
@@ -31,6 +32,11 @@ Leap::Platform.define do
:service_config => 'services/#{arg}.json',
:tag_config => 'tags/#{arg}.json',
+ # input config files, environmentally scoped
+ :provider_env_config => 'provider.#{arg}.json',
+ :service_env_config => 'services/#{arg}.#{arg}.json',
+ :tag_env_config => 'tags/#{arg}.#{arg}.json',
+
# input templates
:provider_json_template => 'files/service-definitions/provider.json.erb',
:eip_service_json_template => 'files/service-definitions/#{arg}/eip-service.json.erb',
@@ -43,6 +49,8 @@ Leap::Platform.define do
:user_pgp => 'users/#{arg}/#{arg}_pgp.pub',
:known_hosts => 'files/ssh/known_hosts',
:authorized_keys => 'files/ssh/authorized_keys',
+ :monitor_pub_key => 'files/ssh/monitor_ssh.pub',
+ :monitor_priv_key => 'files/ssh/monitor_ssh',
:ca_key => 'files/ca/ca.key',
:ca_cert => 'files/ca/ca.crt',
:client_ca_key => 'files/ca/client_ca.key',
@@ -73,5 +81,9 @@ Leap::Platform.define do
self.node_files = [
:node_config, :hiera, :node_x509_cert, :node_x509_key, :node_ssh_pub_key
]
+
+ self.monitor_username = 'monitor'
+
+ self.reserved_usernames = ['monitor']
end