salt-common/sls/lldpd/init.sls

36 lines
639 B
Plaintext
Raw Normal View History

include:
- .pkg
/etc/conf.d/lldpd:
file.managed:
2021-02-11 00:21:02 +00:00
- source: salt://{{ slspath }}/files/lldpd.confd
- 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
- 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