View playbook-system-update.yml
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
--- | |
- hosts: all | |
tasks: | |
- name: "yum: upgrade packages" | |
yum: | |
name: '*' | |
state: latest | |
update_cache: yes | |
update_only: yes | |
register: yum_update_status |
View check_lastupdate.py
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 | |
from __future__ import print_function | |
from datetime import timedelta | |
from datetime import datetime | |
import os | |
import re | |
import sys |
View dns-sync.sh
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 | |
# Based on https://gist.github.com/matthiassb/9c8162d2564777a70e3ae3cbee7d2e95 | |
PATH=/sbin:/bin | |
WINSYS32=/mnt/c/Windows/System32 | |
PS=$WINSYS32/WindowsPowerShell/v1.0/powershell.exe | |
CHCP=$WINSYS32/chcp.com | |
PIDFILE=/var/run/dns-sync.pid |
View linux-powershell_alias.sh
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
__WINSYS32=/mnt/c/Windows/system32 | |
__POWERSHELL=${__WINSYS32}/WindowsPowerShell/v1.0/powershell.exe | |
powershell() { | |
if [ -z "${__OEMCP}" ] ; then | |
__OEMCP=$(${__WINSYS32}/reg.exe query "HKLM\\SYSTEM\\CurrentControlSet\\Control\\Nls\\CodePage" /v OEMCP 2>&1 | sed -n 3p | tr -d '\015' | grep -o '[[:digit:]]*') | |
fi | |
$__WINSYS32/chcp.com $__OEMCP >/dev/null | |
$__POWERSHELL "$@" | tr -d '\015' | |
$__WINSYS32/chcp.com 65001 >/dev/null |
View nsca-ng.spec
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
%if 0%{?fedora} > 17 || 0%{?rhel} > 6 | |
%global systemd_support 1 | |
%else | |
%global systemd_support 0 | |
%endif | |
Summary: A modern replacement for NSCA | |
Name: nsca-ng | |
Version: 1.6 | |
Release: 1%{?dist} |
View lxc-proxmox-noatime
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 python2 | |
# | |
# lxc.hook.pre-start | |
# | |
# remounts proxmox container mounts with noatime for performance | |
# | |
# copy this file to /usr/share/lxc/hooks/lxc-proxmox-noatime | |
# create /usr/share/lxc/config/common.conf.d/99-mount-noatime.conf | |
# with contents: lxc.hook.pre-mount /usr/share/lxc/hooks/lxc-proxmox-noatime |
View nic.rb
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
# Fact: nic { speed, state, duplex, ... } | |
# | |
# Copyright: Jeffrey Clark | |
# License: GPLv3 | |
require 'pathname' | |
nic = Hash.new | |
ifaces = Facter.value(:interfaces) |
View all-libvirt-hooks
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 | |
# Copy or link this script to /etc/libvirt/hooks/{network,qemu,daemon,lxc} | |
TYPE=$(basename $0) | |
HOOKS_PATH="/etc/libvirt/hooks.d/${TYPE}/${1}" | |
[ ! -e "${HOOKS_PATH}" ] && exit 0 | |
if [ -x "${HOOKS_PATH}/${2}/${3}" ] ; then |
View syslog-ng.conf
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:3.6 | |
@include "scl.conf" | |
options { | |
flush-timeout(2000); | |
chain-hostnames(no); | |
use-dns(yes); | |
use-fqdn(no); | |
create-dirs(yes); | |
keep-hostname(yes); |
View init.pp
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
file { "puppet-ca-subjectaltname-patch": | |
path => "${::rubysitedir}/puppet/vendor/load_ca_hack.rb", | |
mode => '0644', | |
source => "puppet:///files/puppet/load_ca_hack.rb", | |
notify => Service[puppetmaster], | |
} |
NewerOlder