Коммит
59823038fb
|
@ -19,6 +19,12 @@ Available states
|
|||
|
||||
Install and turn on dhcpd.
|
||||
|
||||
.. note::
|
||||
|
||||
To have more pythonic variables the dashes ('-') in their names
|
||||
are replaced with underscores ('_') so 'dynamic-bootp' becomes
|
||||
'dynamic_bootp' in pillar[dhcpd].
|
||||
|
||||
``dhcpd.config``
|
||||
----------------
|
||||
|
||||
|
|
|
@ -9,7 +9,11 @@ dhcpd.conf:
|
|||
- source: salt://dhcpd/files/dhcpd.conf
|
||||
- template: jinja
|
||||
- user: root
|
||||
{% if 'BSD' in salt['grains.get']('os') %}
|
||||
- group: wheel
|
||||
{% else %}
|
||||
- group: root
|
||||
{% endif %}
|
||||
- mode: 644
|
||||
- watch_in:
|
||||
- service: dhcpd
|
||||
|
|
|
@ -9,4 +9,9 @@
|
|||
'service': 'dhcpd',
|
||||
'config': '/etc/dhcp/dhcpd.conf',
|
||||
},
|
||||
'FreeBSD': {
|
||||
'server': 'isc-dhcp43-server',
|
||||
'service': 'isc-dhcpd',
|
||||
'config': '/usr/local/etc/dhcpd.conf'
|
||||
},
|
||||
}, merge=salt['pillar.get']('dhcpd:lookup')) %}
|
||||
|
|
Загрузка…
Ссылка в новой задаче