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 | |
# Example install script for monolithic/all-in-one PE Master in the 2016 or 2017 or 2018 series | |
# This version for Enterprise Linux (CentOS, RHEL, etc). | |
# This script assumes that networking, hostname, DNS, etc are all working. | |
if [ $# -ne 2 ]; then | |
echo "Wrong number of arguments. Expected 2 and got $#" | |
echo "Usage: $0 [<PE Version>|latest] <PE GUI admin password>" | |
exit 3 | |
fi |
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
(crontab -l 2>/dev/null; echo -e "*\t*\t*\t*\t*\tsleep 00; date >> /tmp/crontest") | crontab - | |
(crontab -l 2>/dev/null; echo -e "*\t*\t*\t*\t*\tsleep 15; date >> /tmp/crontest") | crontab - | |
(crontab -l 2>/dev/null; echo -e "*\t*\t*\t*\t*\tsleep 30; date >> /tmp/crontest") | crontab - | |
(crontab -l 2>/dev/null; echo -e "*\t*\t*\t*\t*\tsleep 45; date >> /tmp/crontest") | crontab - |
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 | |
# Install script for monolithic/all-in-one PE Master in the 2016 or 2017 or 2018 series | |
set -ex | |
install_dir=$(mktemp -d) | |
latest_pe_version=$(curl -s http://versions.puppet.com.s3-website-us-west-2.amazonaws.com/ | tail -n1) | |
if [ '@@{requested_pe_version}@@' != 'latest' ] | |
then | |
requested_pe_version=$(curl -s http://versions.puppet.com.s3-website-us-west-2.amazonaws.com/ | grep @@{requested_pe_version}@@ | grep -E "2016|2017|2018") |
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
# Kickstart file to build a small Fedora image | |
# This is based on the work at http://www.thincrust.net | |
# Also based on https://git.fedorahosted.org/cgit/cloud-kickstarts.git/tree/container/container-small-19.ks | |
lang en_US.UTF-8 | |
keyboard us | |
timezone --utc Etc/UTC | |
auth --useshadow --enablemd5 | |
selinux --permissive | |
bootloader --timeout=1 --append="acpi=force" | |
services --enabled=NetworkManager |
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
diff --git a/microkernel.ks b/microkernel.ks | |
index dbfaeba..276d6cd 100644 | |
--- a/microkernel.ks | |
+++ b/microkernel.ks | |
@@ -24,10 +24,10 @@ part / --size 1024 --fstype ext4 --ondisk sda | |
# | |
# Repositories | |
# | |
-repo --name=base --mirrorlist=http://mirrorlist.centos.org/?release=7&arch=$basearch&repo=os | |
-repo --name=updates --mirrorlist=http://mirrorlist.centos.org/?release=7&arch=$basearch&repo=updates |
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
sed -i '1034s/\"ppc64\",/\"ppc64\", \"ppc64le\"/' /usr/lib/python2.7/site-packages/imgcreate/live.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
# CentOS-CR.repo | |
# | |
# The Continuous Release ( CR ) repository contains rpms that are due in the next | |
# release for a specific CentOS Version ( eg. next release in CentOS-7 ); these rpms | |
# are far less tested, with no integration checking or update path testing having | |
# taken place. They are still built from the upstream sources, but might not map | |
# to an exact upstream distro release. | |
# | |
# These packages are made available soon after they are built, for people willing | |
# to test their environments, provide feedback on content for the next release, and |
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
# CentOS-Base.repo | |
# | |
# The mirror system uses the connecting IP address of the client and the | |
# update status of each mirror to pick mirrors that are updated to and | |
# geographically close to the client. You should use this for CentOS updates | |
# unless you are manually picking other mirrors. | |
# | |
# If the mirrorlist= does not work for you, as a fall back you can try the | |
# remarked out baseurl= line instead. | |
# |
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
$ErrorActionPreference = "Stop" | |
Import-Module BitsTransfer | |
$opensslPath = "$ENV:HOMEDRIVE\OpenSSL-Win32" | |
if($PSVersionTable.PSVersion.Major -lt 4) { | |
$scriptPath = split-path -parent $MyInvocation.MyCommand.Definition | |
. "$scriptPath\GetFileHash.ps1" | |
} |
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
/sbin/service auditd stop | |
/bin/package-cleanup --oldkernels --count=1 | |
/usr/bin/yum clean all | |
/usr/sbin/logrotate –f /etc/logrotate.conf | |
/bin/rm –f /var/log/*-???????? /var/log/*.gz | |
/bin/rm -f /var/log/dmesg.old | |
/bin/rm -rf /var/log/anaconda | |
/bin/cat /dev/null > /var/log/audit/audit.log | |
/bin/cat /dev/null > /var/log/wtmp | |
/bin/cat /dev/null > /var/log/lastlog |