X-Git-Url: https://gerrit.akraino.org/r/gitweb?p=ta%2Fcaas-lcm.git;a=blobdiff_plain;f=rpmbuild.spec;h=59f04b5093e8746a72cfece3544acdb0a2bdb941;hp=cc90b11282462eae12a56aba2182db480efe0bfc;hb=8c28c9164fab719dcd49ccea8878e66bfe69b88c;hpb=d57f917af64dd1882880a7effd0d8b816cb1dca0 diff --git a/rpmbuild.spec b/rpmbuild.spec index cc90b11..59f04b5 100644 --- a/rpmbuild.spec +++ b/rpmbuild.spec @@ -15,11 +15,10 @@ %define COMPONENT lcm %define RPM_NAME caas-%{COMPONENT} %define RPM_MAJOR_VERSION 1.0.0 -%define RPM_MINOR_VERSION 6 +%define RPM_MINOR_VERSION 7 %define IMAGE_TAG %{RPM_MAJOR_VERSION}-%{RPM_MINOR_VERSION} -%define LCM_PATH /opt/caas_lcm -%define DEPLOY_PATH %{LCM_PATH}/deploy -%define SU_PATH %{LCM_PATH}/su +%define DEPLOY_PATH %{_caas_lcm_path}/deploy +%define SU_PATH %{_caas_lcm_path}/su Name: %{RPM_NAME} Version: %{RPM_MAJOR_VERSION} @@ -54,13 +53,13 @@ mkdir -p %{buildroot}/%{_roles_path}/ rsync -av ansible/roles/pre_config_lcm %{buildroot}/%{_roles_path}/ # ------- set lcm path inside deploy -sed -i 's|{{ lcm_path }}|%{LCM_PATH}|g' %{buildroot}/%{DEPLOY_PATH}/roles/bm_onboard/tasks/main.yml -sed -i 's|{{ lcm_path }}|%{LCM_PATH}|g' %{buildroot}/%{DEPLOY_PATH}/roles/list_application_deployments/tasks/main.yml -sed -i 's|{{ lcm_path }}|%{LCM_PATH}|g' %{buildroot}/%{DEPLOY_PATH}/roles/list_application_packages/tasks/main.yml -sed -i 's|{{ lcm_path }}|%{LCM_PATH}|g' %{buildroot}/%{DEPLOY_PATH}/roles/list_docker_images/tasks/main.yml +sed -i 's|{{ lcm_path }}|%{_caas_lcm_path}|g' %{buildroot}/%{DEPLOY_PATH}/roles/bm_onboard/tasks/main.yml +sed -i 's|{{ lcm_path }}|%{_caas_lcm_path}|g' %{buildroot}/%{DEPLOY_PATH}/roles/list_application_deployments/tasks/main.yml +sed -i 's|{{ lcm_path }}|%{_caas_lcm_path}|g' %{buildroot}/%{DEPLOY_PATH}/roles/list_application_packages/tasks/main.yml +sed -i 's|{{ lcm_path }}|%{_caas_lcm_path}|g' %{buildroot}/%{DEPLOY_PATH}/roles/list_docker_images/tasks/main.yml sed -i 's|{{ caas_manifest_path }}|%{_caas_manifest_path}|g' %{buildroot}/%{DEPLOY_PATH}/group_vars/controller-1.caas_master/params.yml # ------- set lcm path inside roles -sed -i 's|{{ lcm_path }}|%{LCM_PATH}|g' %{buildroot}/%{_roles_path}/pre_config_lcm/tasks/main.yml +sed -i 's|{{ lcm_path }}|%{_caas_lcm_path}|g' %{buildroot}/%{_roles_path}/pre_config_lcm/tasks/main.yml # ------- %files