Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
1 lines (1 sloc) 11.6 KB
{"status":{},"product_version":"2.7.1.1","spec":{"description":"","resources":{"client_attrs":{"5b58d62e_deployment":{"y":689,"x":938.5}},"service_definition_list":[{"singleton":false,"action_list":[{"description":"System action for creating an application","type":"system","critical":false,"runbook":{"task_definition_list":[{"target_any_local_reference":{"kind":"app_service","name":"ScalingDemoService"},"retries":"0","description":"","child_tasks_local_reference_list":[{"kind":"app_task","name":"ConfigureBaseVM"},{"kind":"app_task","name":"InstallNginx"}],"name":"7645f828_dag","attrs":{"edges":[{"from_task_reference":{"kind":"app_task","name":"ConfigureBaseVM"},"edge_type":"user_defined","type":"","to_task_reference":{"kind":"app_task","name":"InstallNginx"}}],"type":""},"timeout_secs":"0","type":"DAG","variable_list":[]},{"target_any_local_reference":{"kind":"app_service","name":"ScalingDemoService"},"retries":"0","description":"","child_tasks_local_reference_list":[],"name":"ConfigureBaseVM","attrs":{"exit_status":[],"script":"#!\/bin\/sh\n\n# update packages\nsudo yum -y update\nsudo yum -y upgrade\n\n# install some useful packages\nsudo yum -y install git bash-completion vim net-tools bind-utils wget\n\n# set the hostname\nsudo hostnamectl set-hostname @@{HOSTNAME}@@","script_type":"sh","type":"","command_line_args":"","login_credential_local_reference":{"kind":"app_credential","name":"centos"}},"timeout_secs":"0","type":"EXEC","variable_list":[]},{"target_any_local_reference":{"kind":"app_service","name":"ScalingDemoService"},"retries":"0","description":"","child_tasks_local_reference_list":[],"name":"InstallNginx","attrs":{"exit_status":[],"script":"#!\/bin\/sh\n\n# install, start and enable nginx\nsudo yum -y install epel-release\nsudo yum -y install nginx\nsudo systemctl start nginx\nsudo systemctl enable nginx","script_type":"sh","type":"","command_line_args":"","login_credential_local_reference":{"kind":"app_credential","name":"centos"}},"timeout_secs":"0","type":"EXEC","variable_list":[]}],"description":"","name":"b738cb71_runbook","main_task_local_reference":{"kind":"app_task","name":"7645f828_dag"},"variable_list":[]},"name":"action_create"},{"description":"System action for deleting an application. Deletes created VMs as well","type":"system","critical":false,"runbook":{"task_definition_list":[{"target_any_local_reference":{"kind":"app_service","name":"ScalingDemoService"},"retries":"0","description":"","child_tasks_local_reference_list":[],"name":"8a58c7ad_dag","attrs":{"edges":[],"type":""},"timeout_secs":"0","type":"DAG","variable_list":[]}],"description":"","name":"76acab92_runbook","main_task_local_reference":{"kind":"app_task","name":"8a58c7ad_dag"},"variable_list":[]},"name":"action_delete"},{"description":"System action for starting an application","type":"system","critical":false,"runbook":{"task_definition_list":[{"target_any_local_reference":{"kind":"app_service","name":"ScalingDemoService"},"retries":"0","description":"","child_tasks_local_reference_list":[],"name":"5f84f3d0_dag","attrs":{"edges":[],"type":""},"timeout_secs":"0","type":"DAG","variable_list":[]}],"description":"","name":"90c788fd_runbook","main_task_local_reference":{"kind":"app_task","name":"5f84f3d0_dag"},"variable_list":[]},"name":"action_start"},{"description":"System action for stopping an application","type":"system","critical":false,"runbook":{"task_definition_list":[{"target_any_local_reference":{"kind":"app_service","name":"ScalingDemoService"},"retries":"0","description":"","child_tasks_local_reference_list":[],"name":"185e0657_dag","attrs":{"edges":[],"type":""},"timeout_secs":"0","type":"DAG","variable_list":[]}],"description":"","name":"f112a158_runbook","main_task_local_reference":{"kind":"app_task","name":"185e0657_dag"},"variable_list":[]},"name":"action_stop"},{"description":"System action for restarting an application","type":"system","critical":false,"runbook":{"task_definition_list":[{"target_any_local_reference":{"kind":"app_service","name":"ScalingDemoService"},"retries":"0","description":"","child_tasks_local_reference_list":[],"name":"16cb77b3_dag","attrs":{"edges":[],"type":""},"timeout_secs":"0","type":"DAG","variable_list":[]}],"description":"","name":"c07adac7_runbook","main_task_local_reference":{"kind":"app_task","name":"16cb77b3_dag"},"variable_list":[]},"name":"action_restart"}],"depends_on_list":[],"name":"ScalingDemoService","port_list":[],"tier":"","variable_list":[],"description":""}],"substrate_definition_list":[{"description":"","action_list":[],"type":"AHV_VM","name":"ScalingDemoSubstrate","readiness_probe":{"connection_type":"SSH","retries":"5","disable_readiness_probe":false,"address":"@@{platform.status.resources.nic_list[0].ip_endpoint_list[0].ip}@@","delay_secs":"60","connection_port":22,"login_credential_local_reference":{"kind":"app_credential","name":"centos"}},"editables":{"create_spec":{"resources":{"nic_list":{},"serial_port_list":{}}}},"os_type":"Linux","create_spec":{"name":"ScalingDemoVM-@@{calm_array_index}@@-@@{calm_time}@@","resources":{"nic_list":[{"nic_type":"NORMAL_NIC","ip_endpoint_list":[],"network_function_chain_reference":null,"network_function_nic_type":"INGRESS","mac_address":"","subnet_reference":{"kind":"subnet","type":"","name":"","uuid":"f5606fed-2c33-45e8-9ccf-303db6eb93d8"},"type":""}],"serial_port_list":[],"guest_tools":null,"num_vcpus_per_socket":1,"num_sockets":1,"gpu_list":[],"memory_size_mib":1024,"parent_reference":null,"hardware_clock_timezone":"","guest_customization":{"cloud_init":{"meta_data":"","type":"","user_data":"#cloud-config\nusers:\n - name: centos\n ssh-authorized-keys:\n - @@{INSTANCE_PUBLIC_KEY}@@\n sudo: ['ALL=(ALL) NOPASSWD:ALL']"},"type":"","sysprep":null},"power_state":"ON","type":"","boot_config":{"boot_device":{"type":"","disk_address":{"type":"","device_index":0,"adapter_type":"SCSI"}},"type":"","mac_address":""},"disk_list":[{"data_source_reference":{"kind":"app_package","type":"","name":"CENTOS_IMAGE","uuid":"a77f6598-4209-5b04-9d8d-59916be52c07"},"type":"","disk_size_mib":0,"volume_group_reference":null,"device_properties":{"type":"","disk_address":{"type":"","device_index":0,"adapter_type":"SCSI"},"device_type":"DISK"}}]},"availability_zone_reference":null,"backup_policy":null,"type":"","cluster_reference":null,"categories":""},"variable_list":[]}],"credential_definition_list":[{"username":"centos","description":"","type":"KEY","secret":{"attrs":{"is_secret_modified":false,"secret_reference":{}}},"name":"centos"}],"package_definition_list":[{"description":"","action_list":[],"type":"DEB","service_local_reference_list":[{"kind":"app_service","name":"ScalingDemoService"}],"name":"ScalingDemoPackage","version":"","options":{"install_runbook":{"task_definition_list":[{"target_any_local_reference":{"kind":"app_package","name":"ScalingDemoPackage"},"retries":"0","description":"","message_list":[],"child_tasks_local_reference_list":[],"name":"e28dfcab_dag","state":"ACTIVE","attrs":{"edges":[],"type":""},"timeout_secs":"0","type":"DAG","variable_list":[]}],"description":"","name":"d8dcc9d7_runbook","state":"ACTIVE","main_task_local_reference":{"kind":"app_task","name":"e28dfcab_dag"},"message_list":[],"variable_list":[]},"type":"","uninstall_runbook":{"task_definition_list":[{"target_any_local_reference":{"kind":"app_package","name":"ScalingDemoPackage"},"retries":"0","description":"","message_list":[],"child_tasks_local_reference_list":[],"name":"ca63c43d_dag","state":"ACTIVE","attrs":{"edges":[],"type":""},"timeout_secs":"0","type":"DAG","variable_list":[]}],"description":"","name":"bb610347_runbook","state":"ACTIVE","main_task_local_reference":{"kind":"app_task","name":"ca63c43d_dag"},"message_list":[],"variable_list":[]}},"variable_list":[]},{"description":"","action_list":[],"type":"SUBSTRATE_IMAGE","service_local_reference_list":[],"name":"CENTOS_IMAGE","version":"","options":{"type":"","name":"Centos-7.4-1801-01","resources":{"image_type":"DISK_IMAGE","checksum":{},"source_uri":"http:\/\/download.nutanix.com\/calm\/CentOS-7-x86_64-GenericCloud-1801-01.qcow2","version":{},"architecture":"X86_64","type":""},"description":""},"variable_list":[]}],"app_profile_list":[{"deployment_create_list":[{"type":"GREENFIELD","action_list":[],"depends_on_list":[],"name":"5b58d62e_deployment","published_service_local_reference_list":[],"max_replicas":"3","package_local_reference_list":[{"kind":"app_package","name":"ScalingDemoPackage"}],"substrate_local_reference":{"kind":"app_substrate","name":"ScalingDemoSubstrate"},"min_replicas":"1","variable_list":[],"description":""}],"description":"","action_list":[{"description":"","type":"user","critical":false,"runbook":{"task_definition_list":[{"retries":"0","description":"","child_tasks_local_reference_list":[{"kind":"app_task","name":"ScaleOut"}],"name":"b34aa346_dag","attrs":{"edges":[],"type":""},"timeout_secs":"0","type":"DAG","variable_list":[]},{"target_any_local_reference":{"kind":"app_blueprint_deployment","name":"5b58d62e_deployment"},"retries":"0","description":"","child_tasks_local_reference_list":[],"name":"ScaleOut","attrs":{"scaling_count":"2","type":"","scaling_type":"SCALEOUT"},"timeout_secs":"0","type":"SCALING","variable_list":[]}],"description":"","name":"90d06f5d_runbook","main_task_local_reference":{"kind":"app_task","name":"b34aa346_dag"},"variable_list":[]},"name":"ScaleOut"},{"description":"","type":"user","critical":false,"runbook":{"task_definition_list":[{"retries":"0","description":"","child_tasks_local_reference_list":[{"kind":"app_task","name":"ScaleIn"}],"name":"c7c5f80d_dag","attrs":{"edges":[],"type":""},"timeout_secs":"0","type":"DAG","variable_list":[]},{"target_any_local_reference":{"kind":"app_blueprint_deployment","name":"5b58d62e_deployment"},"retries":"0","description":"","child_tasks_local_reference_list":[],"name":"ScaleIn","attrs":{"scaling_count":"2","type":"","scaling_type":"SCALEIN"},"timeout_secs":"0","type":"SCALING","variable_list":[]}],"description":"","name":"1615454e_runbook","main_task_local_reference":{"kind":"app_task","name":"c7c5f80d_dag"},"variable_list":[]},"name":"ScaleIn"}],"name":"Default","variable_list":[{"regex":{"should_validate":false,"value":"^.*$"},"val_type":"STRING","is_mandatory":false,"description":"","data_type":"BASE","type":"LOCAL","name":"INSTANCE_PUBLIC_KEY","value":"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQCm+7N2tjmJw5jhPmD8MS6urZQJB42ABh73ffGQSJ0XUHgdEDfjUDFkLK0wyJCe0sF5QJnh07UQn0F0BUnBi+VwehPGeODh6S43OP5YS\/14L0fyntFI06B9lckx\/ygRNu82sHxXCX+6VVUFPOPC+sz6j1DQswKY9d4cEYnaMBGSzqRxrqAIf6aWIKTJTYKPFY0zaUZ6ow2iwS0Nlh5EqaXsEBWkqMmr7\/auP9GV\/adUgzFrGLJklYBdfH575SIK6\/PZL6wNT0jE9LmFlEm7dI01ZWPclBuV16FzRyrnzmWr\/ebY62A04vYBtR0vyfEfsW2ZgxgD6aAE6+ytj0v19y0elRtOaeTySN\/HlXh7owKWCHnlXNpTUiSDP8SQ8LRARkhQu3KEDL0ppGCrSF87oFkp1gPzf92U+UK3LaNMMjZXMOy0zLoLEdLtbQo6S8iHggDoX4NI4sWWxcX0mtadvjy\/nIOvskk9IXasQh0u0MT9ARQY5VXPluKDtEVdeow9UbvgJ1xxNkphUgsWjCiy+sjgapsuZvWqKM6TPT1i24XYaau+\/Fa0vhjLb8vCMWrrtkRwGt4re243NDYcYWTzVZUFuUK0w1wqt77KgjCCeyJdsZNwrh15v780Fjqpec3EGVA0xyNbF0jn\/tsnYy9jPh\/6Cv767EratI97JhUxoB4gXw== no-reply@acme.com","label":"","attrs":{"type":"LOCAL"},"is_hidden":false,"options":{"type":"PREDEFINED","choices":[]}},{"val_type":"STRING","is_mandatory":true,"description":"","data_type":"BASE","type":"LOCAL","name":"HOSTNAME","value":"ScalingDemo-@@{calm_array_index}@@","label":"","attrs":{"type":""},"editables":{"value":true},"is_hidden":false,"options":{"type":"PREDEFINED","choices":[]}}]}],"published_service_definition_list":[],"default_credential_local_reference":{"kind":"app_credential","name":"centos"},"type":"USER"},"name":"Scaling Demo October 2019"},"api_version":"3.0","metadata":{"last_update_time":"1572568652986003","kind":"blueprint","spec_version":8,"creation_time":"1571785186946568","name":"Scaling Demo October 2019"}}
You can’t perform that action at this time.