Skip to content

Instantly share code, notes, and snippets.

@dmsimard
Last active April 28, 2017 19:24
Show Gist options
  • Save dmsimard/b85f210c69f2316432b3c5a7171ff627 to your computer and use it in GitHub Desktop.
Save dmsimard/b85f210c69f2316432b3c5a7171ff627 to your computer and use it in GitHub Desktop.
test-sensu
#!/bin/bash
yum -y install "@Development Tools" python-devel python-setuptools libffi-devel libxml2-devel libxslt-devel openssl-devel ruby-devel
easy_install pip
pip install setuptools --ugprade
pip install ansible
mkdir roles
pushd roles
git clone https://github.com/rdo-infra/ansible-role-rdomonitoring monitoring
cd monitoring
git fetch https://review.rdoproject.org/r/rdo-infra/ansible-role-rdomonitoring refs/changes/06/6406/6 && git checkout FETCH_HEAD
popd
cat << EOF > playbook.yml
---
- name: Apply monitoring role
hosts: localhost
become: yes
become_user: root
tasks:
- include_role:
name: "monitoring"
EOF
cat << EOF > extra-vars.yml
---
sensu_manage_checks: false
EOF
ansible-playbook -i localhost playbook.yml -e @extra-vars.yml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment