-
Notifications
You must be signed in to change notification settings - Fork 1
/
data.sls
148 lines (122 loc) · 2.6 KB
/
data.sls
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
145
146
147
148
ssh_port: 22 # port na kterém běží ssh server
{% macro admin_user() %}petr{% endmacro %}
admin_user: {{ admin_user() }} # uživatel který spravuje server
{% if grains['testmachine'] != 'OK' %}
# ostrý provoz
ipv4adress: {{ grains.ip4[0] }}
ipv6adress: {{ grains.ip6[0] }}
{% macro domain_example() %}example.com{% endmacro %}
{% macro domain_foo() %}foo.com{% endmacro %}
hostname: instant-vps.{{ domain_example() }}
{% else %}
# testovací prostředí
ipv4adress: {{ grains.ipv4[0] }}
ipv6adress: {{ grains.ipv6[0] }}
{% macro domain_example() %}example.cz{% endmacro %}
{% macro domain_foo() %}foo.cz{% endmacro %}
hostname: salt-test.{{ domain_example() }}
{% endif %}
base_mail_domain: {{ domain_example() }}
mailname: mx.{{ domain_example() }}
webmail_url: roundcube.{{ domain_example() }}
phpmyadmin_url: db.{{ domain_example() }}
domain_example: {{ domain_example() }}
domain_foo: {{ domain_foo() }}
maildomains:
- {{ domain_example() }}
- {{ domain_foo() }}
cyruspass: 8ma2xFmiNE
http_auth_users:
db:
pass: mqClmxh4yAhq4qf
stat:
pass: irkjb0RosizE3ys
fakemail:
port: 1234
home: /home/fakemail
roundcube:
version: 1.3.5
md5: 82286020f0dece7d0f4f433b63d7a691
phpmyadmin:
version: "4_7_9"
md5: d7403b3475d56239a0558cb55b811682
mysql:
root_password: n6kjNL8cvqkuvcg
ttrss_password: LtaVn1lnxpup2qk
mailboxes:
{{ admin_user() }}:
mailbox: {{ admin_user() }}@{{ domain_example() }}
password: 2xp5dLxsPz
ondrej:
mailbox: ondra@{{ domain_example() }}
password: dtfz89jdUS
jana:
mailbox: jana@{{ domain_foo() }}
password: 9WzmdqfsL3
jitka:
mailbox: jitka@{{ domain_foo() }}
password: fKSg4cl9by
fpm_pools:
www:
port: 9000
ttrss:
port: 9001
roundcube:
port: 9002
phpmyadmin:
port: 9003
nginx_confs:
- autoconfig
- awstats
- phpmyadmin
- roundcube
- staticsite
- ttrss
# utility k nainstalování
utils:
- htop
- curl
- tar
- dtrx
- cpanminus
- cowsay
- resolvconf
- fortunes-cs
- apache2-utils
- tcpdump
- sqlite3
- links
- gettext
- libipc-system-simple-perl
- libtemplate-perl
- libxml-simple-perl
- libintl-perl
- apt-listchanges
- libxml-perl
- libxml-libxml-perl
- colordiff
- apt-transport-https
- nmap
- telnet
- unp
- libio-socket-ip-perl
- libnet-server-mail-perl
- libwww-mechanize-perl
- libfile-slurp-perl
- libimage-size-perl
- libstring-mkpasswd-perl
- libimage-exiftool-perl
- libemail-simple-perl
- libemail-mime-perl
- libmime-tools-perl
- libtest-json-perl
- zip
- imagemagick
# nepotřebné balíky
remove:
- nano
- vim-tiny
- nfs-common
- rpcbind
- procmail
- mutt