client.yml 671 B

12345678910111213141516
  1. ---
  2. # tasks/SmartOS/client.yml: Deploy various client-side configurations for Sensu
  3. # Specific to Joyent SmartOS
  4. - include_vars: ../../vars/{{ ansible_distribution }}.yml
  5. - name: Deploy Sensu client service manifest
  6. template: dest=/opt/local/lib/svc/manifest/sensu-client.xml
  7. src=../../templates/sensu-client.smartos_smf_manifest.xml.j2
  8. owner=root group=root mode=644
  9. notify: import sensu-client service
  10. - name: Initial import of Sensu client service
  11. command: /usr/sbin/svccfg import /opt/local/lib/svc/manifest/sensu-client.xml
  12. args:
  13. creates: "/var/svc/log/application-sensu-client:default.log"