Skip to content

Instantly share code, notes, and snippets.

@stbenjam
Created January 11, 2016 23:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stbenjam/960286756c7834b335ee to your computer and use it in GitHub Desktop.
Save stbenjam/960286756c7834b335ee to your computer and use it in GitHub Desktop.
If you lost some info from dhcpd.conf and want to retrieve the old copy,
puppet would have stored the overwritten configuration files in the
Filebucket. You'd see something like this in the installer logs:
/Stage[main]/Dhcp/File[/etc/dhcp/dhcpd.conf]: Filebucketed
/etc/dhcp/dhcpd.conf to puppet with sum
622d9820b8e764ab124367c68f5fa3a1
And it's restorable with:
puppet filebucket -l restore /etc/dhcp/dhcpd.conf 622d9820b8e764ab124367c68f5fa3a1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment