Skip to content

Instantly share code, notes, and snippets.

View mrlesmithjr's full-sized avatar

Larry Smith Jr. mrlesmithjr

View GitHub Profile
---
# Global provisioners will run against every node in the order specified.
# These provisioners run after all node specific provisioners if defined.
#
# For node specific provisioners add at the node level
provisioners: []
# - type: shell
# inline: |
# if [ -f /etc/os-release ]; then
# os_name="$(awk -F= '/^NAME/{ print $2 }' /etc/os-release | sed 's/"//g')"
---
- hosts: dbservers
tasks:
- name: Apply MySQL Role
import_role:
name: mrlesmithjr.mysql
- hosts: webservers
tasks:
- name: Apply NGINX Role
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

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

#!/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:
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
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
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
- 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 }}
---
- hosts: rhel6
tasks:
- include_role:
name: yum_clean_all
- include_role:
name: yum_makecache
- include_role:
name: yum_check_update
- include_role: