<commit_before>tosca_definitions_version: cloudify_dsl_1_0

imports:
  - http://www.getcloudify.org/spec/cloudify/3.1/types.yaml
  #- http://www.getcloudify.org/spec/softlayer-plugin/1.1/plugin.yaml
  - https://raw.githubusercontent.com/cloudify-cosmo/cloudify-softlayer-plugin/CFY-1688-manager-blueprint/plugin.yaml
  - http://www.getcloudify.org/spec/fabric-plugin/1.1/plugin.yaml

inputs:

  username:
    type: string

  api_key:
    type: string

  endpoint_url:
    type: string

  location:
    type: string

  domain:
    type: string

  ram:
    type: integer

  cpu:
    type: integer

  disk:
    type: integer

  os:
    type: integer

  image_template_id:
    type: string
    default: ''

  image_template_global_identifier:
    type: string
    default: ''

  private_network_only:
    type: boolean
    default: false

  port_speed:
    type: integer
    default: 187

  private_vlan:
    default: ''

  public_vlan:
    default: ''

  provision_scripts:
    default: []

  ssh_keys:
    default: []

  agents_user:
    type: string
    default: root

  ssh_key_filename:
    type: string
    default: ~/.ssh/id_rsa

  resources_prefix:
    default: ''
    type: string

node_templates:
  manager_host:
    type: cloudify.softlayer.nodes.VirtualServer
    properties:
      install_agent: false

      api_config: { get_property: [softlayer_configuration, api_config] }

      location: { get_input: location }
      domain: { get_input: domain }
      ram: { get_input: ram }
      cpu: { get_input: cpu }
      disk: { get_input: disk }
      os: { get_input: os }
      image_template_id: { get_input: image_template_id }
      image_template_global_identifier: { get_input: image_template_global_identifier }
      private_network_only: { get_input: private_network_only }
      port_speed: { get_input: port_speed }
      private_vlan: { get_input: private_vlan }
      public_vlan: { get_input: public_vlan }
      provision_scripts: { get_input: provision_scripts }
      ssh_keys: { get_input: ssh_keys }

  softlayer_configuration:
    type: softlayer_configuration
    properties:
      api_config:
        username: { get_input: username }
        api_key: { get_input: api_key }
        endpoint_url: { get_input: endpoint_url }

  manager:
    type: cloudify.nodes.CloudifyManager
    properties:
      cloudify_packages:
        server:
          components_package_url: http://gigaspaces-repository-eu.s3.amazonaws.com/org/cloudify3/3.1.0/ga-RELEASE/cloudify-components_3.1.0-ga-b85_amd64.deb
          core_package_url: http://gigaspaces-repository-eu.s3.amazonaws.com/org/cloudify3/3.1.0/ga-RELEASE/cloudify-core_3.1.0-ga-b85_amd64.deb
          ui_package_url: http://gigaspaces-repository-eu.s3.amazonaws.com/org/cloudify3/3.1.0/ga-RELEASE/cloudify-ui_3.1.0-ga-b85_amd64.deb
        agents:
          ubuntu_agent_url: http://gigaspaces-repository-eu.s3.amazonaws.com/org/cloudify3/3.1.0/ga-RELEASE/cloudify-ubuntu-precise-agent_3.1.0-ga-b85_amd64.deb
          centos_agent_url: http://gigaspaces-repository-eu.s3.amazonaws.com/org/cloudify3/3.1.0/ga-RELEASE/cloudify-centos-final-agent_3.1.0-ga-b85_amd64.deb
          windows_agent_url: http://gigaspaces-repository-eu.s3.amazonaws.com/org/cloudify3/3.1.0/ga-RELEASE/cloudify-windows-agent_3.1.0-ga-b85_amd64.deb

      cloudify:
        resources_prefix: { get_input: resources_prefix }

        cloudify_agent:
          min_workers: 2
          max_workers: 5
          remote_execution_port: 22
          user: { get_input: agents_user }<commit_msg>CFY-1688 fixed versions.<commit_after>tosca_definitions_version: cloudify_dsl_1_0

imports:
  - http://www.getcloudify.org/spec/cloudify/3.2m1/types.yaml
  - http://www.getcloudify.org/spec/softlayer-plugin/1.2m1/plugin.yaml
  - http://www.getcloudify.org/spec/fabric-plugin/1.2m1/plugin.yaml

inputs:

  username:
    type: string

  api_key:
    type: string

  endpoint_url:
    type: string

  location:
    type: string

  domain:
    type: string

  ram:
    type: integer

  cpu:
    type: integer

  disk:
    type: integer

  os:
    type: integer

  image_template_id:
    type: string
    default: ''

  image_template_global_identifier:
    type: string
    default: ''

  private_network_only:
    type: boolean
    default: false

  port_speed:
    type: integer
    default: 187

  private_vlan:
    default: ''

  public_vlan:
    default: ''

  provision_scripts:
    default: []

  ssh_keys:
    default: []

  agents_user:
    type: string
    default: root

  ssh_key_filename:
    type: string
    default: ~/.ssh/id_rsa

  resources_prefix:
    default: ''
    type: string

node_templates:
  manager_host:
    type: cloudify.softlayer.nodes.VirtualServer
    properties:
      install_agent: false

      api_config: { get_property: [softlayer_configuration, api_config] }

      location: { get_input: location }
      domain: { get_input: domain }
      ram: { get_input: ram }
      cpu: { get_input: cpu }
      disk: { get_input: disk }
      os: { get_input: os }
      image_template_id: { get_input: image_template_id }
      image_template_global_identifier: { get_input: image_template_global_identifier }
      private_network_only: { get_input: private_network_only }
      port_speed: { get_input: port_speed }
      private_vlan: { get_input: private_vlan }
      public_vlan: { get_input: public_vlan }
      provision_scripts: { get_input: provision_scripts }
      ssh_keys: { get_input: ssh_keys }

  softlayer_configuration:
    type: softlayer_configuration
    properties:
      api_config:
        username: { get_input: username }
        api_key: { get_input: api_key }
        endpoint_url: { get_input: endpoint_url }

  manager:
    type: cloudify.nodes.CloudifyManager
    properties:
      cloudify_packages:
        server:
          components_package_url: http://gigaspaces-repository-eu.s3.amazonaws.com/org/cloudify3/3.2.0/m1-RELEASE/cloudify-components_3.2.0-m1-b170_amd64.deb
          core_package_url: http://gigaspaces-repository-eu.s3.amazonaws.com/org/cloudify3/3.2.0/m1-RELEASE/cloudify-core_3.2.0-m1-b170_amd64.deb
          ui_package_url: http://gigaspaces-repository-eu.s3.amazonaws.com/org/cloudify3/3.2.0/m1-RELEASE/cloudify-ui_3.2.0-m1-b170_amd64.deb
        agents:
          ubuntu_agent_url: http://gigaspaces-repository-eu.s3.amazonaws.com/org/cloudify3/3.2.0/m1-RELEASE/cloudify-ubuntu-agent_3.2.0-m1-b170_amd64.deb
          centos_agent_url: http://gigaspaces-repository-eu.s3.amazonaws.com/org/cloudify3/3.2.0/m1-RELEASE/cloudify-centos-final-agent_3.2.0-m1-b170_amd64.deb
          windows_agent_url: http://gigaspaces-repository-eu.s3.amazonaws.com/org/cloudify3/3.2.0/m1-RELEASE/cloudify-windows-agent_3.2.0-m1-b170_amd64.deb

      cloudify:
        resources_prefix: { get_input: resources_prefix }

        cloudify_agent:
          min_workers: 2
          max_workers: 5
          remote_execution_port: 22
          user: { get_input: agents_user }
{'fraction_non_alphanumeric': 0.1059042705646317, 'fraction_numerical': 0.029091430209229007, 'mean_word_length': 2.911995515695067, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 1, 'lorem ipsum': 0, 'www.': 6, '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': '3481751', 'n_tokens_mistral': 2582, 'n_tokens_neox': 2453, 'n_words': 351}