Skip to content

Commit a05cb3f

Browse files
authored
v4.0.0 (#85)
* Update version parameter name in simple-cluster * Remove uid param from publish module * Support 'top' and 'bottom' in position param * Add state param * Update galaxy.yml * Split arguments that can accept either a String or list of objects to two * Split arguments that can accept either a String or list of objects to two in administrator module * v4.0.0
1 parent 8cad69c commit a05cb3f

File tree

6 files changed

+360
-79
lines changed

6 files changed

+360
-79
lines changed

CHANGELOG.rst

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,50 @@ Check_Point.Mgmt Release Notes
55
.. contents:: Topics
66

77

8+
v4.0.0
9+
======
10+
11+
Release Summary
12+
---------------
13+
14+
This is release 4.0.0 of ``check_point.mgmt``, released on 2022-09-14.
15+
16+
Major Changes
17+
-------------
18+
19+
- plugins/httpapi/checkpoint - Support for Smart-1 Cloud with new variable 'ansible_cloud_mgmt_id'
20+
21+
Breaking Changes / Porting Guide
22+
--------------------------------
23+
24+
- cp_mgmt_access_role - the 'machines' parameter now accepts a single str and a new parameter 'machines_list' of type dict has been added. the 'users' parameter now accepts a single str and a new parameter 'users_list' of type dict has been added.
25+
- cp_mgmt_access_rule - the 'vpn' parameter now accepts a single str and a new parameter 'vpn_list' of type dict has been added. the 'position_by_rule' parameter has been changed to 'relative_position' with support of positioning above/below a section (and not just a rule). the 'relative_position' parameter has also 'top' and 'bottom' suboptions which allows positioning a rule at the top and bottom of a section respectively. a new parameter 'search_entire_rulebase' has been added to allow the relative positioning to be unlimited (was previously limited to 50 rules)
26+
- cp_mgmt_administrator - the 'permissions_profile' parameter now accepts a single str and a new parameter 'permissions_profile_list' of type dict has been added.
27+
- cp_mgmt_publish - the 'uid' parameter has been removed.
28+
29+
Bugfixes
30+
--------
31+
32+
- cp_mgmt_access_rule - support for relative positioning for rulebase with more than 50 rules (https://github.com/CheckPointSW/CheckPointAnsibleMgmtCollection/issues/69)
33+
- cp_mgmt_administrator - specifying the administartor's permissions profile now works for both SMC and MDS (https://github.com/CheckPointSW/CheckPointAnsibleMgmtCollection/issues/83)
34+
- meta/runtime.yml - update value of minimum ansible version and remove redirect (https://github.com/CheckPointSW/CheckPointAnsibleMgmtCollection/issues/84)
35+
36+
v3.2.0
37+
======
38+
39+
Release Summary
40+
---------------
41+
42+
This is release 3.2.0 of ``check_point.mgmt``, released on 2022-08-09.
43+
44+
v3.1.0
45+
======
46+
47+
Release Summary
48+
---------------
49+
50+
This is release 3.1.0 of ``check_point.mgmt``, released on 2022-07-04.
51+
852
v3.0.0
953
======
1054

galaxy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ namespace: check_point
99
name: mgmt
1010

1111
# The version of the collection. Must be compatible with semantic versioning
12-
version: 3.2.0
12+
version: 4.0.0
1313

1414
# The path to the Markdown (.md) readme file. This path is relative to the root of the collection
1515
readme: README.md

plugins/httpapi/checkpoint.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,12 @@
2727
- Login with api-key instead of user & password
2828
vars:
2929
- name: ansible_api_key
30+
cloud_mgmt_id:
31+
type: str
32+
description:
33+
- The Cloud Management ID
34+
vars:
35+
- name: ansible_cloud_mgmt_id
3036
"""
3137

3238
import json
@@ -79,7 +85,9 @@ def get_session_uid(self):
7985

8086
def send_request(self, path, body_params):
8187
data = json.dumps(body_params) if body_params else '{}'
82-
88+
cp_cloud_mgmt_id = self.get_option('cloud_mgmt_id')
89+
if cp_cloud_mgmt_id:
90+
path = '/' + cp_cloud_mgmt_id + path
8391
try:
8492
self._display_request()
8593
response, response_data = self.connection.send(path, data, method='POST', headers=BASE_HEADERS)

0 commit comments

Comments
 (0)