You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: doc/CHANGELOG.md
+10
Original file line number
Diff line number
Diff line change
@@ -8,6 +8,16 @@
8
8
</tr>
9
9
</thead><tbody>
10
10
11
+
<trvalign=top>
12
+
<td>1.5.2</td>
13
+
<td>2017-12-19</td>
14
+
<td>
15
+
<li><ahref="https://github.com/github/octocatalog-diff/pull/169">#169</a>: (Enhancement) Puppet Enterprise RBAC token to authenticate to PuppetDB</li>
16
+
<li><ahref="https://github.com/github/octocatalog-diff/pull/170">#170</a>: (Enhancement) Filter to treat an object the same as a single array containing that object</li>
17
+
<li><ahref="https://github.com/github/octocatalog-diff/pull/165">#165</a>: (Bug Fix) Override of fact file via CLI now has precedence over value set in configuration file</li>
Copy file name to clipboardExpand all lines: doc/advanced-filter.md
+23
Original file line number
Diff line number
Diff line change
@@ -11,6 +11,7 @@ Here is the list of available filters and an explanation of each:
11
11
12
12
-[Absent File](/doc/advanced-filter.md#absent-file) - Ignore parameter changes of a file that is declared to be absent
13
13
-[JSON](/doc/advanced-filter.md#json) - Ignore whitespace differences if JSON parses to the same object
14
+
-[SingleItemArray](/doc/advanced-filter.md#SingleItemArray) - Ignore differences between object and array containing only that object
14
15
-[YAML](/doc/advanced-filter.md#yaml) - Ignore whitespace/comment differences if YAML parses to the same object
15
16
16
17
## Absent File
@@ -84,6 +85,28 @@ If a file resource has extension `.json` and a difference in its content is obse
84
85
85
86
This allows you to ignore changes in whitespace, comments, etc., that are not meaningful to a machine parsing the file. Note that changes to files may still trigger Puppet to restart services even though these changes are not displayed in the octocatalog-diff output.
86
87
88
+
## Single Item Array
89
+
90
+
#### Usage
91
+
92
+
```
93
+
--filters SingleItemArray
94
+
```
95
+
96
+
#### Description
97
+
98
+
When enabling the future parser or upgrading between certain versions of Puppet, the internal structure of the catalog for certain parameters can change as shown in the following example:
99
+
100
+
```
101
+
Old: { "notify": "Service[foo]" }
102
+
New: { "notify": [ "Service[foo]" ] }
103
+
```
104
+
105
+
This filter will suppress differences for the value of a parameter when:
106
+
107
+
- The value in one catalog is an object, AND
108
+
- The value in the other catalog is an array containing *only* that same object
Copy file name to clipboardExpand all lines: doc/configuration-puppetdb.md
+3
Original file line number
Diff line number
Diff line change
@@ -36,6 +36,7 @@ The following settings can be used in a [configuration file](/doc/configuration.
36
36
|`settings[:puppetdb_ssl_client_key]`| TEXT of the private key of the client SSL keypair used to authenticate to PuppetDB. Note: This variable is not set to a file path, which means you will likely want to use means you will likely want to use `File.read(...)` if you are configuring this to be read from a file. |
37
37
|`settings[:puppetdb_ssl_client_pem]`| Concatenation of the text of `puppetdb_ssl_client_key` and `puppetdb_ssl_client_cert` as previously described. This is a good alternative if your certificate chain is complex and it's easier just to put everything in a single place. Note: this option is second in precedence; if `settings[:puppetdb_ssl_client_cert]` and `settings[:puppetdb_ssl_client_key]` are both set, this will be ignored. |
38
38
|`settings[:puppetdb_ssl_client_password]`| Plain text string containing the password to unlock the private key. For keys generated by the Puppet Master CA, this is not required and should be left undefined. |
39
+
|`settings[:puppetdb_token]`| TEXT containing the PE RBAC token used to authenticate to PuppetDB. Note: This variable is not set to a file path, which means you will likely want to use `File.read(...)` if you are configuring this to be read from a file. |
39
40
40
41
## Supplying necessary information via the command line
41
42
@@ -48,6 +49,8 @@ The following arguments can be used on the command line.
48
49
| --puppetdb-ssl-client-cert FILENAME | Path to the certificate of the client SSL keypair. |
49
50
| --puppetdb-ssl-client-key FILENAME | Path to the private key of the client SSL keypair. |
50
51
| --puppetdb-ssl-client-password PASSWORD_STRING | Plain text string containing the password to unlock the private key. For keys generated by the Puppet Master CA, this is not required. |
52
+
| --puppetdb-token STRING | String containing the PE RBAC token used to authenticate to PuppetDB. |
53
+
| --puppetdb-token-file FILENAME | Path to the PE RBAC token file used to authenticate to PuppetDB. |
51
54
52
55
## Supplying necessary information via the environment
for details on generating and obtaining a token. Use this option to specify the text
1390
+
of the token. (Use --puppetdb-token-file to read the content of the token from a file.) (<ahref="../lib/octocatalog-diff/cli/options/puppetdb_token.rb">puppetdb_token.rb</a>)
for details on generating and obtaining a token. Use this option to specify the text
1405
+
in a file, to read the content of the token from the file. (<ahref="../lib/octocatalog-diff/cli/options/puppetdb_token_file.rb">puppetdb_token_file.rb</a>)
0 commit comments