ospf: mkdir /var/run/quagga fixes
This commit is contained in:
parent
9b9b2fe575
commit
04f28303ec
|
@ -10,14 +10,15 @@ quagga:
|
||||||
file.managed:
|
file.managed:
|
||||||
- source: salt://ospf/{{ daemon }}.conf
|
- source: salt://ospf/{{ daemon }}.conf
|
||||||
- template: 'jinja'
|
- template: 'jinja'
|
||||||
|
- require:
|
||||||
|
- pkg: quagga
|
||||||
|
|
||||||
autostart-{{ daemon }}:
|
autostart-{{ daemon }}:
|
||||||
service.enabled:
|
service.enabled:
|
||||||
- name: {{ daemon }}
|
- name: {{ daemon }}
|
||||||
require_in:
|
require:
|
||||||
- file: /etc/systemd/system/{{ daemon }}.service
|
- file: /etc/systemd/system/{{ daemon }}.service
|
||||||
- file: /etc/quagga/{{ daemon }}.conf
|
- file: /etc/quagga/{{ daemon }}.conf
|
||||||
- file: /var/run/quagga
|
|
||||||
|
|
||||||
start-{{ daemon }}:
|
start-{{ daemon }}:
|
||||||
service.running:
|
service.running:
|
||||||
|
@ -28,10 +29,3 @@ start-{{ daemon }}:
|
||||||
- file: /etc/quagga/{{ daemon }}.conf
|
- file: /etc/quagga/{{ daemon }}.conf
|
||||||
|
|
||||||
{%- endfor %}
|
{%- endfor %}
|
||||||
|
|
||||||
/var/run/quagga:
|
|
||||||
file.directory:
|
|
||||||
- user: quagga
|
|
||||||
group: quagga
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
log file /var/log/quagga/ospfd.log
|
||||||
|
|
||||||
{%- set id = salt['grains.get']('id') %}
|
{%- set id = salt['grains.get']('id') %}
|
||||||
{%- set core_ifaces = ['br-core', 'core'] %}
|
{%- set core_ifaces = ['br-core', 'core'] %}
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,2 @@
|
||||||
|
hostname {{ salt['grains.get']('id') }}
|
||||||
|
log file /var/log/quagga/zebra.log
|
|
@ -2,6 +2,8 @@
|
||||||
After = network.target
|
After = network.target
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
|
ExecStartPre=-/usr/bin/mkdir /var/run/quagga
|
||||||
|
ExecStartPre=/usr/bin/chown -R quagga:quagga /var/run/quagga/
|
||||||
ExecStart = /usr/lib/quagga/zebra
|
ExecStart = /usr/lib/quagga/zebra
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
|
|
Loading…
Reference in New Issue