Quellcode durchsuchen

Change Sorage LVM for Focal (#218)

* 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
preussal vor 4 Jahren
Ursprung
Commit
b89b88900d
Es ist kein Account mit der E-Mail-Adresse des Committers verbunden
2 geänderte Dateien mit 9 neuen und 3 gelöschten Zeilen
  1. +3
    -1
      linux/map.jinja
  2. +6
    -2
      linux/system/file.sls

+ 3
- 1
linux/map.jinja Datei anzeigen

@@ -383,6 +383,9 @@ Debian:
},
},
}, merge=salt['grains.filter_by']({
'focal': {
'lvm_services': ['lvm2-monitor'],
},
'buster': {
'lvm_services': ['lvm2-monitor'],
},
@@ -469,4 +472,3 @@ Debian:
}
},
}, grain='os_family', merge=salt['pillar.get']('linux:monitoring')) %}


+ 6
- 2
linux/system/file.sls Datei anzeigen

@@ -4,7 +4,10 @@
{%- for file_name, file in system.file.items() %}

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:
- formatter: {{ file.serialize }}
{%- if file.contents is defined %}
@@ -12,6 +15,7 @@ linux_file_{{ file_name }}:
{%- elif file.contents_pillar is defined %}
- dataset_pillar: {{ file.contents_pillar }}
{%- endif %}

{%- else %}
file.managed:
{%- if file.source is defined %}
@@ -51,7 +55,7 @@ linux_file_{{ file_name }}:
{%- if file.encoding is defined %}
- encoding: {{ file.encoding }}
{%- endif %}
{%- endfor %}

{%- endif %}

Laden…
Abbrechen
Speichern