-
Notifications
You must be signed in to change notification settings - Fork 1
/
nginx-candle.json
1 lines (1 loc) · 9.06 KB
/
nginx-candle.json
1
{"status":{},"spec":{"description":"","resources":{"client_attrs":{"f9c7a0b6_deployment":{"y":13.3760953807,"x":69.0720188522}},"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":"NGINXsystem"},"retries":"0","description":"","child_tasks_local_reference_list":[],"name":"a6824098_dag","attrs":{"edges":[],"type":""},"timeout_secs":"0","type":"DAG","variable_list":[]}],"description":"","name":"912fd7a2_runbook","main_task_local_reference":{"kind":"app_task","name":"a6824098_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":"NGINXsystem"},"retries":"0","description":"","child_tasks_local_reference_list":[],"name":"057c3278_dag","attrs":{"edges":[],"type":""},"timeout_secs":"0","type":"DAG","variable_list":[]}],"description":"","name":"bb185ce0_runbook","main_task_local_reference":{"kind":"app_task","name":"057c3278_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":"NGINXsystem"},"retries":"0","description":"","child_tasks_local_reference_list":[],"name":"4adcd7ae_dag","attrs":{"edges":[],"type":""},"timeout_secs":"0","type":"DAG","variable_list":[]}],"description":"","name":"947b9e66_runbook","main_task_local_reference":{"kind":"app_task","name":"4adcd7ae_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":"NGINXsystem"},"retries":"0","description":"","child_tasks_local_reference_list":[],"name":"f3242e06_dag","attrs":{"edges":[],"type":""},"timeout_secs":"0","type":"DAG","variable_list":[]}],"description":"","name":"e90e71df_runbook","main_task_local_reference":{"kind":"app_task","name":"f3242e06_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":"NGINXsystem"},"retries":"0","description":"","child_tasks_local_reference_list":[],"name":"a69b59c7_dag","attrs":{"edges":[],"type":""},"timeout_secs":"0","type":"DAG","variable_list":[]}],"description":"","name":"6893f711_runbook","main_task_local_reference":{"kind":"app_task","name":"a69b59c7_dag"},"variable_list":[]},"name":"action_restart"}],"depends_on_list":[],"name":"NGINXsystem","port_list":[],"tier":"","variable_list":[],"description":""}],"substrate_definition_list":[{"description":"","action_list":[],"type":"AHV_VM","name":"nginx2","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},"editables":{"create_spec":{"resources":{"nic_list":{},"serial_port_list":{},"disk_list":{}}}},"os_type":"Linux","create_spec":{"name":"Candle-@@{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":"ee311961-07d4-4d7d-8432-6f5e2e70191b"},"type":""}],"serial_port_list":[],"guest_tools":null,"num_vcpus_per_socket":1,"num_sockets":1,"gpu_list":[],"memory_size_mib":4096,"parent_reference":null,"hardware_clock_timezone":"","guest_customization":{"cloud_init":{"meta_data":"","type":"","user_data":"#cloud-config\nusers:\n - name: candle\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":"LocalImagesCandle","uuid":"068c10b4-6f88-cf95-2b18-92f27f6f4511"},"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":"candle","description":"","type":"KEY","secret":{"attrs":{"is_secret_modified":false,"secret_reference":{}}},"name":"candle"}],"package_definition_list":[{"description":"","action_list":[],"type":"DEB","service_local_reference_list":[{"kind":"app_service","name":"NGINXsystem"}],"name":"nginx","version":"","options":{"install_runbook":{"task_definition_list":[{"target_any_local_reference":{"kind":"app_package","name":"nginx"},"retries":"0","description":"","message_list":[],"child_tasks_local_reference_list":[{"kind":"app_task","name":"Start"},{"kind":"app_task","name":"InstallNginx"}],"name":"9cc4b64e_dag","state":"ACTIVE","attrs":{"edges":[{"from_task_reference":{"kind":"app_task","name":"Start"},"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":"NGINXsystem"},"retries":"0","description":"","message_list":[],"child_tasks_local_reference_list":[],"name":"Start","state":"ACTIVE","attrs":{"type":"CALL_RUNBOOK","inarg_list":[],"runbook_reference":{"kind":"app_runbook","name":"947b9e66_runbook"}},"timeout_secs":"0","type":"CALL_RUNBOOK","variable_list":[]},{"target_any_local_reference":{"kind":"app_service","name":"NGINXsystem"},"retries":"0","description":"","message_list":[],"child_tasks_local_reference_list":[],"name":"InstallNginx","state":"ACTIVE","attrs":{"exit_status":[],"script":"sudo curl http:\/\/10.42.94.112:30080\/nginx-release-centos-7-0.el7.ngx.noarch.rpm --output \/tmp\/nginx-release-centos-7-0.el7.ngx.noarch.rpm\nsudo rpm -Uvh \/tmp\/nginx-release-centos-7-0.el7.ngx.noarch.rpm\nsudo yum --disablerepo=\"*\" --enablerepo=nginx install -y nginx\nsudo systemctl start nginx.service","script_type":"sh","type":"","command_line_args":"","login_credential_local_reference":{"kind":"app_credential","name":"candle"}},"timeout_secs":"0","type":"EXEC","variable_list":[]}],"description":"","name":"94b25b2c_runbook","state":"ACTIVE","main_task_local_reference":{"kind":"app_task","name":"9cc4b64e_dag"},"message_list":[],"variable_list":[]},"type":"","uninstall_runbook":{"task_definition_list":[{"target_any_local_reference":{"kind":"app_package","name":"nginx"},"retries":"0","description":"","message_list":[],"child_tasks_local_reference_list":[],"name":"c2cce6a8_dag","state":"ACTIVE","attrs":{"edges":[],"type":""},"timeout_secs":"0","type":"DAG","variable_list":[]}],"description":"","name":"a0e3b27c_runbook","state":"ACTIVE","main_task_local_reference":{"kind":"app_task","name":"c2cce6a8_dag"},"message_list":[],"variable_list":[]}},"variable_list":[]},{"description":"","action_list":[],"type":"SUBSTRATE_IMAGE","service_local_reference_list":[],"name":"LocalImagesCandle","version":"","options":{"type":"","name":"Centos7_local","resources":{"image_type":"DISK_IMAGE","checksum":{},"source_uri":"http:\/\/10.42.94.112:30080\/centos.img","version":{"product_version":"7","type":"","product_name":"Centos"},"architecture":"X86_64","type":""},"description":""},"variable_list":[]}],"app_profile_list":[{"deployment_create_list":[{"type":"GREENFIELD","action_list":[],"depends_on_list":[],"name":"f9c7a0b6_deployment","published_service_local_reference_list":[],"max_replicas":"1","package_local_reference_list":[{"kind":"app_package","name":"nginx"}],"substrate_local_reference":{"kind":"app_substrate","name":"nginx2"},"min_replicas":"1","variable_list":[],"description":""}],"description":"","action_list":[],"name":"Default","variable_list":[{"val_type":"STRING","description":"","name":"INSTANCE_PUBLIC_KEY","type":"LOCAL","value":"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC\/36x8hPqxuXw9zmZnT74dHhppdacxvcEZMD+4WMa\/2eb9aq\/wOaqh3JY1dUvhaXsJ5fcyDfF3FR8b4i3mN+lycQo8nUdRN7ojOOY1dqeX5nflCa7UCcLgIDn9EUVmDjBnQyreUTh4Ryx5L7GIFvgiFkTI5tP+uDBsrY8lo1rc\/u9OyCXFS29s7YEPIvmpHx3JbamQf3pB2EVc8XSt8ZOWxVe\/CuQCnaSxIYMJpfmnB6kyH1RwTpS6dqhBQnnCvuntdxRQE7c7vndtggKhIfFAYV8Zy++0KEoTCtisK8uplaEXJjg0UsxK2WF5cIfqtOanJp6Wrp5yMCNqt5Y97gY1 tfindelkind@vLintop","label":"","attrs":{"type":""},"editables":{"value":true}}]}],"published_service_definition_list":[],"default_credential_local_reference":{"kind":"app_credential","name":"candle"},"type":"USER"},"name":"nginx-candle-v02"},"api_version":"3.0","metadata":{"last_update_time":"1553716721582485","kind":"blueprint","spec_version":57,"creation_time":"1553685807551077","name":"nginx-candle-v02"}}