Skip to content

Instantly share code, notes, and snippets.

View stahnma's full-sized avatar

Michael Stahnke stahnma

View GitHub Profile
Loading consul
Loading web_ui
Executing 'rm -rf /etc/consul /opt/consul && pkg install -y rsync git gmake coreutils bash && chsh -s /usr/local/bin/bash' on 'root@fb1'
Warning: Permanently added 'fb1,10.32.170.246' (ECDSA) to the list of known hosts.
Updating FreeBSD repository catalogue...
FreeBSD repository is up-to-date.
All repositories are up-to-date.
Checking integrity... done (0 conflicting)
The most recent version of packages are already installed
chsh: user information updated
class Vanagon
class Platform
class FREEBSD < Vanagon::Platform
# The specific bits used to generate a freebsd package for a given project
#
# @param project [Vanagon::Project] project to build a freebsd package of
# @return [Array] list of commands required to build a freebsd package for the given project from a tarball
def generate_package(project)
target_dir = project.repo ? output_dir(project.repo) : output_dir
pkg_arch_opt = project.noarch ? "" : "-a#{@architecture}"
class Vanagon
class Platform
class FREEBSD < Vanagon::Platform
# The specific bits used to generate a freebsd package for a given project
#
# @param project [Vanagon::Project] project to build a freebsd package of
# @return [Array] list of commands required to build a freebsd package for the given project from a tarball
def generate_package(project)
target_dir = project.repo ? output_dir(project.repo) : output_dir
pkg_arch_opt = project.noarch ? "" : "-a#{@architecture}"
@stahnma
stahnma / gist:62b69c37ab146501dbb0
Last active March 25, 2016 05:07
Consul Leader
#!/bin/bash
ans=`curl -s http://localhost:8500/v1/status/leader`
if [ "$?" = "0" ] ; then
ip=$(echo $ans | cut -d: -f1 | sed -e 's/"//g')
consul members | grep $ip | awk '{print $1}'
fi
exit 1
#!/bin/bash
export PATH=$PATH:/usr/local/bin
[ $# -eq 0 ] && { echo "Usage: $0 pkg"; exit 1; }
osx_ver=$(sw_vers -productVersion | cut -f1,2 -d.)
url=http://pl-build-tools.delivery.puppetlabs.net/osx/$osx_ver
for pkg in "$@"; do
AVAILABLE PLUGINS
-----------------
PluginChromeSha1Deprecation
PluginHeartbleed
PluginCertInfo
PluginSessionResumption
AVAILABLE PLUGINS
-----------------
PluginHSTS
PluginChromeSha1Deprecation
PluginSessionRenegotiation
PluginOpenSSLCipherSuites
AVAILABLE PLUGINS
-----------------
PluginHSTS
PluginHeartbleed
PluginCertInfo
PluginCompression
On the PE 2.3.9 front:
puppetdb-termini-2.3.9-1.el7.centos.noarch.rpm --> dummy package in 2.3 world
provides
puppetdb-termini = 2.3.9-1.el7.centos
puppetdb-terminus = 2.3.9
requires
puppetdb-terminus >= 2.3.8
puppetdb-terminus <= 3
puppetdb-terminus-2.3.9-1.el7.centos.noarch.rpm --> actual payload
On the PE 2.3.9 front:
puppetdb-termini-2.3.9-1.el7.centos.noarch.rpm --> dummy package in 2.3 world
provides
puppetdb-termini = 2.3.9-1.el7.centos
puppetdb-terminus = 2.3.9
requires
puppetdb-terminus >= 2.3.8
puppetdb-terminus <= 3
puppetdb-terminus-2.3.9-1.el7.centos.noarch.rpm --> actual payload