|
|
@@ -2,7 +2,7 @@
|
|
|
# tasks/SmartOS/dashboard.yml: Deployment of the Uchiwa dashboard
|
|
|
# Specific to Joyent SmartOS
|
|
|
|
|
|
- - include_vars: ../../vars/{{ ansible_distribution }}.yml
|
|
|
+ - include_vars: "{{ ansible_distribution }}.yml"
|
|
|
|
|
|
- name: Ensure Uchiwa (dashboard) dependencies are installed
|
|
|
pkgin: name=go state=present
|
|
|
@@ -58,7 +58,7 @@
|
|
|
|
|
|
- name: Deploy Uchiwa config
|
|
|
template:
|
|
|
- src: '../../templates/uchiwa_config.json.j2'
|
|
|
+ src: uchiwa_config.json.j2
|
|
|
dest: "{{ uchiwa_path }}/etc/config.json"
|
|
|
owner: "{{ sensu_user_name }}"
|
|
|
group: "{{ sensu_group_name }}"
|
|
|
@@ -66,17 +66,17 @@
|
|
|
|
|
|
- name: Deploy Uchiwa service script
|
|
|
template:
|
|
|
- src: '../../templates/uchiwa.sh.j2'
|
|
|
+ src: uchiwa.sh.j2
|
|
|
dest: /opt/local/lib/svc/method/uchiwa
|
|
|
owner: root
|
|
|
group: root
|
|
|
- mode: 755
|
|
|
+ mode: 0755
|
|
|
notify: restart uchiwa service
|
|
|
|
|
|
- name: Deploy Uchiwa service manifest
|
|
|
template:
|
|
|
dest: /opt/local/lib/svc/manifest/uchiwa.xml
|
|
|
- src: '../../templates/uchiwa.smartos_smf_manifest.xml.j2'
|
|
|
+ src: uchiwa.smartos_smf_manifest.xml.j2
|
|
|
owner: root
|
|
|
group: root
|
|
|
mode: 644
|