<commit_before># Example heat-template for sys11 openstack 

this example deploys a puppet-master and a single server
connected to this puppet master.
This tempalte also includes security-groups which alllow 
to connect to your puppet-master via ssh and to your example 
node via HTTP(s).

Start this stack using

heat stack-create -f exampleStack.yaml -e exampleStackEnvironment.yaml -P deploy_key="$(cat ~/.ssh/cloud_deploykey)" $stackname
<commit_msg>os-503 Updated README.md to reflect the current state of affairs.<commit_after># Heat Templates with Cloudstrap Usage Examples

This directory contains the following example heat templates:

* 'sensu-masterless.yaml`: Deploys a Sensu server configured through masterless puppet.
* 'sensu-master-agent.yaml`: Deploys a Puppet master, Sensu server and Sensu client (the latter receive their configuration from the Puppet master).

You can instantiate these stacks by issuing a

  `heat stack-create -f sensu-masterless.yaml -P deploy_key=$(cat <my_deploy_key>) -P key_name=<my_nova_keypair_name> -P public_net_id=dc4d2dfb-f8d2-461c-9f16-636edbf99a0f my-masterless-stack`

for the masterless puppet setup, and
  
  `heat stack-create -f sensu-master-agent.yaml -P deploy_key=$(cat <my_deploy_key>) -P key_name=<my_nova_keypair_name> -P public_net_id=dc4d2dfb-f8d2-461c-9f16-636edbf99a0f my-master-agent-stack`

for the Puppet master/agent setup. Substitute the path to your deploy key for `<my_deploy_key>` and your Nova keypair name for `<my_nova_keypair_name>`.

If you would like to use Syseleven's
[scloud](https://github.com/syseleven/python-cloudutils) utility, you can
instatiate these stacks using the scloud configuration provided along with the
heat templates:

  `scloud --config-file ~/.scloud.conf --config-file sensu-masterless.conf`
  `scloud --config-file ~/.scloud.conf --config-file sensu-master-agent.conf`

This assumes you configured sensible defaults for the `key_name`, `deploy_key`
and `public_net_id` parameters in ~/.scloud.conf.
{'fraction_non_alphanumeric': 0.08673978065802593, 'fraction_numerical': 0.018444666001994018, 'mean_word_length': 5.045180722891566, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 1, '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': '6684649', 'n_tokens_mistral': 684, 'n_tokens_neox': 631, 'n_words': 215}