Skip to content

Instantly share code, notes, and snippets.

@timmow
Created May 22, 2013 11:49
Show Gist options
  • Select an option

  • Save timmow/5626983 to your computer and use it in GitHub Desktop.

Select an option

Save timmow/5626983 to your computer and use it in GitHub Desktop.
Add a custom fact for a hostname in a vagrantfile
config.vm.provision :puppet do |puppet|
puppet.facter = {
"hostname" => `hostname`.strip
}
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment