Comment # 8 on bug 966645 from
@Tim: The ceph-resource-agents package currently installs the following files
and directories:

> vanguard1:~ # rpm -ql ceph-resource-agents
> /usr/lib/ocf
> /usr/lib/ocf/resource.d
> /usr/lib/ocf/resource.d/ceph
> /usr/lib/ocf/resource.d/ceph/ceph
> /usr/lib/ocf/resource.d/ceph/mds
> /usr/lib/ocf/resource.d/ceph/mon
> /usr/lib/ocf/resource.d/ceph/osd
> /usr/lib/ocf/resource.d/ceph/rbd

If I understood correctly, we will have to adjust the spec file, which
currently says:

> %files resource-agents
> %defattr(0755,root,root,-)
> %dir /usr/lib/ocf
> %dir /usr/lib/ocf/resource.d
> %dir /usr/lib/ocf/resource.d/ceph
> /usr/lib/ocf/resource.d/%{name}/*

By replacing the last line with:

> %if ! %{_with_systemd}
> /usr/lib/ocf/resource.d/ceph/ceph
> /usr/lib/ocf/resource.d/ceph/mds
> /usr/lib/ocf/resource.d/ceph/mon
> /usr/lib/ocf/resource.d/ceph/osd
> /usr/lib/ocf/resource.d/ceph/rbd
> %endif
> %if %{_with_systemd}
> /usr/lib/ocf/resource.d/ceph/rbd
> %endif

Correct? (Note that we are trying to avoid %else in the spec file)


You are receiving this mail because: