Skip to content

Instantly share code, notes, and snippets.

@gerred
Created June 24, 2015 17:26
Show Gist options
  • Save gerred/4b9d19c95595d1104916 to your computer and use it in GitHub Desktop.
Save gerred/4b9d19c95595d1104916 to your computer and use it in GitHub Desktop.
- name: format-mnt-data.service
command: start
content: |
[Unit]
Description=Format the data drive
[Service]
Type=oneshot
RemainAfterExit=yes
ExecStart=/usr/sbin/mkfs -t ext4 /dev/xvdb
- name: mnt.mount
command: start
content: |
[Unit]
After=format-mnt-data.service
Wants=format-mnt-data.service
[Mount]
What=/dev/xvdb
Where=/mnt
Type=ext4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment