octocatalog-diff 0.6.1 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (132) hide show
  1. checksums.yaml +4 -4
  2. data/.version +1 -1
  3. data/README.md +5 -2
  4. data/bin/octocatalog-diff +9 -49
  5. data/doc/CHANGELOG.md +14 -0
  6. data/doc/advanced-filter.md +59 -1
  7. data/doc/advanced-override-enc.md +54 -0
  8. data/doc/advanced-pe-enc.md +1 -1
  9. data/doc/advanced.md +2 -1
  10. data/doc/dev/api.md +5 -0
  11. data/doc/dev/api/v1.md +41 -0
  12. data/doc/dev/api/v1/calls/catalog-diff.md +209 -0
  13. data/doc/dev/api/v1/calls/catalog.md +115 -0
  14. data/doc/dev/api/v1/calls/config.md +37 -0
  15. data/doc/dev/api/v1/objects/catalog.md +127 -0
  16. data/doc/dev/api/v1/objects/diff.md +261 -0
  17. data/doc/dev/api/v1/objects/override.md +30 -0
  18. data/doc/dev/how-to-add-options.md +12 -12
  19. data/doc/optionsref.md +91 -74
  20. data/doc/versions/v1.md +22 -0
  21. data/lib/octocatalog-diff.rb +1 -8
  22. data/lib/octocatalog-diff/api/v1.rb +27 -0
  23. data/lib/octocatalog-diff/api/v1/catalog-compile.rb +40 -0
  24. data/lib/octocatalog-diff/api/v1/catalog-diff.rb +68 -0
  25. data/lib/octocatalog-diff/api/v1/catalog.rb +84 -0
  26. data/lib/octocatalog-diff/api/v1/common.rb +24 -0
  27. data/lib/octocatalog-diff/api/v1/config.rb +125 -0
  28. data/lib/octocatalog-diff/api/v1/diff.rb +194 -0
  29. data/lib/octocatalog-diff/api/v1/override.rb +103 -0
  30. data/lib/octocatalog-diff/catalog-diff/differ.rb +66 -47
  31. data/lib/octocatalog-diff/catalog-diff/display.rb +8 -2
  32. data/lib/octocatalog-diff/catalog-diff/display/json.rb +3 -2
  33. data/lib/octocatalog-diff/catalog-diff/display/legacy_json.rb +28 -0
  34. data/lib/octocatalog-diff/catalog-diff/display/text.rb +64 -9
  35. data/lib/octocatalog-diff/catalog-diff/filter.rb +45 -6
  36. data/lib/octocatalog-diff/catalog-diff/filter/absent_file.rb +65 -0
  37. data/lib/octocatalog-diff/catalog-diff/filter/compilation_dir.rb +78 -0
  38. data/lib/octocatalog-diff/catalog-diff/filter/yaml.rb +10 -7
  39. data/lib/octocatalog-diff/catalog-util/bootstrap.rb +13 -14
  40. data/lib/octocatalog-diff/catalog-util/builddir.rb +1 -0
  41. data/lib/octocatalog-diff/catalog-util/cached_master_directory.rb +2 -2
  42. data/lib/octocatalog-diff/catalog-util/enc.rb +49 -14
  43. data/lib/octocatalog-diff/catalog-util/enc/pe.rb +3 -5
  44. data/lib/octocatalog-diff/catalog-util/enc/pe/v1.rb +3 -1
  45. data/lib/octocatalog-diff/catalog-util/git.rb +36 -24
  46. data/lib/octocatalog-diff/catalog.rb +5 -9
  47. data/lib/octocatalog-diff/catalog/computed.rb +9 -1
  48. data/lib/octocatalog-diff/catalog/puppetdb.rb +4 -3
  49. data/lib/octocatalog-diff/cli.rb +195 -0
  50. data/lib/octocatalog-diff/cli/diffs.rb +40 -0
  51. data/lib/octocatalog-diff/cli/options.rb +183 -0
  52. data/lib/octocatalog-diff/{catalog-diff/cli → cli}/options/basedir.rb +1 -1
  53. data/lib/octocatalog-diff/{catalog-diff/cli → cli}/options/bootstrap_current.rb +1 -1
  54. data/lib/octocatalog-diff/{catalog-diff/cli → cli}/options/bootstrap_environment.rb +1 -1
  55. data/lib/octocatalog-diff/{catalog-diff/cli → cli}/options/bootstrap_script.rb +1 -1
  56. data/lib/octocatalog-diff/{catalog-diff/cli → cli}/options/bootstrap_then_exit.rb +1 -1
  57. data/lib/octocatalog-diff/{catalog-diff/cli → cli}/options/bootstrapped_dirs.rb +1 -1
  58. data/lib/octocatalog-diff/{catalog-diff/cli → cli}/options/cached_master_dir.rb +1 -1
  59. data/lib/octocatalog-diff/{catalog-diff/cli → cli}/options/catalog_only.rb +1 -1
  60. data/lib/octocatalog-diff/{catalog-diff/cli → cli}/options/color.rb +1 -1
  61. data/lib/octocatalog-diff/{catalog-diff/cli → cli}/options/command_line.rb +2 -2
  62. data/lib/octocatalog-diff/{catalog-diff/cli → cli}/options/compare_file_text.rb +1 -1
  63. data/lib/octocatalog-diff/{catalog-diff/cli → cli}/options/create_symlinks.rb +2 -2
  64. data/lib/octocatalog-diff/{catalog-diff/cli → cli}/options/debug.rb +1 -1
  65. data/lib/octocatalog-diff/{catalog-diff/cli → cli}/options/debug_bootstrap.rb +1 -1
  66. data/lib/octocatalog-diff/{catalog-diff/cli → cli}/options/display_datatype_changes.rb +1 -1
  67. data/lib/octocatalog-diff/{catalog-diff/cli → cli}/options/display_detail_add.rb +1 -1
  68. data/lib/octocatalog-diff/{catalog-diff/cli → cli}/options/display_source_file_line.rb +1 -1
  69. data/lib/octocatalog-diff/{catalog-diff/cli → cli}/options/enc.rb +1 -1
  70. data/lib/octocatalog-diff/cli/options/enc_override.rb +21 -0
  71. data/lib/octocatalog-diff/{catalog-diff/cli → cli}/options/environment.rb +2 -2
  72. data/lib/octocatalog-diff/{catalog-diff/cli → cli}/options/existing_catalogs.rb +1 -1
  73. data/lib/octocatalog-diff/{catalog-diff/cli → cli}/options/fact_file.rb +1 -1
  74. data/lib/octocatalog-diff/{catalog-diff/cli → cli}/options/fact_override.rb +2 -2
  75. data/lib/octocatalog-diff/{catalog-diff/cli → cli}/options/facts_terminus.rb +1 -1
  76. data/lib/octocatalog-diff/{catalog-diff/cli → cli}/options/filters.rb +5 -2
  77. data/lib/octocatalog-diff/{catalog-diff/cli → cli}/options/from_puppetdb.rb +1 -1
  78. data/lib/octocatalog-diff/{catalog-diff/cli → cli}/options/header.rb +1 -1
  79. data/lib/octocatalog-diff/{catalog-diff/cli → cli}/options/hiera_config.rb +1 -1
  80. data/lib/octocatalog-diff/{catalog-diff/cli → cli}/options/hiera_path.rb +1 -1
  81. data/lib/octocatalog-diff/{catalog-diff/cli → cli}/options/hiera_path_strip.rb +1 -1
  82. data/lib/octocatalog-diff/{catalog-diff/cli → cli}/options/hostname.rb +1 -1
  83. data/lib/octocatalog-diff/{catalog-diff/cli → cli}/options/ignore.rb +1 -1
  84. data/lib/octocatalog-diff/{catalog-diff/cli → cli}/options/ignore_attr.rb +1 -1
  85. data/lib/octocatalog-diff/{catalog-diff/cli → cli}/options/ignore_tags.rb +1 -1
  86. data/lib/octocatalog-diff/{catalog-diff/cli → cli}/options/include_tags.rb +1 -1
  87. data/lib/octocatalog-diff/{catalog-diff/cli → cli}/options/master_cache_branch.rb +1 -1
  88. data/lib/octocatalog-diff/{catalog-diff/cli → cli}/options/output_file.rb +1 -1
  89. data/lib/octocatalog-diff/{catalog-diff/cli → cli}/options/output_format.rb +5 -3
  90. data/lib/octocatalog-diff/{catalog-diff/cli → cli}/options/parallel.rb +1 -1
  91. data/lib/octocatalog-diff/{catalog-diff/cli → cli}/options/parser.rb +1 -1
  92. data/lib/octocatalog-diff/{catalog-diff/cli → cli}/options/pass_env_vars.rb +1 -1
  93. data/lib/octocatalog-diff/{catalog-diff/cli → cli}/options/pe_enc_ssl_ca.rb +1 -1
  94. data/lib/octocatalog-diff/{catalog-diff/cli → cli}/options/pe_enc_ssl_client_cert.rb +1 -1
  95. data/lib/octocatalog-diff/{catalog-diff/cli → cli}/options/pe_enc_ssl_client_key.rb +1 -1
  96. data/lib/octocatalog-diff/{catalog-diff/cli → cli}/options/pe_enc_token.rb +1 -1
  97. data/lib/octocatalog-diff/{catalog-diff/cli → cli}/options/pe_enc_token_file.rb +1 -1
  98. data/lib/octocatalog-diff/{catalog-diff/cli → cli}/options/pe_enc_url.rb +1 -1
  99. data/lib/octocatalog-diff/{catalog-diff/cli → cli}/options/preserve_environments.rb +1 -1
  100. data/lib/octocatalog-diff/{catalog-diff/cli → cli}/options/puppet_binary.rb +2 -2
  101. data/lib/octocatalog-diff/{catalog-diff/cli → cli}/options/puppet_master.rb +2 -2
  102. data/lib/octocatalog-diff/{catalog-diff/cli → cli}/options/puppet_master_api_version.rb +2 -2
  103. data/lib/octocatalog-diff/{catalog-diff/cli → cli}/options/puppet_master_ssl_ca.rb +2 -2
  104. data/lib/octocatalog-diff/{catalog-diff/cli → cli}/options/puppet_master_ssl_client_cert.rb +2 -2
  105. data/lib/octocatalog-diff/{catalog-diff/cli → cli}/options/puppet_master_ssl_client_key.rb +2 -2
  106. data/lib/octocatalog-diff/{catalog-diff/cli → cli}/options/puppetdb_api_version.rb +1 -1
  107. data/lib/octocatalog-diff/{catalog-diff/cli → cli}/options/puppetdb_ssl_ca.rb +1 -1
  108. data/lib/octocatalog-diff/{catalog-diff/cli → cli}/options/puppetdb_ssl_client_cert.rb +1 -1
  109. data/lib/octocatalog-diff/{catalog-diff/cli → cli}/options/puppetdb_ssl_client_key.rb +1 -1
  110. data/lib/octocatalog-diff/{catalog-diff/cli → cli}/options/puppetdb_ssl_client_password.rb +1 -1
  111. data/lib/octocatalog-diff/{catalog-diff/cli → cli}/options/puppetdb_ssl_client_password_file.rb +1 -1
  112. data/lib/octocatalog-diff/{catalog-diff/cli → cli}/options/puppetdb_url.rb +1 -1
  113. data/lib/octocatalog-diff/{catalog-diff/cli → cli}/options/quiet.rb +1 -1
  114. data/lib/octocatalog-diff/{catalog-diff/cli → cli}/options/retry_failed_catalog.rb +1 -1
  115. data/lib/octocatalog-diff/{catalog-diff/cli → cli}/options/safe_to_delete_cached_master_dir.rb +1 -1
  116. data/lib/octocatalog-diff/{catalog-diff/cli → cli}/options/storeconfigs.rb +1 -1
  117. data/lib/octocatalog-diff/{catalog-diff/cli → cli}/options/suppress_absent_file_details.rb +2 -1
  118. data/lib/octocatalog-diff/{catalog-diff/cli → cli}/options/to_from_branch.rb +1 -1
  119. data/lib/octocatalog-diff/{catalog-diff/cli → cli}/options/validate_references.rb +1 -1
  120. data/lib/octocatalog-diff/cli/printer.rb +52 -0
  121. data/lib/octocatalog-diff/errors.rb +33 -0
  122. data/lib/octocatalog-diff/facts.rb +1 -4
  123. data/lib/octocatalog-diff/facts/puppetdb.rb +8 -7
  124. data/lib/octocatalog-diff/puppetdb.rb +5 -9
  125. data/lib/octocatalog-diff/util/catalogs.rb +242 -0
  126. metadata +97 -75
  127. data/lib/octocatalog-diff/catalog-diff/cli.rb +0 -211
  128. data/lib/octocatalog-diff/catalog-diff/cli/catalogs.rb +0 -246
  129. data/lib/octocatalog-diff/catalog-diff/cli/diffs.rb +0 -147
  130. data/lib/octocatalog-diff/catalog-diff/cli/helpers/fact_override.rb +0 -100
  131. data/lib/octocatalog-diff/catalog-diff/cli/options.rb +0 -185
  132. data/lib/octocatalog-diff/catalog-diff/cli/printer.rb +0 -54
