kafo 7.3.0 → 7.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/kafo/kafo_configure.rb +11 -4
- data/lib/kafo/param.rb +1 -1
- data/lib/kafo/progress_bar.rb +1 -1
- data/lib/kafo/version.rb +1 -1
- data/modules/kafo_configure/metadata.json +1 -1
- metadata +2 -11
- data/doc/Kafo.html +0 -151
- data/doc/_index.html +0 -754
- data/doc/class_list.html +0 -51
- data/doc/file.README.html +0 -1038
- data/doc/file_list.html +0 -56
- data/doc/frames.html +0 -17
- data/doc/index.html +0 -1038
- data/doc/method_list.html +0 -3331
- data/doc/top-level-namespace.html +0 -110
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 91ef4a820b10df46e9932cd8bea2648b3794943898c89072ecd27aaef1dda6e0
|
4
|
+
data.tar.gz: cd59dcdc373d221140fefa6bccbc6e163d52f103ec60f11c1b87fdb98b7ee26d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1e6687473d85f8fbbf4581f91863440ccdcde7ea6232ef82d54707adf83adaab130386d3c2fbde2729b9c1578fdeb32cbeb61a76a0a9f2ffaa1ff415b2e9d450
|
7
|
+
data.tar.gz: c6964bcaa58287b6490705e5905633e0d0dd7a26c83ef88e2fb45f8dfd02cc4d97b0b5d50590671246c4ee07822a522ac053473c87ac575b5c611aaf365ee371
|
data/lib/kafo/kafo_configure.rb
CHANGED
@@ -120,7 +120,7 @@ module Kafo
|
|
120
120
|
request_config_reload if applied_total > 0
|
121
121
|
|
122
122
|
if ARGV.include?('--migrations-only')
|
123
|
-
verbose =
|
123
|
+
verbose = ARGV.include?('--verbose') || ARGV.include?('-v')
|
124
124
|
Logging.setup(verbose: verbose)
|
125
125
|
self.class.logger.notice('Log buffers flushed')
|
126
126
|
self.class.exit(0)
|
@@ -193,13 +193,18 @@ module Kafo
|
|
193
193
|
@progress_bar = config.app[:colors] ? ProgressBars::Colored.new : ProgressBars::BlackWhite.new
|
194
194
|
end
|
195
195
|
|
196
|
-
|
197
|
-
|
198
|
-
|
196
|
+
if checks_only? || !skip_checks_i_know_better?
|
197
|
+
logger = Logger.new('checks')
|
198
|
+
if SystemChecker.check
|
199
|
+
logger.notice("System checks passed")
|
200
|
+
else
|
201
|
+
logger.error("Your system does not meet configuration criteria")
|
199
202
|
self.class.exit(:invalid_system)
|
200
203
|
end
|
201
204
|
end
|
202
205
|
|
206
|
+
self.class.exit(0) if checks_only?
|
207
|
+
|
203
208
|
self.class.hooking.execute(:pre_validations)
|
204
209
|
if interactive?
|
205
210
|
wizard = Wizard.new(self)
|
@@ -363,6 +368,8 @@ module Kafo
|
|
363
368
|
:default => false, :advanced => true
|
364
369
|
app_option ['-s', '--skip-checks-i-know-better'], :flag, 'Skip all system checks',
|
365
370
|
:default => false
|
371
|
+
app_option ['--checks-only'], :flag, 'Run only system checks and exit',
|
372
|
+
:default => false
|
366
373
|
app_option ['--skip-puppet-version-check'], :flag, 'Skip check for compatible Puppet versions',
|
367
374
|
:default => false, :advanced => true
|
368
375
|
app_option ['-v', '--[no-]verbose'], :flag, 'Display log on STDOUT instead of progressbar',
|
data/lib/kafo/param.rb
CHANGED
@@ -161,7 +161,7 @@ module Kafo
|
|
161
161
|
|
162
162
|
def normalize_value(value)
|
163
163
|
case value
|
164
|
-
when ::HighLine::String
|
164
|
+
when ::HighLine::String # don't persist highline extensions
|
165
165
|
value.to_s
|
166
166
|
when Array
|
167
167
|
value.map { |v| normalize_value(v) }
|
data/lib/kafo/progress_bar.rb
CHANGED
@@ -34,7 +34,7 @@ module Kafo
|
|
34
34
|
@all_lines += 1
|
35
35
|
|
36
36
|
# we print every 20th line during installation preparing otherwise only update at EVALTRACE_START
|
37
|
-
update_bar =
|
37
|
+
update_bar = @total == :unknown && @all_lines % 20 == 0
|
38
38
|
force_update = false
|
39
39
|
|
40
40
|
if (line_monitor = MONITOR_RESOURCE.match(line))
|
data/lib/kafo/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: kafo
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 7.
|
4
|
+
version: 7.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Marek Hulan
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-04-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -215,17 +215,8 @@ files:
|
|
215
215
|
- bin/kafofy
|
216
216
|
- config/config_header.txt
|
217
217
|
- config/kafo.yaml.example
|
218
|
-
- doc/Kafo.html
|
219
|
-
- doc/_index.html
|
220
|
-
- doc/class_list.html
|
221
|
-
- doc/file.README.html
|
222
|
-
- doc/file_list.html
|
223
|
-
- doc/frames.html
|
224
|
-
- doc/index.html
|
225
218
|
- doc/kafo_run.png
|
226
219
|
- doc/kafo_run.uml
|
227
|
-
- doc/method_list.html
|
228
|
-
- doc/top-level-namespace.html
|
229
220
|
- lib/kafo.rb
|
230
221
|
- lib/kafo/app_option/declaration.rb
|
231
222
|
- lib/kafo/app_option/definition.rb
|
data/doc/Kafo.html
DELETED
@@ -1,151 +0,0 @@
|
|
1
|
-
<!DOCTYPE html>
|
2
|
-
<html>
|
3
|
-
<head>
|
4
|
-
<meta charset="utf-8">
|
5
|
-
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
6
|
-
<title>
|
7
|
-
Module: Kafo
|
8
|
-
|
9
|
-
— Documentation by YARD 0.9.34
|
10
|
-
|
11
|
-
</title>
|
12
|
-
|
13
|
-
<link rel="stylesheet" href="css/style.css" type="text/css" />
|
14
|
-
|
15
|
-
<link rel="stylesheet" href="css/common.css" type="text/css" />
|
16
|
-
|
17
|
-
<script type="text/javascript">
|
18
|
-
pathId = "Kafo";
|
19
|
-
relpath = '';
|
20
|
-
</script>
|
21
|
-
|
22
|
-
|
23
|
-
<script type="text/javascript" charset="utf-8" src="js/jquery.js"></script>
|
24
|
-
|
25
|
-
<script type="text/javascript" charset="utf-8" src="js/app.js"></script>
|
26
|
-
|
27
|
-
|
28
|
-
</head>
|
29
|
-
<body>
|
30
|
-
<div class="nav_wrap">
|
31
|
-
<iframe id="nav" src="class_list.html?1"></iframe>
|
32
|
-
<div id="resizer"></div>
|
33
|
-
</div>
|
34
|
-
|
35
|
-
<div id="main" tabindex="-1">
|
36
|
-
<div id="header">
|
37
|
-
<div id="menu">
|
38
|
-
|
39
|
-
<a href="_index.html">Index (K)</a> »
|
40
|
-
|
41
|
-
|
42
|
-
<span class="title">Kafo</span>
|
43
|
-
|
44
|
-
</div>
|
45
|
-
|
46
|
-
<div id="search">
|
47
|
-
|
48
|
-
<a class="full_list_link" id="class_list_link"
|
49
|
-
href="class_list.html">
|
50
|
-
|
51
|
-
<svg width="24" height="24">
|
52
|
-
<rect x="0" y="4" width="24" height="4" rx="1" ry="1"></rect>
|
53
|
-
<rect x="0" y="12" width="24" height="4" rx="1" ry="1"></rect>
|
54
|
-
<rect x="0" y="20" width="24" height="4" rx="1" ry="1"></rect>
|
55
|
-
</svg>
|
56
|
-
</a>
|
57
|
-
|
58
|
-
</div>
|
59
|
-
<div class="clear"></div>
|
60
|
-
</div>
|
61
|
-
|
62
|
-
<div id="content"><h1>Module: Kafo
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
</h1>
|
67
|
-
<div class="box_info">
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
<dl>
|
80
|
-
<dt>Defined in:</dt>
|
81
|
-
<dd>lib/kafo/kafo_configure.rb<span class="defines">,<br />
|
82
|
-
lib/kafo/param.rb,<br /> lib/kafo/store.rb,<br /> lib/kafo/logger.rb,<br /> lib/kafo/wizard.rb,<br /> lib/kafo/hooking.rb,<br /> lib/kafo/logging.rb,<br /> lib/kafo/version.rb,<br /> lib/kafo/condition.rb,<br /> lib/kafo/data_type.rb,<br /> lib/kafo/exceptions.rb,<br /> lib/kafo/migrations.rb,<br /> lib/kafo/fact_writer.rb,<br /> lib/kafo/param_group.rb,<br /> lib/kafo/base_context.rb,<br /> lib/kafo/color_scheme.rb,<br /> lib/kafo/exit_handler.rb,<br /> lib/kafo/hook_context.rb,<br /> lib/kafo/progress_bar.rb,<br /> lib/kafo/configuration.rb,<br /> lib/kafo/param_builder.rb,<br /> lib/kafo/puppet_module.rb,<br /> lib/kafo/puppet_report.rb,<br /> lib/kafo/string_helper.rb,<br /> lib/kafo/data_types/any.rb,<br /> lib/kafo/kafo_configure.rb,<br /> lib/kafo/puppet_command.rb,<br /> lib/kafo/system_checker.rb,<br /> lib/kafo/data_types/enum.rb,<br /> lib/kafo/data_types/hash.rb,<br /> lib/kafo/scenario_option.rb,<br /> lib/kafo/data_type_parser.rb,<br /> lib/kafo/data_types/array.rb,<br /> lib/kafo/data_types/float.rb,<br /> lib/kafo/data_types/tuple.rb,<br /> lib/kafo/data_types/undef.rb,<br /> lib/kafo/hiera_configurer.rb,<br /> lib/kafo/multi_stage_hook.rb,<br /> lib/kafo/scenario_manager.rb,<br /> lib/kafo/data_types/regexp.rb,<br /> lib/kafo/data_types/scalar.rb,<br /> lib/kafo/data_types/string.rb,<br /> lib/kafo/data_types/struct.rb,<br /> lib/kafo/migration_context.rb,<br /> lib/kafo/puppet_configurer.rb,<br /> lib/kafo/puppet_log_parser.rb,<br /> lib/kafo/data_types/aliases.rb,<br /> lib/kafo/data_types/boolean.rb,<br /> lib/kafo/data_types/integer.rb,<br /> lib/kafo/data_types/numeric.rb,<br /> lib/kafo/data_types/pattern.rb,<br /> lib/kafo/help_builders/base.rb,<br /> lib/kafo/data_types/optional.rb,<br /> lib/kafo/help_builders/basic.rb,<br /> lib/kafo/parser_cache_reader.rb,<br /> lib/kafo/parser_cache_writer.rb,<br /> lib/kafo/data_types/not_undef.rb,<br /> lib/kafo/app_option/definition.rb,<br /> lib/kafo/execution_environment.rb,<br /> lib/kafo/progress_bars/colored.rb,<br /> lib/kafo/app_option/declaration.rb,<br /> lib/kafo/failed_puppet_resource.rb,<br /> lib/kafo/help_builders/advanced.rb,<br /> lib/kafo/data_types/type_reference.rb,<br /> lib/kafo/progress_bars/black_white.rb,<br /> lib/kafo/data_types/wrapped_data_type.rb</span>
|
83
|
-
</dd>
|
84
|
-
</dl>
|
85
|
-
|
86
|
-
</div>
|
87
|
-
|
88
|
-
<h2>Overview</h2><div class="docstring">
|
89
|
-
<div class="discussion">
|
90
|
-
|
91
|
-
<p>First of all we have to store ENV variable, requiring facter can override them</p>
|
92
|
-
|
93
|
-
|
94
|
-
</div>
|
95
|
-
</div>
|
96
|
-
<div class="tags">
|
97
|
-
|
98
|
-
|
99
|
-
</div><h2>Defined Under Namespace</h2>
|
100
|
-
<p class="children">
|
101
|
-
|
102
|
-
|
103
|
-
<strong class="modules">Modules:</strong> <span class='object_link'><a href="Kafo/AppOption.html" title="Kafo::AppOption (module)">AppOption</a></span>, <span class='object_link'><a href="Kafo/DataTypes.html" title="Kafo::DataTypes (module)">DataTypes</a></span>, <span class='object_link'><a href="Kafo/ENV.html" title="Kafo::ENV (module)">ENV</a></span>, <span class='object_link'><a href="Kafo/HelpBuilders.html" title="Kafo::HelpBuilders (module)">HelpBuilders</a></span>, <span class='object_link'><a href="Kafo/ProgressBars.html" title="Kafo::ProgressBars (module)">ProgressBars</a></span>, <span class='object_link'><a href="Kafo/StringHelper.html" title="Kafo::StringHelper (module)">StringHelper</a></span>
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
<strong class="classes">Classes:</strong> <span class='object_link'><a href="Kafo/BaseContext.html" title="Kafo::BaseContext (class)">BaseContext</a></span>, <span class='object_link'><a href="Kafo/ColorScheme.html" title="Kafo::ColorScheme (class)">ColorScheme</a></span>, <span class='object_link'><a href="Kafo/Condition.html" title="Kafo::Condition (class)">Condition</a></span>, <span class='object_link'><a href="Kafo/ConditionError.html" title="Kafo::ConditionError (class)">ConditionError</a></span>, <span class='object_link'><a href="Kafo/Configuration.html" title="Kafo::Configuration (class)">Configuration</a></span>, <span class='object_link'><a href="Kafo/ConfigurationException.html" title="Kafo::ConfigurationException (class)">ConfigurationException</a></span>, <span class='object_link'><a href="Kafo/DataType.html" title="Kafo::DataType (class)">DataType</a></span>, <span class='object_link'><a href="Kafo/DataTypeParser.html" title="Kafo::DataTypeParser (class)">DataTypeParser</a></span>, <span class='object_link'><a href="Kafo/ExecutionEnvironment.html" title="Kafo::ExecutionEnvironment (class)">ExecutionEnvironment</a></span>, <span class='object_link'><a href="Kafo/ExitHandler.html" title="Kafo::ExitHandler (class)">ExitHandler</a></span>, <span class='object_link'><a href="Kafo/FactWriter.html" title="Kafo::FactWriter (class)">FactWriter</a></span>, <span class='object_link'><a href="Kafo/HieraConfigurer.html" title="Kafo::HieraConfigurer (class)">HieraConfigurer</a></span>, <span class='object_link'><a href="Kafo/HookContext.html" title="Kafo::HookContext (class)">HookContext</a></span>, <span class='object_link'><a href="Kafo/Hooking.html" title="Kafo::Hooking (class)">Hooking</a></span>, <span class='object_link'><a href="Kafo/KafoConfigure.html" title="Kafo::KafoConfigure (class)">KafoConfigure</a></span>, <span class='object_link'><a href="Kafo/Logger.html" title="Kafo::Logger (class)">Logger</a></span>, <span class='object_link'><a href="Kafo/Logging.html" title="Kafo::Logging (class)">Logging</a></span>, <span class='object_link'><a href="Kafo/MigrationContext.html" title="Kafo::MigrationContext (class)">MigrationContext</a></span>, <span class='object_link'><a href="Kafo/Migrations.html" title="Kafo::Migrations (class)">Migrations</a></span>, <span class='object_link'><a href="Kafo/MultiStageHook.html" title="Kafo::MultiStageHook (class)">MultiStageHook</a></span>, <span class='object_link'><a href="Kafo/Param.html" title="Kafo::Param (class)">Param</a></span>, <span class='object_link'><a href="Kafo/ParamBuilder.html" title="Kafo::ParamBuilder (class)">ParamBuilder</a></span>, <span class='object_link'><a href="Kafo/ParamGroup.html" title="Kafo::ParamGroup (class)">ParamGroup</a></span>, <span class='object_link'><a href="Kafo/ParserCacheReader.html" title="Kafo::ParserCacheReader (class)">ParserCacheReader</a></span>, <span class='object_link'><a href="Kafo/ParserCacheWriter.html" title="Kafo::ParserCacheWriter (class)">ParserCacheWriter</a></span>, <span class='object_link'><a href="Kafo/ParserError.html" title="Kafo::ParserError (class)">ParserError</a></span>, <span class='object_link'><a href="Kafo/ProgressBar.html" title="Kafo::ProgressBar (class)">ProgressBar</a></span>, <span class='object_link'><a href="Kafo/PuppetCommand.html" title="Kafo::PuppetCommand (class)">PuppetCommand</a></span>, <span class='object_link'><a href="Kafo/PuppetConfigurer.html" title="Kafo::PuppetConfigurer (class)">PuppetConfigurer</a></span>, <span class='object_link'><a href="Kafo/PuppetFailedResource.html" title="Kafo::PuppetFailedResource (class)">PuppetFailedResource</a></span>, <span class='object_link'><a href="Kafo/PuppetLogParser.html" title="Kafo::PuppetLogParser (class)">PuppetLogParser</a></span>, <span class='object_link'><a href="Kafo/PuppetModule.html" title="Kafo::PuppetModule (class)">PuppetModule</a></span>, <span class='object_link'><a href="Kafo/PuppetReport.html" title="Kafo::PuppetReport (class)">PuppetReport</a></span>, <span class='object_link'><a href="Kafo/PuppetReportError.html" title="Kafo::PuppetReportError (class)">PuppetReportError</a></span>, <span class='object_link'><a href="Kafo/ScenarioManager.html" title="Kafo::ScenarioManager (class)">ScenarioManager</a></span>, <span class='object_link'><a href="Kafo/ScenarioOption.html" title="Kafo::ScenarioOption (class)">ScenarioOption</a></span>, <span class='object_link'><a href="Kafo/Store.html" title="Kafo::Store (class)">Store</a></span>, <span class='object_link'><a href="Kafo/SystemChecker.html" title="Kafo::SystemChecker (class)">SystemChecker</a></span>, <span class='object_link'><a href="Kafo/Wizard.html" title="Kafo::Wizard (class)">Wizard</a></span>
|
108
|
-
|
109
|
-
|
110
|
-
</p>
|
111
|
-
|
112
|
-
|
113
|
-
<h2>
|
114
|
-
Constant Summary
|
115
|
-
<small><a href="#" class="constants_summary_toggle">collapse</a></small>
|
116
|
-
</h2>
|
117
|
-
|
118
|
-
<dl class="constants">
|
119
|
-
|
120
|
-
<dt id="PARSER_CACHE_VERSION-constant" class="">PARSER_CACHE_VERSION =
|
121
|
-
|
122
|
-
</dt>
|
123
|
-
<dd><pre class="code"><span class='int'>1</span></pre></dd>
|
124
|
-
|
125
|
-
<dt id="VERSION-constant" class="">VERSION =
|
126
|
-
|
127
|
-
</dt>
|
128
|
-
<dd><pre class="code"><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>7.0.0</span><span class='tstring_end'>"</span></span></pre></dd>
|
129
|
-
|
130
|
-
</dl>
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
</div>
|
142
|
-
|
143
|
-
<div id="footer">
|
144
|
-
Generated on Fri Jul 14 17:35:54 2023 by
|
145
|
-
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
146
|
-
0.9.34 (ruby-3.2.2).
|
147
|
-
</div>
|
148
|
-
|
149
|
-
</div>
|
150
|
-
</body>
|
151
|
-
</html>
|