kafo 0.0.11 → 0.0.12

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of kafo might be problematic. Click here for more details.

data/README.md CHANGED
@@ -297,13 +297,17 @@ paths. In order to do that you can use following configuration options:
297
297
 
298
298
  * :answer_file: /etc/kafo/kafo.yaml
299
299
  * :installer_dir: /usr/share/kafo/
300
- * :modules_dir: /usr/share/kafo/modules
300
+ * :modules_dir: /usr/share/foreman-installer/modules
301
+ * :kafo_modules_dir: /usr/share/kafo/modules
301
302
 
302
303
  Answer file is obvious. Installer dir is a place where you installer is
303
304
  installed. E.g. system checks will be loaded from here (under checks
304
- subdirectory). On debian systems you may want to specify modules dir
305
- independent on your installer location. If you specify this option your
306
- installer puppet modules will be loaded from here.
305
+ subdirectory). You can optionally change foreman-installer modules dir
306
+ using modules_dir option.
307
+
308
+ On debian systems you may want to specify kafo modules dir
309
+ independent on your installer location. If you specify this option kafo
310
+ internal installer puppet modules will be loaded from here.
307
311
 
308
312
  ## Order of puppet modules execution
309
313
 
@@ -9,6 +9,8 @@
9
9
  # :installer_dir: /usr/share/kafo/
10
10
  # Uncomment if you want to load puppet modules from a specific path, $pwd/modules is used by default
11
11
  # :modules_dir: /usr/share/kafo/modules
12
+ # Similar as modules_dir but for kafo internal modules, leave nil if you don't need to change it
13
+ # :kafo_modules_dir:
12
14
 
13
15
  ## Kafo tuning, customization of core functionality
14
16
  # :no_prefix: false
@@ -15,7 +15,8 @@ class KafoConfigure < Clamp::Command
15
15
  attr_reader :logger
16
16
 
17
17
  class << self
18
- attr_accessor :config, :root_dir, :config_file, :gem_root, :temp_config_file, :modules_dir
18
+ attr_accessor :config, :root_dir, :config_file, :gem_root, :temp_config_file,
19
+ :modules_dir, :kafo_modules_dir
19
20
  end
20
21
 
21
22
  def initialize(*args)
@@ -25,6 +26,7 @@ class KafoConfigure < Clamp::Command
25
26
  modules_dir = self.class.config.app[:module_dir] || (self.class.config.app[:installer_dir] + '/modules')
26
27
  self.class.modules_dir = File.expand_path(modules_dir)
27
28
  self.class.gem_root = File.join(File.dirname(__FILE__), '../../')
29
+ self.class.kafo_modules_dir = self.class.config.app[:kafo_modules_dir] || (self.class.gem_root + '/modules')
28
30
  Logger.setup
29
31
  @logger = Logging.logger.root
30
32
  check_env
@@ -31,8 +31,8 @@ class PuppetCommand
31
31
 
32
32
  def modules_path
33
33
  [
34
- KafoConfigure.config.app[:modules_dir],
35
- File.join(KafoConfigure.gem_root, 'modules')
34
+ KafoConfigure.modules_dir,
35
+ KafoConfigure.kafo_modules_dir,
36
36
  ].join(':')
37
37
  end
38
38
  end
data/lib/kafo/version.rb CHANGED
@@ -1,4 +1,4 @@
1
1
  # encoding: UTF-8
2
2
  module Kafo
3
- VERSION = "0.0.11"
3
+ VERSION = "0.0.12"
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kafo
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.11
4
+ version: 0.0.12
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: