stx-config: add extra command to bring sriov pf device up
[pti/rtp.git] / meta-stx / conf / distro / poky-stx.conf
1 #
2 ## Copyright (C) 2019 Wind River Systems, Inc.
3 #
4 #  Licensed under the Apache License, Version 2.0 (the "License");
5 #  you may not use this file except in compliance with the License.
6 #  You may obtain a copy of the License at
7 #
8 #      http://www.apache.org/licenses/LICENSE-2.0
9 #
10 #  Unless required by applicable law or agreed to in writing, software
11 #  distributed under the License is distributed on an "AS IS" BASIS,
12 #  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 #  See the License for the specific language governing permissions and
14 #  limitations under the License.
15
16 require conf/distro/poky.conf
17 DISTRO = "poky-stx"
18 DISTRO_NAME = "Stx (Poky Starlingx Distro)"
19 DISTRO_VERSION = "2.7.3"
20 DISTRO_CODENAME = "warrior"
21
22 MAINTAINER = "zbsarashki <zbsarashki@gmail.com>"
23
24 require conf/distro/include/stx-features.inc
25 require conf/distro/include/stx-preferred-vers.inc
26
27 # For packagegroup-basic
28 TASK_BASIC_SSHDAEMON = "openssh-sshd openssh-sftp openssh-sftp-server"
29
30 # For iso image
31 #KERNEL_FEATURES += "features/overlayfs/overlayfs.scc"
32
33 # Disable services by default
34 SYSTEMD_AUTO_ENABLE_pn-haproxy = "disable"
35 SYSTEMD_AUTO_ENABLE_pn-lighttpd = "disable"
36 SYSTEMD_AUTO_ENABLE_pn-postgresql = "disable"
37
38 # networking sysv service is required
39 SYSTEMD_DISABLED_SYSV_SERVICES_remove = "networking"
40
41 # Defines the serial consoles (TTYs) to enable using getty
42 SERIAL_CONSOLES = "115200;ttyS0"
43
44 # /var/log is mounted as a logical volume for stx,
45 # so do not link to /var/volatile/log.
46 VOLATILE_LOG_DIR = "no"
47
48 # We don't need extra space for iso image
49 IMAGE_OVERHEAD_FACTOR = "1.05"
50
51 # Add extra users and groups for stx
52 SYSADMIN_P = "4SuW8cnXFyxsk"
53
54 EXTRA_USERS_PARAMS_CONFIG = "\
55         groupadd -f -g 345 sys_protected; \
56         useradd -m -g sys_protected -G root \
57             -d /home/sysadmin -p ${SYSADMIN_P} \
58             -s /bin/sh sysadmin; \
59         useradd -p '' haproxy; \
60         groupadd haproxy; \
61         usermod -a -G haproxy haproxy; \
62         useradd -p '' patching; \
63         groupadd patching; \
64         usermod -a -G patching patching; \
65         useradd -p '' nfv; \
66         groupadd nfv; \
67         usermod -a -G nfv nfv; \
68         useradd -p '' www; \
69         groupadd www; \
70         usermod -a -G www www; \
71         usermod -a -G sys_protected sysadmin; \
72         usermod -a -G sys_protected sysinv; \
73         usermod -a -G sys_protected www; \
74         usermod -a -G sys_protected nfv; \
75         usermod -a -G sys_protected patching; \
76         usermod -a -G sys_protected haproxy; \
77         usermod -P root root; \
78         \
79         groupadd -r -g 128 nscd; \
80         useradd -M -o -r -d / -s /sbin/nologin -c 'NSCD Daemon' -u 28 -g nscd nscd; \
81         "
82
83 # Used by:
84 # neutron-init
85 # glance-init
86 CONTROLLER_IP = "127.0.0.1"
87 HELM_TOOL_KIT_VERSION = "0.1.0"
88 TIS_PATCH_VER = "7"
89 HELM_REPO = "stx-platform"
90 STX_REL = "19.12"
91
92 # For the stx /etc/build.info
93 STX_ID = "3.0"
94 STX_BUILD_DATE := "${@time.strftime('%Y-%m-%d %H:%M:%S',time.gmtime())}"