Skip to content

Instantly share code, notes, and snippets.

View simonc6372's full-sized avatar

Simon Crute simonc6372

  • Grafana Labs
  • United Kingdom
View GitHub Profile
base:
'{{grains.fqdn }}*':
- ignore_missing: True
- common
- cmdb.{{ grains.fqdn|replace('.','_') }}
- hosts.{{ grains.fqdn|replace('.','_') }}
@simonc6372
simonc6372 / gist:48cceaa02814866bd9dfe56e1ba1bb02
Created January 4, 2019 15:30
sls file for setting sysctl values.
#Salt state file to configure all the sysctl settings.
#defaults here, overridden via pillar data in the sysctl.[itemname] pillar.
#e.g.
#sysctl:
# net.ipv4.ip_forward: 1
{% for setting in [
{ 'k' : 'net.ipv4.ip_forward', 'v' : '0' },
{ 'k' : 'net.ipv4.conf.all.send_redirects', 'v' : '0' },
{ 'k' : 'net.ipv4.conf.default.send_redirects', 'v' : '0' }
] %}