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
{ | |
"dynamic": "true", | |
"properties": { | |
"current-time": {"type": "date", "format": "EEE MMM D HH:mm:ss yyyy"}, | |
"transfer-time": {"type": "integer", "index" : "not_analyzed"}, | |
"remote-host": {"type": "ip", "index" : "not_analyzed"}, | |
"file-size": {"type": "integer", "index" : "not_analyzed"}, | |
"filename": {"type": "string", "index" : "not_analyzed"}, | |
"transfer-type": {"type": "string", "index" : "not_analyzed"}, | |
"special-action-flag": {"type": "string", "index" : "not_analyzed"}, |
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/python3 | |
# http://serverfault.com/questions/330069/how-to-create-an-sha-512-hashed-password-for-shadow | |
# http://stackoverflow.com/questions/2257441/random-string-generation-with-upper-case-letters-and-digits-in-python | |
# http://stackoverflow.com/questions/9079036/detect-python-version-at-runtime | |
# http://security.stackexchange.com/questions/51959/why-are-salted-hashes-more-secure-for-password-storage | |
# https://pymotw.com/2/getpass/ | |
# https://docs.python.org/2/library/crypt.html | |
import crypt |
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 required packages | |
yum makecache all | |
yum -y install openssl-devel cpan perl-Devel-StackTrace perl-Class-Data-Inheritable perl-Convert-ASN1 perl-Crypt-OpenSSL-RSA perl-Crypt-OpenSSL-X509 perl-Exception-Class perl-Archive-Zip perl-Path-Class perl-Try-Tiny perl-Crypt-SSLeay perl-Class-MethodMaker perl-Data-UUID perl-Data-Dump perl-SOAP-Lite perl-XML-SAX perl-XML-NamespaceSupport perl-libxml-perl perl-XML-LibXML perl-Socket6 perl-IO-Socket-INET6 perl-Net-INET6Glue | |
# Install perl modules with specific version | |
PERL_MM_USE_DEFAULT=1 cpan install BINGOS/ExtUtils-MakeMaker-6.96.tar.gz LEONT/Module-Build-0.4205.tar.gz GBARR/libnet-1.22.tar.gz GAAS/libwww-perl-5.837.tar.gz PERLER/UUID-Random-0.04.tar.gz | |
# Unattended vspherecli install |
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 required packages | |
apt -y update | |
apt -y install perl-doc libssl-dev libxml-libxml-perl libmodule-build-perl libsoap-lite-perl libdevel-stacktrace-perl libclass-data-inheritable-perl libconvert-asn1-perl libcrypt-openssl-rsa-perl libcrypt-x509-perl libexception-class-perl libclass-methodmaker-perl libdata-dump-perl libsoap-lite-perl libnet-inet6glue-perl libdata-uuid-libuuid-perl | |
# Install perl modules with specific version | |
PERL_MM_USE_DEFAULT=1 cpan install BINGOS/ExtUtils-MakeMaker-6.96.tar.gz LEONT/Module-Build-0.4205.tar.gz GBARR/libnet-1.22.tar.gz GAAS/libwww-perl-5.837.tar.gz PERLER/UUID-Random-0.04.tar.gz | |
# Unattended vspherecli install |
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 | |
FQDN="domain.local" | |
CERT_FILENAME="wildcard.${FQDN}" | |
CERT_COMMONNAME="*.${FQDN}" | |
wget "https://github.com/OpenVPN/easy-rsa/archive/master.zip" | |
unzip master.zip | |
mv easy-rsa-master/easyrsa3/ . | |
rm -rf master.zip easy-rsa-master/ |
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 | |
# Set version | |
VERSION="1.4.33" | |
# Dependencies | |
yum -y install rpmdevtools automake gcc make wget libevent-devel perl-Test-Simple cyrus-sasl-devel | |
# Create rpmbuild directory structure | |
rpmdev-setuptree | |
# Download source | |
[ ! -f /root/rpmbuild/SOURCES/memcached-${VERSION}.tar.gz ] && wget "http://memcached.org/files/memcached-${VERSION}.tar.gz" -P /root/rpmbuild/SOURCES/ | |
# Build from archive. memcached-1.4.29/memcached.spec |
NewerOlder