This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # --------------------------------------------------------------- | |
| # PerfPrep.sh - Joe Dillig | |
| # Prepares Ubuntu Servers for Virtual Performance Testing | |
| # Uses Nginx to host a web server on port 80 and 443 with ssl | |
| # --------------------------------------------------------------- | |
| #Download Tools | |
| sudo apt-get update |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| provider "vsphere" { | |
| user = var.vsphere_user | |
| password = var.vsphere_password | |
| vsphere_server = var.vsphere_server | |
| # If you have a self-signed cert | |
| allow_unverified_ssl = true | |
| } | |
| data "vsphere_datacenter" "dc" { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| --- | |
| - hosts: localhost | |
| gather_facts: no | |
| vars: | |
| #Authentication | |
| CLIENT_ID: | |
| ACCESS_KEY: | |
| #Tunnel Info | |
| TUNNEL_NAME: AnsibleDemo |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| #api.elg log parser v1 | |
| #Joe Dillig - Check Point Software 2019 | |
| API_HEADER_IDs=$(cat api.elg | grep ID | awk '{print $2}' | sort -n | uniq) | |
| for ID in $API_HEADER_IDs | |
| do | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| #distribute.sh | |
| #Joe Dillig - Check Point Software 2019 - [email protected] | |
| #Script used to distrubute custom dynamic object tracking scripts to managed gateways from the Check Point management server | |
| #Location to transfer files to on each gateway | |
| REMOTE_SCRIPT_DIR="/home/admin/scripts/dynobjs" | |
| #List of files to distribute |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| CP_MGMT="10.200.1.3" | |
| API_USER="api_user" | |
| API_PASS="vpn123" | |
| SIC_KEY="vpn123" | |
| MGMT_IF="eth0" | |
| MGMT_IP=$(ifconfig $MGMT_IF | grep inet | awk '{print $2}' | cut -d ':' -f 2) | |
| blink_config -s "gateway_cluster_member=false&ftw_sic_key=$SIC_KEY&upload_info=true&download_info=true" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| GUI_USER="admin" | |
| GUI_PASS="vpn123" | |
| API_USER="api_user" | |
| API_PASS="vpn123" | |
| config_system -s "install_security_gw=false&install_ppak=false&gateway_cluster_member=false&install_security_managment=true&install_mgmt_primary=true&install mgmt_secondary=false&mgmt_admin_name=$GUI_USER&mgmt_admin_passwd=$GUI_PASS&mgmt_gui_clients_radio=any" | |
| while true; | |
| do |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| provider "openstack" { | |
| user_name = "admin" | |
| tenant_name = "admin" | |
| password = "" | |
| auth_url = "http://10.200.0.40:35357/v3" | |
| region = "default" | |
| } | |
| resource "openstack_compute_instance_v2" "basic" { | |
| name = "CloudGuard" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| --- | |
| - hosts: localhost | |
| vars: | |
| vcenter_hostname: 192.168.30.244 | |
| vcenter_username: [email protected] | |
| vcenter_password: "" | |
| vm_name: CheckPointvAppImage | |
| vapp_Hostname: "{{ vm_name }}" | |
| vapp_Management_Interface: eth0 | |
| vapp_Management_IP: "{{ mgmtif_ip }}" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| heat_template_version: 2018-08-31 | |
| description: Check Point CloudGuard Standalone Heat Template | |
| parameters: | |
| cp_name: | |
| type: string | |
| description: Gateway/Cluster/MGMT Image Name as it will be created in Openstack | |
| default: CPOpenStack |