@@ -0,0 +1,30 @@
1
+ # octocatalog-diff v1 API documentation: OctocatalogDiff::API::V1::Override
2
+
3
+ ## Overview
4
+
5
+ `OctocatalogDiff::API::V1::Override` is an object that represents a user-supplied fact or ENC parameter that will be used when compiling a catalog.
6
+
7
+ ## Constructor
8
+
9
+ #### `#new(<Hash> { key: <String>, value: <Object> })`
10
+
11
+ The hash must contain the following keys:
12
+
13
+ - `:key` (String) - The name of the fact or ENC parameter (e.g. `operatingsystem` or `parameters::fooclass::fooparam`)
14
+ - `:value` (?) - The value of the fact or ENC parameter
15
+
16
+ See also: `#create_from_input`
17
+
18
+ ## Methods
19
+
20
+ #### `#create_from_input(<String> key=value)` (OctocatalogDiff::API::V1::Override)
21
+
22
+ Parses the string (see [Overriding facts](/doc/advanced-override-facts.md) for the format to use). Returns a `OctocatalogDiff::API::V1::Override` object with key and value parsed from the string.
23
+
24
+ #### `#key` (String)
25
+
26
+ Returns the key as supplied in the constructor.
27
+
28
+ #### `#value` (?)
29
+
30
+ Returns the value as supplied in the constructor.
@@ -7,9 +7,9 @@ This document contains a checklist and guidance to adding new command line optio
7
7
  Please copy and paste this text into your Pull Request. This will create boxes for each step along the way, which you can then check off when complete.
8
8
 
9
9
  ```
10
- - [ ] REQUIRED: Add new file in `lib/octocatalog-diff/catalog-diff/cli/options`
11
- - [ ] REQUIRED: Add corresponding test in `spec/octocatalog-diff/tests/catalog-diff/cli/options`
12
- - [ ] OPTIONAL: Add default value in `lib/octocatalog-diff/catalog-diff/cli.rb`
10
+ - [ ] REQUIRED: Add new file in `lib/octocatalog-diff/cli/options`
11
+ - [ ] REQUIRED: Add corresponding test in `spec/octocatalog-diff/tests/cli/options`
12
+ - [ ] OPTIONAL: Add default value in `lib/octocatalog-diff/cli.rb`
13
13
  - [ ] OPTIONAL: Add configuration example in `examples/octocatalog-diff.cfg.rb`
14
14
  - [ ] REQUIRED: Add code to implement your option in `lib`
15
15
  - [ ] REQUIRED: Add corresponding tests for code to implement your option in `spec/octocatalog-diff/tests`
@@ -20,7 +20,7 @@ Please copy and paste this text into your Pull Request. This will create boxes f
20
20
 
21
21
  ### Create option parser
22
22
 
23
- Option parsers are created in [`lib/octocatalog-diff/catalog-diff/cli/options`](/lib/octocatalog-diff/catalog-diff/cli/options).
23
+ Option parsers are created in [`lib/octocatalog-diff/cli/options`](/lib/octocatalog-diff/cli/options).
24
24
 
25
25
  Your option should have a "long form" that contains dashes and not underscores. For example, you should prefer `--your-new-option` and NOT use `--your_new_option`.
26
26
 
@@ -32,23 +32,23 @@ If you are creating a binary (yes-no) option, please recognize both `--your-new-
32
32
 
33
33
  We recommend copying prior art as a template:
34
34
 
35
- - For a binary (yes-no) option, look at [`quiet.rb`](/lib/octocatalog-diff/catalog-diff/cli/options/quiet.rb).
35
+ - For a binary (yes-no) option, look at [`quiet.rb`](/lib/octocatalog-diff/cli/options/quiet.rb).
36
36
 
37
- - For an option that takes an integer parameter, look at [`retry_failed_catalog.rb`](/lib/octocatalog-diff/catalog-diff/cli/options/retry_failed_catalog.rb).
37
+ - For an option that takes an integer parameter, look at [`retry_failed_catalog.rb`](/lib/octocatalog-diff/cli/options/retry_failed_catalog.rb).
38
38
 
39
- - For an option that takes an string parameter, look at [`bootstrap_script.rb`](/lib/octocatalog-diff/catalog-diff/cli/options/bootstrap_script.rb).
39
+ - For an option that takes an string parameter, look at [`bootstrap_script.rb`](/lib/octocatalog-diff/cli/options/bootstrap_script.rb).
40
40
 
