Commit Graph

447 Commits

Author SHA1 Message Date
Kazuhiro MUSASHI 8df5e02c18 Deploy `/etc/lsyncd/lsyncd.conf.lua`. 2024-02-12 18:57:42 +09:00
Kazuhiro MUSASHI 2ad8d0938d Deploy the script to rsync and enable lsyncd. 2024-02-12 18:57:42 +09:00
Kazuhiro MUSASHI 785595cc95 Modify the base packages. 2024-02-11 21:16:56 +09:00
Kazuhiro MUSASHI cfdec27f89 Consul server setup 2024-02-11 18:55:30 +09:00
Kazuhiro MUSASHI 8d8a6affbd Install `cloudflared`. 2023-12-16 16:19:04 +09:00
Kazuhiro MUSASHI 0af6e65b74 Change `Consul` client ACL token. 2023-12-09 16:56:09 +09:00
Kazuhiro MUSASHI fd9fdc4541 Modify `Lego` scripts. 2023-12-09 15:01:10 +09:00
Kazuhiro MUSASHI 60399ae897 Install `avahi-daemon`. 2023-12-09 14:57:05 +09:00
Kazuhiro MUSASHI 8074910452 Accumulative changes. 2023-06-24 21:38:14 +09:00
Kazuhiro MUSASHI fbdd033d4b Add `prometheus` monitoring config for `vault`. 2023-06-24 21:38:14 +09:00
Kazuhiro MUSASHI 1de33f97cb Modify `vector` config for `alertmanager` 2023-06-24 21:38:14 +09:00
Kazuhiro MUSASHI 8c95ba95ba Modify config for `service-exporter_proxy`. 2023-06-24 21:38:14 +09:00
Kazuhiro MUSASHI f978a9a700 Delete `promtail` dependency. 2023-06-24 21:38:14 +09:00
Kazuhiro MUSASHI 52cccb14c4 Deploy `vector` config for `unattended-upgrades-dpkg.log`. 2023-06-24 21:38:14 +09:00
Kazuhiro MUSASHI f0635a2e8a Deploy `vector` config for `journald`. 2023-06-24 21:38:14 +09:00
Kazuhiro MUSASHI 401423d0da Deploy `vector` config for `consul`. 2023-06-24 21:38:14 +09:00
Kazuhiro MUSASHI 75755b99f2 Deploy `vector` config for `/var/log/auth.log`. 2023-06-24 21:38:14 +09:00
Kazuhiro MUSASHI a201eea560 Deploy `vector` config for `apt`. 2023-06-24 21:37:45 +09:00
Kazuhiro MUSASHI e9a1480351 Delete `promtail` config for `snmp_exporter`. 2023-06-24 21:37:30 +09:00
Kazuhiro MUSASHI b21253be8c Delete `/etc/promtail/prometheus.yaml`. 2023-06-24 21:37:30 +09:00
Kazuhiro MUSASHI e7e720a04a Deploy `logrotate` config for `webhook`. 2023-06-24 21:29:16 +09:00
Kazuhiro MUSASHI da0f63ab5e Deploy `rsyslog` config for `alert manager`. 2023-06-24 21:29:06 +09:00
Kazuhiro MUSASHI 7889da9ceb Delete `supervisor` dependency. 2023-06-24 21:28:50 +09:00
Kazuhiro MUSASHI 75b9a74059 Deploy `/etc/systemd/system/vector-alertmanager.service`. 2023-02-21 23:11:30 +09:00
Kazuhiro MUSASHI 6788676faa Deploy `/etc/vector/alertmanager.toml`. 2023-02-21 23:11:30 +09:00
Kazuhiro MUSASHI 1e31bff167 Deploy `/etc/logrotate.d/alertmanager`. 2023-02-21 23:11:17 +09:00
Kazuhiro MUSASHI 970a9617eb Deploy `/etc/systemd/system/alertmanager.service`. 2023-02-21 23:08:43 +09:00
Kazuhiro MUSASHI 15735e5363 Deploy `/etc/rsyslog.d/30-alertmanager.conf`. 2023-02-21 23:08:43 +09:00
Kazuhiro MUSASHI b267efe671 Deploy `systemd` config for `alertmanager`. 2023-02-21 23:08:43 +09:00
Kazuhiro MUSASHI 8e6c1efc94 Modify `systemd` service files. 2023-02-21 23:08:16 +09:00
Kazuhiro MUSASHI 14784cc085 Modify permissions of `/etc/prometheus.d` and `/var/opt/prometheus`. 2023-02-21 23:07:46 +09:00
Kazuhiro MUSASHI f4d181bca8 Deploy `/etc/systemd/systemd/vector-prometheus.service`. 2023-02-21 23:02:22 +09:00
Kazuhiro MUSASHI 72a89595e7 Add alert rules for `prometheus` and `vector-prometheus`. 2023-02-21 23:02:22 +09:00
Kazuhiro MUSASHI c6fc83191e Deploy `/etc/systemd/systemd/vector-prometheus.service`. 2023-02-21 23:02:22 +09:00
Kazuhiro MUSASHI 8c8db4ad18 Deploy `/etc/vector/prometheus.toml`. 2023-02-21 23:02:04 +09:00
Kazuhiro MUSASHI ec680b2719 Deploy `/etc/logrotate.d/prometheus`. 2023-02-21 23:02:04 +09:00
Kazuhiro MUSASHI 26ff24d784 Deploy `/etc/rsyslog.d/30-prometheus.conf`. 2023-02-21 23:01:10 +09:00
Kazuhiro MUSASHI 1bf6c47e99 Deploy `/etc/systemd/system/prometheus.service`. 2023-02-21 23:00:40 +09:00
Kazuhiro MUSASHI a8b8c6b6e2 Create `prometheus` user. 2023-02-21 23:00:09 +09:00
Kazuhiro MUSASHI b28477137c Deploy `/etc/systemd/system/prometheus.service`. 2023-02-21 23:00:09 +09:00
Kazuhiro MUSASHI 8efef5000c Delete `/etc/supervisor/conf.d/prometheus.conf`. 2023-02-21 22:32:04 +09:00
Kazuhiro MUSASHI 78b4c3464f Add `consul` service config for `exporter_proxy`. 2023-02-10 22:55:40 +09:00
Kazuhiro MUSASHI a5595f30f7 Add `prometheus` alert rule for `exporter_proxy`. 2023-02-10 22:55:40 +09:00
Kazuhiro MUSASHI 5ed63d8ba1 Update the version of `exporter_proxy`. 2023-02-10 22:55:40 +09:00
Kazuhiro MUSASHI 6e633166fd Modify config for `exporter_proxy`. 2023-02-10 22:55:40 +09:00
Kazuhiro MUSASHI e20ba94025 Deploy `systemd` config for `exporter_proxy`. 2023-02-10 22:51:59 +09:00
Kazuhiro MUSASHI 3657d7c698 Delete `supervisor` config for `exporter_proxy`. 2023-02-10 22:48:40 +09:00
Kazuhiro MUSASHI 0b4860279f Add `alert rule` for `filestat_exporter`. 2023-02-10 18:55:55 +09:00
Kazuhiro MUSASHI f7eae0c857 Deploy `systemd` config for `filestat_exporter`. 2023-02-10 18:55:55 +09:00
Kazuhiro MUSASHI 080eda7535 Deploy `logrotate` config for `filestat_exporter`. 2023-02-10 18:55:55 +09:00
Kazuhiro MUSASHI 7887813153 Deploy `rsyslog` config for `filestat_exporter`. 2023-02-10 18:55:55 +09:00
Kazuhiro MUSASHI 9a8b53cd8f Modify typo 2023-02-07 23:11:49 +09:00
Kazuhiro MUSASHI f6f354115d Deploy `systemd` config for `filestat_exporter`. 2023-02-07 23:11:49 +09:00
Kazuhiro MUSASHI 448ceda784 Delete `supervisor` config for `filestat_exporter`. 2023-02-07 23:10:28 +09:00
Kazuhiro MUSASHI e859be7384 Add `Prometheus` mointoring rules for `snmp_exporter` and `vector-snmp_exporter` 2023-02-07 22:30:46 +09:00
Kazuhiro MUSASHI 2a78c5f1e6 Add `systemd` files for `snmp_exporter` and `vector-snmp_exporter` 2023-02-07 22:30:28 +09:00
Kazuhiro MUSASHI 3c27430e57 Deploy `logrotate` config for `snmp_exporter`. 2023-02-05 21:54:28 +09:00
Kazuhiro MUSASHI a621b5d255 Deploy `rsyslog` config for `snmp_exporter`. 2023-02-05 21:54:28 +09:00
Kazuhiro MUSASHI 83484ff4a5 Deploy `snmp_exporter` service and enable it. 2023-02-05 20:41:12 +09:00
Kazuhiro MUSASHI 44cede10da Deploy `systemd` config for `vector-node_exporter`. 2023-02-05 19:50:38 +09:00
Kazuhiro MUSASHI ccf94f0174 Deploy `logrotate` config for `node_exporter`. 2023-02-05 19:43:29 +09:00
Kazuhiro MUSASHI 7a0b2938be Deploy `rsyslog` config for `node_exporter`. 2023-02-05 19:20:14 +09:00
Kazuhiro MUSASHI 0bfd4a7d53 Deploy `systemd` config for `node_exporter`. 2023-02-05 19:09:26 +09:00
Kazuhiro MUSASHI 5bf5eac091 Add alert rule for `node_exporter`. 2023-02-05 19:07:02 +09:00
Kazuhiro MUSASHI ceb75182df Do not use `supervisor` to start/stop `node_exporter`. 2023-02-05 19:03:29 +09:00
Kazuhiro MUSASHI fd01843277 Update `docker` recipe. 2023-02-05 19:03:29 +09:00
Kazuhiro MUSASHI bad580a4a0 Delete `gitea` recipe. 2023-02-05 14:25:16 +09:00
Kazuhiro MUSASHI bb525658d6 Uppdate `gitea` recipe. 2023-02-05 14:19:23 +09:00
Kazuhiro MUSASHI 19240a2c7a Temporary fix 2023-02-05 14:03:59 +09:00
Kazuhiro MUSASHI 9175c284ec Update `Vector` config for `syslog` receiver. 2023-02-05 14:01:45 +09:00
Kazuhiro MUSASHI 7ddfc88518 Update `/etc/vector/syslog.tom`. 2023-02-05 13:58:57 +09:00
Kazuhiro MUSASHI e509c531ae Add alert rules for `systemd` services. 2023-02-05 13:42:15 +09:00
Kazuhiro MUSASHI 9aca3252b6 Update `alertmanager.yml`. 2023-02-05 13:39:19 +09:00
Kazuhiro MUSASHI b063cba98f Add `logrotate` file for `digdag`. 2023-02-05 11:13:03 +09:00
Kazuhiro MUSASHI 76357646f0 Add `rsyslog` file for `digdag`. 2023-02-05 11:13:03 +09:00
Kazuhiro MUSASHI b3d014658a Deploy `logrotate` config for `digdag`. 2023-02-05 11:13:03 +09:00
Kazuhiro MUSASHI 4aaecfdcfd Add `everun` recipe. 2023-02-05 11:13:03 +09:00
Kazuhiro MUSASHI 227ddd9362 Delete unnecessary `nginx` service restart step. 2023-02-05 11:13:03 +09:00
Kazuhiro MUSASHI 9438dc34b4 Change the flag value so that it's intuitive. 2023-02-05 11:13:03 +09:00
Kazuhiro MUSASHI 955f3ab1ca Add shell scripts to generate TSL certificates. 2023-02-05 11:13:03 +09:00
Kazuhiro MUSASHI d60426b355 Delete `lego_run.sh`. 2023-02-05 11:13:03 +09:00
Kazuhiro MUSASHI 211565df90 Delete `blog`-related files. 2023-02-05 11:13:03 +09:00
Kazuhiro MUSASHI ba41bd9fe1 Do not install `gitea`. 2023-02-05 11:13:03 +09:00
Kazuhiro MUSASHI d42b428427 Add `everun.club`-related files. 2023-02-05 11:13:03 +09:00
Kazuhiro MUSASHI 2063817821 Move `webadm` configuration parts to `webadm.rb`. 2023-02-05 11:13:03 +09:00
Kazuhiro MUSASHI 4c849d22c5 Monitor `digdag` log files. 2023-02-05 11:13:03 +09:00
Kazuhiro MUSASHI b208ff620e Deploy `digdag` systemd file and enable `digdag`. 2023-01-28 10:37:37 +09:00
Kazuhiro MUSASHI e4282e28d7 Delete unnecesary `supervisord` steps. 2023-01-28 10:37:37 +09:00
Kazuhiro MUSASHI 6f48a84591 Delete `supervisord` config for `Consul`. 2023-01-28 10:37:37 +09:00
Kazuhiro MUSASHI bde351eb5f Update `/etc/grafana/grafana.ini` setting. 2023-01-28 10:37:37 +09:00
Kazuhiro MUSASHI 89e2103696 Change `nginx` build option. 2023-01-28 10:37:37 +09:00
Kazuhiro MUSASHI 114e10758a Update `/etc/lego/lego_run.sh`. 2023-01-28 10:37:37 +09:00
Kazuhiro MUSASHI 947cf0eb9d Bump `nginx` version. 2023-01-28 10:37:37 +09:00
Kazuhiro MUSASHI a00dd97b81 Properly handle HTTP 301 redirection. 2023-01-28 10:37:37 +09:00
Kazuhiro MUSASHI 1943fb5f09 Change logic to deploy `/etc/systemd/timesyncd.conf`. 2023-01-28 10:37:37 +09:00
Kazuhiro MUSASHI 1875e14f29 Update `/etc/dnsmasq.conf` & `/etc/systemd/resolved.conf` for `Ubuntu 22.04`. 2023-01-28 10:37:37 +09:00
Kazuhiro MUSASHI c40dc83965 Update `sshd_config` & deploy `sshd_config` for `Ubuntu 22.04`: 2023-01-28 10:37:37 +09:00
Kazuhiro MUSASHI 78b98cdab6 Update `50unattended-upgrades` and deploy 2023-01-28 10:37:37 +09:00
Kazuhiro MUSASHI a773b4a1b5 Install `systemd-timesyncd` and add its config file:
```
--- a/cookbooks/base/default.rb
+++ b/cookbooks/base/default.rb
@@ -80,6 +80,20 @@
 when "20.04", "22.04"
   service 'multipath-tools' do
     action :nothing
   end
+
+  package 'systemd-timesyncd'
+
+  service 'systemd-timesyncd' do
+    action :enable
+  end
+
+  remote_file '/etc/systemd/timesyncd.conf' do
+    owner 'root'
+    group 'root'
+    mode '0644'
+
+    notifies :restart, 'service[systemd-timesyncd]'
+  end
 end
```
2023-01-28 10:37:37 +09:00
Kazuhiro MUSASHI 11bdc70327 Use `node['platform_version']` & support `Ubuntu 22.04` for timezone setting: 2023-01-28 10:37:37 +09:00