kafo 6.5.0 → 7.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2224fcf87240686b6638ceffdde5ea8026baf151e784f90f1903389305996ae8
4
- data.tar.gz: c6ea88ba2845dfa6d34281c78f7f4a70073c9f6a7bb971f97a0a8cdc7e2897d8
3
+ metadata.gz: 44e0dd9be8a98bd4f048dd0baf43c021fd831e0cf434ce2db3effe2cc2061ad1
4
+ data.tar.gz: 9a7be6fdac62d347577b61e3796d5f3ac3973442072736afbca8cfc29698c216
5
5
  SHA512:
6
- metadata.gz: 373d68b4cc0c8ee1e43e991c4eea2bd632f3de482d797fde26156b38975ee4eef8b0a4cd0cc934ed8c3d9b341e7a429df57b2077496710ed8f187890b1186669
7
- data.tar.gz: f7d9a1356a7f260fa7baa605642c6c00d6276a9064330a03f2864561427ba0eeb99947daae84d951f9647798fac8870c7517fb9b3dd7e3330e4778d5a7975ca0
6
+ metadata.gz: f190ab0f2f7f61abb81ff395d0845d0702396f1357e05398ff4490fc16eef30bffeb3f9235231cc898254cfcb0913da84a1a47b648f3a96de4f1b53657c54be6
7
+ data.tar.gz: 5bf2c4dcb5deed312ba8bbf09236c438cbd6eb6233150cd9bf69054e455ad718f2cd01106c319748aff2cb3468a256c3217d69293123ffa7a37bce3358a4fa6a
data/README.md CHANGED
@@ -160,9 +160,8 @@ As you may have noticed there are several ways how to specify arguments. Here's
160
160
 
161
161
  ## Requirements
162
162
 
163
- Kafo is supported with Puppet versions 4.9+, 5 and 6. Puppet may be installed
164
- as a gem (add it to Gemfile) or through a package, including official AIO
165
- packages.
163
+ Kafo is supported with Puppet version 7. Puppet may be installed as a gem (add
164
+ it to Gemfile) or through a package, including official AIO packages.
166
165
 
167
166
  ## How do I report bugs or contribute?
168
167
 
@@ -207,13 +206,12 @@ When using Puppet via a Gemfile, Bundler should set up PATH to point at the
207
206
  gem version. If using a system/packaged version, it will typically find and
208
207
  execute /usr/bin/puppet from the regular PATH.
209
208
 
210
- When using an AIO/PC1 packaged version of Puppet, other versions of Puppet from
209
+ When using an AIO packaged version of Puppet, other versions of Puppet from
211
210
  PATH will be preferred if they exist, so they should either be removed or PATH
212
211
  set to prefer /opt/puppetlabs/bin, i.e. `export PATH=/opt/puppetlabs/bin:$PATH`.
213
212
  Debug logs from Kafo should indicate the full path of the binary used.
214
213
 
215
- Note that Kafo parsers supports specific versions of Puppet, and may require
216
- extra modules (such as puppet-strings on Puppet 4+) to parse manifests.
214
+ Note that Kafo parsers relies on puppet-strings to parse manifests.
217
215
 
218
216
  ## Parameters prefixes
219
217
 
@@ -728,7 +726,7 @@ If you use "params_path" for this purpose, "params_name" is ignored.
728
726
 
729
727
  ## Validations
730
728
 
731
- If class parameters are declared with Puppet 4 data types then Kafo will
729
+ If class parameters are declared with Puppet data types then Kafo will
732
730
  validate user inputs against Puppet's type validation rules.
733
731
 
734
732
  ## Enabling or disabling module
data/bin/kafofy CHANGED
@@ -47,7 +47,7 @@ end
47
47
 
48
48
  # Create default config file
49
49
  puts "creating #{options[:config_file]} as a default scenario file"
50
- if !File.exists?(options[:config_file])
50
+ if !File.exist?(options[:config_file])
51
51
  puts "... creating config file #{options[:config_file]}"
52
52
  FileUtils.touch options[:config_file]
53
53
  File.chmod 0600, options[:config_file]
@@ -61,7 +61,7 @@ end
61
61
  # Installer script
62
62
  script_name = "bin/#{options[:name]}"
63
63
  puts "... creating #{script_name}"
64
- if !File.exists?(script_name)
64
+ if !File.exist?(script_name)
65
65
  content = <<EOS
66
66
  #!/usr/bin/env ruby
67
67
  require 'rubygems'
data/doc/Kafo.html ADDED
@@ -0,0 +1,151 @@
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
+ &mdash; 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> &raquo;
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'>&quot;</span><span class='tstring_content'>7.0.0</span><span class='tstring_end'>&quot;</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>