- To create ssh secret:
oc create secret generic sshsecret \
--from-file=ssh-privatekey=$HOME/.ssh/id_rsa
| #!/bin/bash | |
| echo "--------------------------------------------------------------------------------" | |
| uname -a | |
| echo "--------------------------------------------------------------------------------" | |
| MEMORY=`/usr/sbin/system_profiler -detailLevel full SPHardwareDataType | grep 'Memory' | awk '{print $1 $2 $3}'` | |
| echo "$MEMORY" | |
| echo "--------------------------------------------------------------------------------" | |
| CORES_COUNT=`sysctl hw.ncpu | awk '{print $2}'` | |
| echo "CPU" | |
| sysctl -n machdep.cpu.brand_string |
| def self.parse_config(file) | |
| config = {} | |
| File.open(file).each_line do |line| | |
| line.strip! | |
| # skip comments | |
| next if /^\#/.match(line) | |
| # skip empty lines | |
| next if /^\s*$/.match(line) |