Skip to content

Instantly share code, notes, and snippets.

View tomrgio's full-sized avatar

Tom Robinson-Gore tomrgio

View GitHub Profile
- hosts: lacework_servers
become: yes
tasks:
- name: add apt signing key
apt_key:
keyserver: hkp://keyserver.ubuntu.com:80
id: EE0CC692
state: present
- name: add lacework repository into source list
apt_repository:
  1. ELK Stack

First create an ELK stack for testing. I used the Bitnami one provided on GCP, which installs all three ELK (Elasticsearch, Logstash and Kibana) tools on to the same box, ssh onto the ELK box.

  1. Create a Logstash conf file - as shown below:
input {
  http {
 host => "0.0.0.0" # default: 0.0.0.0
@tomrgio
tomrgio / plan.sh
Last active January 19, 2020 15:09
National Parks plan.sh
pkg_name=national-parks
pkg_origin=<YOUR ORIGIN>
pkg_version="6.3.0"
pkg_maintainer="The Habitat Maintainers <[email protected]>"
pkg_license=("Apache-2.0")
pkg_deps=(core/tomcat8 core/jre8)
pkg_build_deps=(core/jdk8/8.192.0 core/maven)
pkg_svc_user="root"
do_prepare(){ export JAVA_HOME=$(hab pkg path core/jdk8) ; }
do_build()
@tomrgio
tomrgio / emea_dca_linux.MD
Last active July 24, 2019 10:10
EMEA DCA workshop

EMEA DCA workshop implementation

Loading Effortless Audit

Linux

hab svc load chef-demo/linux_baseline

Windows

legacy-app-2ofhearts 3.9.139.244
legacy-app-3ofhearts 18.130.129.48
legacy-app-4ofhearts 35.177.117.68
legacy-app-5ofhearts 3.8.1.210
legacy-app-6ofhearts 35.177.111.43
legacy-app-7ofhearts 35.178.27.182
legacy-app-8ofhearts 3.8.134.14
legacy-app-9ofhearts 35.178.36.97
legacy-app-10ofhearts 3.8.117.205
legacy-app-jackofhearts 3.9.13.0
#!/bin/bash
ln -vsf {{pkg.svc_config_path}}/conf_server.xml {{pkgPathFor "core/tomcat8"}}/tc/conf/server.xml
{{#if bind.database ~}}
{{pkgPathFor "core/mongo-tools"}}/bin/mongoimport --drop -d demo -c nationalparks --type json --jsonArray --file {{pkg.path}}/national-parks.json --host={{bind.database.first.sys.ip}} --port={{bind.database.first.cfg.port}}
{{/if ~}}
pkg_name=national-parks
pkg_origin=<YOUR ORIGIN>
pkg_version="6.3.0"
pkg_maintainer="The Habitat Maintainers <[email protected]>"
pkg_license=("Apache-2.0")
pkg_deps=(core/tomcat8 core/jre8 core/mongo-tools)
pkg_build_deps=(core/jdk8/8u131 core/maven)
pkg_svc_user="root"
pkg_binds=(
[database]="port"
pkg_deps=(core/tomcat8 core/jre8)
pkg_build_deps=(core/jdk8/8u131 core/maven)
pkg_svc_user="root"
do_prepare(){ export JAVA_HOME=$(hab pkg path core/jdk8) ; }

Slides

https://bit.ly/2J16pHc

Workstations

IP Address IP Address IP Address IP Address
02 ❤️ 18.236.71.103 - 02 ♠️ 34.209.73.145 - 02 ♦️ 54.213.232.141 - 02 ♣️ 54.202.47.95
03 ❤️ 34.220.106.60 - 03 ♠️ 18.236.156.6 - 03 ♦️ 34.222.134.56 - 03 ♣️ 34.213.176.56