Create a Post
cancel
Showing results for 
Search instead for 
Did you mean: 
chkp-royl
Employee
Employee

ShowPolicyPackage tool now supports Smart-1 Cloud

Hi All,

I am happy to update that ShowPolicyPackage tool now supports Smart-1 Cloud.

Use ShowPolicyPackage version 2.2.0.

Other Management API Tools & SDKs that supports Smart-1 Cloud:

If you have any issues or questions about how connect to your Smart-1 Cloud using these tools feel free to ask.

Regards,

Management API Team

0 Kudos
4 Replies
the_rock
Legend
Legend

awesome!

0 Kudos
thomge
Employee
Employee

Hi,

I'm running a Docker Container with Ubuntu on my Windows Client and I'm trying to use Ansible with Smart-1 Cloud Management. This is my host file:

[checkpoint]
<mytenant>.maas.checkpoint.com

[checkpoint:vars]
ansible_connection=httpapi
ansible_httpapi_validate_certs=False
ansible_httpapi_use_ssl=True
ansible_network_os=check_point.mgmt.checkpoint
ansible_api_key=<apikey>
ansible_cloud_mgmt_id=<mgmtid>
 
<mytenant>, <mgmtid> and <apikey> I get form the web_api URL form Smart-1 Cloud -> Setting -> API & SmartConsole.
 
When I run simple playbook to add an host, I get an error:
 
Playbook:
---
- hosts: checkpoint
connection: httpapi
tasks:
# Add or delete host object in Check Point management server
- name: add-host or delete-host
check_point.mgmt.cp_mgmt_hosts:
color: red
name: My test host
ip_address: 192.168.1.1
auto_publish_session: true
 
Error msg:

PLAY [checkpoint] ******************************************************************************************************

TASK [Gathering Facts] *************************************************************************************************
ok: [<tenant-id>.maas.checkpoint.com]
ERROR! Unexpected Exception, this is probably a bug: cannot import name 'CertificateError' from 'ansible.module_utils.urls' (/usr/lib/python3/dist-packages/ansible/module_utils/urls.py)

 

Any ideas?

 
 
0 Kudos
Eden_Brillant
Employee
Employee

Hi @thomge ,
The issue might be related to 

https://github.com/CheckPointSW/CheckPointAnsibleMgmtCollection/issues/134  which was fixed

0 Kudos
thomge
Employee
Employee

Hi @Eden_Brillant 

Actually a force install of the CP galaxy collection after Ansible install fixed the issue for me:

ansible-galaxy collection install check_point.mgmt --force
0 Kudos

Leaderboard

Epsum factorial non deposit quid pro quo hic escorol.

Upcoming Events

    CheckMates Events