This file contains hidden or 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
############################ | |
#AUTHOR: JR Morgan | |
#CREATED: 20120417 | |
#MODIFIED: 20140611 | |
############################ | |
<# | |
.Synopsis | |
Adds DHCP Scope to ALL specified DHCP servers. If split-scope is desired | |
the script uses IP Math to automatically add the desired exlcude ranges. |
This file contains hidden or 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 | |
import logging, re, sys, time | |
import mod_cda | |
PYTHONUNBUFFERED = "true" | |
logger = logging.getLogger(__name__) | |
logger.setLevel(logging.DEBUG) |
This file contains hidden or 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
import mod_radacct | |
# Dictionary path (can be relative or absolute): | |
dictionary = "dictionary" | |
# If missing a user domain in the syslog msg, this is provided: | |
default_domain = "DefaultDomain" | |
# List of CDA identity maintainers. Can include legacy AD Agent servers: | |
servers = [ "cda1", "cda2", "ada1", "ada2" ] |
This file contains hidden or 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
### Filter out ISE hosts that should be sending specific messages for Device/IP association: | |
filter f_ise_host { ( | |
host("4.4.4.4") or | |
host("8.8.8.8") or | |
host("ise01") or | |
host("ise02") | |
); | |
}; |
This file contains hidden or 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 | |
# Author: JR Morgan <[email protected]> | |
# Enumerate all images while filtering out CFME,Openstack,preview,beta,etc. and | |
# Filter images by platform version | |
version="3.9" | |
## Set to "" for standard registry. Trailing slash must be present when specifying a prefix | |
repoprefix="your.internalregistry.com:18443/" | |
images=$(curl -s https://registry.access.redhat.com/v1/search?q=* | python -mjson.tool | grep '"name":' | grep -E -v '(preview|beta|cloudforms|openstack|rhmap)' | grep -E '(dotnet|jboss|openshift3|httpd|ruby|nodejs|python|perl|php|mysql|mariadb|mongodb|postgres|redis|sso|jdk)' | awk '{ gsub("\"",""); gsub(",",""); print($2)}') |
This file contains hidden or 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
##### | |
# Eval Ceph iscsigw boot | |
##### | |
### Prereq download/import: | |
cd /tmp | |
wget http://mirror.atlantic.net/centos/7/os/x86_64/isolinux/initrd.img | |
wget http://mirror.atlantic.net/centos/7/os/x86_64/isolinux/vmlinuz | |
wget https://cloud.centos.org/centos/7/images/CentOS-7-x86_64-GenericCloud-1503.raw.xz | |
xz -d CentOS-7-x86_64-GenericCloud-1503.raw.xz |
This file contains hidden or 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
apiVersion: v1 | |
kind: ResourceQuota | |
metadata: | |
creationTimestamp: null | |
labels: | |
type: base-project-quota | |
name: base-project-quota | |
spec: | |
hard: | |
managed-nfs-storage.storageclass.storage.k8s.io/requests.storage: "5Gi" |
This file contains hidden or 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
spec: | |
hard: | |
managed-nfs-storage.storageclass.storage.k8s.io/requests.storage: "5Gi" | |
managed-nfs-storage.storageclass.storage.k8s.io/persistentvolumeclaims: "2" |
This file contains hidden or 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
spec: | |
hard: | |
limited-use-nfs.storageclass.storage.k8s.io/requests.storage: "0" | |
limited-use-nfs.storageclass.storage.k8s.io/persistentvolumeclaims: "0" |
This file contains hidden or 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
cat <<EOT >> /tmp/update-cloud-init.sh | |
#!/bin/bash | |
# Script to configure newer cloud-init | |
set -eux | |
yum -y install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm | |
curl https://copr.fedorainfracloud.org/coprs/g/cloud-init/el-testing/repo/epel-7/group_cloud-init-el-testing-epel-7.repo > /etc/yum.repos.d/cloudinit.repo | |
yum -y install cloud-init |