Skip to content

Instantly share code, notes, and snippets.

@alexhayes
alexhayes / README.md
Last active August 29, 2015 14:11
Require using sls fails

I'm attempting to have a state depend on another state (state 'chaining' as outlined here)

In my example I have an include for the 'php' formula.

On line 14 of init.sls you can see - sls: php which is supposed to ensure that state install-pear depends on the php state which is derived from php.init.sls (included below for clarity).

When I execute salt foo state.highstate test=True I receive the following:

foo:
@alexhayes
alexhayes / SupervisordInstallationUbuntu12.04LTS.md
Last active April 7, 2020 14:20
Supervisord Installation on Ubuntu 12.04 LTS

Supervisord Installation on Ubutnu 12.04 LTS

There are a number of solutions for installing supervisord and automatically running it on Ubuntu - this is what worked for me (on multiple installations...).

Installation

Quick & Easy

sudo bash < <(curl https://gist.githubusercontent.com/alexhayes/814fd0d0f7020e918a95/raw/full-install.sh)
@alexhayes
alexhayes / building-install-check.sh
Created June 6, 2012 00:15 — forked from simonexmachina/building-install-check.sh
Test that rsync and php4-domxml are working on old Debian
#!/bin/bash
EXIT_STATUS=0
# Test that domxml is installed
php -r "domxml_version();" > /dev/null 2>&1
if [ $? -ne 0 ]; then
echo -e "\a#### Error: php4-domxml not loaded ####"
EXIT_STATUS=1
fi
@alexhayes
alexhayes / switch-apt-sources.sh
Created June 5, 2012 06:48 — forked from simonexmachina/building-install.sh
Switch apt source to next distro - basically so we can get a working php4-domxml installed
#!/bin/bash
V30=`grep "3.0" /etc/issue`
V31=`grep "3.1" /etc/issue`
V4=`grep "4." /etc/issue`
V5=`grep "5." /etc/issue`
V6=`grep "6." /etc/issue`
UPDATE_SOURCES=1
if [ "$V30" != "" ]; then
@alexhayes
alexhayes / building-install
Created June 4, 2012 07:44
Install rsync and php4-domxml on old Debian
#!/bin/bash
V30=`grep "3.0" /etc/issue`
V31=`grep "3.1" /etc/issue`
V4=`grep "4." /etc/issue`
V5=`grep "5." /etc/issue`
V6=`grep "6." /etc/issue`
UPDATE_SOURCES=1
if [ "$V30" != "" ]; then