Skip to content

Instantly share code, notes, and snippets.

@danielsdeleo
Created September 26, 2011 16:38
Show Gist options
  • Select an option

  • Save danielsdeleo/1242675 to your computer and use it in GitHub Desktop.

Select an option

Save danielsdeleo/1242675 to your computer and use it in GitHub Desktop.
# recipe A
template "authorized_keys" do
variables :two_factor => false, :foo => "bar"
# other stuff
end
# 2 factor auth recipe
template "authorized_keys" do
variables(Hash.new) if variables.nil?
variables[:two_factor] = true
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment