|
|
@@ -3,11 +3,14 @@
|
|
|
# Specific to Joyent SmartOS
|
|
|
|
|
|
- include_vars: "{{ ansible_distribution }}.yml"
|
|
|
+ tags: dashboard
|
|
|
|
|
|
- name: Ensure Uchiwa (dashboard) dependencies are installed
|
|
|
+ tags: dashboard
|
|
|
pkgin: name=go state=present
|
|
|
|
|
|
- name: Ensure Uchiwa directory exists
|
|
|
+ tags: dashboard
|
|
|
file:
|
|
|
dest: "{{ uchiwa_path }}"
|
|
|
state: directory
|
|
|
@@ -16,6 +19,7 @@
|
|
|
recurse: true
|
|
|
|
|
|
- name: Ensure Uchiwa Go/config directory exists
|
|
|
+ tags: dashboard
|
|
|
file:
|
|
|
dest: "{{ uchiwa_path }}/{{ item }}"
|
|
|
state: directory
|
|
|
@@ -27,6 +31,7 @@
|
|
|
- go
|
|
|
|
|
|
- name: Ensure Uchiwa GOPATH exists
|
|
|
+ tags: dashboard
|
|
|
file:
|
|
|
dest: "{{ uchiwa_path }}/go/{{ item }}"
|
|
|
owner: "{{ sensu_user_name }}"
|
|
|
@@ -39,6 +44,7 @@
|
|
|
- src
|
|
|
|
|
|
- name: Fetch Uchiwa from GitHub
|
|
|
+ tags: dashboard
|
|
|
command: go get github.com/sensu/uchiwa
|
|
|
environment:
|
|
|
GOPATH: "{{ uchiwa_path }}/go"
|
|
|
@@ -49,8 +55,10 @@
|
|
|
become_user: "{{ sensu_user_name }}"
|
|
|
|
|
|
- meta: flush_handlers
|
|
|
+ tags: dashboard
|
|
|
|
|
|
- name: Deploy Uchiwa config
|
|
|
+ tags: dashboard
|
|
|
template:
|
|
|
src: uchiwa_config.json.j2
|
|
|
dest: "{{ uchiwa_path }}/etc/config.json"
|
|
|
@@ -59,6 +67,7 @@
|
|
|
notify: restart uchiwa service
|
|
|
|
|
|
- name: Deploy Uchiwa service script
|
|
|
+ tags: dashboard
|
|
|
template:
|
|
|
src: uchiwa.sh.j2
|
|
|
dest: /opt/local/lib/svc/method/uchiwa
|
|
|
@@ -68,6 +77,7 @@
|
|
|
notify: restart uchiwa service
|
|
|
|
|
|
- name: Deploy Uchiwa service manifest
|
|
|
+ tags: dashboard
|
|
|
template:
|
|
|
dest: /opt/local/lib/svc/manifest/uchiwa.xml
|
|
|
src: uchiwa.smartos_smf_manifest.xml.j2
|
|
|
@@ -77,6 +87,8 @@
|
|
|
notify: import uchiwa service
|
|
|
|
|
|
- meta: flush_handlers
|
|
|
+ tags: dashboard
|
|
|
|
|
|
- name: Ensure Uchiwa server service is running
|
|
|
service: name=uchiwa state=started enabled=yes
|
|
|
+ tags: dashboard
|