Skip to content

Instantly share code, notes, and snippets.

@koshatul
Created May 21, 2018 04:25
Show Gist options
  • Save koshatul/2aac09cc47447cea8722af34d853f17e to your computer and use it in GitHub Desktop.
Save koshatul/2aac09cc47447cea8722af34d853f17e to your computer and use it in GitHub Desktop.
Install Pagerduty Agent on Ubuntu
#!/bin/bash
set -ex
## Install Pagerduty Agent on Ubuntu 16.04 (and probably future versions)
## curl -sSL 'https://gist.githubusercontent.com/koshatul/2aac09cc47447cea8722af34d853f17e/raw/pdagent-install.sh' | /bin/bash /dev/stdin --
sudo apt-get install -qy --no-install-recommends \
apt-transport-https \
ca-certificates \
curl
curl -fsSL https://packages.pagerduty.com/GPG-KEY-pagerduty | sudo apt-key add -
echo "deb [arch=$(dpkg --print-architecture)] https://packages.pagerduty.com/pdagent deb/" | sudo tee /etc/apt/sources.list.d/pdagent.list
sudo apt-get update
sudo apt-get -qy install pdagent pdagent-integrations
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment