This file contains 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
cd /root | |
wget https://dl.google.com/go/go1.10.3.linux-amd64.tar.gz | |
tar -zxf go1.10.3.linux-amd64.tar.gz | |
mv go /usr/local/ | |
mkdir -p ~/go/bin | |
mkdir -p ~/go/src | |
mkdir -p ~/go/pkg | |
echo 'export GOROOT=/usr/local/go' >> ~/.bashrc | |
echo 'export GOPATH=$HOME/go' >> ~/.bashrc | |
echo 'export PATH=$PATH:$GOROOT/bin' >> ~/.bashrc |
This file contains 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
sudo yum install -y yum-utils device-mapper-persistent-data lvm2 | |
sudo yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo | |
sudo yum install docker-ce -y | |
sudo systemctl start docker | |
sudo systemctl enable docker | |
sudo docker run hello-world |
This file contains 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
puppet module generate --modulepath `pwd` homelab-profile | |
puppet module generate --modulepath `pwd` homelab-role | |
puppet module install saz-resolv_conf --version 3.3.0 | |
puppet module install thias-bind --version 0.5.3 | |
puppet module install puppetlabs-ntp --version 7.1.0 | |
puppet module install rnelson0-local_user --version 1.0.8 | |
puppet module install puppetlabs-firewall --version 1.12.0 | |
puppet module install saz-ssh --version 3.0.1 | |
puppet module install ghoneycutt-ssh --version 3.56.1 |
This file contains 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
sudo vi /etc/hosts # update hostnamesudo | |
vi /etc/hostname # update hostname | |
sudo rm -f /etc/resolv.conf | |
sudo ln -s /run/systemd/resolve/resolv.conf /etc/resolv.conf | |
sudo vi /etc/resolv.conf # update nameserver entries | |
ip a # determine network interface name | |
sudo vi /etc/netplan/01-netcfg.yaml # update interface name from 'ip a' | |
[email protected]:~# cat /etc/netplan/01-netcfg.yaml | |
# This file describes the network interfaces available on your system |
This file contains 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
cd ~/ | |
wget https://releases.hashicorp.com/consul/1.0.2/consul_1.0.2_linux_amd64.zip | |
unzip consul_1.0.2_linux_amd64.zip | |
mv consul /usr/local/bin/ | |
mkdir /etc/consul.d/ | |
tee /etc/consul.d/consul.json << 'EOF' | |
{ | |
"bind_addr": "192.168.100.57", | |
"datacenter": "dc1", | |
"data_dir": "/var/consul", |
This file contains 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
cd ~/ | |
wget https://releases.hashicorp.com/consul/1.0.2/consul_1.0.2_linux_amd64.zip | |
unzip consul_1.0.2_linux_amd64.zip | |
mv consul /usr/sbin/ | |
# create script for checking services | |
sudo tee /root/check_service.sh << 'EOF' | |
#!/bin/bash | |
export VMWARE_PYTHON_PATH="/usr/lib/vmware/site-packages" | |
export VMWARE_LOG_DIR="/var/log" |
This file contains 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
yum install -y unzip wget | |
wget https://releases.hashicorp.com/vault/0.9.0/vault_0.9.0_linux_amd64.zip | |
unzip vault_0.9.0_linux_amd64.zip | |
mv vault /usr/local/bin/ | |
sudo tee /etc/systemd/system/vault.service << 'EOF' | |
[Unit] | |
Description=Vault service | |
Requires=network-online.target | |
After=network.target |
This file contains 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
yum install -y epel-release | |
yum install -y bind-utils unzip jq | |
cd ~/ | |
wget https://releases.hashicorp.com/consul/1.0.2/consul_1.0.2_linux_amd64.zip | |
unzip consul_1.0.2_linux_amd64.zip | |
mv consul /usr/local/bin/ | |
adduser consul | |
mkdir /etc/consul.d | |
chown -R consul:consul /etc/consul.d/ | |
mkdir /var/consul |
This file contains 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
### make sure go is installed | |
Stans-MacBook-Pro:clair-scanner standorsett$ go version | |
go version go1.8.3 darwin/amd64 | |
Stans-MacBook-Pro:clair-scanner standorsett$ | |
### make sure GOPATH is defined and $GOPATH/bin is added to $PATH | |
Stans-MacBook-Pro:clair-scanner standorsett$ cat ~/.bash_profile | |
export GOPATH=$HOME/go | |
export PATH=$GOPATH/bin:$PATH |
This file contains 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
# install virtualbox | |
cd /etc/yum.repos.d/ | |
wget http://download.virtualbox.org/virtualbox/rpm/rhel/virtualbox.repo | |
yum update -y | |
yum -y install epel-release | |
yum -y install gcc make patch dkms qt libgomp | |
yum -y install kernel-headers kernel-devel fontforge binutils glibc-headers glibc-devel | |
reboot # to restart with updated kernel version | |
yum -y install VirtualBox-5.1 |