Skip to content

Commit 2a279de

Browse files
authored
Merge pull request #17 from chkp-ameera/master
CheckPoint GAIA Ansible v3.0.0 Release
2 parents 2e4f5d8 + 3985c80 commit 2a279de

File tree

76 files changed

+251
-193
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

76 files changed

+251
-193
lines changed

.github/workflows/ansible-test.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,9 @@ jobs:
2929
ansible:
3030
# It's important that Sanity is tested against all stable-X.Y branches
3131
# Testing against `devel` may fail as new tests are added.
32-
# - stable-2.9 # Only if your collection supports Ansible 2.9
33-
- stable-2.10
3432
- stable-2.11
3533
- stable-2.12
34+
- stable-2.13
3635
- devel
3736
runs-on: ubuntu-latest
3837
steps:
@@ -72,4 +71,3 @@ jobs:
7271
- uses: codecov/codecov-action@v3
7372
with:
7473
fail_ci_if_error: false
75-

.github/workflows/sourceguard.yml

Lines changed: 0 additions & 13 deletions
This file was deleted.

galaxy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ description: Check Point collection for managing a Check Point machine configura
2828
# Either a single license or a list of licenses for content inside of a collection. Ansible Galaxy currently only
2929
# accepts L(SPDX,https://spdx.org/licenses/) licenses. This key is mutually exclusive with 'license_file'
3030
license:
31-
- GPL-2.0-or-later
31+
- GPL-3.0-or-later
3232

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

plugins/modules/cp_gaia_allowed_clients.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@
2929
module: cp_gaia_allowed_clients
3030
short_description: Modify the configuration of allowed clients.
3131
version_added: '3.0.0'
32-
notes: Supports C(check_mode).
3332
requirements: ['supported starting from gaia_api >= 1.6']
3433
options:
3534
allowed_networks:
@@ -56,12 +55,14 @@
5655
description: Allowed all hosts.
5756
required: False
5857
type: bool
58+
notes:
59+
- Supports C(check_mode).
5960
'''
6061

6162

6263
EXAMPLES = '''
6364
- name: Set allowed clients
64-
M(check_point.gaia.cp_gaia_allowed_clients):
65+
check_point.gaia.cp_gaia_allowed_clients:
6566
allowed_networks: [{"subnet": "44.4.44.0", "mask_length": 24}, {"subnet": "55.4.55.0", "mask_length": 24}]
6667
'''
6768

plugins/modules/cp_gaia_allowed_clients_facts.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,15 +29,16 @@
2929
module: cp_gaia_allowed_clients_facts
3030
short_description: Show the configuration of allowed clients.
3131
version_added: '3.0.0'
32-
notes: Supports C(check_mode).
32+
notes:
33+
- Supports C(check_mode).
3334
requirements:
3435
- supported starting from gaia_api >= 1.6
3536
"""
3637

3738

3839
EXAMPLES = """
3940
- name: Show allowed clients
40-
M(cp_gaia_allowed_clients_facts):
41+
check_point.gaia.cp_gaia_allowed_clients_facts:
4142
"""
4243

4344

plugins/modules/cp_gaia_api_versions_facts.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,15 @@
2828
- Show api versions.
2929
short_description: Show api versions.
3030
version_added: '3.0.0'
31-
notes: Supports C(check_mode).
31+
notes:
32+
- Supports C(check_mode).
3233
requirements:
3334
- supported starting from gaia_api >= 1.6
3435
"""
3536

3637
EXAMPLES = """
3738
- name: Show api versions
38-
M(cp_gaia_api_versions_facts):
39+
check_point.gaia.cp_gaia_api_versions_facts:
3940
"""
4041

4142
RETURN = """

plugins/modules/cp_gaia_asset_facts.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,15 @@
2828
- Show Asset.
2929
short_description: Show Asset.
3030
version_added: '3.0.0'
31-
notes: Supports C(check_mode).
31+
notes:
32+
- Supports C(check_mode).
3233
requirements:
3334
- supported starting from gaia_api >= 1.6
3435
"""
3536

3637
EXAMPLES = """
3738
- name: Show Asset
38-
M(cp_gaia_asset_facts):
39+
check_point.gaia.cp_gaia_asset_facts:
3940
"""
4041

4142
RETURN = """

plugins/modules/cp_gaia_banner.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,13 +39,14 @@
3939
type: bool
4040
short_description: Setting the banner message.
4141
version_added: '3.0.0'
42-
notes: Supports C(check_mode).
42+
notes:
43+
- Supports C(check_mode).
4344
4445
"""
4546

4647
EXAMPLES = """
4748
- banner: Changing the banner message
48-
M(cp_gaia_banner):
49+
check_point.gaia.cp_gaia_banner:
4950
msg: new_message
5051
5152
"""

plugins/modules/cp_gaia_banner_facts.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,15 @@
2828
module: cp_gaia_banner_facts
2929
short_description: Show banner message settings.
3030
version_added: '3.0.0'
31-
notes: Supports C(check_mode).
31+
notes:
32+
- Supports C(check_mode).
3233
requirements:
3334
- supported starting from gaia_api >= 1.6
3435
"""
3536

3637
EXAMPLES = """
3738
- name: Show banner message
38-
M(cp_gaia_banner_facts):
39+
check_point.gaia.cp_gaia_banner_facts:
3940
4041
"""
4142

plugins/modules/cp_gaia_bond_interface.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@
2828
- Modify bond interface.
2929
short_description: Modify bond interface.
3030
version_added: '3.0.0'
31-
notes: Supports C(check_mode).
31+
notes:
32+
- Supports C(check_mode).
3233
options:
3334
state:
3435
description: Ansible state which can be C(present) or C(absent).
@@ -150,7 +151,7 @@
150151

151152
EXAMPLES = """
152153
- name: Set comment field of a bond interface
153-
M(cp_gaia_bond_interface):
154+
check_point.gaia.cp_gaia_bond_interface:
154155
comments: bond5 interface
155156
name: bond5
156157
mode: xor
@@ -171,7 +172,7 @@
171172
def main():
172173
# arguments for the module:
173174
fields = dict(
174-
state=dict(type='str', default='present'),
175+
state=dict(type='str', default='present', choices=['present', 'absent']),
175176
name=dict(required=True, type='str'),
176177
enabled=dict(type='bool'),
177178
comments=dict(type='str'),

0 commit comments

Comments
 (0)