CheckPointSW / CheckPointAnsibleGAIACollection

An Ansible collection provides control over a Check Point machine using Check Point's web-services APIs.
20 stars 21 forks source link
ansible gaia gaia-api gaia-collection network

Check Point Ansible Gaia Collection

This Ansible collection provides control over a Check Point machine using Check Point's web-services APIs.

This is the repository of the gaia collection which can be found here - https://galaxy.ansible.com/check_point/gaia

Installation instructions

Run ansible-galaxy collection install check_point.gaia

Requirements

Usage

  1. Edit the hosts so that it will contain a section similar to this one:
    [check_point]
    %CHECK_POINT_MANAGEMENT_SERVER_IP%
    [check_point:vars]
    ansible_httpapi_use_ssl=True
    ansible_httpapi_validate_certs=False
    ansible_user=%CHECK_POINT_GAIA_USER%
    ansible_password=%CHECK_POINT_GAIA_PASSWORD%
    ansible_network_os=check_point.gaia.checkpoint



    2. Run a playbook:

    ansible-playbook your_ansible_playbook.yml

Example playbook:

---
- name: Playbook name
  hosts: check_point
  connection: httpapi
  tasks:
    - name: task to have network
      check_point.gaia.cp_gaia_hostname:
        name: "newhost"

Modules

Code of Conduct

This collection follows the Ansible project's Code of Conduct. Please read and familiarize yourself with this document.

Release notes

Release notes are available here.

Roadmap

We plan to regularly release minor and patch versions, whenever new features are added or bugs fixed. Our collection follows semantic versioning, so breaking changes will only happen in major releases.

More information

Licensing

GNU General Public License v3.0 or later.

See COPYING to see the full text.

Supported Python versions

Check Point Ansible Proxy Integration

Overview

This feature integrating the Proxy API for Check Point Security Gateways through the Management Server. The Proxy API enables the Management Server to forward API requests to designated gateways, eliminating the need to address each gateway individually.

image

Integration Process

Step 1: Options Selected

  1. Source Code:

The revised code introduces a significant enhancement – the 'target gateway' option. This addition allows the specification of a designated gateway to receive API requests, leveraging the Management Server's Proxy API feature. This modification expands the module's capabilities, aligning with advanced network management requirements and enabling more precise API interactions.

How to Use

  1. Edit the hosts so that it will contain a new section similar to this one:
    [check_point_mgmt]
    mgmt_proxy enabled=True
  2. in the playbook add this var under each task:
    vars:
    ansible_checkpoint_target: <target_gatway>
  3. in hosts change ansible_user and ansible_password to management credintials
  4. Follow the standard Ansible playbook execution process with the enhanced Check Point Ansible Collection.