I hereby claim:
- I am joariasl on github.
- I am joariasl (https://keybase.io/joariasl) on keybase.
- I have a public key ASB891JBm8_ZCjZ077JaZKlyqCJG6wD0M7f_I_1T5fp_1go
To claim this, I am signing this object:
| #!/bin/bash | |
| rpm --import https://www.elrepo.org/RPM-GPG-KEY-elrepo.org | |
| rpm -Uvh http://www.elrepo.org/elrepo-release-7.0-2.el7.elrepo.noarch.rpm | |
| yum --enablerepo=elrepo-kernel install kernel-ml | |
| #yum --enablerepo=elrepo-kernel install kernel-lt | |
| # Set the new kernel as default | |
| grub2-set-default 0 |
I hereby claim:
To claim this, I am signing this object:
Do you have an Github account ? If not create one.
Install required tools
Latest Git Client
gpg tools
# Ubuntu
sudo apt-get install gpa seahorse
| #!/bin/bash | |
| script_name=`basename "$0"` | |
| text_bold=$(tput bold) | |
| text_normal=$(tput sgr0) | |
| showHelp() { | |
| echo -e "${script_name} | |
| ${text_bold}DESCRIPTION${text_normal} |
Elastic does not provide Filebeat binaries for ARMv7. Luckily, Filebeat can easily be cross-compiled with:
# ----- Instantiate an immutable Go container for cross-compilation ----- #
mkdir build && cd $_
docker run -it --rm -v `pwd`:/build golang:latest /bin/bash
# ----- Inside Go container ----- #
go get github.com/elastic/beats
cd /go/src/github.com/elastic/beats/filebeat/| #!/bin/sh | |
| ENV_PATH_SEPARATOR=${ENV_PATH_SEPARATOR:-':'} | |
| oldIFS=$IFS | |
| IFS=$ENV_PATH_SEPARATOR | |
| for ENV_FILE in $ENV_PATH; do | |
| if [ -f "$ENV_FILE" ]; then | |
| export $(grep -v '^#' "$ENV_FILE" | xargs -0) | |
| else |
Setup Env vars
export AWS_REGION=<THE_REGION>
GLACIER_VAULT=<glacier-vault-name>Initiate an Inventory Retrieval Job
| apiVersion: v1 | |
| kind: ConfigMap | |
| metadata: | |
| name: script | |
| data: | |
| script.sh: | | |
| yum install -y jq findutils awscli | |
| SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)" | |
| cd "$SCRIPT_DIR" |