119c416846323f97d79ba26b0e5f60dfd9df78fe
[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 # /var/log is mounted as a logical volume for stx,
42 # so do not link to /var/volatile/log.
43 VOLATILE_LOG_DIR = "no"
44
45 # We don't need extra space for iso image
46 IMAGE_OVERHEAD_FACTOR = "1.05"
47
48 # Add extra users and groups for stx
49 INHERIT += " extrausers-config"
50 SYSADMIN_P = "4SuW8cnXFyxsk"
51
52 EXTRA_USERS_PARAMS_CONFIG = "\
53         groupadd -f -g 345 sys_protected; \
54         useradd -m -g sys_protected -G root \
55             -d /home/sysadmin -p ${SYSADMIN_P} \
56             -s /bin/sh sysadmin; \
57         useradd -p '' sysinv; \
58         groupadd sysinv; \
59         usermod -a -G sysinv sysinv; \
60         useradd -p '' ceph; \
61         groupadd ceph; \
62         usermod -a -G ceph ceph; \
63         useradd -p '' haproxy; \
64         groupadd haproxy; \
65         usermod -a -G haproxy haproxy; \
66         useradd -p '' patching; \
67         groupadd patching; \
68         usermod -a -G patching patching; \
69         useradd -p '' nfv; \
70         groupadd nfv; \
71         usermod -a -G nfv nfv; \
72         useradd -p '' www; \
73         groupadd www; \
74         usermod -a -G www www; \
75         usermod -a -G sys_protected sysadmin; \
76         usermod -a -G sys_protected sysinv; \
77         usermod -a -G sys_protected www; \
78         usermod -a -G sys_protected nfv; \
79         usermod -a -G sys_protected patching; \
80         usermod -a -G sys_protected haproxy; \
81         usermod -P root root; \
82         \
83         groupadd -r -g 128 nscd; \
84         useradd -M -o -r -d / -s /sbin/nologin -c 'NSCD Daemon' -u 28 -g nscd nscd; \
85         "
86
87 # Used by:
88 # neutron-init
89 # glance-init
90 CONTROLLER_IP = "127.0.0.1"
91 HELM_TOOL_KIT_VERSION = "0.1.0"
92 TIS_PATCH_VER = "7"
93 HELM_REPO = "stx-platform"
94 STX_REL = "19.12"
95
96 # For the stx /etc/build.info
97 STX_ID = "3.0"
98 STX_BUILD_DATE := "${@time.strftime('%Y-%m-%d %H:%M:%S',time.gmtime())}"