Saltstack Official Linux Formula
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

init.sls 719B

9 jaren geleden
9 jaren geleden
9 jaren geleden
9 jaren geleden
Network resolf.conf handling (#220) * 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 * Network resolf.conf handling the handling as the Resolv.conf is generated and adapted, adapted. previously the Resolv.conf was created and then through Overwrite "network.system" in the interface.sls again. With two search servers that should actually be included. "search example.com. sudomain.example.com" but it always became that search ['example.com.', 'sudomain.example.com'] The resolv.conf was first created correctly but then overwritten again in the interface.sls. The problem only arises if you don't want to have a "Domain:" in resov.conf 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>
4 jaren geleden
9 jaren geleden
123456789101112131415161718192021222324252627
  1. {%- from "linux/map.jinja" import network with context %}
  2. include:
  3. {%- if network.hostname is defined %}
  4. - linux.network.hostname
  5. {%- endif %}
  6. {%- if network.host|length > 0 or network.get('purge_hosts', True) %}
  7. - linux.network.host
  8. {%- endif %}
  9. {%- if network.dpdk is defined %}
  10. - linux.network.dpdk
  11. {%- endif %}
  12. {%- if network.dhclient is defined %}
  13. - linux.network.dhclient
  14. {%- endif %}
  15. {%- if network.systemd|length > 0 %}
  16. - linux.network.systemd
  17. {%- endif %}
  18. {%- if network.openvswitch is defined %}
  19. - linux.network.openvswitch
  20. {%- endif %}
  21. {%- if network.interface|length > 0 %}
  22. - linux.network.interface
  23. {%- endif %}
  24. {%- if network.resolv is defined %}
  25. - linux.network.resolv
  26. {%- endif %}
  27. - linux.network.proxy