This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%packages | |
@core | |
createrepo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<title>Ansible Lessons Learned at NASA</title> | |
<meta name="apple-mobile-web-app-capable" content="yes" /> | |
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" /> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no, minimal-ui"> | |
<link rel="stylesheet" href="/static/css/reveal.css"> | |
<link rel="stylesheet" href="/static/css/default.css" id="theme"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(r[wo]community[\s]+)\S+([\s]+127.0.0.1[\s]+.1.3.6.1.2.1.1) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
- name: Patching Heartbleed | |
hosts: "{{ hosts }}" | |
sudo: yes | |
tasks: | |
- name: Detect if Vulnerable | |
command: openssl -b | |
register: results | |
ignore_errors: yes |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
parser.add_option('--no-sudo', dest='nosudo', default=False, action='store_true') | |
if cli_opts.nosudo: | |
replacements = { | |
'sudo: True' : 'su: True', | |
'sudo: true' : 'su: True', | |
'sudo: yes' : 'su: True', | |
'sudo: no' : 'su: no', | |
'sudo_user: awx' : '', | |
'sudo_user: postgres' : '', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
shell: > | |
cd {{ release_path }} && | |
{{ item.cmd } | |
environment: app_env | |
## Where app_env is a dict like below which can reside in group_vars etc | |
app_env: | |
RAILS_ENV: SomeValue |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Copyright (c) 2014, Matt Makai | |
# All rights reserved. | |
# Full License can be read here: http://bit.ly/1qBgqzn | |
from gevent import monkey | |
monkey.patch_all() | |
import os | |
import redis | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Copyright (c) 2014, Matt Makai | |
# All rights reserved. | |
# Full License can be read here: http://bit.ly/1qBgqzn | |
import os | |
# General Flask app settings | |
DEBUG = os.environ.get('DEBUG', None) | |
SECRET_KEY = os.environ.get('SECRET_KEY', None) | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Copyright (c) 2014, Matt Makai | |
# All rights reserved. | |
# Full License can be read here: http://bit.ly/1qBgqzn | |
from flask import Flask | |
from flask.ext.socketio import SocketIO | |
import redis | |
app = Flask(__name__, static_url_path='/static') | |
app.config.from_pyfile('config.py') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Copyright (c) 2014, Matt Makai | |
# All rights reserved. | |
# Full License can be read here: http://bit.ly/1qBgqzn | |
import cgi | |
from flask import render_template, abort, request | |
from jinja2 import TemplateNotFound | |
from twilio import twiml | |
from twilio.rest import TwilioRestClient | |
OlderNewer