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 | |
# | |
# Description : Install kernel modules and freeipmi tools for in-band management on OCP Windmill servers | |
# (for linux kernel < 3.19). Tested on GRML 2014.11 (kernel 3.16.0-1-grml-amd64) | |
# Author : Guillaume Giamarchi <[email protected]> | |
# Date : May 23rd, 2017 | |
# | |
set -ex |
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 | |
set -ex | |
if [ "$(whoami)" != "root" ] ; then | |
echo "Error : You must be root" | |
exit 1 | |
fi | |
apt update |
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 | |
set -x | |
set -o nounset | |
set -o errexit | |
REPO_URI=${REPO_URI:-"https://github.com/Hexxeh/rpi-firmware"} | |
UPDATE_SELF=${UPDATE_SELF:-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
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
$script = <<SCRIPT | |
set -ex | |
apt-get update | |
apt-get install -y apache2 fail2ban | |
cp /etc/fail2ban/jail.conf /etc/fail2ban/jail.conf.bak |
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 | |
set -ex | |
# | |
# The network interface that will be used by OpenStack services. | |
# The IP address of this interface will be used in the service | |
# catalog for admin and internal endpoints. | |
# | |
net_interface=eth0 |
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
package main | |
import ( | |
"github.com/hashicorp/terraform/builtin/providers/test" | |
"github.com/hashicorp/terraform/plugin" | |
) | |
func main() { | |
plugin.Serve(&plugin.ServeOpts{ | |
ProviderFunc: test.Provider, |