Commit Graph

460 Commits

Author SHA1 Message Date
Kazuhiro MUSASHI 6fa35a923b Retrieve IP address. 2022-03-13 21:44:18 +09:00
Kazuhiro MUSASHI a917563b06 Conduct setup procedures, when explicitly requested. 2022-03-13 21:43:52 +09:00
Kazuhiro MUSASHI 28e3f21141 Install `Vault`. 2022-03-12 11:59:44 +00:00
Kazuhiro MUSASHI 2bec4d88f3 Do not deploy `docker-registry.hcl`. 2022-01-14 23:52:59 +09:00
Kazuhiro MUSASHI 8c712e6ffa Delete `/etc/nomad.d/datadir.hcl`. 2022-01-14 23:52:59 +09:00
Kazuhiro MUSASHI 5e176ff230 Modify `/etc/nomad.d/client.hcl`:
```
--- a/cookbooks/nomad/files/etc/nomad.d/client.hcl
+++ b/cookbooks/nomad/files/etc/nomad.d/client.hcl
@@ -1,13 +1,3 @@
-# /etc/nomad.d/server.hcl
-
 client {
-  enabled          = true
-}
-
-plugin "docker" {
-  config {
-    volumes {
-      enabled = true
-    }
-  }
+  enabled        = true
 }
```
2022-01-14 23:52:58 +09:00
Kazuhiro MUSASHI 935f773bca Deploy `csi` settings. 2022-01-14 23:52:58 +09:00
Kazuhiro MUSASHI de06f5575c Add `logrotated` config for `nomad` log files.
```
--- /dev/null
+++ b/cookbooks/nomad/files/etc/logrotate.d/nomad
@@ -0,0 +1,13 @@
+/var/log/nomad.log
+{
+        rotate 4
+        weekly
+        missingok
+        notifempty
+        compress
+        delaycompress
+        sharedscripts
+        postrotate
+                /usr/lib/rsyslog/rsyslog-rotate
+        endscript
+}
```
2022-01-10 15:29:00 +09:00
Kazuhiro MUSASHI dffb57e2fc Add `rsyslog` config for `nomad`. 2022-01-10 15:29:00 +09:00
Kazuhiro MUSASHI 9e6b05fbab Specify `Loki` endpoint.
```
--- a/cookbooks/nomad/attributes.rb
+++ b/cookbooks/nomad/attributes.rb
@@ -4,6 +4,7 @@
 node.reverse_merge!({
   'nomad' => {
     'manager' => false,
-    'client' => false
+    'client' => false,
+    'lokiendpoint' => 'loki.service.consul:3100'
   }
 })
```
2022-01-10 15:29:00 +09:00
Kazuhiro MUSASHI d824d6afc8 Add `systemd` config for `Promtail` monitoring `nomad`. 2022-01-10 15:29:00 +09:00
Kazuhiro MUSASHI a7363ef7b1 Add `Promtail` setting for `nomad`. 2022-01-10 15:29:00 +09:00
Kazuhiro MUSASHI 0d8b8f50a0 Add `embulk` plugins:
- `output-postgresql`
- `input-mysql`
- `filter-gsub`
2022-01-10 15:03:37 +09:00
Kazuhiro MUSASHI 96ba6e7757 Modify # of `nomad` servers:
```
--- a/cookbooks/nomad/files/etc/nomad.d/server.hcl
+++ b/cookbooks/nomad/files/etc/nomad.d/server.hcl
@@ -1,4 +1,4 @@
 server {
   enabled          = true
-  bootstrap_expect = 1
+  bootstrap_expect = 3
 }
```
2021-11-03 12:39:44 +09:00
Kazuhiro MUSASHI 9eddfaf514 Execute `modprobe` for the necessary kernel parameer. 2021-11-03 12:36:33 +09:00
Kazuhiro MUSASHI 3d981799b6 Stop `vector` service. 2021-11-03 12:33:02 +09:00
Kazuhiro MUSASHI a81dc16e90 Add template for the apt source. 2021-11-03 12:32:32 +09:00
Kazuhiro MUSASHI 93064a94d4 Use `.deb` package to install `vector`. 2021-11-03 12:31:31 +09:00
Kazuhiro MUSASHI e113a42ade Modify `syslog.toml` to directly sending logs to `Loki`. 2021-10-22 15:19:44 +09:00
Kazuhiro MUSASHI a87e94d4ee Change `vector` download URL.
```
diff --git a/cookbooks/vector/attributes.rb b/cookbooks/vector/attributes.rb
index c41aaf0..e48f7ef 100644
--- a/cookbooks/vector/attributes.rb
+++ b/cookbooks/vector/attributes.rb
@@ -16,7 +16,7 @@ ipaddr = run_command(cmd).stdout.chomp

 node.reverse_merge!({
   'vector' => {
-    'url' => 'https://github.com/timberio/vector/releases/download/',
+    'url' => 'https://github.com/vectordotdev/vector/releases/download/',
     'ipaddr' => ipaddr,
     'debPrefix' => 'vector-',
     'debPostfix' => '-amd64.deb'
```

