1 require metal-common.inc
3 SUBPATH0 = "inventory/inventory/"
6 LIC_FILES_CHKSUM = "file://LICENSE;md5=1dece7821bf3fd70fe1309eaa37d52a2"
8 SRC_URI += "file://0001-inventory-Remove-argparse-requirement.patch"
21 python-keystoneauth1 \
22 python-keystonemiddleware \
23 python-neutronclient \
24 python-oslo.concurrency \
30 python-oslo.messaging \
31 python-oslo.middleware \
33 python-oslo.rootwrap \
34 python-oslo.serialization \
37 python-oslo.versionedobjects \
56 SYSTEMD_PACKAGES = "${PN}"
57 SYSTEMD_SERVICE_${PN} = "inventory-api.service inventory-conductor.service"
58 SYSTEMD_AUTO_ENABLE_${PN} = "disable"
60 inherit setuptools python-dir
63 do_install_append () {
65 install -d -m 755 ${D}/${sysconfdir}/goenabled.d
66 install -p -D -m 755 etc/inventory/inventory_goenabled_check.sh ${D}/${sysconfdir}/goenabled.d/inventory_goenabled_check.sh
68 install -d -m 755 ${D}/${sysconfdir}/inventory
69 install -p -D -m 755 etc/inventory/policy.json ${D}/${sysconfdir}/inventory/policy.json
71 install -d -m 755 ${D}/${sysconfdir}/motd.d
72 install -p -D -m 755 etc/inventory/motd-system ${D}/${sysconfdir}/motd.d/10-system-config
74 install -m 755 -p -D scripts/inventory-api ${D}/${libdir}/ocf/resource.d/platform/inventory-api
75 install -m 755 -p -D scripts/inventory-conductor ${D}/${libdir}/ocf/resource.d/platform/inventory-conductor
77 install -d -m 0755 ${D}/${systemd_system_unitdir}/
78 install -m 644 -p -D scripts/inventory-api.service ${D}/${systemd_system_unitdir}/
79 install -m 644 -p -D scripts/inventory-conductor.service ${D}/${systemd_system_unitdir}/
81 # Install sql migration
82 install -m 644 inventory/db/sqlalchemy/migrate_repo/migrate.cfg \
83 ${D}/${PYTHON_SITEPACKAGES_DIR}/inventory/db/sqlalchemy/migrate_repo/migrate.cfg
87 FILES_${PN}_append = " \
88 ${libdir}/ocf/resource.d/platform/inventory-api \
89 ${libdir}/ocf/resource.d/platform/inventory-conductor \