---

# infrastats is a smartos lx-branded zone

# FIXME: how did this work, there's no zfs utils in the CentOS zone
#zfs_filesystems:
#  - name: zones/{{ ansible_hostname }}/data/influxdb
#    owner: influxdb
#    group: influxdb

host_links:
  - path: /var/lib/influxdb
    src: /zones/{{ ansible_hostname }}/data/influxdb
    owner: influxdb
    group: influxdb
    force: yes   # remove dir if it exists

# TODO: need to systemctl daemon-reload
host_directories:
  - path: /etc/systemd/system/nginx.service.d

host_files:
  - dest: /etc/systemd/system/nginx.service.d/disable_private_temp.conf
    content: |
      [Service]
      PrivateTmp=false

---

# infrastats is a smartos lx-branded zone

smartos_vm_id: 7928caca-d19d-6a5f-c90f-9dc4de2ba11a

zfs_filesystems:
  - name: zones/{{ smartos_vm_id }}/data/influxdb
    owner: influxdb
    group: influxdb

host_links:
  - path: /var/lib/influxdb
    src: /zones/{{ smartos_vm_id }}/data/influxdb
    owner: influxdb
    group: influxdb
    force: yes   # remove dir if it exists

# TODO: need to systemctl daemon-reload
host_directories:
  - path: /etc/systemd/system/nginx.service.d

host_files:
  - dest: /etc/systemd/system/nginx.service.d/disable_private_temp.conf
    content: |
      [Service]
      PrivateTmp=false

Fix InfluxDB data path on infrastats. As to the comment, the ZFS utils are in /native/usr/sbin, and the common role sets $PATH accordingly.
Fix InfluxDB data path on infrastats. As to the comment, the ZFS utils
are in /native/usr/sbin, and the common role sets $PATH accordingly.
