mirror of
https://github.com/valitydev/salt-common.git
synced 2024-11-06 10:25:23 +00:00
36 lines
639 B
Plaintext
36 lines
639 B
Plaintext
include:
|
|
- .pkg
|
|
|
|
/etc/conf.d/lldpd:
|
|
file.managed:
|
|
- 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:
|
|
- 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
|