Replace net-ftp/ftp with lftp, update bird.init (#159)

This commit is contained in:
niku64 2020-12-23 16:12:33 +03:00 committed by GitHub
parent 5231409250
commit 27e6faed16
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 22 additions and 18 deletions

View File

@ -1,6 +1,25 @@
include:
- .pkg
/etc/bird.conf:
file.managed:
- source: salt://bird/files/{{ grains.id }}/bird.conf
- template: jinja
- user: root
- group: root
- mode: 640
- check_cmd: bird -p -c
{% if grains.init == 'openrc' %}
/etc/init.d/bird:
file.managed:
- source: salt://bird/files/bird.initd
- mode: 750
- user: root
- group: root
- watch_in:
- service: bird
/etc/init.d/bird6:
file.absent:
- require:
@ -9,22 +28,7 @@ include:
bird6:
service.dead
/etc/init.d/bird:
file.managed:
- source: salt://bird/files/bird.initd
- mode: 750
- user: root
- group: root
/etc/bird.conf:
file.managed:
- source: salt://bird/files/bird.conf
- replace: False
- mode: 640
- user: root
- group: root
{% if grains['init'] == 'systemd' %}
{% elif grains.init == 'systemd' %}
/etc/systemd/system/bird.service:
file.managed:
- source: salt://bird/files/bird.service
@ -41,7 +45,6 @@ bird:
- require:
- file: /etc/bird.conf
- watch:
- file: /etc/init.d/bird
- pkg: pkg_bird
bird-reload:

View File

@ -10,6 +10,7 @@ util-net-purged:
- www-client/elinks
- www-client/links
- net-analyzer/netcat6
- net-ftp/ftp
util-net:
pkg.latest:
@ -22,7 +23,7 @@ util-net:
- {{ pkg.gen_atom('net-analyzer/tcpdump') }}
- {{ pkg.gen_atom('net-analyzer/traceroute') }}
- {{ pkg.gen_atom('net-analyzer/iftop') }}
- {{ pkg.gen_atom('net-ftp/ftp') }}
- {{ pkg.gen_atom('net-ftp/lftp') }}
- {{ pkg.gen_atom('net-analyzer/openbsd-netcat') }}
- {{ pkg.gen_atom('net-misc/iputils') }}
- {{ pkg.gen_atom('net-misc/rsync') }}