41
- - For an option that takes an array or can be specified more than once, look at [`bootstrap_environment.rb`](/lib/octocatalog-diff/catalog-diff/cli/options/bootstrap_environment.rb).
41
+ - For an option that takes an array or can be specified more than once, look at [`bootstrap_environment.rb`](/lib/octocatalog-diff/cli/options/bootstrap_environment.rb).
42
42
 
43
- If you can do simple validation of the argument, such as making sure the argument (if specified) matches a particular regular expression or is one of a particular set of values, please do that within the option file. For example, look at [`facts_terminus.rb`](/lib/octocatalog-diff/catalog-diff/cli/options/facts_terminus.rb).
43
+ If you can do simple validation of the argument, such as making sure the argument (if specified) matches a particular regular expression or is one of a particular set of values, please do that within the option file. For example, look at [`facts_terminus.rb`](/lib/octocatalog-diff/cli/options/facts_terminus.rb).
44
44
 
45
45
  ### Create test for option parser
46
46
 
47
- Option parser tests are created in [`spec/octocatalog-diff/tests/catalog-diff/cli/options`](/spec/octocatalog-diff/tests/catalog-diff/cli/options).
47
+ Option parser tests are created in [`spec/octocatalog-diff/tests/cli/options`](/spec/octocatalog-diff/tests/cli/options).
48
48
 
49
49
  If you used an existing option as a reference for your new code, consider using that option's test as a reference for your test. We have some methods, e.g. `test_with_true_false_option`, to avoid repetitive code for common patterns.
50
50
 
51
- If you have handled any edge cases, e.g. input validation, please add a test that expects an error when input is provided that does not match your validation. For example, look at [`parser_spec.rb`](/spec/octocatalog-diff/tests/catalog-diff/cli/options/parser_spec.rb).
51
+ If you have handled any edge cases, e.g. input validation, please add a test that expects an error when input is provided that does not match your validation. For example, look at [`parser_spec.rb`](/spec/octocatalog-diff/tests/cli/options/parser_spec.rb).
52
52
 
53
53
  ### Add default value (OPTIONAL)
54
54
 
@@ -56,7 +56,7 @@ Unless specifically cleared with the project maintainers, adding a new option sh
56
56
 
57
57
  In other words, if someone invokes the program *without* specifying your option, it should behave in the same way as it did before your option was ever added.
58
58
 
59
- If you need to set a default value for your option, do so in [`lib/octocatalog-diff/catalog-diff/cli.rb`](/lib/octocatalog-diff/catalog-diff/cli.rb). Items should be added to DEFAULT_OPTIONS *only if* a value is required even if your option is not provided, or if you are defaulting something to *true* but providing an option to make it false.
59
+ If you need to set a default value for your option, do so in [`lib/octocatalog-diff/cli.rb`](/lib/octocatalog-diff/cli.rb). Items should be added to DEFAULT_OPTIONS *only if* a value is required even if your option is not provided, or if you are defaulting something to *true* but providing an option to make it false.
60
60
 
61
61
  ### Add configuration example (OPTIONAL)
62
62
 
@@ -27,7 +27,7 @@ Usage: octocatalog-diff [command line options]
27
27
  --bootstrap-then-exit Bootstrap from-dir and/or to-dir and then exit
28
28
  --[no-]color Enable/disable colors in output
29
29
  -o, --output-file FILENAME Output results into FILENAME
30
- --output-format FORMAT Output format: text,json
30
+ --output-format FORMAT Output format: text,json,legacy_json
31
31
  -d, --[no-]debug Print debugging messages to STDERR
32
32
  -q, --[no-]quiet Quiet (no status messages except errors)
33
33
  --ignore "Type1[Title1],Type2[Title2],..."
@@ -118,6 +118,12 @@ Usage: octocatalog-diff [command line options]
118
118
  Full path to key file for SSL client auth to Puppet Master for the to branch
119
119
  --from-puppet-master-ssl-client-key STRING
120
120
  Full path to key file for SSL client auth to Puppet Master for the from branch
121
+ --enc-override STRING1[,STRING2[,...]]
122
+ Override parameter from ENC globally
123
+ --to-enc-override STRING1[,STRING2[,...]]
124
+ Override parameter from ENC for the to branch
125
+ --from-enc-override STRING1[,STRING2[,...]]
126
+ Override parameter from ENC for the from branch
121
127
  --pe-enc-url URL Base URL for Puppet Enterprise ENC endpoint
122
128
  --pe-enc-token TOKEN Token to access the Puppet Enterprise ENC API
123
129
  --pe-enc-token-file PATH Path containing token for PE node classifier, relative or absolute
@@ -169,7 +175,7 @@ Usage: octocatalog-diff [command line options]
169
175
  Use an alternate base directory (git checkout of puppet repository)
170
176
  </td>
171
177
  <td valign=top>
172
- Option to set the base checkout directory of puppet repository (<a href="../lib/octocatalog-diff/catalog-diff/cli/options/basedir.rb">basedir.rb</a>)
178
+ Option to set the base checkout directory of puppet repository (<a href="../lib/octocatalog-diff/cli/options/basedir.rb">basedir.rb</a>)
173
179
  </td>
174
180
  </tr>
175
181
 
@@ -182,7 +188,7 @@ Usage: octocatalog-diff [command line options]
182
188
  </td>
183
189
  <td valign=top>
184
190
  Option to bootstrap the current directory (by default, the bootstrap script is NOT
185
- run when the catalog builds in the current directory). (<a href="../lib/octocatalog-diff/catalog-diff/cli/options/bootstrap_current.rb">bootstrap_current.rb</a>)
191
+ run when the catalog builds in the current directory). (<a href="../lib/octocatalog-diff/cli/options/bootstrap_current.rb">bootstrap_current.rb</a>)
186
192
  </td>
187
193
  </tr>
188
194
 
