Skip to content

Instantly share code, notes, and snippets.

View CMcDonald82's full-sized avatar

Chris McDonald CMcDonald82

View GitHub Profile
@CMcDonald82
CMcDonald82 / ansible-role-test.sh
Created February 5, 2018 18:19 — forked from geerlingguy/ansible-role-test.sh
Ansible Role Test Shim Script
#!/bin/bash
#
# Ansible role test shim.
#
# Usage: [OPTIONS] ./tests/test.sh
# - distro: a supported Docker distro version (default = "centos7")
# - playbook: a playbook in the tests directory (default = "test.yml")
# - cleanup: whether to remove the Docker container (default = true)
# - container_id: the --name to set for the container (default = timestamp)
# - test_idempotence: whether to test playbook's idempotence (default = true)
@CMcDonald82
CMcDonald82 / manage.py for Gondor
Created March 15, 2012 22:35
Gondor manage.py
from django.core.management import execute_manager
import imp
import sys
import os
sys.path.insert(0, os.path.abspath(os.path.join(os.path.abspath(os.path.dirname(__file__)), os.pardir, os.pardir)))
sys.path.insert(0, os.path.abspath(os.path.join(os.path.abspath(os.path.dirname(__file__)), os.pardir)))
try:
@CMcDonald82
CMcDonald82 / wsgi.py for Gondor
Created March 15, 2012 22:34
Gondor wsgi.py
import os, sys
sys.path.insert(0, os.path.abspath(os.path.join(os.path.abspath(os.path.dirname(__file__)), os.pardir, os.pardir)))
sys.path.insert(0, os.path.abspath(os.path.join(os.path.abspath(os.path.dirname(__file__)), os.pardir)))
from django.core.handlers.wsgi import WSGIHandler
os.environ["DJANGO_SETTINGS_MODULE"] = "mysite.settings"
application = WSGIHandler()
@CMcDonald82
CMcDonald82 / gondor config
Created March 15, 2012 22:27
Config file for Gondor deploy
[app]
; This path is relative to your project root (the directory .gondor is in)
requirements_file = requirements.txt
; The wsgi entry point of your application in two parts separated by a colon.
; wsgi:deploy where wsgi is the Python module which should be importable and
; application which represents the callable in the module.
wsgi_entry_point = wsgi:application
; Can be either nashvegas, south or none