Skip to content

Instantly share code, notes, and snippets.

View brentwg's full-sized avatar

Brent Gawryluik brentwg

View GitHub Profile
@brentwg
brentwg / puppet_dump.log
Created August 23, 2021 18:12
Debug log for Magic Castle 11.3 (Azure - GPU node)
-- Logs begin at Mon 2021-08-23 17:04:02 UTC, end at Mon 2021-08-23 18:08:10 UTC. --
Aug 23 17:04:07 nc4as-node1 systemd[1]: Started Puppet agent.
Aug 23 17:04:11 nc4as-node1 puppet-agent[947]: Starting Puppet client version 6.23.0
Aug 23 17:04:12 nc4as-node1 puppet-agent[1227]: (/File[/opt/puppetlabs/puppet/cache/facts.d/cpu_ext.sh]/ensure) defined content as '{md5}072cec4f039d0e567b2ee0ee5d89b4cc'
Aug 23 17:04:12 nc4as-node1 puppet-agent[1227]: (/File[/opt/puppetlabs/puppet/cache/facts.d/dev_disk.sh]/ensure) defined content as '{md5}5979e6f9bbeca7617394a2887e40527d'
Aug 23 17:04:12 nc4as-node1 puppet-agent[1227]: (/File[/opt/puppetlabs/puppet/cache/facts.d/nvidia_cuda_vers.sh]/ensure) defined content as '{md5}1ae0d176c43ad8e6db07600852b6d0d6'
Aug 23 17:04:12 nc4as-node1 puppet-agent[1227]: (/File[/opt/puppetlabs/puppet/cache/facts.d/nvidia_driver_vers.sh]/ensure) defined content as '{md5}b4399d5d4fb1aa11a10f2fadf3be6557'
Aug 23 17:04:12 nc4as-node1 puppet-agent[1227]: (/File[/opt/puppetlabs/puppet/cache/fac
@brentwg
brentwg / install-ansible.sh
Last active June 16, 2022 18:18
Simple script for installing Ansible on selected Linux Distros.
#!/usr/bin/env bash
# ------------------------------------------------------------------------
# Simple bash script used to bootstrap ansible
#
# The following distros are supported:
# - Fedora 20 and greater
# - CentOS 7
# - Ubuntu 16.04, 17.10, 18.04
#
# Brent WG
#!/bin/bash
#
# Ansible playbook test shim.
#
# Usage: [OPTIONS] ./tests/test.sh
# - distro: a supported Docker distro version (default = "centos7")
# - playbook: a playbook in the tests directory (default = "main.yml")
# - cleanup: whether to remove the Docker container (default = true)
# - container_id: the --name to set for the container (default = timestamp)
# - test_idempotence: whether to test playbook's idempotence (default = true)
@brentwg
brentwg / ansible-role-test.sh
Last active October 21, 2019 06:20
For Posterity. From GeerlingGuy, Ansible Role Test Shim (Some modifications)
#!/bin/bash
#
# Ansible role test shim.
#
# Usage: [OPTIONS] ./tests/test.sh
# - distro: a supported Docker distro version (default = "centos7")
# - playbook: a playbook in the tests directory (default = "test.yml")
# - cleanup: whether to remove the Docker container (default = true)
# - container_id: the --name to set for the container (default = timestamp)
# - test_idempotence: whether to test playbook's idempotence (default = true)