mirror of
https://github.com/valitydev/salt-common.git
synced 2024-11-06 02:15:20 +00:00
Replace net-ftp/ftp with lftp, update bird.init (#159)
This commit is contained in:
parent
5231409250
commit
27e6faed16
@ -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:
|
||||
|
@ -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') }}
|
||||
|
Loading…
Reference in New Issue
Block a user