2 ## Copyright (C) 2019 Wind River Systems, Inc.
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
8 # http://www.apache.org/licenses/LICENSE-2.0
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.
16 require conf/distro/poky.conf
18 DISTRO_NAME = "Stx (Poky Starlingx Distro)"
19 DISTRO_VERSION = "2.7.3"
20 DISTRO_CODENAME = "warrior"
22 MAINTAINER = "zbsarashki <zbsarashki@gmail.com>"
24 require conf/distro/include/stx-features.inc
25 require conf/distro/include/stx-preferred-vers.inc
27 # For packagegroup-basic
28 TASK_BASIC_SSHDAEMON = "openssh-sshd openssh-sftp openssh-sftp-server"
31 #KERNEL_FEATURES += "features/overlayfs/overlayfs.scc"
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"
38 # networking sysv service is required
39 SYSTEMD_DISABLED_SYSV_SERVICES_remove = "networking"
41 # Defines the serial consoles (TTYs) to enable using getty
42 SERIAL_CONSOLES = "115200;ttyS0"
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"
48 # We don't need extra space for iso image
49 IMAGE_OVERHEAD_FACTOR = "1.05"
51 # Add extra users and groups for stx
52 SYSADMIN_P = "4SuW8cnXFyxsk"
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; \
61 usermod -a -G haproxy haproxy; \
62 useradd -p '' patching; \
64 usermod -a -G patching patching; \
67 usermod -a -G nfv nfv; \
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 -a -G snmpd fm; \
78 usermod -P root root; \
80 groupadd -r -g 128 nscd; \
81 useradd -M -o -r -d / -s /sbin/nologin -c 'NSCD Daemon' -u 28 -g nscd nscd; \
87 CONTROLLER_IP = "127.0.0.1"
88 HELM_TOOL_KIT_VERSION = "0.1.0"
90 HELM_REPO = "stx-platform"
92 ORAN_REL = "Cherry (3.0)"
94 # For the stx /etc/build.info
96 STX_BUILD_DATE := "${@time.strftime('%Y-%m-%d %H:%M:%S',time.gmtime())}"