Page MenuHomeDevCentral

init.sls
No OneTemporary

init.sls

# -------------------------------------------------------------
# Salt — Kernel state
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# Project: Nasqueron
# License: Trivial work, not eligible to copyright
#
# -------------------------------------------------------------
{% if grains["os"] == "FreeBSD" %}
{% set use_zfs = salt["node.has"]("zfs:pool") %}
/etc/sysctl.conf:
file.managed:
- source: salt://roles/core/sysctl/files/sysctl.conf
- template: jinja
- context:
use_zfs: {{ use_zfs }}
mem: {{ grains["mem_total"] }}
is_router: {{ salt[ "node.has_role" ]("router") }}
{% endif %}

File Metadata

Mime Type
text/plain
Expires
Sat, Nov 14, 19:33 (5 d, 16 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
4000546
Default Alt Text
init.sls (672 B)

Event Timeline