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
<?php defined('C5_EXECUTE') or die('Access Denied.'); ?> | |
<?php $page = Page::getCurrentPage(); ?> | |
<?php $this->inc('elements/header.php'); ?> | |
<div class="container main"> | |
<a href="/portfolio" title="Back to Portfolio">< Back to Portfolio</a> | |
<h1><?php echo $page->getCollectionName(); ?></h1> | |
<?php |
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: Override default mysqld options in the my.cnf | |
ini_file: > | |
dest="{{ mysql_conf_dir }}/my.cnf" | |
section=mysqld | |
option={{ item.name }} | |
value={{ item.value }} | |
with_items: | |
- mysql_override_options.mysqld | |
- name: Override default client options in the my.cnf | |
ini_file: > |
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
#!/bin/bash | |
# Removing leftover leases and persistent rules | |
echo "Cleaning up dhcp leases" | |
rm /var/lib/dhcp/* | |
# Make sure Udev doesn't block our network | |
echo "Cleaning up udev rules" | |
rm /etc/udev/rules.d/70-persistent-net.rules | |
mkdir /etc/udev/rules.d/70-persistent-net.rules |
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: Build list of managed files | |
shell: > | |
echo "ifcfg-{{ item.device | replace(':', '-') }}" | |
with_items: network_ether_interfaces | |
register: managed_files | |
- name: Capture interface config files | |
shell: > | |
ls -1 {{ net_path }} | |
register: found_files |
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
#! /bin/sh | |
### BEGIN INIT INFO | |
# Provides: skeleton | |
# Required-Start: $remote_fs $syslog | |
# Required-Stop: $remote_fs $syslog | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 | |
# Short-Description: Example initscript | |
# Description: This file should be used to construct scripts to be | |
# placed in /etc/init.d. |
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
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing! | |
VAGRANTFILE_API_VERSION = "2" | |
variables = %w{ANSIBLE_PATH ANSIBLE_VAULT_PASS} | |
missing = variables.find_all { |v| ENV[v] == nil } | |
unless missing.empty? | |
puts "FATAL: The following variables are missing and are needed to run this script: #{missing.join(', ')}." |
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
#!/bin/bash | |
# Wrapper script that reads the GIT_SSH_OPTS environment variable | |
# and uses the options when using git. | |
if [ -z "$GIT_SSH_OPTS" ]; then | |
ssh "$@" | |
else | |
ssh $GIT_SSH_OPTS "$@" | |
fi |
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
description "My Node.js Application Service" | |
author "First Last" | |
start on runlevel [2345] | |
stop on runlevel [06] | |
respawn | |
respawn limit 20 5 | |
console log | |
setuid root |
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
--- | |
# Global Users Collection | |
users: | |
- username: user1 | |
state: present | |
name: User 1 | |
keys: | |
- pub-key-01 | |
groups: | |
- www-data |
OlderNewer