<commit_before># salt-consul
Consul modules for SaltStack

## Prerequisites

`python-consul` is a requisite for these modules.


### Execution module examples:

#### Key/Value

`salt-call consul.key_put foo bar`

`salt-call consul.key_get foo`

`salt-call consul.key_delete foo`

#### Services

`salt-call consul.service_list`

`salt-call consul.service_get foo`

`salt-call consul.service_register name=foo port=6969 script=/path/to/script interval=10s`<commit_msg>#11 making quickstart more concise<commit_after># salt-consul
Consul modules for SaltStack

## Quickstart

- drop the modules into `{_modules,_states}` into `file_roots` on your `salt-master`
- ensure the pypi `python-consul` package is installed


### Execution module examples:

#### Key/Value

`salt-call consul.key_put foo bar`

`salt-call consul.key_get foo`

`salt-call consul.key_delete foo`

#### Services

`salt-call consul.service_list`

`salt-call consul.service_get foo`

`salt-call consul.service_register name=foo port=6969 script=/path/to/script interval=10s`
{'fraction_non_alphanumeric': 0.11730769230769231, 'fraction_numerical': 0.013461538461538462, 'mean_word_length': 5.233532934131737, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6008156', 'n_tokens_mistral': 383, 'n_tokens_neox': 353, 'n_words': 93}