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 +8 -4
- data/config/kafo.yaml.example +2 -0
- data/lib/kafo/kafo_configure.rb +3 -1
- data/lib/kafo/puppet_command.rb +2 -2
- data/lib/kafo/version.rb +1 -1
- metadata +1 -1
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/
|
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).
|
305
|
-
|
306
|
-
|
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
|
|
data/config/kafo.yaml.example
CHANGED
@@ -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
|
data/lib/kafo/kafo_configure.rb
CHANGED
@@ -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,
|
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
|
data/lib/kafo/puppet_command.rb
CHANGED
data/lib/kafo/version.rb
CHANGED