Pārlūkot izejas kodu

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 pirms 4 gadiem
vecāks
revīzija
b89b88900d
Revīzijas autora e-pasta adrese nav piesaistīta nevienam kontam
2 mainītis faili ar 9 papildinājumiem un 3 dzēšanām
  1. +3
    -1
      linux/map.jinja
  2. +6
    -2
      linux/system/file.sls

+ 3
- 1
linux/map.jinja Parādīt failu

@@ -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 Parādīt failu

@@ -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 %}

Notiek ielāde…
Atcelt
Saglabāt