%global commit a49c1f6d5e86004bfef456e2cacda4f0aef09a0c %global shortcommit %(c=%{commit}; echo ${c:0:7}) # DO NOT REMOVE ALPHATAG %global alphatag .%{shortcommit}git %global project heat-agents Name: openstack-heat-agents Version: XXX Release: XXX Summary: Heat software config agent and hook scripts License: ASL 2.0 URL: https://github.com/openstack/heat-agents Obsoletes: openstack-heat-templates < 0.0.2 Source0: https://github.com/openstack/%{project}/archive/%{commit}.tar.gz#/%{project}-%{shortcommit}.tar.gz BuildArch: noarch # Install all subpackages when main package is installed Requires: python-heat-agent = %{version}-%{release} Requires: python-heat-agent-puppet = %{version}-%{release} Requires: python-heat-agent-ansible = %{version}-%{release} Requires: python-heat-agent-apply-config = %{version}-%{release} Requires: python-heat-agent-hiera = %{version}-%{release} Requires: python-heat-agent-docker-cmd = %{version}-%{release} %description Heat software config agent and hook scripts %prep %setup -qn %{project}-%{upstream_version} %build %install # Use os-apply-config to bootstrap /etc/os-collect-config.conf # from heat boot data install -p -D -m 755 heat-config/os-refresh-config/configure.d/20-os-apply-config %{buildroot}%{_libexecdir}/os-refresh-config/configure.d/20-os-apply-config install -p -D -m 600 heat-config/os-apply-config/templates/etc/os-collect-config.conf %{buildroot}%{_libexecdir}/os-apply-config/templates/etc/os-collect-config.conf # utilities which can be run by deployment scripts install -p -D -m 755 heat-config/bin/heat-config-notify %{buildroot}/%{_bindir}/heat-config-notify install -p -D -m 755 heat-config/bin/heat-config-rebuild-deployed %{buildroot}/%{_bindir}/heat-config-rebuild-deployed # os-refresh-config script to run heat deployment resources install -p -D -m 600 heat-config/os-apply-config/var/run/heat-config/heat-config %{buildroot}%{_libexecdir}/os-apply-config/templates/var/run/heat-config/heat-config install -p -D -m 755 heat-config/os-refresh-config/configure.d/55-heat-config %{buildroot}%{_libexecdir}/os-refresh-config/configure.d/55-heat-config # hook to perform configuration with scripts install -p -D -m 755 heat-config-script/install.d/hook-script.py %{buildroot}%{_libexecdir}/heat-config/hooks/script # hook to perform configuration with puppet install -p -D -m 755 heat-config-puppet/install.d/hook-puppet.py %{buildroot}%{_libexecdir}/heat-config/hooks/puppet # hook to perform configuration with ansible install -p -D -m 755 heat-config-ansible/install.d/hook-ansible.py %{buildroot}%{_libexecdir}/heat-config/hooks/ansible # hook to perform configuration with os-apply-config install -p -D -m 755 heat-config-apply-config/install.d/hook-apply-config.py %{buildroot}%{_libexecdir}/heat-config/hooks/apply-config # hook to perform configuration with hiera install -p -D -m 755 heat-config-hiera/install.d/hook-hiera.py %{buildroot}%{_libexecdir}/heat-config/hooks/hiera # hook to perform configuration with docker commands install -p -D -m 755 heat-config-docker-cmd/os-refresh-config/configure.d/50-heat-config-docker-cmd %{buildroot}%{_libexecdir}/os-refresh-config/configure.d/50-heat-config-docker-cmd install -p -D -m 755 heat-config-docker-cmd/install.d/hook-docker-cmd.py %{buildroot}%{_libexecdir}/heat-config/hooks/docker-cmd %files %doc README.rst %package -n python-heat-agent Summary: Agent for performing Heat software deployments Requires: python-heatclient Requires: python-zaqarclient Requires: heat-cfntools Requires: os-collect-config Requires: os-apply-config Requires: os-refresh-config Requires: dib-utils %description -n python-heat-agent This package installs and configures os-collect-config to allow Heat software deployments to perform script based configuration tasks. %files -n python-heat-agent %license LICENSE %{_bindir}/heat-config-notify %{_bindir}/heat-config-rebuild-deployed %{_libexecdir}/os-apply-config/templates/etc/os-collect-config.conf %{_libexecdir}/os-apply-config/templates/var/run/heat-config/heat-config %{_libexecdir}/os-refresh-config/configure.d/20-os-apply-config %{_libexecdir}/os-refresh-config/configure.d/55-heat-config %{_libexecdir}/heat-config/hooks/script %package -n python-heat-agent-puppet Summary: Agent for performing Puppet based Heat software deployments Requires: python-heat-agent Requires: puppet %description -n python-heat-agent-puppet This package installs and configures os-collect-config to allow Heat software deployments to perform puppet based configuration tasks. %files -n python-heat-agent-puppet %license LICENSE %{_libexecdir}/heat-config/hooks/puppet %package -n python-heat-agent-ansible Summary: Agent for performing Ansible based Heat software deployments Requires: python-heat-agent Requires: ansible %description -n python-heat-agent-ansible This package installs and configures os-collect-config to allow Heat software deployments to perform ansible based configuration tasks. %files -n python-heat-agent-ansible %license LICENSE %{_libexecdir}/heat-config/hooks/ansible %package -n python-heat-agent-apply-config Summary: Agent for performing os-apply-config based Heat software deployments Requires: python-heat-agent Requires: os-apply-config %description -n python-heat-agent-apply-config This package installs and configures os-collect-config to allow Heat software deployments to perform os-apply-config based configuration tasks. %files -n python-heat-agent-apply-config %license LICENSE %{_libexecdir}/heat-config/hooks/apply-config %package -n python-heat-agent-hiera Summary: Agent for performing hiera based Heat software deployments Requires: python-heat-agent %description -n python-heat-agent-hiera This package installs and configures os-collect-config to allow Heat software deployments to perform hiera based configuration tasks. %files -n python-heat-agent-hiera %license LICENSE %{_libexecdir}/heat-config/hooks/hiera %package -n python-heat-agent-docker-cmd Summary: Agent for performing Docker based Heat software deployments Requires: python-heat-agent Requires: docker %description -n python-heat-agent-docker-cmd This package installs and configures os-collect-config to allow Heat software deployments to perform docker based configuration tasks. %files -n python-heat-agent-docker-cmd %license LICENSE %{_libexecdir}/heat-config/hooks/docker-cmd %{_libexecdir}/os-refresh-config/configure.d/50-heat-config-docker-cmd %changelog