sledgehammer-place-start-up
Create a Sledgehammer tarball and profile from the staged bits.
This task places a few static assets that are needed for the Sledgehammer start-up process. It handles the following assets:
-
sledgehammer-start-up.sh
This script is run as a systemd service once Sledgehammer has started. It is responsible for making sure the image was booted with the necessary kernel parameters and then downloading and executing the machine-independent startup script from dr-provision.
-
sledgehammer-motd
This sets the default login banner.
-
sledgehammer-ssh-config
This sets the default sshd configuration. We default to allowing root logins only via key based authentication and allowing sftp.
-
sledgehammer-service
This is the systemd unit file that is responsible for starting sledgehammer-start-up.sh when Sledgehammer boots. It waits until the network has been configured and is online before starting.