Skip to content

Instantly share code, notes, and snippets.

@fiddyspence
Last active December 23, 2015 19:49
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fiddyspence/6685405 to your computer and use it in GitHub Desktop.
Save fiddyspence/6685405 to your computer and use it in GitHub Desktop.
https://github.com/jordansissel/fpm
require 'irb/completion'
# THIS FILE MANAGED BY PUPPET - EDIT BY HAND AT YOUR PERIL
<% foo = scope.to_hash -%>
<% foo.sort.each do |k,v| -%>
<%= "#{k} = #{v}" %>
<% end -%>
http://www.amazon.co.uk/Eloquent-Ruby-Addison-Wesley-Professional/dp/0321584104/ref=sr_1_1?ie=UTF8&qid=1380028756&sr=8-1&keywords=eloquent+ruby
Facter.add(:default_realm) do
setcode do
if File.exists?('/etc/krb5.conf')
File.readlines('/etc/krb5.conf').select { |d| d =~ /^\s+?default_realm/ }[0].split('=')[1].strip
end
end
end
https://github.com/adrienthebo/r10k
http://projects.puppetlabs.com/projects/puppet/wiki/Anchor_Pattern
http://www.craigdunn.org/2012/05/239/
http://projects.puppetlabs.com/issues/19514
define::foo { 'bar': }
define::foo { 'bag': }
define::foo { 'bar': }
define::foo { 'bar': }
class httpd {
Define::Foo <| tag == 'foooo' |> -> Define::Bar <| |>
Apache::Vhost <| |> ~> Service['httpd']
}
Yumrepo <| |> -> Package <| |>
Define::Foo <| |> -> Define::Bar <| |>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment