blob: 6ea540b3cd03f095ab527e038dc0ec3fa3124d8e [file] [log] [blame]
disc5298382016-11-23 16:03:33 +02001# Prepare Juniper contrail-test
2
3- description: Allow password authentication for SSH on compute nodes
4 cmd: salt 'cmp*' cmd.run "sed -i -e 's/^PasswordAuthentication./PasswordAuthentication yes/' /etc/ssh/sshd_config ; service ssh restart"
5 node_name: cfg01.mk22-qa-lab01.local
6
7- description: Install contrail-test on ctl01
8 cmd: wget https://raw.githubusercontent.com/Juniper/contrail-test-ci/master/install.sh;
9 chmod +x ./install.sh;
10 ./install.sh install contrail-test --ci-ref R3.0.2.x --fab-ref R3.0.2.x --test-ref R3.0.2.x;
11 node_name: ctl01.mk22-qa-lab01.local
12
13- description: Install OpenJDK-7 for contrail tests
14 cmd: apt-get -y install openjdk-7-jdk
15 node_name: ctl01.mk22-qa-lab01.local
16
17- description: Create testbed.py with lab parameters
18 cmd: |
19 cat << EOF >> /opt/contrail/utils/fabfile/testbeds/testbed.py
20 from fabric.api import env
21
22 #Management ip addresses of hosts in the cluster
23 os_ctrl_1 = 'root@172.16.10.101'
24 os_ctrl_2 = 'root@172.16.10.102'
25 os_ctrl_3 = 'root@172.16.10.103'
26 c_ctrl_1 = 'root@172.16.10.101'
27 c_ctrl_2 = 'root@172.16.10.102'
28 c_ctrl_3 = 'root@172.16.10.103'
29 c_compute_1 = 'root@172.16.10.105'
30 #c_compute_2 = 'root@10.84.30.51'
31 vip_ctrl = 'root@172.16.10.254'
32
33 ext_routers = [
34 ('gateway1','192.168.10.1'),
35 #('gateway2','10.110.1.1'),
36 ]
37
38 #Autonomous system number
39 router_asn = 64512
40
41 #Host from which the fab commands are triggered to install and provision
42 deploy_node = 'root@172.16.10.101'
43
44 #Role definition of the hosts.
45 env.roledefs = {
46 'all': [os_ctrl_1,c_ctrl_1,c_ctrl_2,c_ctrl_3,os_ctrl_2,os_ctrl_3,c_compute_1],
47 'cfgm': [c_ctrl_1,c_ctrl_2,c_ctrl_3],
48 'openstack': [os_ctrl_1,os_ctrl_2,os_ctrl_3],
49 'control': [c_ctrl_1,c_ctrl_2,c_ctrl_3],
50 'compute': [c_compute_1],
51 'collector': [c_ctrl_1,c_ctrl_2,c_ctrl_3],
52 #'webui': [c_ctrl_1,c_ctrl_2,c_ctrl_3],
53 'webui': [vip_ctrl],
54 'database': [c_compute_1],
55 'build': [deploy_node],
56 }
57 #Openstack admin password
58 env.openstack_admin_password = 'admin'
59 env.password = 'r00tme'
60 #Passwords of each host
61 env.passwords = {
62 os_ctrl_1: 'r00tme',
63 c_ctrl_1: 'r00tme',
64 c_ctrl_2: 'r00tme',
65 c_ctrl_3: 'r00tme',
66 os_ctrl_2: 'r00tme',
67 os_ctrl_3: 'r00tme',
68 c_compute_1: 'r00tme',
69 deploy_node: 'r00tme',
70 }
71
72 env.ha = {
73 'internal_vip' : '172.16.10.254',
74 #'external_vip' : '10.84.30.65',
75 'contrail_internal_vip' : '172.16.10.254',
76 #'contrail_external_vip' : '192.168.200.254',
77 }
78
79 multi_tenancy = True
80 env.keystone = {
81 'admin_user' : 'admin',
82 'admin_password' : 'workshop',
83 'service_tenant': 'admin',
84 'admin_tenant' : 'admin',
85 'keystone_ip' : '172.16.10.254',
86 }
87
88 os_username = 'admin'
89 os_password = 'workshop'
90 os_tenant_name = 'admin'
91
92
93 control_data = {
94 os_ctrl_1 : { 'ip': '172.16.10.101/24', 'gw' : '172.16.10.1', 'device':'eth1' },
95 os_ctrl_2 : { 'ip': '172.16.10.102/24', 'gw' : '172.16.10.1', 'device':'eth1' },
96 os_ctrl_3 : { 'ip': '172.16.10.103/24', 'gw' : '172.16.10.1', 'device':'eth1' },
97 c_ctrl_1 : { 'ip': '172.16.10.101/24', 'gw' : '172.16.10.1', 'device':'eth1' },
98 c_ctrl_2 : { 'ip': '172.16.10.102/24', 'gw' : '172.16.10.1', 'device':'eth1' },
99 c_ctrl_3 : { 'ip': '172.16.10.103/24', 'gw' : '172.16.10.1', 'device':'eth1' },
100 c_compute_1 : { 'ip': '172.16.10.105/24', 'gw' : '172.16.10.1', 'device':'eth1' },
101 }
102
103 env.test = {
104 'mail_to': 'user@test.mlx',
105 'mail_server': '10.204.x.x',
106 'mail_sender': 'mailer@juniper.net'
107 }
108 EOF
109
110 node_name: ctl01.mk22-qa-lab01.local