Commit Graph

264 Commits

Author SHA1 Message Date
cf79f30c4d Create /etc/vault.d/policies/. 2022-03-13 21:46:00 +09:00
da78e76d19 Deploy /etc/vault.d/vault.hcl. 2022-03-13 21:45:36 +09:00
7681522b6b Specify the default Vault managers.
```
--- a/cookbooks/vault/attributes.rb
+++ b/cookbooks/vault/attributes.rb
@@ -21,5 +21,6 @@ node.reverse_merge!({
     'manager' => false,
     'ipaddr' => ipaddr,
     'hostname' => hostname,
+    'ips' => ['192.168.10.141', '192.168.10.142', '192.168.10.143'],
   }
 })
```
2022-03-13 21:45:17 +09:00
67fab4951a Retrieve hostname. 2022-03-13 21:45:01 +09:00
6fa35a923b Retrieve IP address. 2022-03-13 21:44:18 +09:00
a917563b06 Conduct setup procedures, when explicitly requested. 2022-03-13 21:43:52 +09:00
28e3f21141 Install Vault. 2022-03-12 11:59:44 +00:00
2bec4d88f3 Do not deploy docker-registry.hcl. 2022-01-14 23:52:59 +09:00
8c712e6ffa Delete /etc/nomad.d/datadir.hcl. 2022-01-14 23:52:59 +09:00
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
935f773bca Deploy csi settings. 2022-01-14 23:52:58 +09:00
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
dffb57e2fc Add rsyslog config for nomad. 2022-01-10 15:29:00 +09:00
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
d824d6afc8 Add systemd config for Promtail monitoring nomad. 2022-01-10 15:29:00 +09:00
a7363ef7b1 Add Promtail setting for nomad. 2022-01-10 15:29:00 +09:00
0d8b8f50a0 Add embulk plugins:
- `output-postgresql`
- `input-mysql`
- `filter-gsub`
2022-01-10 15:03:37 +09:00
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
9eddfaf514 Execute modprobe for the necessary kernel parameer. 2021-11-03 12:36:33 +09:00
3d981799b6 Stop vector service. 2021-11-03 12:33:02 +09:00
a81dc16e90 Add template for the apt source. 2021-11-03 12:32:32 +09:00
93064a94d4 Use .deb package to install vector. 2021-11-03 12:31:31 +09:00
e113a42ade Modify syslog.toml to directly sending logs to Loki. 2021-10-22 15:19:44 +09:00
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
a0fef35f2f Toggle nginx setup behavior. 2021-09-23 19:17:57 +09:00
5af9b0b416 Bump nginx version. 2021-09-23 19:12:45 +09:00
0d607fb1e9 Modify the path to the Moments directory. 2021-08-13 11:19:39 +09:00
5b4bcc8b81 Deploy the mc config file. 2021-06-19 20:29:44 +09:00
d69cb345af Install mc for root user. 2021-06-19 20:27:20 +09:00
386d169530 Change mount behavior. 2021-06-19 20:20:15 +09:00
21f9bb8237 Install plugins for root 2021-06-19 20:19:42 +09:00
8d335a7bae temp 2021-06-19 20:19:42 +09:00
00813e9f17 Overwrite /usr/local/bin/embulk. 2021-06-19 20:19:42 +09:00
8dadc5e2fd Change the download URL. 2021-06-19 20:19:42 +09:00
2ac28d295f Modify /home/kazu634/.ssh/config to connect to gitea.kazu634.com. 2021-06-19 20:06:35 +09:00
cb368a1445 Deploy /etc/nomad.d/acl.hcl. 2021-06-19 19:56:45 +09:00
531dde8bff Deploy /etc/nomad.d/server.hcl. 2021-06-19 19:56:45 +09:00
bd4f65dcf5 Change the default config to install nomad only. 2021-06-19 19:56:45 +09:00
d5060f84f4 Install nomad even if the node is not nomad server/client. 2021-06-19 19:55:17 +09:00
3d7c8e2044 Unmonitor k8s. 2021-05-05 11:47:03 +09:00
2bc0b23eef Bump nginx version. 2021-05-04 11:49:03 +09:00
bd359d8ec6 Modify the nginx deployment. 2021-05-04 11:36:52 +09:00
ff39013b2c Install alertmanager-webhook. 2021-05-02 19:20:39 +09:00
2bcbc2f396 Modify the extention to .zip. 2021-05-02 19:19:38 +09:00
b87bdc899a Delete the unnecessary attributes. 2021-05-02 19:19:00 +09:00
2cf998e0d7 Bump embulk version. 2021-05-02 19:14:31 +09:00
1701922c91 Execute deploy scripts for nginx. 2021-05-02 19:08:30 +09:00
f55682e5c3 Modify nginx deploy settings. 2021-05-02 19:08:30 +09:00
2eed57822c Deploy consul-template. 2021-05-02 19:08:17 +09:00
010a53a58b Deploy nomad. 2021-05-02 19:08:17 +09:00