Change-Id: Ida91f545cc705457d1bc567fbee483e14a202a3apull/128/head
DefaultLimitCPU: 2 | DefaultLimitCPU: 2 | ||||
DefaultLimitNPROC: 4 | DefaultLimitNPROC: 4 | ||||
Ensure presence of directory: | |||||
.. code-block:: yaml | |||||
linux: | |||||
system: | |||||
directory: | |||||
/tmp/test: | |||||
user: root | |||||
group: root | |||||
mode: 700 | |||||
makedirs: true | |||||
Kernel | Kernel | ||||
~~~~~~ | ~~~~~~ | ||||
{%- from "linux/map.jinja" import system with context %} | |||||
{%- for name, dir in system.directory.iteritems() %} | |||||
{{ dir.name|default(name) }}: | |||||
file.directory: | |||||
{%- if dir %} | |||||
{%- for key, value in dir.iteritems() %} | |||||
- {{ key }}: {{ value }} | |||||
{%- endfor %} | |||||
{%- else %} | |||||
- name: {{ name }} | |||||
{%- endif %} | |||||
{%- endfor %} |
{%- if system.systemd is defined %} | {%- if system.systemd is defined %} | ||||
- linux.system.systemd | - linux.system.systemd | ||||
{%- endif %} | {%- endif %} | ||||
{%- if system.directory is defined %} | |||||
- linux.system.directory | |||||
{%- endif %} |
environment: prd | environment: prd | ||||
hostname: system.pillar.local | hostname: system.pillar.local | ||||
purge_repos: true | purge_repos: true | ||||
directory: | |||||
/tmp/test: | |||||
makedirs: true | |||||
apparmor: | apparmor: | ||||
enabled: false | enabled: false | ||||
haveged: | haveged: |