Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Arch Linux
infrastructure
Commits
d38a7112
Verified
Commit
d38a7112
authored
Dec 27, 2019
by
Giancarlo Razzolini
Browse files
Merge branch 'master' of arch-git:/srv/git/infrastructure
parents
28bfa799
7baf2f21
Changes
9
Hide whitespace changes
Inline
Side-by-side
README.md
View file @
d38a7112
...
...
@@ -162,17 +162,6 @@ The following steps should be used to update our managed servers:
the hosts vars and re-used the archusers role. Users
in the phrik group are allowed to restar the irc bot.
### soyuz
#### Services
-
build server (pkgbuild.com)
-
releng
-
sogrep
-
/~user/ webhost
-
matrix
-
docker images
-
arch boxes (packer)
### dragon
#### Services
...
...
host_vars/dragon.archlinux.org
View file @
d38a7112
...
...
@@ -17,3 +17,4 @@ archbuild_fs: 'btrfs'
zabbix_agent_templates:
- Template OS Linux
- Template Btrfs
misc/vault_hetzner.yml
View file @
d38a7112
$ANSIBLE_VAULT;1.1;AES256
356
23837346431643363356131323862303663343434333565613164336139303438393139356664
3038
656
23
0
613
533313363636161616237306363306264370a35343531316230
31
6
43
23830313139
623
23236353533363264333930626631323038393864313334316131663732366130323363333364
6236306266316
63
1
390a
38656338393130663562333438383
36
2
313
5383932303436363931373034
66366631663138356635666236323632346166363236343333366463373531303230306534326338
376
531353462313735343662
346
2
64393
23937353037356130643531653435393839306536626537
3
0343030386432363962633666346639383236646361386564356533373862363336616366626433
306
537616264366664316639
373
2
653
364623638
313
63
930
35643034333834363532636464356563
336138306234303066643562383230326262306163336632
33616
3
6432
6165376435666636616432
6
1353337626666356366353862646564643439373239
3630
36333936
65616
1
393
736633335386636
6
3323563316639653
23
9
61
6137386233333539353562343466623463303937383939633833376634
6
535
3
663616
63561376534376663646335333263666162333733
3566
3234353033303662636162
64
66633237646366633834346231633330396538356338366530396466656631616339393631323936
3362393562616137333831
39
3
63
03565
633
5
38
6137356133613437633
43
6
65666
464353638666362
3
1323732343061336336653163346537383163386532646635333135356433393364303664323033
3
5356337343632333064383230333532336166633131653537333534303863633664656536396463
64613233353664343034646234303165633039666339383933373339353561646530383238303065
3
930386365326437343333
3332
64353030373064383766653134
34
356
164636366663266306235353431363762343164633938353533613437333536306533336461
3466343038
3038
3
23
7
613
6623532333633353739393035640a373036363866
31
3
43
8666263393630
623
73039313738393633356565343861663461626437343762323231613230663838656465356166
39333830653762
63390a
6633633638663932643864
36313
437633237316634386165343838396665
34366361623866336664326233363834386439373632313837306239653665653063373838313139
33
376
139633434
346
6
643
63
93
3613963656233623937646465656535646333343166313038363364
3
6383934633330656364626261356466353561363834306163356236616562376363326239343637
306
63161363135
373
7
653
830646433
313930
65303763623762333735343463343361663036323066
653165343735363239663336636266626
33
8
616
462
6432
3731383636396539363738613632323164
6
36630306430363337633
36
4
30
643031333762
65616
4
393
530326636343463633137383637393030
6
4306331616
23
7
61
3830363836646337323165363462613237376266653436663063393239383362
39623
535663
9
616
464623264323737303061373936653061326637623136
35
3
66
6646630303563
64
30353262376532663031653039643034323236643366313163353838653138616637353431333639
653335383964383862
3963
3238643
63338
346633313963643838316
43
9
656
4
66
6137313131366466
3
6316364653237353138303437366330623566306330343161333864313164303336396436353236
3
4636137623134313335326635666661666439303932303836356139313930383861613031316562
33363763613664363133666334663564363966323739643634303466373636323233633833633764
3
5373334333065356237376
33
9
32
333465616132376631623831
roles/zabbix-agent/files/zabbix-btrfs-subvolume.sh
0 → 100755
View file @
d38a7112
#!/bin/bash
btrfs subvol list
-d
/ |
wc
-l
roles/zabbix-agent/tasks/main.yml
View file @
d38a7112
...
...
@@ -95,6 +95,7 @@
-
postgresql-dbsize-stats.pl
-
postgresql-user-stats.pl
-
memcached-stats.py
-
zabbix-btrfs-subvolume.sh
-
name
:
Install helper scripts
copy
:
src=nginx-zabbix.pl dest=/usr/local/bin/nginx-zabbix.pl mode=0755 owner=root group=root
...
...
roles/zabbix-agent/templates/zabbix-agent-sudoers.conf.j2
View file @
d38a7112
zabbix-agent ALL=(root) NOPASSWD: /usr/local/bin/borg list --json --format {start}{end} --sort-by timestamp --last 1, /usr/local/bin/mysql-dbsize-stats.pl, /usr/local/bin/memcached-stats.py
zabbix-agent ALL=(root) NOPASSWD: /usr/local/bin/borg list --json --format {start}{end} --sort-by timestamp --last 1, /usr/local/bin/mysql-dbsize-stats.pl, /usr/local/bin/memcached-stats.py
, /usr/local/bin/zabbix-btrfs-subvolume.sh
zabbix-agent ALL=(postgres) NOPASSWD: /usr/local/bin/postgresql-dbsize-stats.pl, /usr/local/bin/postgresql-user-stats.pl
roles/zabbix-agent/templates/zabbix_agentd.conf
View file @
d38a7112
...
...
@@ -71,3 +71,5 @@ UserParameter=arch_archive.db_count,echo 'select count(*) from files;' | sqlite3
UserParameter
=
memcached
.
stats
[*],
sudo
/
usr
/
local
/
bin
/
memcached
-
stats
.
py
--
socket
'$1'
UserParameter
=
memcached
.
stats_discover
,/
usr
/
local
/
bin
/
memcached
-
stats
.
py
--
discover
#UserParameter=postgresql.dbsize_discover,sudo -u postgres /usr/local/bin/postgresql-dbsize-stats.pl discover
UserParameter
=
btrfs
.
subvolume_count
,
sudo
/
usr
/
local
/
bin
/
zabbix
-
btrfs
-
subvolume
.
sh
roles/zabbix-server/templates/irccat.json.j2
0 → 100644
View file @
d38a7112
{
"tcp": {
"listen": "localhost:12345"
},
"irc": {
"server": "chat.freenode.net:6697",
"tls": true,
"tls_skip_verify": false,
"nick": "archzabbix",
"realname": "Arch Zabbix Notifier",
"server_pass": "",
"identify_pass": "{{ vault_zabbix_irc_password }}",
"sasl_login": "archzabbix",
"sasl_pass": "{{ vault_zabbix_irc_password }}",
"channels": ["#archlinux-devops"]
},
"commands": {
}
}
roles/zabbix-server/templates/zabbix-irc-msg.j2
0 → 100644
View file @
d38a7112
#!/bin/sh
sender
=
$1
subject
=
$2
body
=
$3
echo
$subject
| nc
-c
localhost 12345
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment