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
require 'puppet/face' | |
desc "Check for puppet syntax errors" | |
task :syntax do | |
puts '---> Checking puppet syntax' | |
def validate_manifest(file) | |
Puppet::Face[:parser, :current].validate(file) | |
end |
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
dcarley-MBA:vagrant-govuk dcarley$ b vagrant --version | |
Vagrant version 1.0.5 | |
dcarley-MBA:vagrant-govuk dcarley$ time b vagrant status >/dev/null | |
real 0m3.430s | |
user 0m3.528s | |
sys 0m1.172s |
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
#!/bin/env ruby | |
require 'fileutils' | |
require 'pathname' | |
ARGV.each do |old_name| | |
match = old_name.match(/^(.+)\/([^\/]+_production)\/(.*?)_?(nginx|varnish)\/(.+\.wsp)$/) | |
next unless match | |
root, host, vhost, prog, wsp = match.captures |
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
<html> | |
<body> | |
<div data-fastly-live="http://streamtest.fastly.com/hds-live/livepkgr/_definst_/monitorama/monitorama.f4m"></div> | |
<script async src="http://live.fastly.net/live.js"></script> | |
</body> | |
</html> |
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
""" | |
Test the effect of Unicorn's `check_client_connection` option on a queue of | |
disconnected requests. For use with: | |
https://github.com/nickstenning/timeouttest | |
""" | |
import sys | |
import time | |
import requests |
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
location /api/json { | |
proxy_pass http://localhost:8080; | |
add_header "Access-Control-Allow-Origin" "*"; | |
add_header "Access-Control-Allow-Methods" "GET, POST, OPTIONS"; | |
add_header "Access-Control-Allow-Headers" "origin, authorization, cookie, accept"; | |
add_header "Access-Control-Allow-Credentials" "true"; | |
} |
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
info: Retrieving plugin | |
err: /File[/var/lib/puppet/lib]: Failed to generate additional resources using 'eval_generate: Could not intern_multiple from yaml: Invalid option ftype for Puppet::FileServing::Metadata | |
err: /File[/var/lib/puppet/lib]: Could not evaluate: Could not intern from yaml: Invalid option ftype for Puppet::FileServing::Metadata Could not retrieve file metadata for puppet://puppet/plugins: Could | |
not intern from yaml: Invalid option ftype for Puppet::FileServing::Metadata | |
info: Loading facts in /var/lib/puppet/lib/facter/fqdn_underscore.rb | |
info: Loading facts in /var/lib/puppet/lib/facter/root_home.rb | |
info: Loading facts in /var/lib/puppet/lib/facter/iptables_persistent_version.rb | |
info: Loading facts in /var/lib/puppet/lib/facter/ip6tables_version.rb | |
info: Loading facts in /var/lib/puppet/lib/facter/iptables_version.rb | |
info: Loading facts in /var/lib/puppet/lib/facter/facter_dot_d.rb |
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
notice(inline_template('PuppetMaster version: <%= Puppet::PUPPETVERSION %>')) |

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
notice: Scope(Class[main]): Puppet version: 2.7.19 | |
Must pass required to Class[Bar] at line 9 on node dcarley-mba.local |