2014.7.0.rst 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576
  1. .. _release-2014-7-0:
  2. =============================================
  3. Salt 2014.7.0 Release Notes - Codename Helium
  4. =============================================
  5. This release is the largest Salt release ever, with more features and commits
  6. then any previous release of Salt. Everything from the new RAET transport to
  7. major updates in Salt Cloud and the merging of Salt API into the main project.
  8. .. important::
  9. The Fedora/RHEL/CentOS **salt-master** package has been modified for this
  10. release. The following components of Salt have been broken out and placed
  11. into their own packages:
  12. * salt-syndic
  13. * salt-cloud
  14. * salt-ssh
  15. When the **salt-master** package is upgraded, these components will be
  16. removed, and they will need to be manually installed.
  17. .. important::
  18. Compound/pillar matching have been temporarily disabled for the ``mine``
  19. and ``publish`` modules for this release due to the possibility of
  20. inferring pillar data using pillar glob matching. A proper fix is now in
  21. the 2014.7 branch and scheduled for the 2014.7.1 release, and compound
  22. matching and non-globbing pillar matching will be re-enabled at that point.
  23. Compound and pillar matching for normal salt commands are unaffected.
  24. New Transport!
  25. ==============
  26. RAET Transport Option
  27. ---------------------
  28. This has been a HUGE amount of work, but the beta release of Salt with RAET is
  29. ready to go. RAET is a reliable queuing transport system that has been
  30. developed in partnership with a number of large enterprises to give Salt an
  31. alternative to ZeroMQ and a way to get Salt to scale well beyond tens of
  32. thousands of servers. Unlike ZeroMQ, RAET is completely asynchronous in every
  33. aspect of its operation and has been developed using the flow programming
  34. paradigm. This allows for many new capabilities to be added to Salt in the
  35. upcoming releases.
  36. Please keep in mind that this is a beta release of RAET and we hope for bugs to
  37. be worked out, performance to be better realized and more in the 2015.5.0
  38. release.
  39. Simply stated, users running Salt with RAET should expect some hiccups as we
  40. hammer out the update. This is a BETA release of Salt RAET.
  41. Salt SSH Enhancements
  42. =====================
  43. Salt SSH has just entered a new league, with substantial updates and
  44. improvements to make salt-ssh more reliable and easier then ever! From new
  45. features like the ansible roster and fileserver backends to the new pypi
  46. salt-ssh installer to lowered deps and a swath of bugfixes, salt-ssh is
  47. basically reborn!
  48. Install salt-ssh Using pip
  49. --------------------------
  50. Salt-ssh is now pip-installable!
  51. https://pypi.python.org/pypi/salt-ssh/
  52. Pip will bring in all of the required deps, and while some deps are compiled,
  53. they all include pure python implementations, meaning that any compile errors
  54. which may be seen can be safely ignored.
  55. .. code-block:: bash
  56. pip install salt-ssh
  57. Fileserver Backends
  58. -------------------
  59. Salt-ssh can now use the salt fileserver backend system. This allows for
  60. the gitfs, hgfs, s3, and many more ways to centrally store states to be easily
  61. used with salt-ssh. This also allows for a distributed team to easily use
  62. a centralized source.
  63. Saltfile Support
  64. ----------------
  65. The new saltfile system makes it easy to have a user specific custom extended
  66. configuration.
  67. Ext Pillar
  68. ----------
  69. Salt-ssh can now use the external pillar system. Making it easier then ever
  70. to use salt-ssh with teams.
  71. No More sshpass
  72. ---------------
  73. Thanks to the enhancements in the salt vt system, salt-ssh no longer requires
  74. sshpass to send passwords to ssh. This also makes the manipulation of ssh
  75. calls substantially more flexible, allowing for intercepting ssh calls in
  76. a much more fluid way.
  77. Pure Python Shim
  78. ----------------
  79. The salt-ssh call originally used a shell script to discover what version of
  80. python to execute with and determine the state of the ssh code deployment.
  81. This shell script has been replaced with a pure python version making it easy
  82. to increase the capability of the code deployment without causing platform
  83. inconsistency issues with different shell interpreters.
  84. Custom Module Delivery
  85. ----------------------
  86. Custom modules are now seamlessly delivered. This makes the deployment of
  87. custom grains, states, execution modules and returners a seamless process.
  88. CP Module Support
  89. -----------------
  90. Salt-ssh now makes simple file transfers easier then ever! The `cp`
  91. module allows for files to be conveniently sent from the salt fileserver
  92. system down to systems.
  93. More Thin Directory Options
  94. ---------------------------
  95. Salt ssh functions by copying a subset of the salt code, or `salt thin` down
  96. to the target system. In the past this was always transferred to /tmp/.salt
  97. and cached there for subsequent commands.
  98. Now, salt thin can be sent to a random directory and removed when the call
  99. is complete with the `-W` option. The new `-W` option still uses a static
  100. location but will clean up that location when finished.
  101. The default `salt thin` location is now user defined, allowing multiple users
  102. to cleanly access the same systems.
  103. State System Enhancements
  104. =========================
  105. New Imperative State Keyword "Listen"
  106. -------------------------------------
  107. The new ``listen`` and ``listen_in`` keywords allow for completely imperative
  108. states by calling the ``mod_watch()`` routine after all states have run instead
  109. of re-ordering the states.
  110. Mod Aggregate Runtime Manipulator
  111. ---------------------------------
  112. The new ``mod_aggregate`` system allows for the state system to rewrite the
  113. state data during execution. This allows for state definitions to be aggregated
  114. dynamically at runtime.
  115. The best example is found in the :mod:`pkg <salt.states.pkg>` state. If
  116. ``mod_aggregate`` is turned on, then when the first pkg state is reached, the
  117. state system will scan all of the other running states for pkg states and take
  118. all other packages set for install and install them all at once in the first
  119. pkg state.
  120. These runtime modifications make it easy to run groups of states together. In
  121. future versions, we hope to fill out the ``mod_aggregate`` system to build in
  122. more and more optimizations.
  123. For more documentation on ``mod_aggregate``, see :ref:`the documentation
  124. <mod-aggregate-state>`.
  125. New Requisites: onchanges and onfail
  126. ------------------------------------
  127. The new ``onchanges`` and ``onchanges_in`` requisites make a state apply only if
  128. there are changes in the required state. This is useful to execute post hooks
  129. after changes occur on a system.
  130. The other new requisites, ``onfail``, and ``onfail_in``, allow for a state to run
  131. in reaction to the failure of another state.
  132. For more information about these new requisites, see the
  133. :ref:`requisites documentation <requisites>`.
  134. Global onlyif and unless
  135. ------------------------
  136. The ``onlyif`` and ``unless`` options can now be used for any state declaration.
  137. Use ``names`` to expand and override values
  138. -------------------------------------------
  139. The :ref:`names declaration <names-declaration>` in Salt's state system can now
  140. override or add values to the expanded data structure. For example:
  141. .. code-block:: yaml
  142. my_users:
  143. user.present:
  144. - names:
  145. - larry
  146. - curly
  147. - moe:
  148. - shell: /bin/zsh
  149. - groups:
  150. - wheel
  151. - shell: /bin/bash
  152. Major Features
  153. ==============
  154. Scheduler Additions
  155. -------------------
  156. The Salt scheduler system has received MAJOR enhancements, allowing for
  157. cron-like scheduling and much more granular timing routines. See :mod:`here
  158. <salt.modules.schedule>` for more info.
  159. Red Hat 7 Family Support
  160. ------------------------
  161. All the needed additions have been made to run Salt on RHEL 7 and derived OSes
  162. like CentOS and Scientific.
  163. Fileserver Backends in salt-call
  164. --------------------------------
  165. Fileserver backends like gitfs can now be used without a salt master! Just add
  166. the fileserver backend configuration to the minion config and execute
  167. salt-call. This has been a much-requested feature and we are happy to finally
  168. bring it to our users.
  169. Amazon Execution Modules
  170. ------------------------
  171. An entire family of execution modules further enhancing Salt's Amazon Cloud
  172. support. They include the following:
  173. - :mod:`Autoscale Groups <salt.modules.boto_asg>` (includes :mod:`state support <salt.states.boto_asg>`) -- related: :mod:`Launch Control <salt.states.boto_lc>` states
  174. - :mod:`Cloud Watch <salt.modules.boto_cloudwatch>` (includes :mod:`state support <salt.states.boto_cloudwatch_alarm>`)
  175. - :mod:`Elastic Cache <salt.modules.boto_elasticache>` (includes :mod:`state support <salt.states.boto_elasticache>`)
  176. - :mod:`Elastic Load Balancer <salt.modules.boto_elb>` (includes :mod:`state support <salt.states.boto_elb>`)
  177. - :mod:`IAM Identity and Access Management <salt.modules.boto_iam>` (includes :mod:`state support <salt.states.boto_iam_role>`)
  178. - :mod:`Route53 DNS <salt.modules.boto_route53>` (includes :mod:`state support <salt.states.boto_route53>`)
  179. - :mod:`Security Groups <salt.modules.boto_secgroup>` (includes :mod:`state support <salt.states.boto_secgroup>`)
  180. - :mod:`Simple Queue Service <salt.modules.boto_sqs>` (includes :mod:`state support <salt.states.boto_sqs>`)
  181. LXC Runner Enhancements
  182. -----------------------
  183. BETA
  184. The Salt LXC management system has received a number of enhancements which make
  185. running an LXC cloud entirely from Salt an easy proposition.
  186. Next Gen Docker Management
  187. --------------------------
  188. The Docker support in Salt has been increased at least ten fold. The Docker API
  189. is now completely exposed and Salt ships with Docker data tracking systems
  190. which make automating Docker deployments very easy.
  191. Peer System Performance Improvements
  192. ------------------------------------
  193. The peer system communication routines have been refined to make the peer
  194. system substantially faster.
  195. SDB
  196. ---
  197. Encryption at rest for configs
  198. GPG Renderer
  199. ------------
  200. Encrypted pillar at rest
  201. OpenStack Expansion
  202. -------------------
  203. Lots of new OpenStack stuff
  204. Queues System
  205. -------------
  206. Ran change external queue systems into Salt events
  207. Multi Master Failover Additions
  208. -------------------------------
  209. Connecting to multiple masters is more dynamic then ever
  210. Chef Execution Module
  211. ---------------------
  212. Managing Chef with Salt just got even easier!
  213. salt-api Project Merge
  214. ----------------------
  215. The ``salt-api`` project has been merged into Salt core and is now available as
  216. part of the regular ``salt-master`` package install. No API changes were made,
  217. the :command:`salt-api` script and init scripts remain intact.
  218. ``salt-api`` has always provided Yet Another Pluggable Interface to Salt (TM)
  219. in the form of "netapi" modules. These are modules that bind to a port and
  220. start a service. Like many of Salt's other module types, netapi modules often
  221. have library and configuration dependencies. See the documentation for each
  222. module for instructions.
  223. .. seealso:: :ref:`The full list of netapi modules. <all-netapi-modules>`
  224. Synchronous and Asynchronous Execution of Runner and Wheel Modules
  225. ******************************************************************
  226. :py:class:`salt.runner.RunnerClient` and :py:class:`salt.wheel.WheelClient`
  227. have both gained complimentary ``cmd_sync`` and ``cmd_async`` methods allowing
  228. for synchronous and asynchronous execution of any Runner or Wheel module
  229. function, all protected using Salt's :ref:`external authentication <acl-eauth>`
  230. system. ``salt-api`` benefits from this addition as well.
  231. ``rest_cherrypy`` Additions
  232. ***************************
  233. The :py:mod:`rest_cherrypy <salt.netapi.rest_cherrypy.app>` netapi module
  234. provides the main REST API for Salt.
  235. Web Hooks
  236. ~~~~~~~~~
  237. This release of course includes the Web Hook additions from the most recent
  238. ``salt-api`` release, which allows external services to signal actions within a
  239. Salt infrastructure. External services such as Amazon SNS, Travis-CI, or
  240. GitHub, as well as internal services that cannot or should not run a Salt
  241. minion daemon can be used as first-class components in Salt's rich
  242. orchestration capabilities.
  243. The raw HTTP request body is now available in the event data. This is sometimes
  244. required information for checking an HMAC signature in order to verify a HTTP
  245. request. As an example, Amazon or GitHub requests are signed this way.
  246. Generating and Accepting Minion Keys
  247. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  248. The :py:func:`/key <salt.netapi.rest_cherrypy.app.Keys.POST>` convenience URL
  249. generates a public and private key for a minion, automatically pre-accepts the
  250. public key on the Salt Master, and returns both keys as a tarball for download.
  251. This allows for easily bootstrapping the key on a new minion with a single HTTP
  252. call, such as with a Kickstart script, all using regular shell tools.
  253. .. code-block:: bash
  254. curl -sS http://salt-api.example.com:8000/keys \
  255. -d mid=jerry \
  256. -d username=kickstart \
  257. -d password=kickstart \
  258. -d eauth=pam \
  259. -o jerry-salt-keys.tar
  260. Fileserver Backend Enhancements
  261. -------------------------------
  262. All of the fileserver backends have been overhauled to be faster, lighter, and
  263. more reliable. The VCS backends (:mod:`gitfs <salt.fileserver.gitfs>`,
  264. :mod:`hgfs <salt.fileserver.hgfs>`, and :mod:`svnfs <salt.fileserver.svnfs>`)
  265. have also received a **lot** of new features.
  266. Additionally, most config parameters for the VCS backends can now be configured
  267. on a per-remote basis, allowing for global config parameters to be overridden
  268. for a specific gitfs/hgfs/svnfs remote.
  269. New :mod:`gitfs <salt.fileserver.gitfs>` Features
  270. *************************************************
  271. Pygit2 and Dulwich
  272. ~~~~~~~~~~~~~~~~~~
  273. In addition to supporting GitPython, support for pygit2_ (0.20.3 and newer) and
  274. dulwich_ have been added. Provided a compatible version of pygit2_ is
  275. installed, it will now be the default provider. The config parameter
  276. :conf_master:`gitfs_provider` has been added to allow one to choose a specific
  277. provider for gitfs.
  278. .. _pygit2: https://github.com/libgit2/pygit2
  279. .. _dulwich: https://www.samba.org/~jelmer/dulwich/
  280. .. _2014.7.0-gitfs-mountpoints:
  281. Mountpoints
  282. ~~~~~~~~~~~
  283. Prior to this release, to serve a file from gitfs at a salt fileserver URL of
  284. ``salt://foo/bar/baz.txt``, it was necessary to ensure that the parent
  285. directories existed in the repository. A new config parameter
  286. :conf_master:`gitfs_mountpoint` allows gitfs remotes to be exposed starting at
  287. a user-defined ``salt://`` URL.
  288. .. _2014.7.0-gitfs-whitelist-blacklist:
  289. Environment Whitelisting/Blacklisting
  290. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  291. By default, gitfs will expose all branches and tags as Salt fileserver
  292. environments. Two new config parameters, :conf_master:`gitfs_env_whitelist`, and
  293. :conf_master:`gitfs_env_blacklist`, allow more control over which branches and
  294. tags are exposed. More detailed information on how these two options work can
  295. be found in the :ref:`Gitfs Walkthrough <gitfs-whitelist-blacklist>`.
  296. Expanded Authentication Support
  297. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  298. As of pygit2_ 0.20.3, both http(s) and SSH key authentication are supported,
  299. and Salt now also supports both authentication methods when using pygit2_. Keep
  300. in mind that pygit2_ 0.20.3 is not yet available on many platforms, so those
  301. who had been using authenticated git repositories with a passphraseless key
  302. should stick to GitPython if a new enough pygit2_ is not yet available for the
  303. platform on which the master is running.
  304. A full explanation of how to use authentication can be found in the :ref:`Gitfs
  305. Walkthrough <gitfs-authentication>`.
  306. New :mod:`hgfs <salt.fileserver.hgfs>` Features
  307. ***********************************************
  308. Mountpoints
  309. ~~~~~~~~~~~
  310. This feature works exactly like its :ref:`gitfs counterpart
  311. <2014.7.0-gitfs-mountpoints>`. The new config parameter is called
  312. :conf_master:`hgfs_mountpoint`.
  313. Environment Whitelisting/Blacklisting
  314. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  315. This feature works exactly like its :ref:`gitfs counterpart
  316. <2014.7.0-gitfs-whitelist-blacklist>`. The new config parameters are called
  317. :conf_master:`hgfs_env_whitelist` and :conf_master:`hgfs_env_blacklist`.
  318. New :mod:`svnfs <salt.fileserver.svnfs>` Features
  319. *************************************************
  320. Mountpoints
  321. ~~~~~~~~~~~
  322. This feature works exactly like its :ref:`gitfs counterpart
  323. <2014.7.0-gitfs-mountpoints>`. The new config parameter is called
  324. :conf_master:`svnfs_mountpoint`.
  325. Environment Whitelisting/Blacklisting
  326. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  327. This feature works exactly like its :ref:`gitfs counterpart
  328. <2014.7.0-gitfs-whitelist-blacklist>`. The new config parameters are called
  329. :conf_master:`svnfs_env_whitelist` and :conf_master:`svnfs_env_blacklist`.
  330. Configurable Trunk/Branches/Tags Paths
  331. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  332. Prior to this release, the paths where trunk, branches, and tags were located
  333. could only be in directories named "trunk", "branches", and "tags" directly
  334. under the root of the repository. Three new config parameters
  335. (:conf_master:`svnfs_trunk`, :conf_master:`svnfs_branches`, and
  336. :conf_master:`svnfs_tags`) allow SVN repositories which are laid out
  337. differently to be used with svnfs.
  338. New :mod:`minionfs <salt.fileserver.minionfs>` Features
  339. *******************************************************
  340. Mountpoint
  341. ~~~~~~~~~~
  342. This feature works exactly like its :ref:`gitfs counterpart
  343. <2014.7.0-gitfs-mountpoints>`. The new config parameter is called
  344. :conf_master:`minionfs_mountpoint`. The one major difference is that, as
  345. minionfs doesn't use multiple remotes (it just serves up files pushed to the
  346. master using :mod:`cp.push <salt.modules.cp.push>`) there is no such thing as a
  347. per-remote configuration for :conf_master:`minionfs_mountpoint`.
  348. Changing the Saltenv from Which Files are Served
  349. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  350. A new config parameter (:conf_master:`minionfs_env`) allows minionfs files to
  351. be served from a Salt fileserver environment other than ``base``.
  352. Minion Whitelisting/Blacklisting
  353. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  354. By default, minionfs will expose the pushed files from all minions. Two new
  355. config parameters, :conf_master:`minionfs_whitelist`, and
  356. :conf_master:`minionfs_blacklist`, allow minionfs to be restricted to serve
  357. files from only the desired minions.
  358. Pyobjects Renderer
  359. ------------------
  360. Salt now ships with with the :mod:`Pyobjects Renderer
  361. <salt.renderers.pyobjects>` that allows for construction of States using pure
  362. Python with an idiomatic object interface.
  363. New Modules
  364. ===========
  365. In addition to the Amazon modules mentioned above, there are also several other
  366. new execution modules:
  367. - :mod:`Oracle <salt.modules.oracle>`
  368. - :mod:`Random <salt.modules.mod_random>`
  369. - :mod:`Redis <salt.modules.redismod>`
  370. - :mod:`Amazon Simple Queue Service <salt.modules.aws_sqs>`
  371. - :mod:`Block Device Management <salt.modules.blockdev>`
  372. - :mod:`CoreOS etcd <salt.modules.etcd_mod>`
  373. - :mod:`Genesis <salt.modules.genesis>`
  374. - :mod:`InfluxDB <salt.modules.influx>`
  375. - :mod:`Server Density <salt.modules.serverdensity_device>`
  376. - :mod:`Twilio Notifications <salt.modules.twilio_notify>`
  377. - :mod:`Varnish <salt.modules.varnish>`
  378. - :mod:`ZNC IRC Bouncer <salt.modules.znc>`
  379. - :mod:`SMTP <salt.modules.smtp>`
  380. New Runners
  381. ===========
  382. - :mod:`Map/Reduce Style <salt.runners.survey>`
  383. - :mod:`Queue <salt.runners.queue>`
  384. New External Pillars
  385. ====================
  386. - :mod:`CoreOS etcd <salt.pillar.etcd_pillar>`
  387. New Salt-Cloud Providers
  388. ========================
  389. - :mod:`Aliyun ECS Cloud <salt.cloud.clouds.aliyun>`
  390. - :mod:`LXC Containers <salt.cloud.clouds.lxc>`
  391. - :mod:`Proxmox (OpenVZ containers & KVM) <salt.cloud.clouds.proxmox>`
  392. Salt Call Change
  393. ================
  394. When used with a returner, salt-call now contacts a master if ``--local``
  395. is not specicified.
  396. Deprecations
  397. ============
  398. :mod:`salt.modules.virtualenv_mod`
  399. ----------------------------------
  400. - Removed deprecated ``memoize`` function from ``salt/utils/__init__.py`` (deprecated)
  401. - Removed deprecated ``no_site_packages`` argument from ``create`` function (deprecated)
  402. - Removed deprecated ``check_dns`` argument from ``minion_config`` and ``apply_minion_config`` functions (deprecated)
  403. - Removed deprecated ``OutputOptionsWithTextMixIn`` class from ``salt/utils/parsers.py`` (deprecated)
  404. - Removed the following deprecated functions from ``salt/modules/ps.py``:
  405. - ``physical_memory_usage`` (deprecated)
  406. - ``virtual_memory_usage`` (deprecated)
  407. - ``cached_physical_memory`` (deprecated)
  408. - ``physical_memory_buffers`` (deprecated)
  409. - Removed deprecated cloud arguments from ``cloud_config`` function in ``salt/config.py``:
  410. - ``vm_config`` (deprecated)
  411. - ``vm_config_path`` (deprecated)
  412. - Removed deprecated ``libcloud_version`` function from ``salt/cloud/libcloudfuncs.py`` (deprecated)
  413. - Removed deprecated ``CloudConfigMixIn`` class from ``salt/utils/parsers.py`` (deprecated)