<commit_before>heat_template_version: 2013-05-23

description: Deploys a salt master with ELK stack cluster

parameters:
  keyname:
    type: string
    description: Key name for loggin in to instances
  image:
    type: string
    description: Image name
  floating-network-id:
    type: string
    description: UUID of the external network. The private network created by this stack will route to this network. Also any floating ip's needed by this stack will come this network. 
  minion-count-elk:
    type: number
    default: 1
    label: Number of Elasticsearch nodes
    description: How many nodes will be required.
  minion-flavor-elk:
    type: string
    default: m1.small
    label: Flavor of elk servers
    description: Flavor (image size) of elk servers to be created.
  kibana-user:
    type: string
    default: admin
    label: User for Kibana
    description: User for Kibana UUID
  kibana-passwd:
    type: string
    default: <PASSWORD>
    label: Passwd for Kibana
    description: Pass for Kibana UUID

resources:

  # Random string to aid in naming things.
  stack-string:
    type: OS::Heat::RandomString
    properties:
      length: 6
      sequence: lettersdigits

  secret:
    type: OS::Heat::RandomString
    properties:
      length: 32
      sequence: lettersdigits

  # Keypair for communicating between nodes within the stack.
  # Will allow minions to ssh into the master and vice versa.
  coms:
    type: OS::Nova::KeyPair
    properties:
     save_private_key: true
     name:
       str_replace:
         template: elk-$stackstr-coms
         params:
           $stackstr:
             get_attr:
               - stack-string
               - value      

  net:
    type: OS::Neutron::Net

  subnet:
    type: OS::Neutron::Subnet
    properties:
      network_id:
        get_resource: net
      cidr: 10.10.10.0/24<commit_msg>making sec groups<commit_after>heat_template_version: 2013-05-23

description: Deploys a salt master with ELK stack cluster

parameters:
  keyname:
    type: string
    description: Key name for loggin in to instances
  image:
    type: string
    description: Image name
  floating-network-id:
    type: string
    description: UUID of the external network. The private network created by this stack will route to this network. Also any floating ip's needed by this stack will come this network. 
  minion-count-elk:
    type: number
    default: 1
    label: Number of Elasticsearch nodes
    description: How many nodes will be required.
  minion-flavor-elk:
    type: string
    default: m1.small
    label: Flavor of elk servers
    description: Flavor (image size) of elk servers to be created.
  kibana-user:
    type: string
    default: admin
    label: User for Kibana
    description: User for Kibana UUID
  kibana-passwd:
    type: string
    default: <PASSWORD>
    label: Passwd for Kibana
    description: Pass for Kibana UUID

resources:

  # Random string to aid in naming things.
  stack-string:
    type: OS::Heat::RandomString
    properties:
      length: 6
      sequence: lettersdigits

  secret:
    type: OS::Heat::RandomString
    properties:
      length: 32
      sequence: lettersdigits

  haproxy_security:
    type: OS::Neutron::SecurityGroup
    properties:
      name:
        str_replace:
          template: elk-$stackstr-master
          params:
            $stackstr:
              get_attr:
                - stack-string
                - value
      rules:
        - protocol: icmp
        - protocol: tcp
          port_range_min: 443
          port_range_max: 443
        - protocol: tcp
          port_range_min: 8080
          port_range_max: 8080

  # Keypair for communicating between nodes within the stack.
  # Will allow minions to ssh into the master and vice versa.
  coms:
    type: OS::Nova::KeyPair
    properties:
     save_private_key: true
     name:
       str_replace:
         template: elk-$stackstr-coms
         params:
           $stackstr:
             get_attr:
               - stack-string
               - value      

  net:
    type: OS::Neutron::Net

  subnet:
    type: OS::Neutron::Subnet
    properties:
      network_id:
        get_resource: net
      cidr: 10.10.10.0/24
{'fraction_non_alphanumeric': 0.06570208728652752, 'fraction_numerical': 0.013757115749525617, 'mean_word_length': 2.291959406713505, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, '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': '6460080', 'n_tokens_mistral': 1305, 'n_tokens_neox': 1235, 'n_words': 423}