Commit Graph

633 Commits

Author SHA1 Message Date
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 948a11e394 Merge pull request 'Add `embulk` plugins:' (#93) from embulk-add-plugins into master
Reviewed-on: #93
2022-01-10 15:04:31 +09:00
Kazuhiro MUSASHI 0d8b8f50a0 Add `embulk` plugins:
- `output-postgresql`
- `input-mysql`
- `filter-gsub`
2022-01-10 15:03:37 +09:00
Kazuhiro MUSASHI b3372a860c Merge pull request 'Modify # of `nomad` servers:' (#92) from modify-number-of-nomad-server into master
Reviewed-on: #92
2021-11-03 12:39:44 +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 9460e297e7 Merge pull request 'Execute `modprobe` for the necessary kernel parameer to appear.' (#91) from execute-modprobe-for-kernel-parameter into master
Reviewed-on: #91
2021-11-03 12:39:02 +09:00
Kazuhiro MUSASHI 9eddfaf514 Execute `modprobe` for the necessary kernel parameer. 2021-11-03 12:36:33 +09:00
Kazuhiro MUSASHI c9b324849b Merge pull request 'Vectorのインストールをapt経由で行う' (#90) from vector-installation-url-change-again into master
Reviewed-on: #90
2021-11-03 12:35:06 +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 eeca9f5d73 Merge pull request 'Modify `syslog.toml` to directly sending logs to `Loki`.' (#89) from vector-syslog-modification into master
Reviewed-on: #89
2021-10-22 15:23:02 +09:00
Kazuhiro MUSASHI e113a42ade Modify `syslog.toml` to directly sending logs to `Loki`. 2021-10-22 15:19:44 +09:00
Kazuhiro MUSASHI ffc3eedcaf Merge pull request 'Change `vector` download URL.' (#88) from vector-installation-url-change into master
Reviewed-on: #88
2021-09-23 19:19:38 +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 20e0cf73ca Merge pull request 'Toggle `nginx` setup behavior.' (#87) from toggle-nginx-setup-behavior into master
Reviewed-on: #87
2021-09-23 19:17:57 +09:00
Kazuhiro MUSASHI a0fef35f2f Toggle `nginx` setup behavior. 2021-09-23 19:17:57 +09:00
Kazuhiro MUSASHI e8cd0f4a32 Merge pull request 'Bump `nginx` version.' (#86) from nginx-version-bump into master
Reviewed-on: #86
2021-09-23 19:17:30 +09:00
Kazuhiro MUSASHI 5af9b0b416 Bump `nginx` version. 2021-09-23 19:12:45 +09:00
Kazuhiro MUSASHI 7c3a397fae Merge pull request 'Modify the path to the `Moments` directory.' (#85) from modify-shared-dir-of-moments into master
Reviewed-on: #85
2021-08-15 10:56:14 +09:00
Kazuhiro MUSASHI 0d607fb1e9 Modify the path to the `Moments` directory. 2021-08-13 11:19:39 +09:00
Kazuhiro MUSASHI 91a831f5f3 Merge pull request 'Install `mc` for `root` user.' (#84) from install-mc-for-root into master
Reviewed-on: #84
2021-06-19 20:30:58 +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 8f4229d950 Merge pull request 'Change `mount` behavior.' (#81) from change-mount-behavior into master
Reviewed-on: #81
2021-06-19 20:20:15 +09:00
Kazuhiro MUSASHI 386d169530 Change `mount` behavior. 2021-06-19 20:20:15 +09:00
Kazuhiro MUSASHI c9b5850cbb Merge pull request 'Embulkのダウンロード先URL変更など' (#80) from embulk-change into master
Reviewed-on: #80
2021-06-19 20:19:42 +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 c735b2128e Merge pull request 'Modify `/home/kazu634/.ssh/config` to connect to `gitea.kazu634.com`.' (#79) from modify-ssh-config into master
Reviewed-on: #79
2021-06-19 20:18:03 +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 733a9e594f Merge pull request 'Install nomad by default.' (#78) from install-nomad-by-default into master
Reviewed-on: #78
2021-06-19 20:04:55 +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 3c8de04494 Merge pull request 'Unmonitor k8s.' (#77) from unmonitor-k8s into master
Reviewed-on: #77
2021-05-05 11:52:49 +09:00
Kazuhiro MUSASHI 3d7c8e2044 Unmonitor k8s. 2021-05-05 11:47:03 +09:00
Kazuhiro MUSASHI 6cd96f51a6 Merge pull request 'Bump `nginx` version.' (#76) from bump-nginx-version into master
Reviewed-on: #76
2021-05-04 11:50:25 +09:00
Kazuhiro MUSASHI 2bc0b23eef Bump `nginx` version. 2021-05-04 11:49:03 +09:00
Kazuhiro MUSASHI 9f44add2e6 Merge pull request 'Modify the nginx deployment.' (#75) from modify-nginx-deployment into master
Reviewed-on: #75
2021-05-04 11:37:44 +09:00
Kazuhiro MUSASHI bd359d8ec6 Modify the nginx deployment. 2021-05-04 11:36:52 +09:00
Kazuhiro MUSASHI db2dfcae84 Merge pull request 'Alertmanager-webhookのダウンロードファイル名変更に伴う修正' (#74) from modify-alertmanager-webhook-installation into master
Reviewed-on: #74
2021-05-04 10:21:15 +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