```
diff --git a/cookbooks/vector/install.rb b/cookbooks/vector/install.rb
index 3def346..389ee76 100644
--- a/cookbooks/vector/install.rb
+++ b/cookbooks/vector/install.rb
@@ -8,7 +8,8 @@ vtag       = ''
 begin
   require 'net/http'

-  uri = URI.parse('https://github.com/timberio/vector/releases/latest')
+
+  uri = URI.parse('https://github.com/vectordotdev/vector/releases/latest')

   Timeout.timeout(3) do
     response = Net::HTTP.get_response(uri)
```
2021-09-23 19:19:38 +09:00
Kazuhiro MUSASHI a0fef35f2f Toggle `nginx` setup behavior. 2021-09-23 19:17:57 +09:00
Kazuhiro MUSASHI 5af9b0b416 Bump `nginx` version. 2021-09-23 19:12:45 +09:00
Kazuhiro MUSASHI 0d607fb1e9 Modify the path to the `Moments` directory. 2021-08-13 11:19:39 +09:00
Kazuhiro MUSASHI 5b4bcc8b81 Deploy the `mc` config file. 2021-06-19 20:29:44 +09:00
Kazuhiro MUSASHI d69cb345af Install `mc` for `root` user. 2021-06-19 20:27:20 +09:00
Kazuhiro MUSASHI 386d169530 Change `mount` behavior. 2021-06-19 20:20:15 +09:00
Kazuhiro MUSASHI 21f9bb8237 Install plugins for root 2021-06-19 20:19:42 +09:00
Kazuhiro MUSASHI 8d335a7bae temp 2021-06-19 20:19:42 +09:00
Kazuhiro MUSASHI 00813e9f17 Overwrite `/usr/local/bin/embulk`. 2021-06-19 20:19:42 +09:00
Kazuhiro MUSASHI 8dadc5e2fd Change the download URL. 2021-06-19 20:19:42 +09:00
Kazuhiro MUSASHI 2ac28d295f Modify `/home/kazu634/.ssh/config` to connect to `gitea.kazu634.com`. 2021-06-19 20:06:35 +09:00
Kazuhiro MUSASHI cb368a1445 Deploy `/etc/nomad.d/acl.hcl`. 2021-06-19 19:56:45 +09:00
Kazuhiro MUSASHI 531dde8bff Deploy `/etc/nomad.d/server.hcl`. 2021-06-19 19:56:45 +09:00
Kazuhiro MUSASHI bd4f65dcf5 Change the default config to install `nomad` only. 2021-06-19 19:56:45 +09:00
Kazuhiro MUSASHI d5060f84f4 Install `nomad` even if the node is not `nomad` server/client. 2021-06-19 19:55:17 +09:00
Kazuhiro MUSASHI 3d7c8e2044 Unmonitor k8s. 2021-05-05 11:47:03 +09:00
Kazuhiro MUSASHI 2bc0b23eef Bump `nginx` version. 2021-05-04 11:49:03 +09:00
Kazuhiro MUSASHI bd359d8ec6 Modify the nginx deployment. 2021-05-04 11:36:52 +09:00
Kazuhiro MUSASHI ff39013b2c Install `alertmanager-webhook`. 2021-05-02 19:20:39 +09:00
Kazuhiro MUSASHI 2bcbc2f396 Modify the extention to `.zip`. 2021-05-02 19:19:38 +09:00
Kazuhiro MUSASHI b87bdc899a Delete the unnecessary attributes. 2021-05-02 19:19:00 +09:00
Kazuhiro MUSASHI 2cf998e0d7 Bump `embulk` version. 2021-05-02 19:14:31 +09:00
Kazuhiro MUSASHI 1701922c91 Execute deploy scripts for `nginx`. 2021-05-02 19:08:30 +09:00
Kazuhiro MUSASHI f55682e5c3 Modify `nginx` deploy settings. 2021-05-02 19:08:30 +09:00
Kazuhiro MUSASHI 2eed57822c Deploy `consul-template`. 2021-05-02 19:08:17 +09:00
Kazuhiro MUSASHI 010a53a58b Deploy `nomad`. 2021-05-02 19:08:17 +09:00
Kazuhiro MUSASHI 70c90a18e2 Ensure to satisfy the prerequisites. 2021-05-02 19:07:36 +09:00
Kazuhiro MUSASHI 962307289b Always make `/var/log/vector` directory. 2020-12-13 14:08:36 +09:00
Kazuhiro MUSASHI a45572e521 Deploy `systemd` config for `vector-docker`. 2020-12-13 14:08:36 +09:00
Kazuhiro MUSASHI cc9ce1806e Deploy `vector` config for `Docker` logs. 2020-12-13 14:08:36 +09:00
Kazuhiro MUSASHI f78ba5f134 Ignore "libcontainer container" message. 2020-12-10 15:52:48 +09:00
Kazuhiro MUSASHI 529d9adb7c Specify the YYYY-MM-DD more explicitly. 2020-12-06 12:28:56 +09:00
Kazuhiro MUSASHI 6d19ebf31b Ignore `rclone` error messages. 2020-12-06 12:28:23 +09:00
Kazuhiro MUSASHI 660420b10b Ignore `consul` message from `syslog`. 2020-12-06 12:27:06 +09:00
Kazuhiro MUSASHI 7c9e1ed48c Ignore "tmp-sanity" message. 2020-12-06 12:27:06 +09:00
Kazuhiro MUSASHI 90bfae99c9 Ignore "libcontainer container" message. 2020-12-06 12:27:06 +09:00
Kazuhiro MUSASHI 935b2e1732 Consolidate the `drop` stanzas. 2020-12-06 12:27:06 +09:00
Kazuhiro MUSASHI 8497937786 Ignore "Last log rotation time" message. 2020-12-06 12:27:06 +09:00
Kazuhiro MUSASHI 6822c916e6 Ignore "Calculated write I/O size" message. 2020-12-06 12:27:06 +09:00
Kazuhiro MUSASHI bd1571e11c Because of the download URL change, modify the formula to generate URL. 2020-12-06 12:04:40 +09:00
Kazuhiro MUSASHI 1b52f65c91 Because of the download URL change, modify attiributes. 2020-12-06 12:04:10 +09:00
Kazuhiro MUSASHI bb93ae33f4 Change how to install `rclone` to guarantee idempotency. 2020-12-06 11:56:32 +09:00
Kazuhiro MUSASHI 797c0d50f4 `apt` keyの指定方法を修正 2020-12-06 11:51:56 +09:00
Kazuhiro MUSASHI de2aab1bb8 Change the `consul` server IP addresses. 2020-11-28 16:19:00 +09:00
Kazuhiro MUSASHI ccaaa81cb4 Modify owner and group for `consul` config from `root` to `consul`. 2020-11-28 16:18:46 +09:00
Kazuhiro MUSASHI 0d9e65359a Modify `promtail` config for `consul`. 2020-11-28 16:18:46 +09:00
Kazuhiro MUSASHI 9af4fa19a6 Reload `consul` when deploying service config. 2020-11-28 16:18:46 +09:00
Kazuhiro MUSASHI 7270023c92 Overwrite the `systemd` config to rotate the log files. 2020-11-28 16:18:46 +09:00
Kazuhiro MUSASHI 0e6c2ad531 Create log directory for `consul`. 2020-11-28 16:18:46 +09:00
Kazuhiro MUSASHI 41f25a9a1c Deploy `/etc/consul.d/config.hcl`. 2020-11-28 16:16:52 +09:00
Kazuhiro MUSASHI 39f8fc5bc1 Install from `deb` package. 2020-11-28 16:07:12 +09:00
Kazuhiro MUSASHI 5ee2a54599 Specify the `database.maximumPoolSize`. 2020-11-22 02:21:16 +09:00
Kazuhiro MUSASHI 2073c93d0c Modify mount point setting. 2020-11-21 18:11:25 +09:00
Kazuhiro MUSASHI 999d111470 Deploy the `rclone` config to `kazu634` and `root`. 2020-11-14 16:39:15 +09:00
Kazuhiro MUSASHI f442ed4e7a Set up `rclone`. 2020-11-14 16:39:15 +09:00
Kazuhiro MUSASHI 6330f1e9b0 Install `rclone`. 2020-11-14 16:39:15 +09:00
Kazuhiro MUSASHI d1240d43b0 Add attirbutes for `rclone`. 2020-11-14 16:36:57 +09:00
Kazuhiro MUSASHI a018a86c4a Modify `promtail` config for `digdag`. 2020-11-14 12:33:58 +09:00
Kazuhiro MUSASHI 940645f061 Change permission to `755` for `var/lib/grafana/provision/dashboards`. 2020-11-13 14:36:09 +09:00
Kazuhiro MUSASHI dadd023571 Deploy `/etc/grafana/grafana.ini`. 2020-11-13 12:39:10 +09:00
Kazuhiro MUSASHI 92fa012cb0 Deploy the Dashboard json config. 2020-11-13 12:38:42 +09:00
Kazuhiro MUSASHI 506a63697c Deploy `Grafana` provision data for Datasources. 2020-11-13 12:38:42 +09:00
Kazuhiro MUSASHI 6369b92026 Deploy dashboard data. 2020-11-13 12:38:42 +09:00
Kazuhiro MUSASHI 910252eb50 Modify `promtail` config for `syslog` monitoring. 2020-11-12 16:11:17 +09:00
Kazuhiro MUSASHI ffca0b2410 Modify `promtail` config for base configuration. 2020-11-12 16:11:11 +09:00
Kazuhiro MUSASHI 3e2df13b82 Modify `mount` command parameters. 2020-11-12 16:01:48 +09:00
Kazuhiro MUSASHI f7054c6663 Do not deploy `nginx` conf, if deployed. 2020-11-12 15:57:47 +09:00
Kazuhiro MUSASHI 2ca7e31821 Do not deploy SSH keys if already deployed. 2020-11-12 15:55:27 +09:00
Kazuhiro MUSASHI b78aee2026 Deploy the `/etc/multppath.conf` not to output the error message. 2020-11-07 13:02:31 +09:00
Kazuhiro MUSASHI 4432c311e8 Encrypt Public keys and etc. 2020-11-02 01:04:52 +09:00
Kazuhiro MUSASHI 2228abd12a Set up `go-mmproxy`. 2020-11-02 00:56:02 +09:00
Kazuhiro MUSASHI 49b4326aa1 Install `go-mmproxy`. 2020-11-02 00:56:02 +09:00
Kazuhiro MUSASHI 294c24b89a Set up `gitea`. 2020-11-02 00:56:02 +09:00
Kazuhiro MUSASHI b9f79057a2 Install `gitea`. 2020-11-02 00:53:39 +09:00
Kazuhiro MUSASHI fdfa8d05de Install and initial setup for `lsyncd`. 2020-11-02 00:53:39 +09:00
Kazuhiro MUSASHI a90c819639 Overwrite `loki`. 2020-10-31 17:05:27 +09:00
Kazuhiro MUSASHI 344b1c719a Modify cofig for `promtail` base config. 2020-10-31 17:02:07 +09:00
Kazuhiro MUSASHI c1825155f6 Modify `promtail` config for `nginx`. 2020-10-31 17:01:54 +09:00
Kazuhiro MUSASHI 22bd0f555e Modify `promtail` config for `loki`. 2020-10-31 17:01:22 +09:00
Kazuhiro MUSASHI 1b6b3bb0a5 Set up `vector` for `syslog`. 2020-10-31 16:53:32 +09:00
Kazuhiro MUSASHI 9d1d6018bd Install `vector`. 2020-10-31 16:51:38 +09:00
Kazuhiro MUSASHI 5aa3589d56 Modify the service name to be restarted. 2020-10-25 15:44:04 +09:00
Kazuhiro MUSASHI 3a6930fb0d Modify indent. 2020-10-25 00:38:49 +09:00
Kazuhiro MUSASHI 3c6931f86f Monitor all the config files under `/etc/prometheus.d/alerts`. 2020-10-25 00:32:55 +09:00
Kazuhiro MUSASHI 291e369aba Add alert settings for router. 2020-10-25 00:32:55 +09:00
Kazuhiro MUSASHI f9f795e234 Add `Prometheus` config to scrape Router. 2020-10-25 00:32:55 +09:00
Kazuhiro MUSASHI eb9b904f4f Monitor `synology` NAS. 2020-10-25 00:32:55 +09:00
Kazuhiro MUSASHI 3aa5a8bb09 Deploy the `systemd` config for monitoring `snmp_exporter` logs. 2020-10-25 00:32:55 +09:00
Kazuhiro MUSASHI 5a32a4bcec Deploy `promtail` config for `snmp_exporter`. 2020-10-25 00:32:55 +09:00
Kazuhiro MUSASHI a5b6dbd529 Deploy `consul config for `snmp_exporter`. 2020-10-25 00:32:55 +09:00
Kazuhiro MUSASHI ace020419f Deploy config file and `supervisord` config. 2020-10-25 00:32:55 +09:00
Kazuhiro MUSASHI 3f9edd9731 Setup `snmp_exporter`. 2020-10-25 00:32:55 +09:00
Kazuhiro MUSASHI 1f31f1314a Install `snmp_exporter`. 2020-10-25 00:32:55 +09:00
Kazuhiro MUSASHI 2fccf62e20 Specify attributes for `snmp_exporter`. 2020-10-25 00:32:55 +09:00
Kazuhiro MUSASHI 1a530ed7de Modify monitoring condition for Kernel differences. 2020-10-24 13:09:05 +09:00
Kazuhiro MUSASHI 47a854653e Change monitoring condition for Context Switch. 2020-10-24 13:08:30 +09:00
Kazuhiro MUSASHI c6531b06a0 Monitor `apt-mirror` update status. 2020-10-24 13:07:54 +09:00
Kazuhiro MUSASHI 635542ad3e Monitor `apt-mirror` update status. 2020-10-24 12:56:43 +09:00
Kazuhiro MUSASHI 98b7a4ce42 Modify `promtail` config for `digdag`. 2020-10-24 12:44:17 +09:00
Kazuhiro MUSASHI 06f5f13ca5 Healthcheck for `Grafana`. 2020-10-24 12:30:38 +09:00
Kazuhiro MUSASHI 25a17917f5 Healthcheck for `Loki`. 2020-10-24 12:30:26 +09:00
Kazuhiro MUSASHI 654a98b3ce Healthcheck for `prometheus`. 2020-10-24 12:30:17 +09:00
Kazuhiro MUSASHI 6315dc759e Healthcheck for `consul`. 2020-10-24 12:30:05 +09:00
Kazuhiro MUSASHI ccc4f90bac Healthcheck for `node_exporter`. 2020-10-17 13:59:53 +09:00
Kazuhiro MUSASHI 147e1bc643 Healthcheck for `filestat_exporter`. 2020-10-17 13:59:00 +09:00
Kazuhiro MUSASHI 018890d7e1 Use `unattended-upgrade`, instead of `cron-apt`. 2020-10-13 21:18:37 +09:00
Kazuhiro MUSASHI 601d814d5d Modify `Nginx` cookbook. 2020-10-13 21:18:37 +09:00
Kazuhiro MUSASHI 94420844b0 Modify `/etc/fstab` settings and misc setting. 2020-10-13 21:18:37 +09:00
Kazuhiro MUSASHI 8b4b0eeb9e Specify `dnsmasq` to check `consul` dns and the upper DNSs. 2020-10-13 21:18:37 +09:00
Kazuhiro MUSASHI 705432e244 Deploy `sshd_config` for Ubuntu 20.04. 2020-10-13 21:18:37 +09:00
Kazuhiro MUSASHI 05d7215f76 Use `timedatectl` when Ubuntu 20.04. 2020-10-13 21:18:37 +09:00
Kazuhiro MUSASHI 3b45ffb703 Modify the OS version to install kernel extra package. 2020-10-13 21:18:37 +09:00
Kazuhiro MUSASHI 12aabfb6c0 Do NOT deploy `perpare-commit-msg`. 2020-10-13 21:18:37 +09:00
Kazuhiro MUSASHI 4b911ce98a Do NOT install `ntp` to Ubuntu 20.04. 2020-10-13 21:18:37 +09:00
Kazuhiro MUSASHI 4a9e3d6286 Delete `fluentd` cookbook. 2020-10-13 21:12:39 +09:00
Kazuhiro MUSASHI 6706b9d4b1 Delete `monit` cookbook. 2020-10-13 21:12:27 +09:00
Kazuhiro MUSASHI 057b7fa979 Create dedicated cookbook for `Prometheus` exporters. 2020-10-13 17:53:33 +09:00
Kazuhiro MUSASHI d5ad34ac82 Create `prometheus` dedicated cookbook. 2020-10-13 17:53:16 +09:00
Kazuhiro MUSASHI 80175d609c Change `Loki` endpoint to `loki.service.consul:3100`. 2020-10-12 23:27:58 +09:00
Kazuhiro MUSASHI e8c01fc6ed Deploy `Consul` config for `Loki`. 2020-10-12 23:27:58 +09:00
Kazuhiro MUSASHI f2c3a5557d Deploy `systemd` config for `promtail-loki`. 2020-10-12 23:27:58 +09:00
Kazuhiro MUSASHI 0a9b4983d0 Deploy `promtail` config for `Loki`. 2020-10-12 23:27:58 +09:00
Kazuhiro MUSASHI b95f7a0383 Deploy `logrotated` config for `Loki`. 2020-10-12 23:27:58 +09:00
Kazuhiro MUSASHI 9aa481fa56 Deploy `rsyslog` config for `loki` logs. 2020-10-12 23:27:58 +09:00
Kazuhiro MUSASHI d6c76791b6 Deploy `systemd` config for `Loki`. 2020-10-12 23:27:58 +09:00
Kazuhiro MUSASHI 49869c48fa Deploy `Loki` config. 2020-10-12 23:27:58 +09:00
Kazuhiro MUSASHI e0c58066ec Install & Setup `Loki`. 2020-10-12 23:23:03 +09:00
Kazuhiro MUSASHI 6b7b0a0844 Modify `promtail` config for `sudo` logs. 2020-10-12 14:03:03 +09:00
Kazuhiro MUSASHI 990cf44393 Change threashold from 100 to 4000. 2020-09-28 00:59:43 +09:00
Kazuhiro MUSASHI 3b09f0a74f Change threashold from 100 to 4000. 2020-09-28 00:56:09 +09:00
Kazuhiro MUSASHI b814e759af Modify the service name. 2020-09-28 00:21:15 +09:00
Kazuhiro MUSASHI 40a8fc29cc Change `"` to `'`. 2020-09-27 18:21:46 +09:00
Kazuhiro MUSASHI 7dea0e4f4e Collect `filestat_exporter` metrics. 2020-09-27 18:18:34 +09:00
Kazuhiro MUSASHI 4e47ebfa6f Deploy `filestat_exporter`. 2020-09-27 18:11:58 +09:00
Kazuhiro MUSASHI 839e1449d4 Deploy `exporter_proxy` config under `/etc/prometheus_exporters.d/exporter_proxy`. 2020-09-27 18:11:57 +09:00
Kazuhiro MUSASHI ec906dae58 Create `/etc/prometheus_exporters.d`. 2020-09-27 18:11:57 +09:00
Kazuhiro MUSASHI 673b30eeb2 Modify `Prometheus` alert settings. 2020-09-27 13:01:44 +09:00
Kazuhiro MUSASHI e8d8ceeacb Deploy the `consul` config for `Grafana`. 2020-09-27 00:23:47 +09:00
Kazuhiro MUSASHI 06438d0dc2 Collect the metrics from `grafana`. 2020-09-27 00:22:50 +09:00
Kazuhiro MUSASHI 6b2a5bdf07 Add monitoring condition for the logs containing "already banned". 2020-09-26 17:23:05 +09:00
Kazuhiro MUSASHI 9bf98f1d20 Ignore `already banned` message. 2020-09-26 17:08:05 +09:00
Kazuhiro MUSASHI 9a5d2d0178 Delete `Prometheus` static target file. 2020-09-26 17:02:51 +09:00
Kazuhiro MUSASHI f1c09b8ae9 Change the severity of `nf_conntrack` message. 2020-09-26 16:56:15 +09:00
Kazuhiro MUSASHI 47c2f7784a Modify the kernel parameter to adjust the timeout for nf_conntrack. 2020-09-26 16:53:26 +09:00
Kazuhiro MUSASHI 95ac2f5841 Delete `check-reboot-required`. 2020-09-23 23:52:40 +09:00
Kazuhiro MUSASHI 70e78a2af0 Use `consul` service discovery to register `prometheus` monitoring. 2020-09-23 23:40:12 +09:00
Kazuhiro MUSASHI c13954bfc9 Delete `consul-template`. 2020-09-23 23:39:13 +09:00
Kazuhiro MUSASHI bfbf20e80f Change `level` and the regular expression. 2020-09-23 00:02:33 +09:00
Kazuhiro MUSASHI ae827106cf Ignore `apt` and `Temporary Directories`. 2020-09-22 23:54:33 +09:00
Kazuhiro MUSASHI 7ba084b71f Use `/usr/local/bin/check_file`. 2020-09-22 23:46:14 +09:00
Kazuhiro MUSASHI 3c634b7dc3 Deploy `check_file_ script. 2020-09-22 23:46:13 +09:00
Kazuhiro MUSASHI 34d38f63e2 Modify `promtail` config for `ssh`. 2020-09-22 00:54:28 +09:00
Kazuhiro MUSASHI 39a4b22867 Change level when executing `itamae`. 2020-09-21 00:25:47 +09:00
Kazuhiro MUSASHI 0d3d8fe800 Modify `promtail` config for `systemd`. 2020-09-21 00:21:50 +09:00
Kazuhiro MUSASHI 81822f12d3 Modify `promtail` config for `init` journal. 2020-09-21 00:21:28 +09:00
Kazuhiro MUSASHI 5cf6f09a03 Add `promtail` config to monitor `consul`. 2020-09-20 15:39:31 +09:00
Kazuhiro MUSASHI 9e91a66819 Monitor systemd journal. 2020-09-20 13:13:41 +09:00
Kazuhiro MUSASHI 909ae01260 Deploy `promtail` config for `promtail`. 2020-09-19 01:19:21 +09:00
Kazuhiro MUSASHI 18f41794c3 Restart `promtail-base` service. 2020-09-14 01:11:52 +09:00
Kazuhiro MUSASHI c37124a212 Modify the base configuration for `promtail`. 2020-09-14 01:11:29 +09:00
Kazuhiro MUSASHI 90c954a1a2 Modify `alertmanager` config to send alerts to webhook. 2020-09-14 00:14:13 +09:00
Kazuhiro MUSASHI d27b979ab0 Deploy `supervisord` config for `alertmanager-webhook-logger`. 2020-09-14 00:14:13 +09:00
Kazuhiro MUSASHI 1f08c9a784 Specify attributes for `alertmanager-webhook-logger` 2020-09-14 00:10:16 +09:00
Kazuhiro MUSASHI d463a2691d Install `alertmanager-webhook-logger`. 2020-09-14 00:10:16 +09:00
Kazuhiro MUSASHI 6ec9cb5539 Deploy `supervisord` config for `alertmanager`. 2020-09-12 15:52:56 +09:00
Kazuhiro MUSASHI f621f97e75 `promtail` config for `nginx`. 2020-09-11 02:02:07 +09:00
Kazuhiro MUSASHI 110f8ae8bc `systemd` config for `prmtail` nginx. 2020-09-11 02:01:47 +09:00
Kazuhiro MUSASHI c599fccc2b Deploy `promtail` config & `systemd` config. 2020-09-11 01:59:50 +09:00
Kazuhiro MUSASHI 335ffa11c8 Deploy `promtail` & `systemd` configs. 2020-09-07 23:06:06 +09:00
Kazuhiro MUSASHI e750ac0ce9 Set up `promtail`:
- Deploy `systemd` config file
- Deploy `promtail` basic config file
- Deploy `rsyslog` config file
- Deploy `logrotated` config file
2020-09-07 22:17:13 +09:00
Kazuhiro MUSASHI 872382df1d Install `promtail`. 2020-09-07 22:17:13 +09:00
Kazuhiro MUSASHI ee975266e0 Specify the cookbook-specific attiributes. 2020-09-07 22:17:13 +09:00
Kazuhiro MUSASHI 8931d6709c Create the entrypoint .rb. 2020-09-07 22:17:13 +09:00
Kazuhiro MUSASHI 7e3f6eba3d Add `gzip` settings. 2020-09-07 00:52:39 +09:00
Kazuhiro MUSASHI 2de591be19 Update `cron` settings. 2020-09-06 13:28:02 +09:00
Kazuhiro MUSASHI 860ea17d05 Force link to `/opt/lego/lego`. 2020-09-06 13:27:35 +09:00
Kazuhiro MUSASHI 3f6df758e2 Install `direnv`. 2020-08-09 15:41:13 +09:00
Kazuhiro MUSASHI c969038bdc Deploy the alert settings. 2020-07-19 01:07:00 +09:00
Kazuhiro MUSASHI b4be40871c Add federation settings. 2020-07-18 20:22:56 +09:00
Kazuhiro MUSASHI 9c7b88f200 Delete the monitoring setting for statup. 2020-07-18 20:20:17 +09:00
Kazuhiro MUSASHI 081e7a6994 Modify the external labels. 2020-07-18 20:12:43 +09:00
Kazuhiro MUSASHI ff6d4a7185 Enable integration with Alert Manager. 2020-07-18 20:07:38 +09:00
Kazuhiro MUSASHI 6f0f7ff472 Add alert settings. 2020-07-18 20:07:32 +09:00
Kazuhiro MUSASHI 2c70f62509 Add configuration file for Alert Manager. 2020-07-18 19:44:12 +09:00
Kazuhiro MUSASHI 2d36a53462 Add recipe for setting up Alert Manager 2020-07-18 19:44:11 +09:00
Kazuhiro MUSASHI 4d0f4fde4c Add recipe for installing `Alertmanager`. 2020-07-18 19:44:10 +09:00
Kazuhiro MUSASHI 64ec53f6fc Add `Alertmanage` attributes for itamae. 2020-07-18 19:44:10 +09:00
Kazuhiro MUSASHI 553bf71391 Install and Setup Alert Manager 2020-07-18 19:44:10 +09:00
Kazuhiro MUSASHI 1eca8560a7 Rename Prometheus install & setup recipes. 2020-07-18 19:43:49 +09:00
Kazuhiro MUSASHI b11cc232f5 Open port for `exporter_proxy`. 2020-07-18 14:23:35 +09:00
Kazuhiro MUSASHI 23bba10ab0 Change the target exporter port number. 2020-07-18 14:23:00 +09:00
Kazuhiro MUSASHI 49cf603406 Change the listening port of `exporter_proxy`. 2020-07-18 14:22:32 +09:00
Kazuhiro MUSASHI d57fbcbc93 Delete the monitoring settings for `consul`. 2019-11-25 00:09:04 +08:00
Kazuhiro MUSASHI a4822fe9ef Do not deploy the monitoring settings for `consul` 2019-11-25 00:08:20 +08:00
Kazuhiro MUSASHI 36c27f24fe Delete `grafana-front` cookbook. 2019-11-13 11:36:35 +08:00
Kazuhiro MUSASHI bd0043cebf Deploy the basic auth file. 2019-11-13 11:31:27 +08:00
Kazuhiro MUSASHI d6d8b2a5d2 Create directory for staging environment. 2019-11-13 11:30:38 +08:00
Kazuhiro MUSASHI 40e7c26656 Install `nginx-build` when finding a newer version. 2019-11-08 00:29:31 +08:00
Kazuhiro MUSASHI dc6b5a2f01 Install `prometheus` when finding a newer version. 2019-11-08 00:29:15 +08:00
Kazuhiro MUSASHI a8b637a51e Install `node_exporter` when finding a newer version. 2019-11-08 00:29:00 +08:00
Kazuhiro MUSASHI 45fe078188 Install `consul-template` when finding a newer version. 2019-11-08 00:28:45 +08:00
Kazuhiro MUSASHI e0820892d4 Install `consul`, when finding a newer version. 2019-11-08 00:28:13 +08:00
Kazuhiro MUSASHI 2c96bd7276 Modify the way of generating swap image. 2019-11-05 23:20:35 +08:00
Kazuhiro MUSASHI 46929fe87a Delete net.ipv4.tcp_tw_recycle=1. 2019-11-05 23:17:54 +08:00
Kazuhiro MUSASHI 482c71ece1 Get SSL certificate first. 2019-11-05 23:17:01 +08:00
Kazuhiro MUSASHI e19fd992d3 Create storage director for blog data. 2019-11-05 23:16:25 +08:00
Kazuhiro MUSASHI 6cfb4cdccf fix typo: fstab -> mount 2019-11-05 23:15:14 +08:00
Kazuhiro MUSASHI 272afbaf2e Deploy /etc/cron.d/blog. 2019-11-06 00:12:47 +09:00
Kazuhiro MUSASHI 7d6ae95020 Generate `ticket.key` by `nginx` cookbook. 2019-11-06 00:12:47 +09:00
Kazuhiro MUSASHI 28053a2c37 Deploy `dhparams_4096.pem` & `ticket.key`. 2019-11-06 00:12:47 +09:00
Kazuhiro MUSASHI 37e11592cd Do not execute the maitenance procedures. 2019-11-06 00:12:47 +09:00
Kazuhiro MUSASHI 494f16b4f8 Use `nginx` repository configs 2019-11-06 00:12:46 +09:00
Kazuhiro MUSASHI eddc0a517f Create sym-link to `/etc/nginx` config directories. 2019-11-06 00:12:46 +09:00
Kazuhiro MUSASHI 7349dc9b30 Clone the nginx config from the git repository. 2019-11-06 00:12:46 +09:00
Kazuhiro MUSASHI b01aee85b5 Load `lego.rb` instead of `letsencrypt.rb`.
diff --git a/cookbooks/nginx/default.rb b/cookbooks/nginx/default.rb
index f7a30a7..8529d93 100644
--- a/cookbooks/nginx/default.rb
+++ b/cookbooks/nginx/default.rb
@@ -14,4 +14,4 @@ include_recipe './build.rb'
 include_recipe './setup.rb'

 # Install Let's Encrypt:
-include_recipe './letsencrypt.rb'
\ No newline at end of file
+include_recipe './lego.rb'
2019-10-27 23:50:00 +08:00
Kazuhiro MUSASHI f9c59e53ba Download and install `lego`. 2019-10-27 23:49:47 +08:00
Kazuhiro MUSASHI b788c6b73b Rename `letsencrypt.rb` to `lego.rb`. 2019-10-27 23:49:10 +08:00
Kazuhiro MUSASHI be73c1f6a5 Create the config directory for stream config. 2019-10-27 15:07:46 +08:00
Kazuhiro MUSASHI a434ddaee2 Load the `Nginx` config from `stream-enable/` directory. 2019-10-27 15:07:23 +08:00
Kazuhiro MUSASHI 57647177bf Enable `stream` module. 2019-10-27 15:07:12 +08:00
Kazuhiro MUSASHI b9472d630d Add `SSH` credentials. 2019-10-27 14:42:16 +08:00
Kazuhiro MUSASHI d1e1dd50f4 Specify `OpenSSL` version (newer than 1.1.1) to enable TSL1.3. 2019-10-27 15:38:40 +09:00
Kazuhiro MUSASHI 27b1481454 `nginx` version bumps to `1.17.5`: 2019-10-27 15:38:40 +09:00
Kazuhiro MUSASHI d0dacca340 Exclude "127" and "172" (= Docker) IP addresses. 2019-10-26 23:07:20 +08:00
Kazuhiro MUSASHI 752a76a065 Modify the apt key URL. 2019-09-15 22:40:04 +08:00
Kazuhiro MUSASHI 762c94142f Modify apt repository setting. 2019-09-15 22:39:47 +08:00
Kazuhiro MUSASHI 8079808c45 In addition to `/mnt/backup`, mount `/var/spool/apt-mirror`. 2019-08-13 23:22:43 +08:00
Kazuhiro MUSASHI a04214f277 Modify the Slack secret URL. 2019-08-11 13:44:24 +08:00
Kazuhiro MUSASHI 7b7270c940 Create `fzf` cookbook. 2019-08-10 21:41:45 +08:00
Kazuhiro MUSASHI 64c79a6e16 Merge branch 'fluentd-slack-support' of kazu634/itamae into master 2019-08-10 20:02:48 +09:00