summaryrefslogtreecommitdiff
path: root/platform.rb
diff options
context:
space:
mode:
authorelijah <elijah@riseup.net>2016-01-26 12:27:39 -0800
committerelijah <elijah@riseup.net>2016-01-26 12:27:39 -0800
commit8fc9f0da2f755ad8b225d4b0557c6179236ca7f4 (patch)
tree6e4896669c7dff78bb32881ea4d71502161a2416 /platform.rb
parent7f6804648638f41775eef5cbcf1690857b5e8eb8 (diff)
set value for platform.hiera_dir, but in a way that will not bomb out if using older leap_cli.
Diffstat (limited to 'platform.rb')
-rw-r--r--platform.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/platform.rb b/platform.rb
index 61f0dd05..51ddd98f 100644
--- a/platform.rb
+++ b/platform.rb
@@ -15,6 +15,7 @@ Leap::Platform.define do
#
# absolute paths on the destination server
#
+ self.hiera_dir = '/etc/leap' if self.respond_to?(:hiera_dir)
self.hiera_path = '/etc/leap/hiera.yaml'
self.leap_dir = '/srv/leap'
self.files_dir = '/srv/leap/files'