Skip to content

Instantly share code, notes, and snippets.

@smford22
Last active July 3, 2019 20:43
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 smford22/2b13c91c00602fe0d96e26ff1c4f9ab0 to your computer and use it in GitHub Desktop.
Save smford22/2b13c91c00602fe0d96e26ff1c4f9ab0 to your computer and use it in GitHub Desktop.
Quick Hab install/service setup
curl https://raw.githubusercontent.com/habitat-sh/habitat/master/components/hab/install.sh | sudo bash
hab license accept
cat << EOF > /etc/systemd/system/hab-sup.service
[Unit]
Description=Habitat Supervisor
[Service]
ExecStartPre=/bin/bash -c /bin/systemctl
ExecStart=/bin/hab run --auto-update --listen-gossip 0.0.0.0:9638 --listen-http 0.0.0.0:9631
[Install]
WantedBy=default.target
EOF
systemctl daemon-reload
systemctl start hab-sup
systemctl enable hab-sup
mkdir -p /hab/user/config-baseline/config
mkdir -p /hab/user/audit-baseline/config
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment