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
... |
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
# Find the domain controller IP address and replace the N with the environment number | |
ping winworkNdc.classroom.puppet.com | |
# Fetch the index number for the network interface | |
$adapterid = Get-NetAdapter | Select -expand InterfaceIndex | |
# Set the DC_IP_ADDRESS to the IP address found in from the first command | |
set-DnsClientServerAddress -InterfaceIndex $adapterid -ServerAddresses ('DC_IP_ADDRESS') | |
# Join Active Directory Domain |
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
{ | |
"auth": { | |
"accessor": "hmac-sha256:67869871d870282745682c729d86cee81acb5346c3dbecb573b7d44ea5506d06", | |
"client_token": "hmac-sha256:8fe52f85c93aad7df87c7203f864a9900d25451a1cc88c486ae0c951bd3a8936", | |
"display_name": "root", | |
"policies": [ | |
"root" | |
], | |
"token_policies": [ | |
"root" |
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
Function New-LegacySelfSignedCert | |
{ | |
Param ( | |
[string]$SubjectName = $env:COMPUTERNAME, | |
[int]$ValidDays = 1095 | |
) | |
$hostnonFQDN = $env:computerName | |
$hostFQDN = [System.Net.Dns]::GetHostByName(($env:computerName)).Hostname | |
$SignatureAlgorithm = "SHA256" |
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
bolt plan run facts -i inventory.yaml --targets=linuxnode1 |
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
bolt plan run facts -i inventory.yaml nodes=boltservers |
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
bolt plan run todoapp::todoapp -m /Users/martez.reed/.puppetlabs/bolt-code/modules:bolt/site-modules -i bolt/inventory | |
.yaml web=web database=database |
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
#!/bin/bash | |
kubectl -n kube-system create serviceaccount tiller | |
kubectl create clusterrolebinding tiller --clusterrole cluster-admin --serviceaccount=kube-system:tiller | |
wget https://get.helm.sh/helm-v2.15.0-linux-amd64.tar.gz | |
tar -xzf helm-v2.15.0-linux-amd64.tar.gz | |
mv linux-amd64/helm /usr/local/bin/helm | |
helm init --service-account=tiller |
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
#version=RHEL8 | |
ignoredisk --only-use=sda | |
autopart --type=lvm | |
# Partition clearing information | |
clearpart --none --initlabel | |
# Use text install | |
text | |
repo --name="AppStream" --baseurl=file:///run/install/repo/AppStream | |
# Use CDROM installation media | |
cdrom |
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
#!/bin/bash | |
wget https://dl.google.com/go/go1.13.3.linux-amd64.tar.gz | |
sudo tar -C /usr/local -xvzf go1.13.3.linux-amd64.tar.gz | |
echo 'export PATH=$PATH:/usr/local/go/bin' > /etc/profile.d/gopath.sh | |
cat << EOF >> ~/.bash_profile | |
export GOBIN="$HOME/projects/bin" | |
export GOPATH="$HOME/projects/src" | |
EOF | |
mkdir -p ~/projects/{bin,pkg,src} | |
source /etc/profile && source ~/.bash_profile |