From 393890b8e8615dedc411fff8738eaabd02487778 Mon Sep 17 00:00:00 2001 From: wangyaoguang Date: Thu, 28 Apr 2016 20:15:54 +0800 Subject: install puppet service when creating OS instances JIRA: BOTTLENECKS-73 Change-Id: I2500c6c81aa154cb8b025e3b425c4362fa798a18 Signed-off-by: wangyaoguang --- testsuites/rubbos/testcase_cfg/rubbos_1-1-0-1.yaml | 40 ++++++++++++++++++---- 1 file changed, 33 insertions(+), 7 deletions(-) (limited to 'testsuites') diff --git a/testsuites/rubbos/testcase_cfg/rubbos_1-1-0-1.yaml b/testsuites/rubbos/testcase_cfg/rubbos_1-1-0-1.yaml index dd6d5c94..01e9d57d 100755 --- a/testsuites/rubbos/testcase_cfg/rubbos_1-1-0-1.yaml +++ b/testsuites/rubbos/testcase_cfg/rubbos_1-1-0-1.yaml @@ -43,6 +43,14 @@ parameters: type: string description: End of private network IP address allocation pool default: "10.0.10.199" + master_user_data: + type: string + description: User data for the server with master role + default: "" + agent_user_data: + type: string + description: User data for the server with agent role + default: "" resources: private_net: @@ -82,6 +90,8 @@ resources: networks: - port: { get_resource: rubbos_control_port } admin_user: ubuntu + user_data: { get_param: master_user_data } + user_data_format: RAW rubbos_control_port: type: OS::Neutron::Port @@ -107,6 +117,8 @@ resources: networks: - port: { get_resource: rubbos_httpd_port } admin_user: ubuntu + user_data: { get_param: agent_user_data } + user_data_format: RAW rubbos_httpd_port: type: OS::Neutron::Port @@ -126,6 +138,8 @@ resources: networks: - port: { get_resource: rubbos_mysql1_port } admin_user: ubuntu + user_data: { get_param: agent_user_data } + user_data_format: RAW rubbos_mysql1_port: type: OS::Neutron::Port @@ -145,6 +159,8 @@ resources: networks: - port: { get_resource: rubbos_tomcat1_port } admin_user: ubuntu + user_data: { get_param: agent_user_data } + user_data_format: RAW rubbos_tomcat1_port: type: OS::Neutron::Port @@ -164,6 +180,8 @@ resources: networks: - port: { get_resource: rubbos_client1_port } admin_user: ubuntu + user_data: { get_param: agent_user_data } + user_data_format: RAW rubbos_client1_port: type: OS::Neutron::Port @@ -183,6 +201,8 @@ resources: networks: - port: { get_resource: rubbos_client2_port } admin_user: ubuntu + user_data: { get_param: agent_user_data } + user_data_format: RAW rubbos_client2_port: type: OS::Neutron::Port @@ -202,6 +222,8 @@ resources: networks: - port: { get_resource: rubbos_client3_port } admin_user: ubuntu + user_data: { get_param: agent_user_data } + user_data_format: RAW rubbos_client3_port: type: OS::Neutron::Port @@ -221,6 +243,8 @@ resources: networks: - port: { get_resource: rubbos_client4_port } admin_user: ubuntu + user_data: { get_param: agent_user_data } + user_data_format: RAW rubbos_client4_port: type: OS::Neutron::Port @@ -230,18 +254,20 @@ resources: - subnet_id: { get_resource: private_subnet } security_groups: [{ get_resource: server_security_group }] - rubbos_benchmark: + rubbos_client5: type: OS::Nova::Server properties: - name: rubbos_benchmark + name: rubbos_client5 image: { get_param: image } flavor: { get_param: flavor } key_name: { get_param: key_name } networks: - - port: { get_resource: rubbos_benchmark_port } + - port: { get_resource: rubbos_client5_port } admin_user: ubuntu + user_data: { get_param: agent_user_data } + user_data_format: RAW - rubbos_benchmark_port: + rubbos_client5_port: type: OS::Neutron::Port properties: network_id: { get_resource: private_net } @@ -294,7 +320,7 @@ outputs: rubbos_client4_private_ip: description: IP address of rubbos_client4 in private network value: { get_attr: [ rubbos_client4, first_address ] } - rubbos_benchmark_private_ip: - description: IP address of rubbos_benchmark in private network - value: { get_attr: [ rubbos_benchmark, first_address ] } + rubbos_client5_private_ip: + description: IP address of rubbos_client5 in private network + value: { get_attr: [ rubbos_client5, first_address ] } -- cgit 1.2.3-korg