Skip to content

Commit 486b210

Browse files
authored
Add new parameters to lsm modules and added new modules (#165)
* Added missing fields for lsm_gateway and lsm_gateway Added new modules user and user facts * updated files
1 parent c2089f7 commit 486b210

File tree

7 files changed

+687
-17
lines changed

7 files changed

+687
-17
lines changed

CHANGELOG.rst

+20
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,26 @@ Check_Point.Mgmt Release Notes
44

55
.. contents:: Topics
66

7+
v6.3.0
8+
======
9+
10+
Release Summary
11+
---------------
12+
13+
This is release 6.3.0 of ``check_point.mgmt``, released on 2025-01-23.
14+
15+
Minor Changes
16+
-------------
17+
18+
- check_point.mgmt.cp_mgmt_lsm_cluster - support additional parameters (dynamic-objects, tags and topology)
19+
- check_point.mgmt.cp_mgmt_lsm_gateway - support additional parameters (device_id, dynamic-objects, tags and topology)
20+
21+
New Modules
22+
-----------
23+
24+
- check_point.mgmt.cp_mgmt_user - Manages user objects on Checkpoint over Web Services API
25+
- check_point.mgmt.cp_mgmt_user_facts - Get user objects facts on Checkpoint over Web Services API
26+
727
v6.2.1
828
======
929

changelogs/changelog.yaml

+29-12
Original file line numberDiff line numberDiff line change
@@ -409,21 +409,21 @@ releases:
409409
- description: Workflow feature - Approve and Publish the session.
410410
name: cp_mgmt_approve_session
411411
namespace: ""
412-
- description: >
412+
- description:
413413
Check if a target can reach or parse a network feed;
414414
can work with an existing feed object or with a new one
415415
(by providing all relevant feed parameters).
416416
name: cp_mgmt_check_network_feed
417417
namespace: ""
418-
- description: >
418+
- description:
419419
Check if a target can reach or parse a threat IOC feed; can work with an existing feed
420420
object or with a new one (by providing all relevant feed parameters).
421421
name: cp_mgmt_check_threat_ioc_feed
422422
namespace: ""
423423
- description: Retrieve all existing cluster members in domain.
424424
name: cp_mgmt_cluster_members_facts
425425
namespace: ""
426-
- description: >
426+
- description:
427427
Securely connect the Management Server to Check Point's Infinity Portal.
428428
This is a preliminary operation so that the management server can use
429429
various Check Point cloud-based security services hosted in the Infinity Portal.
@@ -453,12 +453,12 @@ releases:
453453
- description: Get idp-to-domain-assignment objects facts on Checkpoint over Web Services API
454454
name: cp_mgmt_idp_to_domain_assignment_facts
455455
namespace: ""
456-
- description: >
456+
- description:
457457
Executes the lsm-install-policy on a given list of targets. Install the LSM policy
458458
that defined on the attached LSM profile on the targets devices.
459459
name: cp_mgmt_install_lsm_policy
460460
namespace: ""
461-
- description: >
461+
- description:
462462
Executes the lsm-install-settings on a given list of targets. Install the provisioning
463463
settings that defined on the object on the targets devices.
464464
name: cp_mgmt_install_lsm_settings
@@ -505,7 +505,7 @@ releases:
505505
- description: Get repository-script objects facts on Checkpoint over Web Services API
506506
name: cp_mgmt_repository_script_facts
507507
namespace: ""
508-
- description: >
508+
- description:
509509
Reset Secure Internal Communication (SIC). To complete the reset operation need also
510510
to reset the device in the Check Point Configuration Tool (by running cpconfig in Clish or Expert mode).
511511
Communication will not be possible until you reset and re-initialize the device properly.
@@ -517,7 +517,7 @@ releases:
517517
- description: Set default Identity Provider assignment to be use for Management server administrator access.
518518
name: cp_mgmt_set_idp_default_assignment
519519
namespace: ""
520-
- description: >
520+
- description:
521521
Set Identity Provider assignment to domain, to allow administrator login to that domain using
522522
that identity provider, if there is no Identity Provider assigned to the domain the 'idp-default-assignment' will be used.
523523
This command only available for Multi-Domain server.
@@ -535,7 +535,7 @@ releases:
535535
- description: Retrieve default Identity Provider assignment that used for Management server administrator access.
536536
name: cp_mgmt_show_idp_default_assignment
537537
namespace: ""
538-
- description: >
538+
- description:
539539
Shows the status of all processes in the current machine (Multi-Domain Server and all Domain Management / Log Servers).
540540
This command is available only on Multi-Domain Server.
541541
name: cp_mgmt_show_servers_and_processes
@@ -558,7 +558,7 @@ releases:
558558
- description: Workflow feature - Submit the session for approval.
559559
name: cp_mgmt_submit_session
560560
namespace: ""
561-
- description: >
561+
- description:
562562
Test SIC Status reflects the state of the gateway after it has received the certificate issued by the ICA.
563563
If the SIC status is Unknown then there is no connection between the gateway and the Security Management Server.
564564
If the SIC status is No Communication, an error message will appear. It may contain specific instructions on how to fix the situation.
@@ -656,7 +656,7 @@ releases:
656656
- description: Get dynamic-global-network-object objects facts on Checkpoint over Web Services API
657657
name: cp_mgmt_dynamic_global_network_object_facts
658658
namespace: ""
659-
- description: >
659+
- description:
660660
Export the primary Security Management Server database or the primary Multi-Domain Server database or the
661661
single Domain database and the applicable Check Point configuration.
662662
name: cp_mgmt_export_management
@@ -688,7 +688,7 @@ releases:
688688
- description: Get https-layer objects facts on Checkpoint over Web Services API
689689
name: cp_mgmt_https_layer_facts
690690
namespace: ""
691-
- description: >
691+
- description:
692692
Import the primary Security Management Server database or the primary Multi-Domain Server database or the single Domain
693693
database and the applicable Check Point configuration.
694694
name: cp_mgmt_import_management
@@ -1264,5 +1264,22 @@ releases:
12641264
release_summary: This is release 6.2.1 of ``check_point.mgmt``, released on
12651265
2024-08-28.
12661266
fragments:
1267-
- 6.2.1.yml
1267+
- 6.2.1.yml
12681268
release_date: '2024-08-28'
1269+
6.3.0:
1270+
changes:
1271+
minor_changes:
1272+
- check_point.mgmt.cp_mgmt_lsm_cluster - support additional parameters (dynamic-objects, tags and topology)
1273+
- check_point.mgmt.cp_mgmt_lsm_gateway - support additional parameters (device_id, dynamic-objects, tags and topology)
1274+
release_summary: This is release 6.3.0 of ``check_point.mgmt``, released on
1275+
2025-01-23.
1276+
fragments:
1277+
- 6.3.0.yml
1278+
modules:
1279+
- description: Manages user objects on Checkpoint over Web Services API
1280+
name: cp_mgmt_user
1281+
namespace: ''
1282+
- description: Get user objects facts on Checkpoint over Web Services API
1283+
name: cp_mgmt_user_facts
1284+
namespace: ''
1285+
release_date: '2025-01-03'

galaxy.yml

+5-5
Original file line numberDiff line numberDiff line change
@@ -9,17 +9,17 @@ namespace: check_point
99
name: mgmt
1010

1111
# The version of the collection. Must be compatible with semantic versioning
12-
version: 6.2.1
12+
version: 6.3.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
1616

1717
# A list of the collection's content authors. Can be just the name or in the format 'Full Name <email> (url)
1818
# @nicks:irc/im.site#channel'
1919
authors:
20-
- Or Soffer <orso@checkpoint.com>
21-
- Shiran Golzar <shirango@checkpoint.com>
22-
- Eden Brillant <edenbr@checkpoint.com>
20+
- Shiran Golzar <shirango@checkpoint.com>
21+
- Eden Brillant <edenbr@checkpoint.com>
22+
- Dor Berenstein <dorbe@checkpoint.com>
2323

2424

2525
### OPTIONAL but strongly recommended
@@ -30,7 +30,7 @@ description: Check Point collection for the Management Server
3030
# Either a single license or a list of licenses for content inside of a collection. Ansible Galaxy currently only
3131
# accepts L(SPDX,https://spdx.org/licenses/) licenses. This key is mutually exclusive with 'license_file'
3232
license:
33-
- GPL-2.0-or-later
33+
- GPL-2.0-or-later
3434

3535
# The path to the license file for the collection. This path is relative to the root of the collection. This key is
3636
# mutually exclusive with 'license'

plugins/modules/cp_mgmt_lsm_cluster.py

+95
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,40 @@
5454
- LSM profile.
5555
type: str
5656
required: True
57+
dynamic_objects:
58+
description:
59+
- Dynamic Objects.
60+
type: list
61+
elements: dict
62+
version_added: "6.3.0"
63+
suboptions:
64+
name:
65+
description:
66+
- Object name. Must be unique in the domain.
67+
type: str
68+
resolved_ip_addresses:
69+
description:
70+
- Single IP-address or a range of addresses.
71+
type: list
72+
elements: dict
73+
suboptions:
74+
ipv4_address:
75+
description:
76+
- IPv4 Address.
77+
type: str
78+
ipv4_address_range:
79+
description:
80+
- IPv4 Address range.
81+
type: dict
82+
suboptions:
83+
from_ipv4_address:
84+
description:
85+
- First IPv4 address of the IP address range.
86+
type: str
87+
to_ipv4_address:
88+
description:
89+
- Last IPv4 address of the IP address range.
90+
type: str
5791
interfaces:
5892
description:
5993
- Interfaces.
@@ -128,6 +162,37 @@
128162
description:
129163
- Comments string.
130164
type: str
165+
topology:
166+
description:
167+
- Topology.
168+
type: dict
169+
version_added: "6.3.0"
170+
suboptions:
171+
manual_vpn_domain:
172+
description:
173+
- A list of IP-addresses ranges, defined the VPN community network.
174+
This field is relevant only when 'manual' option of vpn-domain is checked.
175+
type: list
176+
elements: dict
177+
suboptions:
178+
comments:
179+
description:
180+
- Comments string.
181+
type: str
182+
from_ipv4_address:
183+
description:
184+
- First IPv4 address of the IP address range.
185+
type: str
186+
to_ipv4_address:
187+
description:
188+
- Last IPv4 address of the IP address range.
189+
type: str
190+
vpn_domain:
191+
description:
192+
- VPN Domain type. 'external-interfaces-only' is relevant only for Gaia devices.
193+
'hide-behind-gateway-external-ip-address' is relevant only for SMB devices.
194+
type: str
195+
choices: ['not-defined', 'external-ip-addresses-only', 'hide-behind-gateway-external-ip-address', 'all-ip-addresses-behind-the-gateway', 'manual']
131196
color:
132197
description:
133198
- Color of the object. Should be one of existing colors.
@@ -145,6 +210,12 @@
145210
representation of the object.
146211
type: str
147212
choices: ['uid', 'standard', 'full']
213+
tags:
214+
description:
215+
- Collection of tag identifiers.
216+
type: list
217+
elements: str
218+
version_added: "6.3.0"
148219
ignore_warnings:
149220
description:
150221
- Apply changes ignoring warnings.
@@ -235,6 +306,16 @@ def main():
235306
name_prefix=dict(type="str"),
236307
name_suffix=dict(type="str"),
237308
security_profile=dict(type="str", required=True),
309+
dynamic_objects=dict(type='list', elements="dict", options=dict(
310+
name=dict(type='str'),
311+
resolved_ip_addresses=dict(type='list', elements="dict", options=dict(
312+
ipv4_address=dict(type='str'),
313+
ipv4_address_range=dict(type='dict', options=dict(
314+
from_ipv4_address=dict(type='str'),
315+
to_ipv4_address=dict(type='str')
316+
))
317+
))
318+
)),
238319
interfaces=dict(
239320
type="list",
240321
elements="dict",
@@ -308,6 +389,19 @@ def main():
308389
comments=dict(type="str"),
309390
),
310391
),
392+
topology=dict(type='dict', options=dict(
393+
manual_vpn_domain=dict(type='list', elements="dict", options=dict(
394+
comments=dict(type='str'),
395+
from_ipv4_address=dict(type='str'),
396+
to_ipv4_address=dict(type='str')
397+
)),
398+
vpn_domain=dict(type='str',
399+
choices=['not-defined',
400+
'external-ip-addresses-only',
401+
'hide-behind-gateway-external-ip-address',
402+
'all-ip-addresses-behind-the-gateway',
403+
'manual'])
404+
)),
311405
color=dict(
312406
type="str",
313407
choices=[
@@ -351,6 +445,7 @@ def main():
351445
),
352446
comments=dict(type="str"),
353447
details_level=dict(type="str", choices=["uid", "standard", "full"]),
448+
tags=dict(type='list', elements="str"),
354449
ignore_warnings=dict(type="bool"),
355450
ignore_errors=dict(type="bool"),
356451
)

0 commit comments

Comments
 (0)