templates/default/rc.local.erb (18 lines of code) (raw):
#!/bin/sh -e
#
# rc.local
#
# Managed by Chef - Local Changes will be Nuked from Orbit
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.
test -e /etc/ssh/ssh_host_dsa_key || dpkg-reconfigure openssh-server
# Restart docker after iptables-persistent for nat rules
/usr/sbin/service docker restart
exit 0