forked from szepeviktor/debian-server-tools
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathserver.yml
144 lines (128 loc) · 2.97 KB
/
server.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
# Server installation
install:
date: 2015-MM-DD
operating-system: Debian jessie 8.1
# Clients using this server
clients:
#Client Name:
# type: user account|empty domain|email account|cron job|SeoPanel|Piwik|OWA|website|mailman|mirror
# services:
# - service 1
# - service 2
#Client Other:
# type: user account
# services:
# - service 2
# - service 3
# Services provided by this server
services:
private:
#service name 1:
# type: daemon|login script|cron job
# transport: tcp/123|php-ext|vhost|uds|name service
# source: non-packaged|non-repo
# location: /path/dir
# description: text
#service name 2:
# type: tcp/123
# description: vhost.name
irqbalance:
type: daemon
fail2ban:
type: daemon
transport: uds
suhosin:
type: php-ext
source: non-packaged
description: /usr/lib/php5/20121212
mod-pagespeed:
#daemon, apache module?
drush:
source: non-packaged
location: /opt/drush
courier-mta:
type: daemon
transport: [ tcp/25, tcp/465, tcp/587 ]
spamassassin:
type: daemon
transport: tcp/783
monit:
type: daemon
transport: tcp/28??
VMware Tools:
transport: VMCI socket
description: ATW/autorent
unattended-upgrades:
type: cron job
unscd:
type: daemon
transport: name service
mariadb:
type: daemon
transport: [ tcp/3306, uds ]
php5-fpm:
type: daemon
transport: uds
ntpdate:
type: cron job
vpscheck:
type: cron job
syslog-errors:
type: cron job
public:
munin-node:
type: daemon
transport: tcp/4949
apache2:
type: daemon
transport: [ tcp/80, tcp/443 ]
antivirus mirror:
type: vhost
description: vhost.name
can-send-email:
type: vhost
description: PHP script
# Consumed remote services
dependencies:
#dependency name 1:
# host: remote.host.fqdn.
# transport: tcp/123
# identify: $IP
dns resolver:
host: worker.szepe.net.
transport: tcp/53
transport: udp/53
identify: $IP
# Custom data directories
data dirs:
directory name: /path/to/dir
configuration files: /etc
local data: /usr/local
variable files: /var
# Installed systems
packaging:
#name:
# list: command to list installed packages
# location: package location
apt:
list: dpkg -l
location: /
pip2:
list: pip2 freeze
location: /usr/local/lib/python2.7
pip3:
list: pip3 freeze
location: /usr/local/lib/python3.4
# Also pecl
pear:
list: pear list-channels && pear list -c CHANNEL && pear list -c pecl.php.net
location: /usr/share/php
node:
list: npm -g list
location: /usr/lib/node_modules
ruby:
list: gem list
location: /usr/lib/ruby/vendor_ruby
#YAML editor: http://yaml-online-parser.appspot.com/
#php -r 'var_export(yaml_parse(file_get_contents("server.yml")));'
...