Page MenuHomeDevCentral

init.sls
No OneTemporary

init.sls

# -------------------------------------------------------------
# Salt — Kernel state
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# Project: Nasqueron
# Created: 2017-11-06
# 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
Tue, Aug 18, 23:46 (1 d, 20 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3979041
Default Alt Text
init.sls (703 B)

Event Timeline