Skip to content

Instantly share code, notes, and snippets.

#/bin/bash
#-- Script to automate https://help.github.com/articles/why-is-git-always-asking-for-my-password
# Forked from the original to do the opposite: Switch ssh repo urls to https
# Original here: https://gist.github.com/m14t/3056747
# Thanks to @m14t
#origin or upstream
REMOTE=${1-origin}
REPO_URL=`git remote -v | grep -m1 "^$REMOTE" | sed -Ene's#.*(git@github.com:[^[:space:]]*).*#\1#p'`
import grails.util.Environment
class BootStrap {
def app2AppMonitorService
def configServiceMonitorService
def mongoConnectionMonitorService
def oracleConnectionMonitorService
def rabbitConnectionMonitorService
Timer t
---
myrabbitmq::rabbitmq_user_permissions:
admin@/:
configure_permission: .*
read_permission: .*
write_permission: .*
admin@psmq:
configure_permission: .*
read_permission: .*
write_permission: .*
class myrabbitmq (
$wipe_db_on_cookie_change = $::myrabbitmq::params::wipe_db_on_cookie_change,
$version = $::myrabbitmq::params::version,
$delete_guest_user = $::myrabbitmq::params::delete_guest_user,
$erlang_cookie = $::myrabbitmq::params::erlang_cookie,
$config_cluster = $::myrabbitmq::params::config_cluster,
$cluster_nodes = $::myrabbitmq::params::cluster_nodes,
$rabbitmq_vhost = {},
$rabbitmq_user = {},
$rabbitmq_user_permissions = {},
@ktreese
ktreese / prompt.sh
Created February 24, 2016 22:16
/etc/profile.d/prompt.sh for stlpug
# This file is sourced by all *interactive* bash shells on startup,
# including some apparently interactive shells such as scp and rcp
# that can't tolerate any output. So make sure this doesn't display
# anything or bad things will happen !
# Test for an interactive shell. There is no need to set anything
# past this point for scp and rcp, and it's important to refrain from
# outputting anything in those cases.
if [[ $- != *i* ]] ; then
ok -- so I follow, and think I the fix is to put your hieradata into a different hierarchy. The short answer, I believe, is to add calling_class/%{calling_class} to your hierarchy:
VGT puppetmaster ~ # cat /etc/hiera.yaml
# managed by puppet
---
:backends:
- yaml
:hierarchy:
- node/%{fqdn}