From 2b079f17740be26bcd28644041862bf6d33ebaf2 Mon Sep 17 00:00:00 2001 From: Miran Date: Mon, 4 Jul 2022 15:07:55 +0200 Subject: [PATCH] fix various typos in comments and roles --- ansible/group_vars/logs.nimbus.yml | 2 +- .../metal-02.he-eu-hel1.nimbus.prater.yml | 2 +- ansible/inventory/README.md | 2 +- ansible/roles/get-geth-api-urls/README.md | 2 +- ansible/roles/nimbus-stats/files/collect.py | 16 ++++++++-------- ansible/roles/redirect-ports/tasks/main.yml | 2 +- 6 files changed, 13 insertions(+), 13 deletions(-) diff --git a/ansible/group_vars/logs.nimbus.yml b/ansible/group_vars/logs.nimbus.yml index 9e16174..305e5b5 100644 --- a/ansible/group_vars/logs.nimbus.yml +++ b/ansible/group_vars/logs.nimbus.yml @@ -6,7 +6,7 @@ origin_certs: key: '{{lookup("bitwarden", "Cloudflare/status.im", file="origin.key")}}' default: true -# Syncing can use a lot of mamory +# Syncing can use a lot of memory swap_file_path: '/main.swap' swap_file_size_mb: 2048 diff --git a/ansible/host_vars/metal-02.he-eu-hel1.nimbus.prater.yml b/ansible/host_vars/metal-02.he-eu-hel1.nimbus.prater.yml index aea83fe..035a727 100644 --- a/ansible/host_vars/metal-02.he-eu-hel1.nimbus.prater.yml +++ b/ansible/host_vars/metal-02.he-eu-hel1.nimbus.prater.yml @@ -1,5 +1,5 @@ --- -# Communityu test REST API endpoint. +# Community test REST API endpoint. beacon_node_rest_address: '0.0.0.0' # WARNING: This will change if number of nodes changes. diff --git a/ansible/inventory/README.md b/ansible/inventory/README.md index e8a8655..5904034 100644 --- a/ansible/inventory/README.md +++ b/ansible/inventory/README.md @@ -21,4 +21,4 @@ So if ever Consul KV store is lost, it can be recovered from this copy. # Details -For more details on how Ansible and Terraform interact read [this article](https://github.com/status-im/infra-docs/blob/master/articles/ansible_terraform.md). +For more details on how Ansible and Terraform interact read [this article](https://github.com/status-im/infra-docs/blob/master/docs/general/ansible_terraform.md). diff --git a/ansible/roles/get-geth-api-urls/README.md b/ansible/roles/get-geth-api-urls/README.md index a04d74a..39adcb0 100644 --- a/ansible/roles/get-geth-api-urls/README.md +++ b/ansible/roles/get-geth-api-urls/README.md @@ -12,6 +12,6 @@ infura_api_tokens: - 'bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb' - 'cccccccccccccccccccccccccccccccc' ``` -And the more we have the less likely that we hit the Infura treshhold. +And the more we have the less likely that we hit the Infura threshold. The Geth node Consul service is expected to have an `url` in metadata. diff --git a/ansible/roles/nimbus-stats/files/collect.py b/ansible/roles/nimbus-stats/files/collect.py index 2ea954f..64da08c 100755 --- a/ansible/roles/nimbus-stats/files/collect.py +++ b/ansible/roles/nimbus-stats/files/collect.py @@ -46,10 +46,10 @@ class ES: { '@timestamp': { 'order': 'desc' } }, ], } - + def _index(self): - return - + return + def get_logs(self, query): return self.es.search( index=self._index(), @@ -77,7 +77,7 @@ def save_stats(data, output_file): }, 'data': data, } - + if output_file: LOG.info('Saving to file: %s', output_file) with open(output_file, 'w') as f: @@ -111,7 +111,7 @@ def parse_opts(): help='Logging level. (%default)') parser.add_option('-o', '--output-file', help='File to which write the resulting JSON.') - + return parser.parse_args() def debug_options(opts): @@ -126,16 +126,16 @@ def main(): debug_options(opts) es = ES(opts.es_host, opts.es_port, opts.page_size, opts.timeout) - + LOG.info('Querying fleet: %s', opts.fleet) query = es.make_query(opts.fleet, opts.program, opts.messages, opts.since) rval = es.get_logs(query) LOG.info('Found matching logs: %d', rval['hits']['total']['value']) logs = rval['hits']['hits'] - + data = get_first_for_node(logs) - + save_stats(data, opts.output_file) if __name__ == '__main__': diff --git a/ansible/roles/redirect-ports/tasks/main.yml b/ansible/roles/redirect-ports/tasks/main.yml index 570d2c2..1411e06 100644 --- a/ansible/roles/redirect-ports/tasks/main.yml +++ b/ansible/roles/redirect-ports/tasks/main.yml @@ -10,7 +10,7 @@ with_items: '{{ redirect_ports }}' notify: - Save iptables rules - + - name: 'Redirect {{ item.src }} to {{ item.dst }}' iptables: comment: '{{ item.comment | default("Redirect {{ item.src }} to {{ item.dst }}") }}'