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
# Original grub.cfg and instructions from Lance at Pendrivelinux | |
# http://www.pendrivelinux.com/install-grub2-on-usb-from-ubuntu-linux/ | |
#set timeout=0 | |
set default=0 | |
set isopath="/iso" | |
menuentry "Ubuntu 12 64-bit" { | |
set isofile="$isopath/ubuntu-12.iso" | |
set gfxpayload=keep |
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
# All three packages must be located next to this playbook. Download them first: | |
# Mountain Lion: http://support.apple.com/kb/DL1768 | |
# Lion: http://support.apple.com/kb/DL1767 | |
# Mavericks: http://support.apple.com/kb/DL1769?viewlocale=en_US&locale=en_US | |
--- | |
- hosts: osx | |
sudo: yes | |
vars: |
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
#!/usr/bin/perl | |
# | |
# Fix Box Sync menu bar icons so they look good in Dark Mode | |
# use strict; | |
use warnings; | |
use File::Copy; | |
# --- Variables --- # | |
my $app_dir = "/Applications"; |
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 | |
# | |
# SSH into hosts listed in /root/Documents/machines and change root password | |
# Create list of hosts not online in /tmp/offline-hosts | |
# Assumes direct root login is available on remote machines | |
# Works bes if SSH keys are setup to allow passwordless login of root | |
# --- Variables --- # |
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 | |
# | |
# Make empty month folders for testing backup cleanup | |
# --- Variables --- # | |
OS=$(uname -s) | |
HOST=$(hostname) | |
DESTINATION="./Backup/$HOST" |
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 | |
# | |
# Backup files on Time Capsule excluding sparseimages | |
# Needs to be passed [hourly] [daily] [weekly] [monthly] | |
# --- Variables --- # | |
# See if the Time Capsule (TC) is currently mounted. |
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
# Patch files from command line | |
$ cd ~/ansible-playbooks/playbooks/ | |
$ ansible-playbook -i ~/temp_patches patch_things.yml -e 'target_hosts=all' | |
# Load ad-hoc inventory patches into Ansible Tower | |
$ tower-manage inventory_import --source patch_hosts --inventory-name Patches --overwrite --overwrite-vars | |
=========== | |
# Playbook | |
- name: Patch all the things |
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
sdoran@sdoran-OSX ~/P/A/P/playbooks (master) [1]> ansible --version | |
ansible 2.2.0.0 | |
config file = /Users/sdoran/.ansible.cfg | |
configured module search path = Default w/o overrides | |
----------------------- | |
sdoran@sdoran-OSX ~/P/A/P/playbooks (master) [2]> ansible-playbook -i inventory/home vyos.yml -vvv | |
Using /Users/sdoran/.ansible.cfg as config file |
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
#!/usr/bin/env python | |
# vim: set fileencoding=utf-8 : | |
# | |
# Copyright (C) 2016 Guido Günther <agx@sigxcpu.org> | |
# | |
# This script is free software: you can redistribute it and/or modify | |
# it under the terms of the GNU General Public License as published by | |
# the Free Software Foundation, either version 3 of the License, or | |
# (at your option) any later version. | |
# |
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
[lab] | |
lab-1 ansible_host=10.77.1.11 | |
lab-2 ansible_host=10.77.2.11 | |
lab-3 ansible_host=10.77.3.11 |
OlderNewer