Skip to content

Instantly share code, notes, and snippets.

Avatar

Larry Smith Jr. mrlesmithjr

View GitHub Profile
View example_playbook.yml
---
- hosts: dbservers
tasks:
- name: Apply MySQL Role
import_role:
name: mrlesmithjr.mysql
- hosts: webservers
tasks:
- name: Apply NGINX Role
View Terraform_Trace.log
2020/07/07 17:44:48 [INFO] Terraform version: 0.12.28
2020/07/07 17:44:48 [INFO] Go runtime version: go1.12.13
2020/07/07 17:44:48 [INFO] CLI args: []string{"/home/gitlab-runner/.tfenv/versions/0.12.28/terraform", "plan", "-var-file", "../../terraform.tfvars.json"}
2020/07/07 17:44:48 [DEBUG] Attempting to open CLI config file: /home/gitlab-runner/.terraformrc
2020/07/07 17:44:48 [DEBUG] File doesn't exist, but doesn't need to. Ignoring.
2020/07/07 17:44:48 [INFO] CLI command args: []string{"plan", "-var-file", "../../terraform.tfvars.json"}
2020/07/07 17:44:48 [TRACE] Meta.Backend: built configuration for "consul" backend with hash value 3886058809
2020/07/07 17:44:48 [TRACE] Preserving existing state lineage "204fed1e-c02e-9d22-6844-9060bac526ed"
2020/07/07 17:44:48 [TRACE] Preserving existing state lineage "204fed1e-c02e-9d22-6844-9060bac526ed"
2020/07/07 17:44:48 [TRACE] Meta.Backend: working directory was previously initialized for "consul" backend
View CHANGELOG.md

commit e1c55d9060a0d104c710d1803fbc887d0f34ea44 Author: Larry Smith Jr mrlesmithjr@gmail.com Date: Sat May 16 02:18:34 2020 -0400

Updated/added comments for tasks in script

commit a397db53bd6e4c9001810fb3f0af1934bf6523f5 Author: Larry Smith Jr mrlesmithjr@gmail.com Date: Fri May 15 22:13:29 2020 -0400

View dex_slapd.sh
#!/bin/bash -e
if ! [[ "$0" =~ "scripts/slapd.sh" ]]; then
echo "This script must be run in a toplevel dex directory"
exit 255
fi
command -v slapd >/dev/null 2>&1 || {
echo >&2 "OpenLDAP not installed. Install using one of the following commands:
View 50-mtrack.conf
Section "InputClass"
MatchIsTouchpad "on"
Identifier "Touchpads"
MatchDevicePath "/dev/input/event*"
Driver "mtrack"
# The faster you move, the more distance pointer will travel, using "polynomial" profile
Option "AccelerationProfile" "2"
# Tweak cursor movement speed with this
Option "Sensitivity" "0.05"
# Pressure at which a finger is detected as a touch
View vagrant-libvirt-macos.sh
brew install libiconv gcc libvirt
RV=$(/opt/vagrant/embedded/bin/ruby --version | awk '{ print $2 }'| awk '{ split($0, a, "p"); print a[1] }')
CONFIGURE_ARGS='with-ldflags=-L/opt/vagrant/embedded/lib with-libvirt-include=/usr/local/include/libvirt with-libvirt-lib=/usr/local/lib' \
GEM_HOME=~/.vagrant.d/gems/$RV \
GEM_PATH=$GEM_HOME:/opt/vagrant/embedded/gems \
PATH=/opt/vagrant/embedded/bin:$PATH \
vagrant plugin install vagrant-libvirt
View cygwin_ansible_pre_reqs.bat
setup-x86_64.exe -q --packages=binutils,curl,cygwin32-gcc-g++,gcc-g++,git,gmp,libffi-devel,libgmp-devel,make,nano,openssh,openssl-devel,python36-crypto,python3-paramiko,python3,python36-devel,python36-openssl,python36-pip,python36-setuptools
View gist:4254f633cc0df8d1c3f086aa3cf5d998
- name: config | Configuring realmd
copy:
content: |
[users]
default-home = /home/%U
default-shell = /bin/bash
[active-directory]
default-client = sssd
os-name = {{ ansible_distribution + ' ' + ansible_distribution_release }}
os-version = {{ ansible_distribution_version }}
View patch_rhel.yml
---
- hosts: rhel6
tasks:
- include_role:
name: yum_clean_all
- include_role:
name: yum_makecache
- include_role:
name: yum_check_update
- include_role:
View disable_thunderbolt_extensions.sh
#!/usr/bin/env bash
ls -ld /System/Library/Extensions/*Thunderbolt*
sudo mount -uw /
# if [ -d /System/Library/Extensions/AppleThunderboltDPAdapters.kext ]; then
# sudo mv /System/Library/Extensions/AppleThunderboltDPAdapters.kext /System/Library/Extensions/AppleThunderboltDPAdapters.kext.BAK
# fi
# if [ -d /System/Library/Extensions/AppleThunderboltEDMService.kext ]; then
# sudo mv /System/Library/Extensions/AppleThunderboltEDMService.kext /System/Library/Extensions/AppleThunderboltEDMService.kext.BAK