-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
479f758
commit 6b66476
Showing
59 changed files
with
594 additions
and
180 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,25 @@ | ||
# Ansible roles | ||
# Roles | ||
|
||
```{toctree} | ||
:maxdepth: 1 | ||
role_infra.md | ||
role_vault.md | ||
role_consul.md | ||
role_nomad.md | ||
role_envoy.md | ||
role_alloy.md | ||
role_loki.md | ||
role_prometheus.md | ||
role_grafana.md | ||
role_prometheus.md | ||
role_loki.md | ||
role_custom_ca.md | ||
role_stage0.md | ||
role_stage0_offline.md | ||
role_stage1_bootstrap.md | ||
role_stage1_dns.md | ||
role_stage1_rproxy.md | ||
role_stage1_pip.md | ||
roles/role_infra.md | ||
roles/role_vault.md | ||
roles/role_consul.md | ||
roles/role_nomad.md | ||
roles/role_envoy.md | ||
roles/role_alloy.md | ||
roles/role_loki.md | ||
roles/role_prometheus.md | ||
roles/role_grafana.md | ||
roles/role_prometheus.md | ||
roles/role_loki.md | ||
roles/role_custom_ca.md | ||
roles/role_stage0.md | ||
roles/role_stage0_offline.md | ||
roles/role_stage1_bootstrap.md | ||
roles/role_stage1_dns.md | ||
roles/role_stage1_rproxy.md | ||
roles/role_stage1_pip.md | ||
``` | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# Vault operations | ||
|
||
```{toctree} | ||
:maxdepth: 1 | ||
vault_dr_secondary | ||
vault_kv_get | ||
vault_kv_put | ||
vault_pt_manage | ||
vault_tf_policies_samples | ||
``` | ||
|
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
9 changes: 4 additions & 5 deletions
9
docs/source/reference/role_alloy.md → docs/source/reference/roles/role_alloy.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,15 @@ | ||
|
||
```{include} ../../../roles/alloy/README.md | ||
```{include} ../../../../roles/alloy/README.md | ||
``` | ||
|
||
## Defaults | ||
## Role defaults | ||
|
||
|
||
Loki endpoint to forward metrics to. | ||
* Loki endpoint to forward metrics to. | ||
``` | ||
hs_alloy_loki_write_url: "http://grafana.{{ hs_public_domain }}:3100" | ||
``` | ||
Prometheus endpoint to forward metrics to. | ||
* Prometheus endpoint to forward metrics to. | ||
``` | ||
hs_alloy_prometheus_write_url: "http://grafana.{{ hs_public_domain }}:9090" | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
|
||
```{include} ../../../../roles/common_vars/README.md | ||
``` | ||
|
||
## Role defaults | ||
|
||
``` | ||
tf_action: apply | ||
hs_public_domain: >- | ||
{{ hs_workspace | regex_replace('_', '-') }}.{{ hs_parent_domain }} | ||
``` | ||
* ID of the vault node. MUST be different for every node in the cluster. | ||
``` | ||
hs_node_id: >- | ||
{{ inventory_hostname | regex_replace('_', '-') }} | ||
``` | ||
* FQDN of the node on the network. MUST be different for every node in the cluster. MUST | ||
be solvable by any of the other nodes in the cluster. | ||
|
||
``` | ||
hs_node_fqdn: >- | ||
{{ hs_node_id }}.{{ hs_public_domain }} | ||
collection_root: "{{ (playbook_dir + '/../') | realpath }}" | ||
collection_tf_modules_dir: "{{ collection_root }}/terraform" | ||
hs_workspace_root: "{{ lookup('env', 'PWD') }}" | ||
hs_workspace_group_vars_root_dir: "{{ hs_workspace_root }}/group_vars" | ||
hs_workspace_host_vars_dir: "{{ hs_workspace_root }}/host_vars" | ||
hs_workspace_group_vars_dir: "{{ hs_workspace_root }}/group_vars/hashistack" | ||
hs_workspace_group_vars_dir_relative_dir: "./group_vars/hashistack" | ||
hs_workspace_sre_group_vars_dir: "{{ hs_workspace_root }}/group_vars/hashistack_sre" | ||
hs_workspace_tf_modules_dir: "{{ hs_workspace_root }}/terraform" | ||
hs_workspace_secrets_dir: "{{ hs_workspace_group_vars_dir }}/secrets" | ||
hs_workspace_secrets_dir_relative_dir: "{{ hs_workspace_group_vars_dir_relative_dir }}/secrets" | ||
hs_workspace_ssh_private_key_file: "{{ hs_workspace_secrets_dir }}/default.key" | ||
hs_workspace_ssh_private_key_file_relative_path: "{{ hs_workspace_secrets_dir_relative_dir }}/default.key" | ||
hs_workspace_ssh_public_key_file: "{{ hs_workspace_ssh_private_key_file }}.pub" | ||
hs_workspace_ssh_public_key_file_relative_path: "{{ hs_workspace_ssh_private_key_file_relative_path }}.pub" | ||
hs_workspace_group: "hashistack" | ||
hs_workspace_cluster_group: "hashistack_cluster" | ||
hs_workspace_masters_group: "hashistack_masters" | ||
hs_workspace_minions_group: "hashistack_minions" | ||
host_vars_dir: "{{ hs_workspace_host_vars_dir }}/{{ inventory_hostname }}" | ||
host_secrets_dir: "{{ host_vars_dir }}/secrets" | ||
tf_module_src: "{{ collection_tf_modules_dir }}/{{ tf_module_name }}/" | ||
tf_module_dest: "{{ hs_workspace_tf_modules_dir }}/{{ tf_module_name }}" | ||
glxclans_host_service_user_name: "caretaker" | ||
hs_install_vault_sidecar: true |
12 changes: 5 additions & 7 deletions
12
docs/source/reference/role_consul.md → docs/source/reference/roles/role_consul.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 4 additions & 8 deletions
12
docs/source/reference/role_custom_ca.md → .../source/reference/roles/role_custom_ca.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,25 @@ | ||
|
||
```{include} ../../../roles/custom_ca/README.md | ||
```{include} ../../../../roles/custom_ca/README.md | ||
``` | ||
|
||
## Role defaults | ||
|
||
* Local path where the ca certificate should be generated. | ||
|
||
``` | ||
hs_custom_ca_certificate: "{{ hs_workspace_secrets_dir }}/ca.cert.pem" | ||
``` | ||
``` | ||
* Local path where each node private key should be generated. | ||
|
||
``` | ||
hs_custom_ca_host_private_key: "{{ hs_workspace_secrets_dir }}/self.cert.key" | ||
``` | ||
``` | ||
* Local path where each node certificate should be generated. | ||
|
||
``` | ||
hs_custom_ca_host_certificate: "{{ hs_workspace_secrets_dir }}/self.cert.pem" | ||
``` | ||
``` | ||
* Local path where each node fullchain certificate should be generated. | ||
|
||
``` | ||
hs_custom_ca_host_fullchain_certificate: "{{ hs_workspace_secrets_dir }}/self.fullchain.cert.pem" | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
|
||
```{include} ../../../../roles/envoy/README.md | ||
``` | ||
|
||
## Role defaults | ||
|
||
``` | ||
envoy_version: "1.27.2" |
14 changes: 7 additions & 7 deletions
14
docs/source/reference/role_grafana.md → docs/source/reference/roles/role_grafana.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 9 additions & 6 deletions
15
docs/source/reference/role_infra.md → docs/source/reference/roles/role_infra.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
docs/source/reference/role_loki.md → docs/source/reference/roles/role_loki.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
docs/source/reference/role_nomad.md → docs/source/reference/roles/role_nomad.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
docs/source/reference/role_prometheus.md → ...source/reference/roles/role_prometheus.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 1 addition & 6 deletions
7
docs/source/reference/role_stage0.md → docs/source/reference/roles/role_stage0.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.