@@ -194,7 +200,7 @@ run when the catalog builds in the current directory). (<a href="../lib/octocata
194
200
  Bootstrap script environment variables in key=value format
195
201
  </td>
196
202
  <td valign=top>
197
- Allow the bootstrap environment to be set up via the command line. (<a href="../lib/octocatalog-diff/catalog-diff/cli/options/bootstrap_environment.rb">bootstrap_environment.rb</a>)
203
+ Allow the bootstrap environment to be set up via the command line. (<a href="../lib/octocatalog-diff/cli/options/bootstrap_environment.rb">bootstrap_environment.rb</a>)
198
204
  </td>
199
205
  </tr>
200
206
 
@@ -208,7 +214,7 @@ run when the catalog builds in the current directory). (<a href="../lib/octocata
208
214
  <td valign=top>
209
215
  Allow specification of a bootstrap script. This runs after checking out the directory, and before running
210
216
  puppet there. Good for running librarian to install modules, and anything else site-specific that needs
211
- to be done. (<a href="../lib/octocatalog-diff/catalog-diff/cli/options/bootstrap_script.rb">bootstrap_script.rb</a>)
217
+ to be done. (<a href="../lib/octocatalog-diff/cli/options/bootstrap_script.rb">bootstrap_script.rb</a>)
212
218
  </td>
213
219
  </tr>
214
220
 
@@ -220,7 +226,7 @@ to be done. (<a href="../lib/octocatalog-diff/catalog-diff/cli/options/bootstrap
220
226
  Bootstrap from-dir and/or to-dir and then exit
221
227
  </td>
222
228
  <td valign=top>
223
- Option to bootstrap directories and then exit (<a href="../lib/octocatalog-diff/catalog-diff/cli/options/bootstrap_then_exit.rb">bootstrap_then_exit.rb</a>)
229
+ Option to bootstrap directories and then exit (<a href="../lib/octocatalog-diff/cli/options/bootstrap_then_exit.rb">bootstrap_then_exit.rb</a>)
224
230
  </td>
225
231
  </tr>
226
232
 
@@ -233,7 +239,7 @@ to be done. (<a href="../lib/octocatalog-diff/catalog-diff/cli/options/bootstrap
233
239
  </td>
234
240
  <td valign=top>
235
241
  Allow (or create) directories that are already bootstrapped. Handy to allow "bootstrap once, build many"
236
- to save time when diffing multiple catalogs on this system. (<a href="../lib/octocatalog-diff/catalog-diff/cli/options/bootstrapped_dirs.rb">bootstrapped_dirs.rb</a>)
242
+ to save time when diffing multiple catalogs on this system. (<a href="../lib/octocatalog-diff/cli/options/bootstrapped_dirs.rb">bootstrapped_dirs.rb</a>)
237
243
  </td>
238
244
  </tr>
239
245
 
@@ -246,7 +252,7 @@ to save time when diffing multiple catalogs on this system. (<a href="../lib/oct
246
252
  </td>
247
253
  <td valign=top>
248
254
  Allow (or create) directories that are already bootstrapped. Handy to allow "bootstrap once, build many"
249
- to save time when diffing multiple catalogs on this system. (<a href="../lib/octocatalog-diff/catalog-diff/cli/options/bootstrapped_dirs.rb">bootstrapped_dirs.rb</a>)
255
+ to save time when diffing multiple catalogs on this system. (<a href="../lib/octocatalog-diff/cli/options/bootstrapped_dirs.rb">bootstrapped_dirs.rb</a>)
250
256
  </td>
251
257
  </tr>
252
258
 
@@ -259,7 +265,7 @@ to save time when diffing multiple catalogs on this system. (<a href="../lib/oct
259
265
  </td>
260
266
  <td valign=top>
261
267
  Cache a bootstrapped checkout of 'master' and use that for time-saving when the SHA
262
- has not changed. (<a href="../lib/octocatalog-diff/catalog-diff/cli/options/cached_master_dir.rb">cached_master_dir.rb</a>)
268
+ has not changed. (<a href="../lib/octocatalog-diff/cli/options/cached_master_dir.rb">cached_master_dir.rb</a>)
263
269
  </td>
264
270
  </tr>
265
271
 
@@ -273,7 +279,7 @@ has not changed. (<a href="../lib/octocatalog-diff/catalog-diff/cli/options/cach
273
279
  </td>
274
280
  <td valign=top>
275
281
  When set, --catalog-only will only compile the catalog for the 'to' branch, and skip any
276
- diffing activity. The catalog will be printed to STDOUT or written to the output file. (<a href="../lib/octocatalog-diff/catalog-diff/cli/options/catalog_only.rb">catalog_only.rb</a>)
282
+ diffing activity. The catalog will be printed to STDOUT or written to the output file. (<a href="../lib/octocatalog-diff/cli/options/catalog_only.rb">catalog_only.rb</a>)
277
283
  </td>
278
284
  </tr>
279
285
 
@@ -286,7 +292,7 @@ diffing activity. The catalog will be printed to STDOUT or written to the output
286
292
  Enable/disable colors in output
287
293
  </td>
288
294
  <td valign=top>
289
- Color printing option (<a href="../lib/octocatalog-diff/catalog-diff/cli/options/color.rb">color.rb</a>)
295
+ Color printing option (<a href="../lib/octocatalog-diff/cli/options/color.rb">color.rb</a>)
290
296
  </td>
291
297
  </tr>
292
298
 
@@ -302,7 +308,7 @@ diffing activity. The catalog will be printed to STDOUT or written to the output
302
308
  When a file is specified with `source => 'puppet:///modules/something/foo.txt'`, remove
303
309
  the 'source' attribute and populate the 'content' attribute with the text of the file.
304
310
  This allows for a diff of the content, rather than a diff of the location, which is
305
- what is most often desired. (<a href="../lib/octocatalog-diff/catalog-diff/cli/options/compare_file_text.rb">compare_file_text.rb</a>)
311
+ what is most often desired. (<a href="../lib/octocatalog-diff/cli/options/compare_file_text.rb">compare_file_text.rb</a>)
306
312
  </td>
307
313
  </tr>
308
314
 
@@ -316,7 +322,7 @@ what is most often desired. (<a href="../lib/octocatalog-diff/catalog-diff/cli/o
316
322
  Print debugging messages to STDERR
317
323
  </td>
318
324
  <td valign=top>
319
- Debugging option (<a href="../lib/octocatalog-diff/catalog-diff/cli/options/debug.rb">debug.rb</a>)
325
+ Debugging option (<a href="../lib/octocatalog-diff/cli/options/debug.rb">debug.rb</a>)
320
326
  </td>
321
327
  </tr>
322
328
 
@@ -330,7 +336,7 @@ what is most often desired. (<a href="../lib/octocatalog-diff/catalog-diff/cli/o
330
336
  <td valign=top>
331
337
  Option to print debugging output for the bootstrap script in addition to the normal
332
338
  debugging output. Note that `--debug` must also be enabled for this option to have
333
- any effect. (<a href="../lib/octocatalog-diff/catalog-diff/cli/options/debug_bootstrap.rb">debug_bootstrap.rb</a>)
339
+ any effect. (<a href="../lib/octocatalog-diff/cli/options/debug_bootstrap.rb">debug_bootstrap.rb</a>)
334
340
  </td>
335
341
  </tr>
336
342
 
@@ -342,7 +348,7 @@ any effect. (<a href="../lib/octocatalog-diff/catalog-diff/cli/options/debug_boo
342
348
  Print default header with output
343
349
  </td>
344
350
  <td valign=top>
345
- Provide ability to set custom header or to display no header at all (<a href="../lib/octocatalog-diff/catalog-diff/cli/options/header.rb">header.rb</a>)
351
+ Provide ability to set custom header or to display no header at all (<a href="../lib/octocatalog-diff/cli/options/header.rb">header.rb</a>)
346
352
  </td>
347
353
  </tr>
348
354
 
@@ -358,7 +364,7 @@ any effect. (<a href="../lib/octocatalog-diff/catalog-diff/cli/options/debug_boo
358
364
  Toggle on or off the display of data type changes when the string representation
359
365
  is the same. For example with this enabled, '42' (the string) and 42 (the integer)
360
366
  will be displayed as a difference. With this disabled, this is not displayed as a
361
- difference. (<a href="../lib/octocatalog-diff/catalog-diff/cli/options/display_datatype_changes.rb">display_datatype_changes.rb</a>)
367
+ difference. (<a href="../lib/octocatalog-diff/cli/options/display_datatype_changes.rb">display_datatype_changes.rb</a>)
362
368
  </td>
363
369
  </tr>
364
370
 
@@ -371,7 +377,7 @@ difference. (<a href="../lib/octocatalog-diff/catalog-diff/cli/options/display_d
371
377
  Display parameters and other details for added resources
372
378
  </td>
373
379
  <td valign=top>
374
- Provide ability to display details of 'added' resources in the output. (<a href="../lib/octocatalog-diff/catalog-diff/cli/options/display_detail_add.rb">display_detail_add.rb</a>)
380
+ Provide ability to display details of 'added' resources in the output. (<a href="../lib/octocatalog-diff/cli/options/display_detail_add.rb">display_detail_add.rb</a>)
375
381
  </td>
376
382
  </tr>
377
383
 
@@ -384,7 +390,7 @@ difference. (<a href="../lib/octocatalog-diff/catalog-diff/cli/options/display_d
384
390
  Show source file and line for each difference
385
391
  </td>
386
392
  <td valign=top>
387
- Display source filename and line number for diffs (<a href="../lib/octocatalog-diff/catalog-diff/cli/options/display_source_file_line.rb">display_source_file_line.rb</a>)
393
+ Display source filename and line number for diffs (<a href="../lib/octocatalog-diff/cli/options/display_source_file_line.rb">display_source_file_line.rb</a>)
388
394
  </td>
389
395
  </tr>
390
396
 
@@ -396,7 +402,7 @@ difference. (<a href="../lib/octocatalog-diff/catalog-diff/cli/options/display_d
396
402
  Path to ENC script, relative to checkout directory or absolute
397
403
  </td>
398
404
  <td valign=top>
399
- Path to external node classifier, relative to the base directory of the checkout. (<a href="../lib/octocatalog-diff/catalog-diff/cli/options/enc.rb">enc.rb</a>)
405
+ Path to external node classifier, relative to the base directory of the checkout. (<a href="../lib/octocatalog-diff/cli/options/enc.rb">enc.rb</a>)
400
406
  </td>
401
407
  </tr>
402
408
 
@@ -408,7 +414,7 @@ difference. (<a href="../lib/octocatalog-diff/catalog-diff/cli/options/display_d
408
414
  Fact file to use instead of node lookup
409
415
  </td>
410
416
  <td valign=top>
411
- Allow an existing fact file to be provided, to avoid pulling facts from PuppetDB. (<a href="../lib/octocatalog-diff/catalog-diff/cli/options/fact_file.rb">fact_file.rb</a>)
417
+ Allow an existing fact file to be provided, to avoid pulling facts from PuppetDB. (<a href="../lib/octocatalog-diff/cli/options/fact_file.rb">fact_file.rb</a>)
412
418
  </td>
413
419
  </tr>
414
420
 
@@ -422,7 +428,7 @@ difference. (<a href="../lib/octocatalog-diff/catalog-diff/cli/options/display_d
422
428
  <td valign=top>
423
429
  Get the facts terminus. Generally this is 'yaml' and a fact file will be loaded from PuppetDB or
424
430
  elsewhere in the environment. However it can be set to 'facter' which will run facter on the host
425
- on which this is running. (<a href="../lib/octocatalog-diff/catalog-diff/cli/options/facts_terminus.rb">facts_terminus.rb</a>)
431
+ on which this is running. (<a href="../lib/octocatalog-diff/cli/options/facts_terminus.rb">facts_terminus.rb</a>)
426
432
  </td>
427
433
  </tr>
428
434
 
@@ -436,7 +442,7 @@ on which this is running. (<a href="../lib/octocatalog-diff/catalog-diff/cli/opt
436
442
  <td valign=top>
437
443
  Specify one or more filters to apply to the results of the catalog difference.
438
444
  For a list of available filters and further explanation, please refer to
439
- [Filtering results](/doc/advanced-filter.md). (<a href="../lib/octocatalog-diff/catalog-diff/cli/options/filters.rb">filters.rb</a>)
445
+ <a href="advanced-filter.md">Filtering results</a>. (<a href="../lib/octocatalog-diff/cli/options/filters.rb">filters.rb</a>)
440
446
  </td>
441
447
  </tr>
442
448
 
@@ -450,7 +456,7 @@ For a list of available filters and further explanation, please refer to
450
456
  </td>
451
457
  <td valign=top>
452
458
  Set the 'from' and 'to' branches, which is used to compile catalogs. A branch of '.' means to use
453
- the current contents of the base code directory without any git checkouts. (<a href="../lib/octocatalog-diff/catalog-diff/cli/options/to_from_branch.rb">to_from_branch.rb</a>)
459
+ the current contents of the base code directory without any git checkouts. (<a href="../lib/octocatalog-diff/cli/options/to_from_branch.rb">to_from_branch.rb</a>)
454
460
  </td>
455
461
  </tr>
456
462
 
@@ -463,7 +469,7 @@ the current contents of the base code directory without any git checkouts. (<a h
463
469
  </td>
464
470
  <td valign=top>
465
471
  If pre-compiled catalogs are available, these can be used to short-circuit the build process.
466
- These files must exist and be in Puppet catalog format. (<a href="../lib/octocatalog-diff/catalog-diff/cli/options/existing_catalogs.rb">existing_catalogs.rb</a>)
472
+ These files must exist and be in Puppet catalog format. (<a href="../lib/octocatalog-diff/cli/options/existing_catalogs.rb">existing_catalogs.rb</a>)
467
473
  </td>
468
474
  </tr>
469
475
 
@@ -475,7 +481,7 @@ These files must exist and be in Puppet catalog format. (<a href="../lib/octocat
475
481
  Path to ENC script (for the from catalog only)
476
482
  </td>
477
483
  <td valign=top>
478
- Path to external node classifier, relative to the base directory of the checkout. (<a href="../lib/octocatalog-diff/catalog-diff/cli/options/enc.rb">enc.rb</a>)
484
+ Path to external node classifier, relative to the base directory of the checkout. (<a href="../lib/octocatalog-diff/cli/options/enc.rb">enc.rb</a>)
479
485
  </td>
480
486
  </tr>
481
487
 
@@ -488,7 +494,7 @@ These files must exist and be in Puppet catalog format. (<a href="../lib/octocat
488
494
  Pull "from" catalog from PuppetDB instead of compiling
489
495
  </td>
490
496
  <td valign=top>
491
- Set --from-puppetdb to pull most recent catalog from PuppetDB instead of compiling (<a href="../lib/octocatalog-diff/catalog-diff/cli/options/from_puppetdb.rb">from_puppetdb.rb</a>)
497
+ Set --from-puppetdb to pull most recent catalog from PuppetDB instead of compiling (<a href="../lib/octocatalog-diff/cli/options/from_puppetdb.rb">from_puppetdb.rb</a>)
492
498
  </td>
493
499
  </tr>
494
500
 
@@ -500,7 +506,7 @@ These files must exist and be in Puppet catalog format. (<a href="../lib/octocat
500
506
  Specify header for output
501
507
  </td>
502
508
  <td valign=top>
503
- Provide ability to set custom header or to display no header at all (<a href="../lib/octocatalog-diff/catalog-diff/cli/options/header.rb">header.rb</a>)
509
+ Provide ability to set custom header or to display no header at all (<a href="../lib/octocatalog-diff/cli/options/header.rb">header.rb</a>)
504
510
  </td>
505
511
  </tr>
506
512
 
@@ -512,7 +518,7 @@ These files must exist and be in Puppet catalog format. (<a href="../lib/octocat
512
518
  Relative path to hiera YAML file
513
519
  </td>
514
520
  <td valign=top>
515
- Specify a relative path to the Hiera yaml file (<a href="../lib/octocatalog-diff/catalog-diff/cli/options/hiera_config.rb">hiera_config.rb</a>)
521
+ Specify a relative path to the Hiera yaml file (<a href="../lib/octocatalog-diff/cli/options/hiera_config.rb">hiera_config.rb</a>)
516
522
  </td>
517
523
  </tr>
518
524
 
@@ -525,7 +531,7 @@ These files must exist and be in Puppet catalog format. (<a href="../lib/octocat
525
531
  </td>
526
532
  <td valign=top>
527
533
  Specify the path to the Hiera data directory (relative to the top level Puppet checkout). For Puppet Enterprise and the
528
- Puppet control repo template, the value of this should be 'hieradata', which is the default. (<a href="../lib/octocatalog-diff/catalog-diff/cli/options/hiera_path.rb">hiera_path.rb</a>)
534
+ Puppet control repo template, the value of this should be 'hieradata', which is the default. (<a href="../lib/octocatalog-diff/cli/options/hiera_path.rb">hiera_path.rb</a>)
529
535
  </td>
530
536
  </tr>
531
537
 
@@ -537,7 +543,7 @@ Puppet control repo template, the value of this should be 'hieradata', which is
537
543
  Path prefix to strip when munging hiera.yaml
538
544
  </td>
539
545
  <td valign=top>
540
- Specify the path to strip off the datadir to munge hiera.yaml file (<a href="../lib/octocatalog-diff/catalog-diff/cli/options/hiera_path_strip.rb">hiera_path_strip.rb</a>)
546
+ Specify the path to strip off the datadir to munge hiera.yaml file (<a href="../lib/octocatalog-diff/cli/options/hiera_path_strip.rb">hiera_path_strip.rb</a>)
541
547
  </td>
542
548
  </tr>
543
549
 
@@ -550,7 +556,7 @@ Puppet control repo template, the value of this should be 'hieradata', which is
550
556
  Use PuppetDB facts from last run of hostname
551
557
  </td>
552
558
  <td valign=top>
553
- Set hostname, which is used to look up facts in PuppetDB, and in the header of diff display. (<a href="../lib/octocatalog-diff/catalog-diff/cli/options/hostname.rb">hostname.rb</a>)
559
+ Set hostname, which is used to look up facts in PuppetDB, and in the header of diff display. (<a href="../lib/octocatalog-diff/cli/options/hostname.rb">hostname.rb</a>)
554
560
  </td>
555
561
  </tr>
556
562
 
@@ -562,7 +568,7 @@ Puppet control repo template, the value of this should be 'hieradata', which is
562
568
  More resources to ignore in format type[title]
563
569
  </td>
564
570
  <td valign=top>
565
- Options used when comparing catalogs - set ignored changes. (<a href="../lib/octocatalog-diff/catalog-diff/cli/options/ignore.rb">ignore.rb</a>)
571
+ Options used when comparing catalogs - set ignored changes. (<a href="../lib/octocatalog-diff/cli/options/ignore.rb">ignore.rb</a>)
566
572
  </td>
567
573
  </tr>
568
574
 
@@ -574,7 +580,7 @@ Puppet control repo template, the value of this should be 'hieradata', which is
574
580
  Attributes to ignore
575
581
  </td>
576
582
  <td valign=top>
577
- Specify attributes to ignore (<a href="../lib/octocatalog-diff/catalog-diff/cli/options/ignore_attr.rb">ignore_attr.rb</a>)
583
+ Specify attributes to ignore (<a href="../lib/octocatalog-diff/cli/options/ignore_attr.rb">ignore_attr.rb</a>)
578
584
  </td>
579
585
  </tr>
580
586
 
@@ -587,7 +593,7 @@ Puppet control repo template, the value of this should be 'hieradata', which is
587
593
  </td>
588
594
  <td valign=top>
589
595
  Provide ability to set one or more tags, which will cause catalog-diff
590
- to ignore any changes for any defined type where this tag is set. (<a href="../lib/octocatalog-diff/catalog-diff/cli/options/ignore_tags.rb">ignore_tags.rb</a>)
596
+ to ignore any changes for any defined type where this tag is set. (<a href="../lib/octocatalog-diff/cli/options/ignore_tags.rb">ignore_tags.rb</a>)
591
597
  </td>
592
598
  </tr>
593
599
 
@@ -600,7 +606,7 @@ to ignore any changes for any defined type where this tag is set. (<a href="../l
600
606
  Include changes to tags in the diff output
601
607
  </td>
602
608
  <td valign=top>
603
- Options used when comparing catalogs - tags are generally ignored; you can un-ignore them. (<a href="../lib/octocatalog-diff/catalog-diff/cli/options/include_tags.rb">include_tags.rb</a>)
609
+ Options used when comparing catalogs - tags are generally ignored; you can un-ignore them. (<a href="../lib/octocatalog-diff/cli/options/include_tags.rb">include_tags.rb</a>)
604
610
  </td>
605
611
  </tr>
606
612
 
@@ -612,7 +618,7 @@ to ignore any changes for any defined type where this tag is set. (<a href="../l
612
618
  Branch to cache
613
619
  </td>
614
620
  <td valign=top>
615
- Allow override of the branch that is cached. This defaults to 'origin/master'. (<a href="../lib/octocatalog-diff/catalog-diff/cli/options/master_cache_branch.rb">master_cache_branch.rb</a>)
621
+ Allow override of the branch that is cached. This defaults to 'origin/master'. (<a href="../lib/octocatalog-diff/cli/options/master_cache_branch.rb">master_cache_branch.rb</a>)
616
622
  </td>
617
623
  </tr>
618
624
 
@@ -624,7 +630,7 @@ to ignore any changes for any defined type where this tag is set. (<a href="../l
624
630
  Disable ENC
625
631
  </td>
626
632
  <td valign=top>
627
- Path to external node classifier, relative to the base directory of the checkout. (<a href="../lib/octocatalog-diff/catalog-diff/cli/options/enc.rb">enc.rb</a>)
633
+ Path to external node classifier, relative to the base directory of the checkout. (<a href="../lib/octocatalog-diff/cli/options/enc.rb">enc.rb</a>)
628
634
  </td>
629
635
  </tr>
630
636
 
@@ -636,7 +642,7 @@ to ignore any changes for any defined type where this tag is set. (<a href="../l
636
642
  Do not print a header
637
643
  </td>
638
644
  <td valign=top>
639
- Provide ability to set custom header or to display no header at all (<a href="../lib/octocatalog-diff/catalog-diff/cli/options/header.rb">header.rb</a>)
645
+ Provide ability to set custom header or to display no header at all (<a href="../lib/octocatalog-diff/cli/options/header.rb">header.rb</a>)
640
646
  </td>
641
647
  </tr>
642
648
 
@@ -648,7 +654,7 @@ to ignore any changes for any defined type where this tag is set. (<a href="../l
648
654
  Disable hiera config file installation
649
655
  </td>
650
656
  <td valign=top>
651
- Specify a relative path to the Hiera yaml file (<a href="../lib/octocatalog-diff/catalog-diff/cli/options/hiera_config.rb">hiera_config.rb</a>)
657
+ Specify a relative path to the Hiera yaml file (<a href="../lib/octocatalog-diff/cli/options/hiera_config.rb">hiera_config.rb</a>)
652
658
  </td>
653
659
  </tr>
654
660
 
@@ -661,7 +667,7 @@ to ignore any changes for any defined type where this tag is set. (<a href="../l
661
667
  </td>
662
668
  <td valign=top>
663
669
  Specify the path to the Hiera data directory (relative to the top level Puppet checkout). For Puppet Enterprise and the
664
- Puppet control repo template, the value of this should be 'hieradata', which is the default. (<a href="../lib/octocatalog-diff/catalog-diff/cli/options/hiera_path.rb">hiera_path.rb</a>)
670
+ Puppet control repo template, the value of this should be 'hieradata', which is the default. (<a href="../lib/octocatalog-diff/cli/options/hiera_path.rb">hiera_path.rb</a>)
665
671
  </td>
666
672
  </tr>
667
673
 
@@ -673,7 +679,7 @@ Puppet control repo template, the value of this should be 'hieradata', which is
673
679
  Do not use any default hiera path strip settings
674
680
  </td>
675
681
  <td valign=top>
676
- Specify the path to strip off the datadir to munge hiera.yaml file (<a href="../lib/octocatalog-diff/catalog-diff/cli/options/hiera_path_strip.rb">hiera_path_strip.rb</a>)
682
+ Specify the path to strip off the datadir to munge hiera.yaml file (<a href="../lib/octocatalog-diff/cli/options/hiera_path_strip.rb">hiera_path_strip.rb</a>)
677
683
  </td>
678
684
  </tr>
679
685
 
@@ -686,7 +692,7 @@ Puppet control repo template, the value of this should be 'hieradata', which is
686
692
  </td>
687
693
  <td valign=top>
688
694
  Provide ability to set one or more tags, which will cause catalog-diff
689
- to ignore any changes for any defined type where this tag is set. (<a href="../lib/octocatalog-diff/catalog-diff/cli/options/ignore_tags.rb">ignore_tags.rb</a>)
695
+ to ignore any changes for any defined type where this tag is set. (<a href="../lib/octocatalog-diff/cli/options/ignore_tags.rb">ignore_tags.rb</a>)
690
696
  </td>
691
697
  </tr>
692
698
 
@@ -699,7 +705,7 @@ to ignore any changes for any defined type where this tag is set. (<a href="../l
699
705
  Output results into FILENAME
700
706
  </td>
701
707
  <td valign=top>
702
- Output file option (<a href="../lib/octocatalog-diff/catalog-diff/cli/options/output_file.rb">output_file.rb</a>)
708
+ Output file option (<a href="../lib/octocatalog-diff/cli/options/output_file.rb">output_file.rb</a>)
703
709
  </td>
704
710
  </tr>
705
711
 
@@ -708,10 +714,12 @@ to ignore any changes for any defined type where this tag is set. (<a href="../l
708
714
  <pre><code>--output-format FORMAT</code></pre>
709
715
  </td>
710
716
  <td valign=top>
711
- Output format: text,json
717
+ Output format: text,json,legacy_json
712
718
  </td>
713
719
  <td valign=top>
714
- Output format option (<a href="../lib/octocatalog-diff/catalog-diff/cli/options/output_format.rb">output_format.rb</a>)
720
+ Output format option. 'text' is human readable text, 'json' is an array of differences
721
+ identified by human readable keys (the preferred octocatalog-diff 1.x format), and 'legacy_json' is an
722
+ array of differences, where each difference is an array (the octocatalog-diff 0.x format). (<a href="../lib/octocatalog-diff/cli/options/output_format.rb">output_format.rb</a>)
715
723
  </td>
716
724
  </tr>
717
725
 
@@ -724,7 +732,7 @@ to ignore any changes for any defined type where this tag is set. (<a href="../l
724
732
  Enable or disable parallel processing
725
733
  </td>
726
734
  <td valign=top>
727
- Disable or enable parallel processing of catalogs. (<a href="../lib/octocatalog-diff/catalog-diff/cli/options/parallel.rb">parallel.rb</a>)
735
+ Disable or enable parallel processing of catalogs. (<a href="../lib/octocatalog-diff/cli/options/parallel.rb">parallel.rb</a>)
728
736
  </td>
729
737
  </tr>
730
738
 
@@ -736,7 +744,7 @@ to ignore any changes for any defined type where this tag is set. (<a href="../l
736
744
  Specify parser (default, future)
737
745
  </td>
738
746
  <td valign=top>
739
- Enable future parser for both branches or for just one (<a href="../lib/octocatalog-diff/catalog-diff/cli/options/parser.rb">parser.rb</a>)
747
+ Enable future parser for both branches or for just one (<a href="../lib/octocatalog-diff/cli/options/parser.rb">parser.rb</a>)
740
748
  </td>
741
749
  </tr>
742
750
 
@@ -748,7 +756,7 @@ to ignore any changes for any defined type where this tag is set. (<a href="../l
748
756
  Specify parser (default, future)
749
757
  </td>
750
758
  <td valign=top>
751
- Enable future parser for both branches or for just one (<a href="../lib/octocatalog-diff/catalog-diff/cli/options/parser.rb">parser.rb</a>)
759
+ Enable future parser for both branches or for just one (<a href="../lib/octocatalog-diff/cli/options/parser.rb">parser.rb</a>)
752
760
  </td>
753
761
  </tr>
754
762
 
@@ -760,7 +768,7 @@ to ignore any changes for any defined type where this tag is set. (<a href="../l
760
768
  Specify parser (default, future)
761
769
  </td>
762
770
  <td valign=top>
763
- Enable future parser for both branches or for just one (<a href="../lib/octocatalog-diff/catalog-diff/cli/options/parser.rb">parser.rb</a>)
771
+ Enable future parser for both branches or for just one (<a href="../lib/octocatalog-diff/cli/options/parser.rb">parser.rb</a>)
764
772
  </td>
765
773
  </tr>
766
774
 
@@ -774,7 +782,7 @@ to ignore any changes for any defined type where this tag is set. (<a href="../l
774
782
  <td valign=top>
775
783
  One or more environment variables that should be made available to the Puppet binary when parsing
776
784
  the catalog. For example, --pass-env-vars FOO,BAR will make the FOO and BAR environment variables
777
- available. Setting these variables is your responsibility outside of octocatalog-diff. (<a href="../lib/octocatalog-diff/catalog-diff/cli/options/pass_env_vars.rb">pass_env_vars.rb</a>)
785
+ available. Setting these variables is your responsibility outside of octocatalog-diff. (<a href="../lib/octocatalog-diff/cli/options/pass_env_vars.rb">pass_env_vars.rb</a>)
778
786
  </td>
779
787
  </tr>
780
788
 
@@ -788,7 +796,7 @@ available. Setting these variables is your responsibility outside of octocatalog
788
796
  <td valign=top>
789
797
  Specify the CA certificate for the Puppet Enterprise ENC. If specified, this will enable SSL verification
790
798
  that the certificate being presented has been signed by this CA, and that the common name
791
- matches the name you are using to connecting. (<a href="../lib/octocatalog-diff/catalog-diff/cli/options/pe_enc_ssl_ca.rb">pe_enc_ssl_ca.rb</a>)
799
+ matches the name you are using to connecting. (<a href="../lib/octocatalog-diff/cli/options/pe_enc_ssl_ca.rb">pe_enc_ssl_ca.rb</a>)
792
800
  </td>
793
801
  </tr>
794
802
 
@@ -801,7 +809,7 @@ matches the name you are using to connecting. (<a href="../lib/octocatalog-diff/
801
809
  </td>
802
810
  <td valign=top>
803
811
  Specify the client certificate for connecting to the Puppet Enterprise ENC. This must be specified along with
804
- --pe-enc-ssl-client-key in order to work. (<a href="../lib/octocatalog-diff/catalog-diff/cli/options/pe_enc_ssl_client_cert.rb">pe_enc_ssl_client_cert.rb</a>)
812
+ --pe-enc-ssl-client-key in order to work. (<a href="../lib/octocatalog-diff/cli/options/pe_enc_ssl_client_cert.rb">pe_enc_ssl_client_cert.rb</a>)
805
813
  </td>
806
814
  </tr>
807
815
 
@@ -814,7 +822,7 @@ matches the name you are using to connecting. (<a href="../lib/octocatalog-diff/
814
822
  </td>
815
823
  <td valign=top>
816
824
  Specify the client key for connecting to Puppet Enterprise ENC. This must be specified along with
817
- --pe-enc-ssl-client-cert in order to work. (<a href="../lib/octocatalog-diff/catalog-diff/cli/options/pe_enc_ssl_client_key.rb">pe_enc_ssl_client_key.rb</a>)
825
+ --pe-enc-ssl-client-cert in order to work. (<a href="../lib/octocatalog-diff/cli/options/pe_enc_ssl_client_key.rb">pe_enc_ssl_client_key.rb</a>)
818
826
  </td>
819
827
  </tr>
820
828
 
@@ -829,7 +837,7 @@ matches the name you are using to connecting. (<a href="../lib/octocatalog-diff/
829
837
  Specify the access token to access the Puppet Enterprise ENC. Refer to
830
838
  https://docs.puppet.com/pe/latest/nc_forming_requests.html#authentication for
831
839
  details on generating and obtaining a token. Use this option to specify the text
832
- of the token. (Use --pe-enc-token-file to read the content of the token from a file.) (<a href="../lib/octocatalog-diff/catalog-diff/cli/options/pe_enc_token.rb">pe_enc_token.rb</a>)
840
+ of the token. (Use --pe-enc-token-file to read the content of the token from a file.) (<a href="../lib/octocatalog-diff/cli/options/pe_enc_token.rb">pe_enc_token.rb</a>)
833
841
  </td>
834
842
  </tr>
835
843
 
@@ -844,7 +852,7 @@ of the token. (Use --pe-enc-token-file to read the content of the token from a f
844
852
  Specify the access token to access the Puppet Enterprise ENC. Refer to
845
853
  https://docs.puppet.com/pe/latest/nc_forming_requests.html#authentication for
846
854
  details on generating and obtaining a token. Use this option if the token is stored
847
- in a file, to read the content of the token from the file. (<a href="../lib/octocatalog-diff/catalog-diff/cli/options/pe_enc_token_file.rb">pe_enc_token_file.rb</a>)
855
+ in a file, to read the content of the token from the file. (<a href="../lib/octocatalog-diff/cli/options/pe_enc_token_file.rb">pe_enc_token_file.rb</a>)
848
856
  </td>
849
857
  </tr>
850
858
 
@@ -859,7 +867,7 @@ in a file, to read the content of the token from the file. (<a href="../lib/octo
859
867
  Specify the URL to the Puppet Enterprise ENC API. By default, the node classifier service
860
868
  listens on port 4433 and all endpoints are relative to the /classifier-api/ path. That means
861
869
  the likely value for this option will be something like:
862
- https://your-pe-console-server:4433/classifier-api (<a href="../lib/octocatalog-diff/catalog-diff/cli/options/pe_enc_url.rb">pe_enc_url.rb</a>)
870
+ https://your-pe-console-server:4433/classifier-api (<a href="../lib/octocatalog-diff/cli/options/pe_enc_url.rb">pe_enc_url.rb</a>)
863
871
  </td>
864
872
  </tr>
865
873
 
@@ -874,7 +882,7 @@ https://your-pe-console-server:4433/classifier-api (<a href="../lib/octocatalog-
874
882
  <td valign=top>
875
883
  Preserve the `environments` directory from the repository when compiling the catalog. Likely
876
884
  requires some combination of `--to-environment`, `--from-environment`, and/or `--create-symlinks`
877
- to work correctly. (<a href="../lib/octocatalog-diff/catalog-diff/cli/options/preserve_environments.rb">preserve_environments.rb</a>)
885
+ to work correctly. (<a href="../lib/octocatalog-diff/cli/options/preserve_environments.rb">preserve_environments.rb</a>)
878
886
  </td>
879
887
  </tr>
880
888
 
@@ -887,7 +895,7 @@ to work correctly. (<a href="../lib/octocatalog-diff/catalog-diff/cli/options/pr
887
895
  </td>
888
896
  <td valign=top>
889
897
  Specify the API version to use for the PuppetDB. The current values supported are '3' or '4', and '4' is
890
- the default. (<a href="../lib/octocatalog-diff/catalog-diff/cli/options/puppetdb_api_version.rb">puppetdb_api_version.rb</a>)
898
+ the default. (<a href="../lib/octocatalog-diff/cli/options/puppetdb_api_version.rb">puppetdb_api_version.rb</a>)
891
899
  </td>
892
900
  </tr>
893
901
 
@@ -901,7 +909,7 @@ the default. (<a href="../lib/octocatalog-diff/catalog-diff/cli/options/puppetdb
901
909
  <td valign=top>
902
910
  Specify the CA certificate for PuppetDB. If specified, this will enable SSL verification
903
911
  that the certificate being presented has been signed by this CA, and that the common name
904
- matches the name you are using to connecting. (<a href="../lib/octocatalog-diff/catalog-diff/cli/options/puppetdb_ssl_ca.rb">puppetdb_ssl_ca.rb</a>)
912
+ matches the name you are using to connecting. (<a href="../lib/octocatalog-diff/cli/options/puppetdb_ssl_ca.rb">puppetdb_ssl_ca.rb</a>)
905
913
  </td>
906
914
  </tr>
907
915
 
@@ -914,7 +922,7 @@ matches the name you are using to connecting. (<a href="../lib/octocatalog-diff/
914
922
  </td>
915
923
  <td valign=top>
916
924
  Specify the client certificate for connecting to PuppetDB. This must be specified along with
917
- --puppetdb-ssl-client-key in order to work. (<a href="../lib/octocatalog-diff/catalog-diff/cli/options/puppetdb_ssl_client_cert.rb">puppetdb_ssl_client_cert.rb</a>)
925
+ --puppetdb-ssl-client-key in order to work. (<a href="../lib/octocatalog-diff/cli/options/puppetdb_ssl_client_cert.rb">puppetdb_ssl_client_cert.rb</a>)
918
926
  </td>
919
927
  </tr>
920
928
 
@@ -927,7 +935,7 @@ matches the name you are using to connecting. (<a href="../lib/octocatalog-diff/
927
935
  </td>
928
936
  <td valign=top>
929
937
  Specify the client key for connecting to PuppetDB. This must be specified along with
930
- --puppetdb-ssl-client-cert in order to work. (<a href="../lib/octocatalog-diff/catalog-diff/cli/options/puppetdb_ssl_client_key.rb">puppetdb_ssl_client_key.rb</a>)
938
+ --puppetdb-ssl-client-cert in order to work. (<a href="../lib/octocatalog-diff/cli/options/puppetdb_ssl_client_key.rb">puppetdb_ssl_client_key.rb</a>)
931
939
  </td>
932
940
  </tr>
933
941
 
@@ -941,7 +949,7 @@ matches the name you are using to connecting. (<a href="../lib/octocatalog-diff/
941
949
  <td valign=top>
942
950
  Specify the password for a PEM or PKCS12 private key on the command line.
943
951
  Note that `--puppetdb-ssl-client-password-file` is slightly more secure because
944
- the text of the password won't appear in the process list. (<a href="../lib/octocatalog-diff/catalog-diff/cli/options/puppetdb_ssl_client_password.rb">puppetdb_ssl_client_password.rb</a>)
952
+ the text of the password won't appear in the process list. (<a href="../lib/octocatalog-diff/cli/options/puppetdb_ssl_client_password.rb">puppetdb_ssl_client_password.rb</a>)
945
953
  </td>
946
954
  </tr>
947
955
 
@@ -953,7 +961,7 @@ the text of the password won't appear in the process list. (<a href="../lib/octo
953
961
  Read password for SSL client key from a file
954
962
  </td>
955
963
  <td valign=top>
956
- Specify the password for a PEM or PKCS12 private key, by reading it from a file. (<a href="../lib/octocatalog-diff/catalog-diff/cli/options/puppetdb_ssl_client_password_file.rb">puppetdb_ssl_client_password_file.rb</a>)
964
+ Specify the password for a PEM or PKCS12 private key, by reading it from a file. (<a href="../lib/octocatalog-diff/cli/options/puppetdb_ssl_client_password_file.rb">puppetdb_ssl_client_password_file.rb</a>)
957
965
  </td>
958
966
  </tr>
959
967
 
@@ -965,7 +973,7 @@ the text of the password won't appear in the process list. (<a href="../lib/octo
965
973
  PuppetDB base URL
966
974
  </td>
967
975
  <td valign=top>
968
- Specify the base URL for PuppetDB. This will generally look like https://puppetdb.yourdomain.com:8081 (<a href="../lib/octocatalog-diff/catalog-diff/cli/options/puppetdb_url.rb">puppetdb_url.rb</a>)
976
+ Specify the base URL for PuppetDB. This will generally look like https://puppetdb.yourdomain.com:8081 (<a href="../lib/octocatalog-diff/cli/options/puppetdb_url.rb">puppetdb_url.rb</a>)
969
977
  </td>
970
978
  </tr>
971
979
 
@@ -979,7 +987,7 @@ the text of the password won't appear in the process list. (<a href="../lib/octo
979
987
  Quiet (no status messages except errors)
980
988
  </td>
981
989
  <td valign=top>
982
- Quiet option (<a href="../lib/octocatalog-diff/catalog-diff/cli/options/quiet.rb">quiet.rb</a>)
990
+ Quiet option (<a href="../lib/octocatalog-diff/cli/options/quiet.rb">quiet.rb</a>)
983
991
  </td>
984
992
  </tr>
985
993
 
@@ -992,7 +1000,7 @@ the text of the password won't appear in the process list. (<a href="../lib/octo
992
1000
  </td>
993
1001
  <td valign=top>
994
1002
  Transient errors can cause catalog compilation problems. This adds an option to retry
995
- a failed catalog multiple times before kicking out an error message. (<a href="../lib/octocatalog-diff/catalog-diff/cli/options/retry_failed_catalog.rb">retry_failed_catalog.rb</a>)
1003
+ a failed catalog multiple times before kicking out an error message. (<a href="../lib/octocatalog-diff/cli/options/retry_failed_catalog.rb">retry_failed_catalog.rb</a>)
996
1004
  </td>
997
1005
  </tr>
998
1006
 
@@ -1006,7 +1014,7 @@ a failed catalog multiple times before kicking out an error message. (<a href=".
1006
1014
  <td valign=top>
1007
1015
  By specifying a directory path here, you are explicitly giving permission to the program
1008
1016
  to delete it if it believes it needs to be created (e.g., if the SHA has changed of the
1009
- cached directory). (<a href="../lib/octocatalog-diff/catalog-diff/cli/options/safe_to_delete_cached_master_dir.rb">safe_to_delete_cached_master_dir.rb</a>)
1017
+ cached directory). (<a href="../lib/octocatalog-diff/cli/options/safe_to_delete_cached_master_dir.rb">safe_to_delete_cached_master_dir.rb</a>)
1010
1018
  </td>
1011
1019
  </tr>
1012
1020
 
@@ -1019,7 +1027,7 @@ cached directory). (<a href="../lib/octocatalog-diff/catalog-diff/cli/options/sa
1019
1027
  Enable integration with puppetdb for collected resources
1020
1028
  </td>
1021
1029
  <td valign=top>
1022
- Set storeconfigs (integration with PuppetDB for collected resources) (<a href="../lib/octocatalog-diff/catalog-diff/cli/options/storeconfigs.rb">storeconfigs.rb</a>)
1030
+ Set storeconfigs (integration with PuppetDB for collected resources) (<a href="../lib/octocatalog-diff/cli/options/storeconfigs.rb">storeconfigs.rb</a>)
1023
1031
  </td>
1024
1032
  </tr>
1025
1033
 
@@ -1034,7 +1042,8 @@ cached directory). (<a href="../lib/octocatalog-diff/catalog-diff/cli/options/sa
1034
1042
  <td valign=top>
1035
1043
  If enabled, this option will suppress changes to certain attributes of a file, if the
1036
1044
  file is specified to be 'absent' in the target catalog. Suppressed changes in this case
1037
- include user, group, mode, and content, because a removed file has none of those. (<a href="../lib/octocatalog-diff/catalog-diff/cli/options/suppress_absent_file_details.rb">suppress_absent_file_details.rb</a>)
1045
+ include user, group, mode, and content, because a removed file has none of those.
1046
+ <i>This option is DEPRECATED; please use <code>--filters AbsentFile</code> instead.</i> (<a href="../lib/octocatalog-diff/cli/options/suppress_absent_file_details.rb">suppress_absent_file_details.rb</a>)
1038
1047
  </td>
1039
1048
  </tr>
1040
1049
 
@@ -1048,7 +1057,7 @@ include user, group, mode, and content, because a removed file has none of those
1048
1057
  </td>
1049
1058
  <td valign=top>
1050
1059
  Set the 'from' and 'to' branches, which is used to compile catalogs. A branch of '.' means to use
1051
- the current contents of the base code directory without any git checkouts. (<a href="../lib/octocatalog-diff/catalog-diff/cli/options/to_from_branch.rb">to_from_branch.rb</a>)
1060
+ the current contents of the base code directory without any git checkouts. (<a href="../lib/octocatalog-diff/cli/options/to_from_branch.rb">to_from_branch.rb</a>)
1052
1061
  </td>
1053
1062
  </tr>
1054
1063
 
@@ -1061,7 +1070,7 @@ the current contents of the base code directory without any git checkouts. (<a h
1061
1070
  </td>
1062
1071
  <td valign=top>
1063
1072
  If pre-compiled catalogs are available, these can be used to short-circuit the build process.
1064
- These files must exist and be in Puppet catalog format. (<a href="../lib/octocatalog-diff/catalog-diff/cli/options/existing_catalogs.rb">existing_catalogs.rb</a>)
1073
+ These files must exist and be in Puppet catalog format. (<a href="../lib/octocatalog-diff/cli/options/existing_catalogs.rb">existing_catalogs.rb</a>)
1065
1074
  </td>
1066
1075
  </tr>
1067
1076
 
@@ -1073,7 +1082,7 @@ These files must exist and be in Puppet catalog format. (<a href="../lib/octocat
1073
1082
  Path to ENC script (for the to catalog only)
1074
1083
  </td>
1075
1084
  <td valign=top>
1076
- Path to external node classifier, relative to the base directory of the checkout. (<a href="../lib/octocatalog-diff/catalog-diff/cli/options/enc.rb">enc.rb</a>)
1085
+ Path to external node classifier, relative to the base directory of the checkout. (<a href="../lib/octocatalog-diff/cli/options/enc.rb">enc.rb</a>)
1077
1086
  </td>
1078
1087
  </tr>
1079
1088
 
@@ -1088,8 +1097,16 @@ These files must exist and be in Puppet catalog format. (<a href="../lib/octocat
1088
1097
  <td valign=top>
1089
1098
  Confirm that each `before`, `require`, `subscribe`, and/or `notify` points to a valid
1090
1099
  resource in the catalog. This value should be specified as an array of which of these
1091
- parameters are to be checked. (<a href="../lib/octocatalog-diff/catalog-diff/cli/options/validate_references.rb">validate_references.rb</a>)
1100
+ parameters are to be checked. (<a href="../lib/octocatalog-diff/cli/options/validate_references.rb">validate_references.rb</a>)
1092
1101
  </td>
1093
1102
  </tr>
1094
1103
 
1095
- </table>
1104
+ </table>
1105
+
1106
+ ## Using these options in API calls
1107
+
1108
+ Most of these options can also be used when making calls to the [API](/doc/dev/api.md).
1109
+
1110
+ Generally, parameters for the API are named corresponding to the names of the command line parameters, with dashes (`-`) converted to underscores (`_`). For example, the command line option `--hiera-config` is passed to the API as the symbol `:hiera_config`.
1111
+
1112
+ Each of the options above has a link to the source file where it is declared, should you wish to review the specific parameter names and data structures that are being set.