Last active
April 6, 2016 17:56
-
-
Save orymate/36368b0aa45096c88520f060345df901 to your computer and use it in GitHub Desktop.
Salt gyakorlat
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sl: | |
pkg.installed | |
xinetd: | |
pkg: | |
- installed | |
service.running: | |
- require: | |
- pkg: xinetd | |
- watch: | |
- file: /etc/xinetd.d/* | |
/etc/xinetd.d/sl: | |
file.managed: | |
- contents: | | |
service sl | |
{ | |
disable = no | |
server = /usr/games/sl | |
socket_type = stream | |
protocol = tcp | |
user = nobody | |
wait = no | |
} | |
- require: | |
- file: add_2323_to_services | |
add_2323_to_services: | |
file.append: | |
- name: /etc/services | |
- text: sl 2323/tcp | |
ufw allow 2323/tcp: | |
cmd.run: | |
- unless: ufw status | grep 2323 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
base: | |
master: | |
- sl |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment