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:
|
include:
|
||||||
- .pkg
|
- .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:
|
/etc/init.d/bird6:
|
||||||
file.absent:
|
file.absent:
|
||||||
- require:
|
- require:
|
||||||
@ -9,22 +28,7 @@ include:
|
|||||||
bird6:
|
bird6:
|
||||||
service.dead
|
service.dead
|
||||||
|
|
||||||
/etc/init.d/bird:
|
{% elif grains.init == 'systemd' %}
|
||||||
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' %}
|
|
||||||
/etc/systemd/system/bird.service:
|
/etc/systemd/system/bird.service:
|
||||||
file.managed:
|
file.managed:
|
||||||
- source: salt://bird/files/bird.service
|
- source: salt://bird/files/bird.service
|
||||||
@ -41,7 +45,6 @@ bird:
|
|||||||
- require:
|
- require:
|
||||||
- file: /etc/bird.conf
|
- file: /etc/bird.conf
|
||||||
- watch:
|
- watch:
|
||||||
- file: /etc/init.d/bird
|
|
||||||
- pkg: pkg_bird
|
- pkg: pkg_bird
|
||||||
|
|
||||||
bird-reload:
|
bird-reload:
|
||||||
|
@ -10,6 +10,7 @@ util-net-purged:
|
|||||||
- www-client/elinks
|
- www-client/elinks
|
||||||
- www-client/links
|
- www-client/links
|
||||||
- net-analyzer/netcat6
|
- net-analyzer/netcat6
|
||||||
|
- net-ftp/ftp
|
||||||
|
|
||||||
util-net:
|
util-net:
|
||||||
pkg.latest:
|
pkg.latest:
|
||||||
@ -22,7 +23,7 @@ util-net:
|
|||||||
- {{ pkg.gen_atom('net-analyzer/tcpdump') }}
|
- {{ pkg.gen_atom('net-analyzer/tcpdump') }}
|
||||||
- {{ pkg.gen_atom('net-analyzer/traceroute') }}
|
- {{ pkg.gen_atom('net-analyzer/traceroute') }}
|
||||||
- {{ pkg.gen_atom('net-analyzer/iftop') }}
|
- {{ 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-analyzer/openbsd-netcat') }}
|
||||||
- {{ pkg.gen_atom('net-misc/iputils') }}
|
- {{ pkg.gen_atom('net-misc/iputils') }}
|
||||||
- {{ pkg.gen_atom('net-misc/rsync') }}
|
- {{ pkg.gen_atom('net-misc/rsync') }}
|
||||||
|
Loading…
Reference in New Issue
Block a user