Skip to content

Instantly share code, notes, and snippets.

@orymate
Last active April 6, 2016 17:56
Show Gist options
  • Save orymate/36368b0aa45096c88520f060345df901 to your computer and use it in GitHub Desktop.
Save orymate/36368b0aa45096c88520f060345df901 to your computer and use it in GitHub Desktop.
Salt gyakorlat
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
base:
master:
- sl
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment