fix various typos in comments and roles

This commit is contained in:
Miran 2022-07-04 15:07:55 +02:00 committed by GitHub
parent 6702c50f38
commit 2b079f1774
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 13 additions and 13 deletions

View File

@ -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

View File

@ -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.

View File

@ -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).

View File

@ -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.

View File

@ -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__':

View File

@ -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 }}") }}'