diff options
Diffstat (limited to 'meta-openstack/recipes-support/salt/salt_2015.8.0.bb')
| -rw-r--r-- | meta-openstack/recipes-support/salt/salt_2015.8.0.bb | 144 |
1 files changed, 144 insertions, 0 deletions
diff --git a/meta-openstack/recipes-support/salt/salt_2015.8.0.bb b/meta-openstack/recipes-support/salt/salt_2015.8.0.bb new file mode 100644 index 0000000..16c86ea --- /dev/null +++ b/meta-openstack/recipes-support/salt/salt_2015.8.0.bb | |||
| @@ -0,0 +1,144 @@ | |||
| 1 | HOMEPAGE = "http://saltstack.com/" | ||
| 2 | SECTION = "admin" | ||
| 3 | LICENSE = "Apache-2.0" | ||
| 4 | LIC_FILES_CHKSUM = "file://LICENSE;md5=b59c9134761722281bb895f65cb15e9a" | ||
| 5 | DEPENDS = "\ | ||
| 6 | python-msgpack \ | ||
| 7 | python-pyyaml \ | ||
| 8 | python-jinja2 \ | ||
| 9 | python-markupsafe \ | ||
| 10 | python-pyzmq \ | ||
| 11 | python-pycrypto \ | ||
| 12 | " | ||
| 13 | |||
| 14 | SRCNAME = "salt" | ||
| 15 | SRC_URI = "http://pypi.python.org/packages/source/s/${SRCNAME}/${SRCNAME}-${PV}.tar.gz \ | ||
| 16 | file://set_python_location_hashbang.patch \ | ||
| 17 | file://minion \ | ||
| 18 | file://salt-minion \ | ||
| 19 | file://salt-common.bash_completion \ | ||
| 20 | file://salt-common.logrotate \ | ||
| 21 | file://salt-api \ | ||
| 22 | file://salt-master \ | ||
| 23 | file://master \ | ||
| 24 | file://salt-syndic \ | ||
| 25 | file://cloud \ | ||
| 26 | file://roster \ | ||
| 27 | " | ||
| 28 | |||
| 29 | SRC_URI[md5sum] = "a15842ef0582cca9d26143fe0a6180b7" | ||
| 30 | SRC_URI[sha256sum] = "71e1cb2eb1d4b30f3247f5590c00a2089190b8f9a90c9330dc9a65fae517ec9b" | ||
| 31 | |||
| 32 | S = "${WORKDIR}/${SRCNAME}-${PV}" | ||
| 33 | |||
| 34 | inherit setuptools update-rc.d | ||
| 35 | |||
| 36 | PACKAGES += "\ | ||
| 37 | ${PN}-api \ | ||
| 38 | ${PN}-cloud \ | ||
| 39 | ${PN}-common \ | ||
| 40 | ${PN}-master \ | ||
| 41 | ${PN}-minion \ | ||
| 42 | ${PN}-ssh \ | ||
| 43 | ${PN}-syndic \ | ||
| 44 | ${PN}-bash-completion \ | ||
| 45 | " | ||
| 46 | |||
| 47 | do_install_append() { | ||
| 48 | install -d ${D}${sysconfdir}/bash_completion.d/ | ||
| 49 | install -m 0644 ${WORKDIR}/salt-common.bash_completion ${D}${sysconfdir}/bash_completion.d/${PN}-common | ||
| 50 | install -d ${D}${sysconfdir}/logrotate.d/ | ||
| 51 | install -m 0644 ${WORKDIR}/salt-common.logrotate ${D}${sysconfdir}/logrotate.d/${PN}-common | ||
| 52 | install -d ${D}${sysconfdir}/init.d/ | ||
| 53 | install -m 0755 ${WORKDIR}/salt-minion ${D}${sysconfdir}/init.d/${PN}-minion | ||
| 54 | install -m 0755 ${WORKDIR}/salt-api ${D}${sysconfdir}/init.d/${PN}-api | ||
| 55 | install -m 0755 ${WORKDIR}/salt-master ${D}${sysconfdir}/init.d/${PN}-master | ||
| 56 | install -m 0755 ${WORKDIR}/salt-syndic ${D}${sysconfdir}/init.d/${PN}-syndic | ||
| 57 | install -d ${D}${sysconfdir}/${PN}/ | ||
| 58 | install -m 0644 ${WORKDIR}/minion ${D}${sysconfdir}/${PN}/minion | ||
| 59 | install -m 0644 ${WORKDIR}/master ${D}${sysconfdir}/${PN}/master | ||
| 60 | install -m 0644 ${WORKDIR}/cloud ${D}${sysconfdir}/${PN}/cloud | ||
| 61 | install -m 0644 ${WORKDIR}/roster ${D}${sysconfdir}/${PN}/roster | ||
| 62 | install -d ${D}${sysconfdir}/${PN}/cloud.conf.d ${D}${sysconfdir}/${PN}/cloud.profiles.d ${D}${sysconfdir}/${PN}/cloud.providers.d | ||
| 63 | } | ||
| 64 | |||
| 65 | ALLOW_EMPTY_${PN} = "1" | ||
| 66 | FILES_${PN} = "" | ||
| 67 | |||
| 68 | INITSCRIPT_PACKAGES = "${PN}-minion ${PN}-api ${PN}-master ${PN}-syndic" | ||
| 69 | |||
| 70 | DESCRIPTION_COMMON = "salt is a powerful remote execution manager that can be used to administer servers in a\ | ||
| 71 | fast and efficient way. It allows commands to be executed across large groups of servers. This means systems\ | ||
| 72 | can be easily managed, but data can also be easily gathered. Quick introspection into running systems becomes\ | ||
| 73 | a reality. Remote execution is usually used to set up a certain state on a remote system. Salt addresses this\ | ||
| 74 | problem as well, the salt state system uses salt state files to define the state a server needs to be in. \ | ||
| 75 | Between the remote execution system, and state management Salt addresses the backbone of cloud and data center\ | ||
| 76 | management." | ||
| 77 | |||
| 78 | SUMMARY_${PN}-minion = "client package for salt, the distributed remote execution system" | ||
| 79 | DESCRIPTION_${PN}-minion = "${DESCRIPTION_COMMON} This particular package provides the worker agent for salt." | ||
| 80 | RDEPENDS_${PN}-minion = "python (>=2.6), ${PN}-common (= ${EXTENDPKGV}) python-pycrypto python-msgpack python-pyzmq (>= 13.1.0)" | ||
| 81 | RRECOMMENDS_${PN}-minion_append_x64 = "dmidecode" | ||
| 82 | RSUGGESTS_${PN}-minion = "python-augeas" | ||
| 83 | CONFFILES_${PN}-minion = "${sysconfdir}/${PN}/minion ${sysconfdir}/init.d/${PN}-minion" | ||
| 84 | FILES_${PN}-minion = "${bindir}/${PN}-minion ${sysconfdir}/${PN}/minion.d/ ${CONFFILES_${PN}-minion} ${bindir}/${PN}-proxy" | ||
| 85 | INITSCRIPT_NAME_${PN}-minion = "${PN}-minion" | ||
| 86 | INITSCRIPT_PARAMS_${PN}-minion = "defaults" | ||
| 87 | |||
| 88 | SUMMARY_${PN}-common = "shared libraries that salt requires for all packages" | ||
| 89 | DESCRIPTION_${PN}-common ="${DESCRIPTION_COMMON} This particular package provides shared libraries that \ | ||
| 90 | salt-master, salt-minion, and salt-syndic require to function." | ||
| 91 | RDEPENDS_${PN}-common = "python (>= 2.7.5-5) python (< 2.8) python-dateutil python-jinja2 python-pyyaml python-requests (>= 1.0.0) python-tornado (>= 4.2.1)" | ||
| 92 | RRECOMMENDS_${PN}-common = "lsb" | ||
| 93 | RSUGGESTS_${PN}-common = "python-mako python-git" | ||
| 94 | RCONFLICTS_${PN}-common = "python-mako (< 0.7.0)" | ||
| 95 | CONFFILES_${PN}-common="${sysconfdir}/logrotate.d/${PN}-common" | ||
| 96 | FILES_${PN}-common = "${bindir}/${PN}-call ${libdir}/python2.7/ ${CONFFILES_${PN}-common}" | ||
| 97 | |||
| 98 | SUMMARY_${PN}-ssh = "remote manager to administer servers via salt" | ||
| 99 | DESCRIPTION_${PN}-ssh = "${DESCRIPTION_COMMON} This particular package provides the salt ssh controller. It \ | ||
| 100 | is able to run salt modules and states on remote hosts via ssh. No minion or other salt specific software needs\ | ||
| 101 | to be installed on the remote host." | ||
| 102 | RDEPENDS_${PN}-ssh = "python (>= 2.6) ${PN}-common (= ${EXTENDPKGV}) python-msgpack" | ||
| 103 | CONFFILES_${PN}-ssh="${sysconfdir}/${PN}/roster" | ||
| 104 | FILES_${PN}-ssh = "${bindir}/${PN}-ssh ${CONFFILES_${PN}-ssh}" | ||
| 105 | |||
| 106 | SUMMARY_${PN}-api = "generic, modular network access system" | ||
| 107 | DESCRIPTION_${PN}-api = "a modular interface on top of Salt that can provide a variety of entry points into a \ | ||
| 108 | running Salt system. It can start and manage multiple interfaces allowing a REST API to coexist with XMLRPC or \ | ||
| 109 | even a Websocket API. The Salt API system is used to expose the fundamental aspects of Salt control to external\ | ||
| 110 | sources. salt-api acts as the bridge between Salt itself and REST, Websockets, etc. Documentation is available\ | ||
| 111 | on Read the Docs: http://salt-api.readthedocs.org/" | ||
| 112 | RDEPENDS_${PN}-api = "python (>= 2.6) ${PN}-master" | ||
| 113 | RSUGGESTS_${PN}-api = "python-cherrypy" | ||
| 114 | CONFFILES_${PN}-api = "${sysconfdir}/init.d/${PN}-api" | ||
| 115 | FILES_${PN}-api = "${bindir}/${PN}-api ${CONFFILES_${PN}-api}" | ||
| 116 | INITSCRIPT_NAME_${PN}-api = "${PN}-api" | ||
| 117 | INITSCRIPT_PARAMS_${PN}-api = "defaults" | ||
| 118 | |||
| 119 | SUMMARY_${PN}-master = "remote manager to administer servers via salt" | ||
| 120 | DESCRIPTION_${PN}-master ="${DESCRIPTION_COMMON} This particular package provides the salt controller." | ||
| 121 | RDEPENDS_${PN}-master = "python (>= 2.6) ${PN}-common (= ${EXTENDPKGV}) python-pycrypto python-msgpack python-pyzmq (>= 13.1.0)" | ||
| 122 | CONFFILES_${PN}-master="${sysconfdir}/init.d/${PN}-master ${sysconfdir}/${PN}/master" | ||
| 123 | RSUGGESTS_${PN}-master = "python-git" | ||
| 124 | FILES_${PN}-master = "${bindir}/${PN} ${bindir}/${PN}-cp ${bindir}/${PN}-key ${bindir}/${PN}-master ${bindir}/${PN}-run ${bindir}/${PN}-unity ${bindir}/spm ${CONFFILES_${PN}-master}" | ||
| 125 | INITSCRIPT_NAME_${PN}-master = "${PN}-master" | ||
| 126 | INITSCRIPT_PARAMS_${PN}-master = "defaults" | ||
| 127 | |||
| 128 | SUMMARY_${PN}-syndic = "master-of-masters for salt, the distributed remote execution system" | ||
| 129 | DESCRIPTION_${PN}-syndic = "${DESCRIPTION_COMMON} This particular package provides the master of masters for \ | ||
| 130 | salt; it enables the management of multiple masters at a time." | ||
| 131 | RDEPENDS_${PN}-syndic = "python (>= 2.6) ${PN}-master (= ${EXTENDPKGV})" | ||
| 132 | CONFFILES_${PN}-syndic="${sysconfdir}/init.d/${PN}-syndic" | ||
| 133 | FILES_${PN}-syndic = "${bindir}/${PN}-syndic ${CONFFILES_${PN}-syndic}" | ||
| 134 | INITSCRIPT_NAME_${PN}-syndic = "${PN}-syndic" | ||
| 135 | INITSCRIPT_PARAMS_${PN}-syndic = "defaults" | ||
| 136 | |||
| 137 | SUMMARY_${PN}-cloud = "public cloud VM management system" | ||
| 138 | DESCRIPTION_${PN}-cloud = "provision virtual machines on various public clouds via a cleanly controlled profile and mapping system." | ||
| 139 | RDEPENDS_${PN}-cloud = "python (>= 2.6) ${PN}-common (= ${EXTENDPKGV})" | ||
| 140 | RSUGGESTS_${PN}-cloud = "python-netaddr python-botocore" | ||
| 141 | CONFFILES_${PN}-cloud = "${sysconfdir}/${PN}/cloud" | ||
| 142 | FILES_${PN}-cloud = "${bindir}/${PN}-cloud ${sysconfdir}/${PN}/cloud.conf.d/ ${sysconfdir}/${PN}/cloud.profiles.d/ ${sysconfdir}/${PN}/cloud.providers.d/ ${CONFFILES_${PN}-cloud}" | ||
| 143 | |||
| 144 | FILES_${PN}-bash-completion = "${sysconfdir}/bash_completion.d/${PN}-common" | ||
