X-Git-Url: https://gerrit.akraino.org/r/gitweb?a=blobdiff_plain;f=rpmbuild.spec;h=bc1568bcdef97b76e7a31d28a7f4ca7830928665;hb=f99db47cea8dd3fc87268c83f7e530d10d27456c;hp=d76238d01aa3941035f4906b7bd1567d8ead5be8;hpb=3cc87abace7d23320dd9fb414b929432611ffb03;p=ta%2Fcaas-lcm.git diff --git a/rpmbuild.spec b/rpmbuild.spec index d76238d..bc1568b 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 4 +%define RPM_MINOR_VERSION 9 %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