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 /etc/rc.common | |
# Squid 3.4 control script for openwrt | |
# | |
# Assumes a squid installation under /usr/local/squid, all other | |
# values are parsed from the squid config file so no need to edit | |
# locally | |
# | |
# Copyright (C) 2007 OpenWrt.org | |
START=99 |
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
diff --git a/block.c b/block.c | |
index a1609b4..a68d62a 100644 | |
--- a/block.c | |
+++ b/block.c | |
@@ -791,6 +791,19 @@ static int main_hotplug(int argc, char **argv) | |
return mount_device(find_block_info(NULL, NULL, path), 1); | |
} | |
+static int find_block_ubi(char *name, char *part, int plen) | |
+{ |
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
alias rake_api="/opt/puppet/bin/rake -f /opt/puppet/share/puppet-dashboard/Rakefile RAILS_ENV=production " |
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
# | |
# Example spec file to package apache-tomcat 'as-is' to install it under | |
# /usr/local | |
# | |
# To allow multiple version to be install at the same time with yum, the | |
# upstream version number is merged into the package name and the actual | |
# version field is reduced to a single incrementing digit to allow specific | |
# versions to be upgraded if required | |
# |
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 | |
# | |
# download files from laptop webserver in VM to teach fundamentals module | |
# usage: | |
# ./classroom_files.sh DOWNLOAD_URL | |
# | |
# DOWNLOAD_URL should be a directory of files on an http server | |
BASE_URL=$1 | |
DOWNLOAD_DIR="/shared" | |
WGET_COMMAND="wget -r -nH --cut-dirs=2 --no-parent --reject=index.html* --directory-prefix=${DOWNLOAD_DIR}" |
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
# Put your custom commands here that should be executed once | |
# the system init finished. By default this file does nothing. | |
chgrp nogroup /dev/shm | |
chmod g+w /dev/shm | |
exit 0 |
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 | |
PUBDIR=$1 | |
FINAL_DIR="/var/www/html/${PUBDIR}" | |
GRAPH_DIR="/var/opt/lib/pe-puppet/state/graphs/" | |
puppet apply -e "package {['httpd','graphviz']: ensure => present, } | |
service { 'httpd': ensure => 'running', }" | |
echo "publishing to $FINAL_DIR" | |
mkdir -p $FINAL_DIR | |
puppet apply --graph -e 'include ordering::mysql' && \ | |
cd $GRAPH_DIR |
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 | |
# | |
# This script will force a refresh of the classes available to use in the | |
# PE Node Classifier. This enables us to classify immediately, rather than | |
# waiting for the cache to expire. | |
# | |
# refresh_classes.sh | |
# | |
if [ "$#" -ne 0 ] |
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
curl -X POST \ | |
https://$(facter fqdn):4433/classifier-api/v1/groups \ | |
--cert /etc/puppetlabs/puppet/ssl/certs/$(facter fqdn).pem \ | |
--key /etc/puppetlabs/puppet/ssl/private_keys/$(facter fqdn).pem \ | |
--cacert /etc/puppetlabs/puppet/ssl/certs/ca.pem \ | |
-H "Content-Type: application/json" | |
-d @data.json |
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 : | |
# All Vagrant configuration is done below. The "2" in Vagrant.configure | |
# configures the configuration version (we support older styles for | |
# backwards compatibility). Please don't change it unless you know what | |
# you're doing. | |
Vagrant.configure(2) do |config| | |
# The most common configuration options are documented and commented below. | |
# For a complete reference, please see the online documentation at |
OlderNewer