This repository has been archived by the owner on Sep 25, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathanswers.yml.example
126 lines (88 loc) · 3.48 KB
/
answers.yml.example
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
### REPO SETUP ###
# dictionary (keys are repo names, values are base URLs)
instack_host_repos_baseurls: {}
# bash snippet
instack_host_repos_cmd: |
export TRIPLEO_ROOT=/home/stack
yum -y install git yum-utils
git clone https://github.com/openstack/tripleo-common /home/stack/tripleo-common || true
pushd /home/stack/tripleo-common && git pull --ff-only origin master && popd
git clone https://github.com/openstack-infra/tripleo-ci /home/stack/tripleo-ci || true
pushd /home/stack/tripleo-ci && git pull --ff-only origin master && popd
chown -R stack: /home/stack/tripleo-common
chown -R stack: /home/stack/tripleo-ci
/home/stack/tripleo-ci/scripts/tripleo.sh --repo-setup
yum -y update
# dictionary (keys are repo names, values are base URLs)
instack_uc_repos_baseurls: {}
# bash snippet
instack_uc_repos_cmd: "{{ instack_host_repos_cmd }}"
### TOOLS SETUP ###
tools_packages:
- crudini
- git
- screen
- tmux
- vim
### HOST SETUP ###
# if set to an existing pool (e.g. 'default')
# then the pool location will not move
instack_host_libvirt_storage_pool: instack
instack_host_libvirt_storage_path: /home/vms-instack
instack_host_install_instack_undercloud_rpm: yes
instack_virt_setup_cmd: |
export NODE_DIST=centos7
# instack-virt-setup has good defaults now
# export NODE_CPU=2
# export UNDERCLOUD_NODE_MEM=8000
# export NODE_MEM=6000
export NODE_COUNT=8
# workaround
mkdir -p ~/.cache/tripleo/tripleo-incubator/scripts
instack-virt-setup
instack_host_uc_http_port: 80
instack_host_uc_ssh_port: 2200
### UNDERCLOUD SETUP ###
instack_uc_install_instack_undercloud_rpm: yes
instack_install_undercloud_cmd: |
export TRIPLEO_ROOT=/home/stack
# workaround
export FACTER_fqdn=$(hostname -f)
export LC_ALL=C
/home/stack/tripleo-ci/scripts/tripleo.sh --undercloud
# reduce undercloud memory footprint
sudo crudini --set /etc/heat/heat.conf DEFAULT num_engine_workers 2
sudo crudini --set /etc/nova/nova.conf DEFAULT osapi_compute_workers 1
sudo crudini --set /etc/nova/nova.conf DEFAULT metadata_workers 1
sudo crudini --set /etc/nova/nova.conf conductor workers 1
sudo systemctl restart openstack-heat-engine openstack-nova-api openstack-nova-conductor
### IMAGES SETUP ###
# Valid values are 'none', 'prebuilt', 'build'
overcloud_images_source: build
# The path is relative to the playbooks directory. Absolute path works too.
overcloud_images_prebuilt_dir: ../overcloud-images
overcloud_images_build_cmd: |
export TRIPLEO_ROOT=/home/stack
export NODE_DIST=centos7
export DIB_NO_TMPFS=1
/home/stack/tripleo-ci/scripts/tripleo.sh --overcloud-images
### OVERCLOUD PREPARATION ###
instack_prepare_for_overcloud_cmd: |
export TRIPLEO_ROOT=/home/stack
source ./stackrc
/home/stack/tripleo-ci/scripts/tripleo.sh --register-nodes
# /home/stack/tripleo-ci/scripts/tripleo.sh --introspect-nodes
OVERCLOUD_DNS_SERVER=$(cat /etc/resolv.conf | grep nameserver | head -n1 | awk '{ print $2 }')
CTLPLANE_SUBNET_ID=$(neutron subnet-list | grep '192.168.24.0/24' | awk '{ print $2 }')
neutron subnet-update "$CTLPLANE_SUBNET_ID" --dns-nameserver "$OVERCLOUD_DNS_SERVER"
### STOPPING POINTS ###
# if you want to terminate the run early at a specified point, set the
# stopping_point to one of these values:
# after_instack_libvirt_storage
# before_instack_virt_setup
# after_instack_virt_setup
# after_undercloud_forwarding
# before_instack_install_undercloud
# before_instack_build_images
# before_instack_prepare_for_overcloud
stopping_point: