Skip to content

Instantly share code, notes, and snippets.

View runswithd6s's full-sized avatar

Chad Walstrom runswithd6s

View GitHub Profile
@runswithd6s
runswithd6s / config_overrides.sls
Last active June 27, 2019 21:06
Failing salt state formula
# Salt 2017.07
{% if pillar['db_reports_host'] %}
replace-db-reports-sugar-config-overrides-file:
file.blockreplace:
- path: /vol/sugar_shared_files/config_override.php
- content: |
$sugar_config['db']['reports'] = array(
'db_host_name' => '{{ pillar['db_reports_host'] }}',
'db_user_name' => '{{ pillar['db_reports_user'] }}',
'db_password' => '{{ pillar['db_reports_password'] }}',
@runswithd6s
runswithd6s / commit-msg
Last active November 20, 2024 17:09
Ensure the Jira slug is in the commit summary line
#!/usr/bin/env bash
# -*- mode: sh; -*-
#
# commit-msg
#
# Ensure that the commit message has the correct summary line with Jira slug.
#
# See also: git-hook(1), githooks(5)
#