3 # Licensed under the Apache License, Version 2.0 (the "License");
4 # you may not use this file except in compliance with the License.
5 # You may obtain a copy of the License at
7 # http://www.apache.org/licenses/LICENSE-2.0
9 # Unless required by applicable law or agreed to in writing, software
10 # distributed under the License is distributed on an "AS IS" BASIS,
11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 # See the License for the specific language governing permissions and
13 # limitations under the License.
15 # Root name to be used for chroot and caching, must differ between products
16 config_opts['root'] = 'akrainolite'
18 config_opts['target_arch'] = #RPM_ARCH#
19 config_opts['legal_host_arches'] = ('x86_64','aarch64',)
20 config_opts['dist'] = 'el7' # only useful for --resultdir variable subst
21 config_opts['chroot_setup_cmd'] = 'install createrepo yum-utils bison byacc cscope ctags cvs diffstat doxygen flex gcc gcc-c++ gcc-gfortran gettext git indent intltool libtool patch patchutils rcs redhat-rpm-config rpm-build subversion swig systemtap sudo'
22 config_opts['plugin_conf']['yum_cache_enable'] = False
23 config_opts['plugin_conf']['ccache_enable'] = False
24 config_opts['plugin_conf']['ccache_opts']['max_cache_size'] = '1G'
25 config_opts['plugin_conf']['ccache_opts']['dir'] = "/dev/shm/ccache.lcc-epel7"
26 config_opts['rpmbuild_networking'] = True
27 config_opts['cleanup_on_success'] = True
28 config_opts['cleanup_on_failure'] = False
29 config_opts['exclude_from_homedir_cleanup'] = ('build/SOURCES', '.bash_history', '.bashrc', 'build/RPMS', )
30 #ADDITIONAL_CONFIG_OPTS#
32 # Common RPM directive values
33 config_opts['macros']['%packager'] = #RPM_PACKAGER#
34 config_opts['macros']['%dist'] = ".el7.centos%{_platform_product}"
35 config_opts['macros']['%_platform_product_release_build_id'] = #PRODUCT_RELEASE_BUILD_ID#
36 config_opts['macros']['%_platform_product_release_label'] = #PRODUCT_RELEASE_LABEL#
37 config_opts['macros']['%_platform_product'] = #RPM_RELEASE_ID#
38 config_opts['macros']['%_platform_dist'] = ".el7.centos"
39 config_opts['macros']['%_platform_vendor'] = #RPM_VENDOR#
40 config_opts['macros']['%_platform_license'] = #RPM_LICENSE#
41 config_opts['macros']['%_platform_licence'] = "%{_platform_license}"
43 # Product specific macros
44 config_opts['macros']['%_playbooks_path'] = "/opt/openstack-ansible/playbooks"
45 config_opts['macros']['%_inventory_path'] = "/opt/openstack-ansible/inventory"
46 config_opts['macros']['%_roles_path'] = "/etc/ansible/roles"
47 config_opts['macros']['%_installation_root_path'] = "/etc/lcm/playbooks/installation"
48 config_opts['macros']['%_bootstrapping_path'] = "%{_installation_root_path}/bootstrapping"
49 config_opts['macros']['%_provisioning_path'] = "%{_installation_root_path}/provisioning"
50 config_opts['macros']['%_postconfig_path'] = "%{_installation_root_path}/postconfig"
51 config_opts['macros']['%_finalize_path'] = "%{_installation_root_path}/finalize"
52 config_opts['macros']['%_ansible_filter_plugins_path'] = "%{_roles_path}/plugins/filter"
53 config_opts['macros']['%_ansible_modules_path'] = "%{_roles_path}/plugins/library"
54 config_opts['macros']['%_caas_path'] = "/var/lib/caas"
55 config_opts['macros']['%_caas_container_tar_path'] = "%{_caas_path}/images"
56 config_opts['macros']['%_caas_manifest_path'] = "%{_caas_path}/manifests"
57 config_opts['macros']['%_caas_chart_path'] = "%{_caas_path}/infra-charts"
58 config_opts['macros']['%_caas_libexec_path'] = "%{_libexecdir}/caas"
59 config_opts['macros']['%_caas_rbac_manifests_path'] = "%{_caas_path}/rbac_manifests"
60 config_opts['macros']['%_caas_danm_crd_path'] = "%{_caas_path}/crds"
61 config_opts['macros']['%_cm_config_dir'] = "%{_platform_etc_path}/cmframework/config"
62 config_opts['macros']['%_cm_caas_config_file'] = "%{_cm_config_dir}/caas.yaml"
63 config_opts['macros']['%_caas_lcm_path'] = "/opt/caas_lcm/"
64 config_opts['macros']['%_platform_bin_path'] = "/usr/local/bin"
65 config_opts['macros']['%_platform_lib_path'] = "/usr/local/lib"
66 config_opts['macros']['%_platform_etc_path'] = "/etc"
67 config_opts['macros']['%_platform_share_path'] = "/share"
68 config_opts['macros']['%_platform_man_path'] = "%{_platform_share_path}/man"
69 config_opts['macros']['%_platform_doc_path'] = "%{_platform_share_path}/doc"
70 config_opts['macros']['%_platform_var_path'] = "/var"
71 config_opts['macros']['%_platform_python'] = "/python2.7"
72 config_opts['macros']['%_platform_python_site_packages_path'] = "%{_platform_lib_path}%{_platform_python}/site-packages"
73 config_opts['macros']['%_platform_ocf_resource_path'] = "/usr/lib/ocf/resource.d"
74 config_opts['macros']['%_python_site_packages_path'] = "/usr/lib/python2.7/site-packages"
75 config_opts['macros']['%_secrets_path'] = "/etc/required-secrets"
78 #config_opts['macros']['%_smp_mflags'] = "-j6"
79 #config_opts['macros']['%_smp_ncpus_max'] = 0
82 config_opts['yum.conf'] = """
84 cachedir=/var/cache/yum
88 logfile=/var/log/yum.log