Kazuhiro MUSASHI
|
2d165906e6
|
Bump gems' versions.
|
2022-07-03 21:26:20 +09:00 |
Kazuhiro MUSASHI
|
52ce9574d7
|
Merge pull request 'Bump `ruby` version.' (#6) from bump-ruby-version into master
Reviewed-on: #6
|
2022-07-03 12:25:34 +00:00 |
Kazuhiro MUSASHI
|
195b85a32c
|
Bump `ruby` version.
|
2022-07-03 21:23:53 +09:00 |
Kazuhiro MUSASHI
|
cdbd937455
|
Merge pull request 'Deploy `/etc/logrotate.d/vault`.' (#5) from vault-audit-log-rotation into master
Reviewed-on: #5
|
2022-07-02 11:40:31 +00:00 |
Kazuhiro MUSASHI
|
4455fe6b62
|
Deploy `/etc/logrotate.d/vault`.
|
2022-07-02 11:40:31 +00:00 |
Kazuhiro MUSASHI
|
6ed1e9cf90
|
Merge pull request 'NomadでConsul Connectジョブを利用できるようにする' (#3) from nomad-modify into master
Reviewed-on: #3
|
2022-03-14 14:22:17 +00:00 |
Kazuhiro MUSASHI
|
4a57c21614
|
Deploy example `Consul Connect` job.
|
2022-03-14 23:19:25 +09:00 |
Kazuhiro MUSASHI
|
ef40d3dc01
|
Create /etc/nomad.d/jobs
|
2022-03-14 23:19:25 +09:00 |
Kazuhiro MUSASHI
|
9a5a78d657
|
Deploy `/etc/nomad.d/policies/anonymous.hcl`.
|
2022-03-14 23:19:25 +09:00 |
Kazuhiro MUSASHI
|
ce7a80db7a
|
Create `/etc/nomad.d/policies/` directory.
|
2022-03-14 23:17:44 +09:00 |
Kazuhiro MUSASHI
|
a882f52b3f
|
Delete `shared_dir.rb`.
|
2022-03-14 23:17:32 +09:00 |
Kazuhiro MUSASHI
|
64066ab78f
|
Add `consul` stanza.
|
2022-03-14 23:17:12 +09:00 |
Kazuhiro MUSASHI
|
34a2f107e7
|
Merge pull request 'Vaultサーバのセットアップファイルのデプロイ' (#2) from vault-server into master
Reviewed-on: #2
|
2022-03-13 12:50:29 +00:00 |
Kazuhiro MUSASHI
|
3bd4973c90
|
Deploy `Vault` policies.
|
2022-03-13 21:48:27 +09:00 |
Kazuhiro MUSASHI
|
cf79f30c4d
|
Create `/etc/vault.d/policies/`.
|
2022-03-13 21:46:00 +09:00 |
Kazuhiro MUSASHI
|
da78e76d19
|
Deploy `/etc/vault.d/vault.hcl`.
|
2022-03-13 21:45:36 +09:00 |
Kazuhiro MUSASHI
|
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 |
Kazuhiro MUSASHI
|
67fab4951a
|
Retrieve hostname.
|
2022-03-13 21:45:01 +09:00 |
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
|
9be1deae21
|
Merge pull request '`Vault`をインストールする' (#1) from install-vault into master
Reviewed-on: #1
|
2022-03-12 11:59:43 +00:00 |
Kazuhiro MUSASHI
|
28e3f21141
|
Install `Vault`.
|
2022-03-12 11:59:44 +00:00 |
Kazuhiro MUSASHI
|
8e1638d5e6
|
Install `Vault` by default:
```
include_recipe '../cookbooks/vector/default.rb'
include_recipe '../cookbooks/prometheus-exporters/default.rb'
include_recipe '../cookbooks/nomad/default.rb'
+include_recipe '../cookbooks/vault/default.rb'
```
|
2022-03-12 11:59:44 +00:00 |
Kazuhiro MUSASHI
|
e340adfdcd
|
Merge pull request 'Add CSI support for `nomad`.' (#95) from nomad-csi-support into master
Reviewed-on: #95
|
2022-01-14 23:54:37 +09: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
|
4c0c65fc1f
|
[WIP] Add CSI support for `nomad`.
nomadのCSIサポート機能を有効にします
|
2022-01-10 15:31:52 +09:00 |
Kazuhiro MUSASHI
|
d898ea65b4
|
Merge pull request 'nomad用の`Promtail`設定ファイルのデプロイ' (#94) from promtail-setting-for-nomad into master
Reviewed-on: #94
|
2022-01-10 15:29:00 +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
|
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 |