This file contains hidden or 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
/* | |
* This file was autogenerated by puppet. Do not edit manually! | |
* | |
* snowflake Varnish Configuration for APT Cache | |
*/ | |
/* | |
* Backend Servers (APT Repositories) | |
*/ |
This file contains hidden or 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
apt-get update && apt-get install -y mysql-server libmysqlclient-dev lzop libsqlite3-dev screen | |
service mysql start | |
echo "CREATE DATABASE phpbb;" | mysql | |
gem install mailcatcher && mailcatcher --http-ip 0.0.0.0 | |
ssh <oldserver> mysqldump --single-transaction <olddb> | mysql phpbb | |
rsync -az <oldserver>:<oldpath> /var/www/phpbb/ | |
chmod 777 /var/www/phpbb/ -R | |
sv stop unicorn | |
su - discourse |
This file contains hidden or 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
Facter.add("ipaddress6_reverse") do | |
confine :ipaddress6 | |
setcode do | |
file = "/proc/net/if_inet6" | |
if FileTest.exists?(file) | |
open(file).grep(/eth0/)[0].split.first.chomp.reverse.scan(/.{1}|.+/).join(".") + ".ip6.arpa." | |
end | |
end | |
end |