a master node base on centos 7
a worker node base on centos 7
#!/bin/sh | |
TOOL_NAME=$1 | |
ZIP_URL=$2 | |
mkdir /tmp/$TOOL_NAME | |
cd /tmp/$TOOL_NAME | |
curl -sS $ZIP_URL > $TOOL_NAME.zip | |
unzip $TOOL_NAME.zip | |
sudo cp $TOOL_NAME /usr/local/bin/$TOOL_NAME | |
rm -rf /tmp/$TOOL_NAME | |
echo "$TOOL_NAME :: is installed successfully" |
# run a server using php | |
php -S localhost:8000 -t /var/foo/php_demo/ |
$ terraform init | |
$ terraform get | |
$ terraform env list | |
$ terraform env new test | |
$ terraform env select test | |
$ terraform plan -var-file=variables/sydney.tfvars | |
$ terraform apply -var-file=variables/sydney.tfvars |
#!/bin/sh | |
# 0. Some constants to re-define to match your environment | |
ES_HOST=localhost:9200 | |
ES_INDEX=bookingmotor/hotels | |
JSON_FILE_IN=/home/angel/personal/elasticsearch/result-14-v1.json | |
JSON_FILE_OUT=/home/angel/personal/elasticsearch/result-14-bulk-v1.json | |
# 1. Python code to transform your JSON file |
Set-WindowsExplorerOptions -EnableShowHiddenFilesFoldersDrives -EnableShowProtectedOSFiles -EnableShowFileExtensions | |
Enable-RemoteDesktop | |
cinst jdk8 | |
cinst git.install | |
cinst intellijidea-ultimate | |
cinst datagrip | |
cinst keepass.install | |
cinst Microsoft-Hyper-V-All -source windowsFeatures |
In this lab you will install the command line utilities required to complete this tutorial: cfssl, cfssljson, and kubectl.
The cfssl
and cfssljson
command line utilities will be used to provision a PKI Infrastructure and generate TLS certificates.
Download and install cfssl
and cfssljson
from the cfssl repository:
import os | |
import sys | |
import hcl2 | |
def update_modules_in_file(file_path, new_source_base): | |
with open(file_path, "r") as f: | |
original_content = f.read() | |
f.seek(0) | |
parsed = hcl2.load(f) |