2021-06-04 05:27:49 +00:00
|
|
|
files = {
|
|
|
|
'/usr/local/sbin/apply-sysctl': {
|
|
|
|
'content':
|
|
|
|
'#!/bin/sh\n'
|
|
|
|
'\n'
|
2021-07-25 11:31:00 +00:00
|
|
|
'cat /etc/sysctl.d/*.conf | sysctl -e -p -',
|
2021-06-04 05:27:49 +00:00
|
|
|
'mode': '0700',
|
|
|
|
},
|
2021-07-25 11:31:00 +00:00
|
|
|
'/etc/sysctl.d/98-sysctl.conf': {
|
2021-06-04 05:27:49 +00:00
|
|
|
'content_type': 'mako',
|
2021-07-25 11:31:00 +00:00
|
|
|
'triggers': {
|
|
|
|
'action:apply-sysctl-settings',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
'/etc/sysctl.conf': {
|
|
|
|
'delete': True,
|
|
|
|
'triggers': {
|
|
|
|
'action:apply-sysctl-settings',
|
|
|
|
},
|
2021-06-04 05:27:49 +00:00
|
|
|
},
|
|
|
|
}
|
|
|
|
|
|
|
|
directories = {
|
|
|
|
'/etc/sysctl.d': {
|
|
|
|
'purge': True,
|
|
|
|
'triggers': {
|
|
|
|
'action:apply-sysctl-settings',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
}
|
|
|
|
|
|
|
|
actions = {
|
|
|
|
'apply-sysctl-settings': {
|
|
|
|
'command': '/usr/local/sbin/apply-sysctl',
|
|
|
|
'triggered': True,
|
|
|
|
'needs': {
|
|
|
|
'file:/usr/local/sbin/apply-sysctl',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
}
|