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
<%# | |
kind: snippet | |
name: fix_hosts | |
%> | |
echo "<%= @host %>" > /etc/hostname | |
hostname <%= @host %> | |
# CentOS 7 (Fedora 19+?) uses hostnamectl | |
[ -x /usr/bin/hostnamectl ] && /usr/bin/hostnamectl set-hostname <%= @host %> |
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/php | |
<?php | |
# Convert a hostname to an "Akamai Staging" DNS entry | |
$parameters = array( | |
'h' => 'help', | |
'd' => 'debug' | |
); | |
$DEBUG = true; |
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
# | |
# === Class: lark::profile::graylog2 | |
# | |
# Setup GrayLog2 Server | |
# GrayLog 2 also needs redis and elasticsearch | |
# | |
# === Parameters | |
# | |
# - secret - graylog2 secret (string >64 chars) - no default | |
# - root_password_sha2 - graylog2 root pass (string) - no default (sha256sum) |
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/ruby | |
require 'net/http' | |
require 'net/https' | |
require 'rubygems' | |
require 'net/ldap' | |
require 'timeout' | |
require 'json' | |
require 'base64' | |
require 'resolv' |
NewerOlder