Skip to content

Commit

Permalink
Release v2.62.3
Browse files Browse the repository at this point in the history
  • Loading branch information
ghoneycutt committed Feb 13, 2019
1 parent 00c1027 commit 36e074e
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 109 deletions.
26 changes: 25 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,31 @@
# Change Log

## [v2.62.2](https://github.com/sensu/sensu-puppet/tree/v2.62.2)
## [v2.62.3](https://github.com/sensu/sensu-puppet/tree/v2.62.3)

[Full Changelog](https://github.com/sensu/sensu-puppet/compare/v2.62.2...v2.62.3)

**Implemented enhancements:**

- Add support for Windows 10 [\#822](https://github.com/sensu/sensu-puppet/issues/822)

**Fixed bugs:**

- TripleO and Sensu without ssl, ssl still enabled in rabbitmq.json [\#1050](https://github.com/sensu/sensu-puppet/issues/1050)
- Vagrant fails for win2012r2-client-chocolatey [\#893](https://github.com/sensu/sensu-puppet/issues/893)
- Remove hardcoded /etc/sensu [\#1071](https://github.com/sensu/sensu-puppet/pull/1071) ([treydock](https://github.com/treydock))

**Closed issues:**

- Illegal method definition of method 'validate\_keys' on line 8' in legacy function. [\#1055](https://github.com/sensu/sensu-puppet/issues/1055)

**Merged pull requests:**

- \(GH-893\) Remove Vagrant box for windows with chocolatey provider [\#1073](https://github.com/sensu/sensu-puppet/pull/1073) ([ghoneycutt](https://github.com/ghoneycutt))
- Puppet v6 now uses Ruby v2.5.3 [\#1060](https://github.com/sensu/sensu-puppet/pull/1060) ([ghoneycutt](https://github.com/ghoneycutt))
- Convert sensu\_sorted\_json legacy function to new Ruby function [\#1056](https://github.com/sensu/sensu-puppet/pull/1056) ([treydock](https://github.com/treydock))
- Do not enable rabbitmq ssl for empty cert or key [\#1053](https://github.com/sensu/sensu-puppet/pull/1053) ([treydock](https://github.com/treydock))

## [v2.62.2](https://github.com/sensu/sensu-puppet/tree/v2.62.2) (2019-01-19)
[Full Changelog](https://github.com/sensu/sensu-puppet/compare/v2.62.1...v2.62.2)

**Fixed bugs:**
Expand Down
122 changes: 15 additions & 107 deletions REFERENCE.md
Original file line number Diff line number Diff line change
Expand Up @@ -3699,121 +3699,29 @@ Default value: /etc/sensu/conf.d/

### sensu_sorted_json

Type: Ruby 3.x API
Type: Ruby 4.x API

This function takes unsorted hash and outputs JSON object making sure the keys are sorted.
Optionally you can pass a boolean as the second parameter, which controls if
the output is pretty formatted.

*Examples:*

-------------------
-- UNSORTED HASH --
-------------------
unsorted_hash = {
'client_addr' => '127.0.0.1',
'bind_addr' => '192.168.34.56',
'start_join' => [
'192.168.34.60',
'192.168.34.61',
'192.168.34.62',
],
'ports' => {
'rpc' => 8567,
'https' => 8500,
'http' => -1,
},
}

-----------------
-- SORTED JSON --
-----------------

sorted_json(unsorted_hash)

{"bind_addr":"192.168.34.56","client_addr":"127.0.0.1",
"ports":{"http":-1,"https":8500,"rpc":8567},
"start_join":["192.168.34.60","192.168.34.61","192.168.34.62"]}

------------------------
-- PRETTY SORTED JSON --
------------------------
Params: data <hash>, pretty <true|false>.

sorted_json(unsorted_hash, true)

{
"bind_addr": "192.168.34.56",
"client_addr": "127.0.0.1",
"ports": {
"http": -1,
"https": 8500,
"rpc": 8567
},
"start_join": [
"192.168.34.60",
"192.168.34.61",
"192.168.34.62"
]
}

#### `sensu_sorted_json()`
#### `sensu_sorted_json(Hash $hash, Optional[Boolean] $pretty)`

This function takes unsorted hash and outputs JSON object making sure the keys are sorted.
Optionally you can pass a boolean as the second parameter, which controls if
the output is pretty formatted.

*Examples:*

-------------------
-- UNSORTED HASH --
-------------------
unsorted_hash = {
'client_addr' => '127.0.0.1',
'bind_addr' => '192.168.34.56',
'start_join' => [
'192.168.34.60',
'192.168.34.61',
'192.168.34.62',
],
'ports' => {
'rpc' => 8567,
'https' => 8500,
'http' => -1,
},
}

-----------------
-- SORTED JSON --
-----------------

sorted_json(unsorted_hash)

{"bind_addr":"192.168.34.56","client_addr":"127.0.0.1",
"ports":{"http":-1,"https":8500,"rpc":8567},
"start_join":["192.168.34.60","192.168.34.61","192.168.34.62"]}

------------------------
-- PRETTY SORTED JSON --
------------------------
Params: data <hash>, pretty <true|false>.

sorted_json(unsorted_hash, true)

{
"bind_addr": "192.168.34.56",
"client_addr": "127.0.0.1",
"ports": {
"http": -1,
"https": 8500,
"rpc": 8567
},
"start_join": [
"192.168.34.60",
"192.168.34.61",
"192.168.34.62"
]
}

Returns: `Any`
Returns: `String` Returns a JSON string

##### `hash`

Data type: `Hash`

Hash to be sorted

##### `pretty`

Data type: `Optional[Boolean]`

Boolean that determines if output should be pretty format

2 changes: 1 addition & 1 deletion metadata.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "sensu-sensu",
"version": "2.62.2",
"version": "2.62.3",
"author": "sensu",
"summary": "A module to install the Sensu monitoring framework",
"license": "MIT",
Expand Down

0 comments on commit 36e074e

Please sign in to comment.