Permalink
Browse files

Clean master

  • Loading branch information...
1 parent d1bb591 commit b693feccfec300b577295fbaea2ce4a204634671 @rodjek committed Nov 2, 2011
View
@@ -1 +0,0 @@
-_site/
View
File renamed without changes.
View
1 CNAME
@@ -1 +0,0 @@
-bombasticmonkey.com
@@ -1,7 +0,0 @@
-<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre>1
-2
-3</pre></div></td><td class="code"><div class="highlight"><pre><span class="no">Augeas</span> <span class="p">{</span>
- <span class="n">load_path</span> <span class="o">=&gt;</span> <span class="s2">&quot;/usr/share/augeas/lenses:${settings::vardir}/augeas/lenses&quot;</span><span class="p">,</span>
-<span class="p">}</span>
-</pre></div>
-</td></tr></table>
View
@@ -1,3 +0,0 @@
-pygments: true
-auto: true
-permalink: pretty
View
@@ -1,34 +0,0 @@
-<html>
- <head>
- <title>{{ page.title }}</title>
- <link rel="stylesheet" href="/css/reset.css" />
- <link rel="stylesheet" href="/css/text.css" />
- <link rel="stylesheet" href="/css/960.css" />
- <link rel="stylesheet" href="/css/site.css" />
- <link rel="stylesheet" href="/css/solarized-dark.css" />
- <script type="text/javascript" src="http://use.typekit.com/agp6fkg.js"></script>
- <script type="text/javascript">try{Typekit.load();}catch(e){}</script>
- </head>
- <body>
- <div class="container_12">
- <div class="header grid_10 push_1">
- <p class="heading">Tim Sharpe</p>
- <p class="subheading">
- <a href="/">Home</a>
- ::
- <a href="/projects/">Projects</a>
- ::
- <a href="http://uniqueviewsofreality.com">Photos</a>
- ::
- <a href="/about/">About Me</a>
- </p>
- </div>
- <div class="clear"></div>
- {{ content }}
- <div class="footer grid_8 push_2">
- <p>Copyright 2011 Tim Sharpe</p>
- <p>This work is licensed under a <a rel="license" href="http://creativecommons.org/licenses/by-sa/3.0/">Creative Commons Attribution-ShareAlike 3.0 Unported License</a>.</p>
- </div>
- </div>
- </body>
-</html>
View
@@ -1,5 +0,0 @@
-<html>
- <head>
- <meta HTTP-EQUIV="REFRESH" content="0; url={{ page.link }}">
- </head>
-</html>
View
@@ -1,51 +0,0 @@
-<html>
- <head>
- <title>{{ page.title }}</title>
- <link rel="stylesheet" href="/css/reset.css" />
- <link rel="stylesheet" href="/css/text.css" />
- <link rel="stylesheet" href="/css/960.css" />
- <link rel="stylesheet" href="/css/site.css" />
- <link rel="stylesheet" href="/css/solarized-dark.css" />
- <script type="text/javascript" src="http://use.typekit.com/agp6fkg.js"></script>
- <script type="text/javascript">try{Typekit.load();}catch(e){}</script>
- </head>
- <body>
- <div class="container_12">
- <div class="header grid_10 push_1">
- <p class="heading">Tim Sharpe</p>
- <p class="subheading">
- <a href="/">Home</a>
- ::
- <a href="/projects/">Projects</a>
- ::
- <a href="http://uniqueviewsofreality.com">Photos</a>
- ::
- <a href="/about/">About Me</a>
- </p>
- </div>
- <div class="clear"></div>
- <div class="post">
- <div class="grid_9 push_1">
- <p class="title">{{ page.title }}</p>
- </div>
- <div class="postdate grid_1">
- <p>
- {{ page.date | date: "%d" }}
- <br />
- {{ page.date | date: "%b %Y" }}
- </p>
- </div>
- <div class="clear"></div>
- <div class="grid_10 push_1">
- {{ content }}
- </div>
- <div class="clear"></div>
- </div>
- <div class="footer grid_8 push_2">
- <hr />
- <p>Copyright 2011 Tim Sharpe</p>
- <p>This work is licensed under a <a rel="license" href="http://creativecommons.org/licenses/by-sa/3.0/">Creative Commons Attribution-ShareAlike 3.0 Unported License</a>.</p>
- </div>
- </div>
- </body>
-</html>
View
@@ -1,57 +0,0 @@
-<html>
- <head>
- <title>{{ page.title }}</title>
- <link rel="stylesheet" href="/css/reset.css" />
- <link rel="stylesheet" href="/css/text.css" />
- <link rel="stylesheet" href="/css/960.css" />
- <link rel="stylesheet" href="/css/site.css" />
- <link rel="stylesheet" href="/css/solarized-dark.css" />
- <script type="text/javascript" src="http://use.typekit.com/agp6fkg.js"></script>
- <script type="text/javascript">try{Typekit.load();}catch(e){}</script>
- </head>
- <body>
- <div class="container_12">
- <div class="header grid_10 push_1">
- <p class="heading">Tim Sharpe</p>
- <p class="subheading">
- <a href="/">Home</a>
- ::
- <a href="/projects/">Projects</a>
- ::
- <a href="http://uniqueviewsofreality.com">Photos</a>
- ::
- <a href="/about/">About Me</a>
- </p>
- </div>
- <div class="clear"></div>
- <div class="post">
- <div class="grid_9 push_1">
- <p class="title">{{ page.title }}</p>
- </div>
- <div class="postdate grid_1">
- <p>
- {{ page.date | date: "%d" }}
- <br />
- {{ page.date | date: "%b %Y" }}
- </p>
- </div>
- <div class="clear"></div>
- <div class="grid_10 push_1">
- {{ content }}
- <hr />
- <div class='twitter'>
- Got any comments, questions or criticisms? Hit me up on <a href='http://twitter.com/#!/rodjek'>Twitter</a>.<br />
- You should also totally follow me on Twitter.<br />
- </div>
- </div>
- <div class="clear"></div>
- </div>
- <div class="footer grid_8 push_2">
- <hr />
- <p>Copyright 2011 Tim Sharpe</p>
- <p>This work is licensed under a <a rel="license" href="http://creativecommons.org/licenses/by-sa/3.0/">Creative Commons Attribution-ShareAlike 3.0 Unported License</a>.</p>
- <p><a href="http://disqus.com" class="dsq-brlink">blog comments powered by <span class="logo-disqus">Disqus</span></a></p>
- </div>
- </div>
- </body>
-</html>
View
@@ -1,29 +0,0 @@
-require 'fileutils'
-require 'digest/md5'
-
-PYGMENTS_CACHE_DIR = File.expand_path('../../_cache', __FILE__)
-FileUtils.mkdir_p(PYGMENTS_CACHE_DIR)
-
-Jekyll::HighlightBlock.class_eval do
- def render_pygments(context, code)
- if @options["O"].include? "linenos=inline"
- @options["O"].gsub!(/linenos=inline/, 'linenos=table')
- end
-
- if defined?(PYGMENTS_CACHE_DIR)
- path = File.join(PYGMENTS_CACHE_DIR, "#{@lang}-#{Digest::MD5.hexdigest(code)}.html")
- if File.exist?(path)
- highlighted_code = File.read(path)
- else
- highlighted_code = Albino.new(code, @lang).to_s(@options)
- File.open(path, 'w') {|f| f.print(highlighted_code) }
- end
- else
- highlighted_code = Albino.new(code, @lang).to_s(@options)
- end
- output = add_code_tags(highlighted_code, @lang)
- output = context["pygments_prefix"] + output if context["pygments_prefix"]
- output = output + context["pygments_suffix"] if context["pygments_suffix"]
- output
- end
-end
@@ -1,41 +0,0 @@
----
-title: Distributing Augeas lenses with Puppet's pluginsync
-layout: post
----
-
-Sick of having to write `file` resources to distribute the Augeas lenses that
-your module depends on? Why not use Puppet's pluginsync functionality to
-distribute them with the rest of your module?
-
-Under your module's `lib` directory, create the following directory structure
-
- modules/<module>/lib/
- augeas/
- lenses/
-
-Your module should now look like this:
-
- modules/<module>/manifests/
- templates/
- lib/
- puppet/
- facter/
- augeas/
- lenses/
-
-Drop your Augeas lenses into this `lenses` directory and Puppet will
-distribute them to all your clients automatically. Now we just need to tell
-Augeas where to find these lenses.
-
-The easiest way to go about this is to set a default `load_path` value for
-Augeas type. To do that, add the following to your `site.pp`.
-
-{% highlight ruby linenos %}
-Augeas {
- load_path => "/usr/share/augeas/lenses:${settings::vardir}/augeas/lenses",
-}
-{% endhighlight %}
-
-Note: Puppet will display an error for each lens during runs as it'll try to
-load them as Ruby files. It's noisy, but it's not a fatal error. I'm hoping
-to find an easy way to prevent this.
@@ -1,112 +0,0 @@
----
-title: Augeas Won't Eat Your Children
-layout: post
-published: false
----
-
-Augeas is an oft-overlooked tool when it comes to creating custom Puppet types.
-Say you want to create a type to manage
-[ssmtp's configuration file](http://linux.die.net/man/5/ssmtp.conf). If you
-posted to puppet-dev asking for help, you'd probably get 15 responses for how
-to do it using parsedfile, but no mention of Augeas. Let's fix that.
-
-## What is Augeas?
-
-[Augeas](http://augeas.net/) is a configuration editing tool that takes native
-configuration files, turns them into a tree which can be manipulated as desired
-before saving the tree back into the native file format.
-
-For example, let's take the following example ini file that lives at
-`/etc/my.ini`.
-
-{% highlight ini %}
-[section]
-key = value
-{% endhighlight %}
-
-The tree that Augeas generates for this file looks like
-
-{% highlight xquery %}
-/files/etc/my.ini/section/key = "value"
-{% endhighlight %}
-
-Let's make a simple update to the file by adding a new section with a new value
-
-{% highlight sh %}
-set /files/etc/my.ini/foo/bar "baz"
-save
-{% endhighlight %}
-
-The resulting file now looks like this
-
-{% highlight ini %}
-[section]
-key = value
-
-[foo]
-bar = baz
-{% endhighlight %}
-
-## Installing Augeas
-
-Chances are you've already installed Augeas as one of Puppet's dependencies.
-
-If not, you can install it on OSX via homebrew, `brew install augeas`.
-
-Most linux distibutions also have packages built for augeas as well.
-
-## Meet ssmtp.conf
-
-On to our example. We're going to write a simple type to manage the contents
-of ssmtp.conf as described by its
-[man page](http://linux.die.net/man/5/ssmtp.conf). It's a simple `key=value`
-format, like this
-
-{% highlight ini %}
-#
-# /etc/ssmtp.conf -- a config file for sSMTP sendmail.
-#
-# The person who gets all mail for userids < 1000
-root=postmaster
-# The place where the mail goes. The actual machine name is required
-# no MX records are consulted. Commonly mailhosts are named mail.domain.com
-# The example will fit if you are in domain.com and you mailhub is so named.
-mailhub=mail
-# Where will the mail seem to come from?
-#rewriteDomain=localhost.localdomain
-# The full hostname
-hostname=localhost.localdomain
-{% endhighlight %}
-
-## Skeleton lens
-
-Augeas knows how to parse configuration files through user defined "lenses".
-These lenses typically live in `/usr/share/augeas/lenses`.
-
-Let's start with a basic skeleton lens
-
-{% highlight text %}
-module Ssmtp =
- autoload xfm
-
- <the rest of the lens will go here>
-
- let filter = (incl "/etc/ssmtp/ssmtp.conf")
-
- let xfm = transform lns filter
-{% endhighlight %}
-
-
-
-## Complete lens
-
-## Puppet Type
-
-## Provider
-
-## This looks like a hell of a lot of work compared to parsedfile
-
-You're right, you could probably implement this example in far less code, but
-say you wanted to manage the contents of a more complex file, like [hosts.allow](),
-or [httpd.conf]()? Be prepared to waste a lot of time fiddling with regexes
-getting everything working with parsedfile.
View
@@ -1,13 +0,0 @@
----
-layout: page
-title: About Me
----
-
-I'm a Kiwi expatriate currently residing in Australia where I work as a
-sysadmin at [GitHub](http://github.com). When I'm not fighting misbehaving
-servers, I like to spend as much time as I can at the local archery range,
-cycling or questing to find the best lager in the country.
-
-If you want to get in contact, you can find me on
-[GitHub](http://github.com/rodjek) or [Twitter](http://twitter.com/rodjek),
-via [email](mailto:tim@sharpe.id.au) or on `irc.freenode.net` as `rodjek`.
View
Oops, something went wrong.
Oops, something went wrong.

0 comments on commit b693fec

Please sign in to comment.