2020-10-30 14:32:07 +00:00
|
|
|
include:
|
|
|
|
- .pkg
|
|
|
|
|
|
|
|
/etc/conf.d/lldpd:
|
|
|
|
file.managed:
|
2021-02-11 00:21:02 +00:00
|
|
|
- source: salt://{{ slspath }}/files/lldpd.confd
|
2020-10-30 14:32:07 +00:00
|
|
|
- mode: 640
|
|
|
|
- user: root
|
|
|
|
|
|
|
|
/etc/lldpd.d/:
|
|
|
|
file.directory:
|
|
|
|
- create: True
|
|
|
|
- mode: 755
|
|
|
|
- user: root
|
|
|
|
|
|
|
|
/etc/lldpd.d/salt.conf:
|
|
|
|
file.managed:
|
2021-02-11 00:21:02 +00:00
|
|
|
- source: salt://{{ slspath }}/files/lldpd.d/salt.conf
|
2020-10-30 14:32:07 +00:00
|
|
|
- mode: 640
|
|
|
|
- user: root
|
|
|
|
|
|
|
|
lldpd:
|
|
|
|
service.running:
|
|
|
|
- enable: True
|
|
|
|
- watch:
|
|
|
|
- pkg: net-misc/lldpd
|
|
|
|
- file: /etc/lldpd.d/salt.conf
|
|
|
|
- file: /etc/conf.d/lldpd
|
|
|
|
|
|
|
|
lldpcli-update:
|
|
|
|
cmd.wait:
|
|
|
|
- name: 'lldpcli update'
|
|
|
|
- require:
|
|
|
|
- pkg: net-misc/lldpd
|
|
|
|
- service: lldpd
|