<commit_before>heat_template_version: 2014-10-16
description:
parameters:
  vm_name:
    type: string
  az:
    type: string
    default: nova
  net2:
    type: string
  net1:
    type: string
    default: avimgmt
  flavor:
    type: string
    default: m1.xlarge

resources:
  devstack_vm:
    type: OS::Nova::Server
    properties:
      name: { get_param: vm_name }
      flavor: { get_param: flavor }
      image: ubuntu-14.04
      networks:
        - network: { get_param: net1 } 
        - network: { get_param: net2 }
      config_drive: True
      availability_zone: { get_param: az }
      user_data: { get_file: devstack_vm_init.sh }
      user_data_format: RAW

outputs:
  dev_address:
    value: { get_attr: [devstack_vm, networks, { get_param: net1 }, 0] }<commit_msg>Making image an input parameter for heat template<commit_after>heat_template_version: 2014-10-16
description:
parameters:
  vm_name:
    type: string
  az:
    type: string
    default: nova
  net2:
    type: string
  net1:
    type: string
    default: avimgmt
  flavor:
    type: string
    default: m1.xlarge
  image:
    type: string
    default: ubuntu-14.04

resources:
  devstack_vm:
    type: OS::Nova::Server
    properties:
      name: { get_param: vm_name }
      flavor: { get_param: flavor }
      image: { get_param: image }
      networks:
        - network: { get_param: net1 } 
        - network: { get_param: net2 }
      config_drive: True
      availability_zone: { get_param: az }
      user_data: { get_file: devstack_vm_init.sh }
      user_data_format: RAW

outputs:
  dev_address:
    value: { get_attr: [devstack_vm, networks, { get_param: net1 }, 0] }
{'fraction_non_alphanumeric': 0.0963855421686747, 'fraction_numerical': 0.02289156626506024, 'mean_word_length': 2.658590308370044, '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': '5754369', 'n_tokens_mistral': 599, 'n_tokens_neox': 575, 'n_words': 141}