* Update file.sls add replace * Update file.sls update replace * Update job.sls Added the opportunity to set a job with a special keyword like '@reboot' or '@hourly'. Quotes must be used, otherwise PyYAML will strip the '@' sign. https://docs.saltstack.com/en/master/ref/states/all/salt.states.cron.html * Update README.rst Added the opportunity to set a job with a special keyword like '@reboot' or '@hourly'. Quotes must be used, otherwise PyYAML will strip the '@' sign. * Update README.rst * fix(deprecation): update to new method (#214) Signed-off-by: Felipe Zipitria <fzipitria@perceptyx.com> * Allow swap to be completely disabled * sort repos so they do not change order every run * allow use of new state syntax for module.run The new syntax has been supported since ~2017. From the docs, in case they change: ! New Style test.random_hash: module.run: - test.random_hash: - size: 42 - hash_type: sha256 ! Legacy Style test.random_hash: module.run: - size: 42 - hash_type: sha256 * Update map.jinja Add support fpr Ubuntu Focal. * Update file.sls added possibility to delete files Co-authored-by: Felipe Zipitría <fzipi@fing.edu.uy> Co-authored-by: Kyle Gullion <kgullion@gmail.com> Co-authored-by: Matthew Thode <thode@fsi.io> Co-authored-by: Matthew Thode <mthode@mthode.org>pull/222/head
}, | }, | ||||
}, | }, | ||||
}, merge=salt['grains.filter_by']({ | }, merge=salt['grains.filter_by']({ | ||||
'focal': { | |||||
'lvm_services': ['lvm2-monitor'], | |||||
}, | |||||
'buster': { | 'buster': { | ||||
'lvm_services': ['lvm2-monitor'], | 'lvm_services': ['lvm2-monitor'], | ||||
}, | }, | ||||
} | } | ||||
}, | }, | ||||
}, grain='os_family', merge=salt['pillar.get']('linux:monitoring')) %} | }, grain='os_family', merge=salt['pillar.get']('linux:monitoring')) %} | ||||
{%- for file_name, file in system.file.items() %} | {%- for file_name, file in system.file.items() %} | ||||
linux_file_{{ file_name }}: | linux_file_{{ file_name }}: | ||||
{%- if file.serialize is defined %} | |||||
{%- if file.absent is defined and file.absent is sameas true %} | |||||
file.absent: | |||||
{%- elif file.serialize is defined %} | |||||
file.serialize: | file.serialize: | ||||
- formatter: {{ file.serialize }} | - formatter: {{ file.serialize }} | ||||
{%- if file.contents is defined %} | {%- if file.contents is defined %} | ||||
{%- elif file.contents_pillar is defined %} | {%- elif file.contents_pillar is defined %} | ||||
- dataset_pillar: {{ file.contents_pillar }} | - dataset_pillar: {{ file.contents_pillar }} | ||||
{%- endif %} | {%- endif %} | ||||
{%- else %} | {%- else %} | ||||
file.managed: | file.managed: | ||||
{%- if file.source is defined %} | {%- if file.source is defined %} | ||||
{%- if file.encoding is defined %} | {%- if file.encoding is defined %} | ||||
- encoding: {{ file.encoding }} | - encoding: {{ file.encoding }} | ||||
{%- endif %} | {%- endif %} | ||||
{%- endfor %} | {%- endfor %} | ||||
{%- endif %} | {%- endif %} |