--
You received this message because you are subscribed to the Google Groups "Salt-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to salt-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/salt-users/fdfb2159-4a4d-40d4-8c52-342825df3d94%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
This is an example of doing so https://github.com/hvnsweeting/states/blob/master/sysctl/init.slsBut you can get the same effect by using a Jinja2 loop over all item, so, create different statesNo, it is not possible doing exactly what you showed.The code here says that you can set only 1 item with each sysctl.present https://github.com/saltstack/salt/blob/develop/salt/states/sysctl.py#L30
On Thu, Jun 22, 2017 at 6:59 PM, Yong Zhang <hisca...@gmail.com> wrote:
Hi,I want to use state sysctl.present to config some sysctl settings, is it possible to define multiple items like below (I tested with below state but doesn't work, just want to know how to define multiple items within one sysctl.present)?sysctlsettings:sysctl.present:- name: net.ipv4.tcp_tw_reusevalue: 1- name: net.ipv4.ip_local_port_rangevalue: 10240 65535- name: kernel.sysrqvalue: 1- name: net.ipv6.conf.all.disable_ipv6value: 1- name: net.ipv6.conf.default.disable_ipv6value: 1- name: net.core.somaxconnvalue: 262144
--
You received this message because you are subscribed to the Google Groups "Salt-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to salt-users+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/salt-users/fdfb2159-4a4d-40d4-8c52-342825df3d94%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--Thanks & Best regards,
Nguyen Viet Hung (Mr) [a.k.a HVN]Mobile: 0982090290
--
You received this message because you are subscribed to the Google Groups "Salt-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to salt-users+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/salt-users/CAJm7hK%2B%2BKhRQmmy95w5ZTuxpMtKhprp-i3bms2OKdZH5WSVm-A%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/salt-users/CAPaX09i-Ukb1v%3Dng5ME%2BaUq_qmYuJCSJ4NYO8n5d5aueqq%3DXcw%40mail.gmail.com.