%PDF- %PDF-
| Direktori : /proc/self/root/proc/self/root/proc/self/root/lib/python2.7/site-packages/salt/states/ |
| Current File : //proc/self/root/proc/self/root/proc/self/root/lib/python2.7/site-packages/salt/states/heat.pyc |
�
���^c @@ s% d Z d d l m Z m Z m Z d d l Z d d l Z d d l Z d d l Z d d l
Z d d l Z d d l Z d d l
m Z e Z y d d l m Z e Z Wn e k
r� n Xe j d e j � e j e � Z d � Z d � Z d d d d e d
e d d � Z d d
d d � Z d S(
u_
Management of Heat
==================
.. versionadded:: 2017.7.0
:depends: - heat Python module
:configuration: See :py:mod:`salt.modules.heat` for setup instructions.
The heat module is used to create, show, list and delete Heat staks.
Stack can be set as either absent or deploy.
.. code-block:: yaml
heat.deployed:
- name:
- template: #Required
- environment:
- params: {}
- poll: 5
- rollback: False
- timeout: 60
heat.absent:
- name:
- poll: 5
mysql:
heat.deployed:
- template: salt://templates/mysql.heat.yaml
- params:
image: Debian 7
- rollback: True
.. versionadded:: 2017.7.5,2018.3.1
The spelling mistake in parameter `enviroment` was corrected to `environment`.
The misspelled version is still supported for backward compatibility, but will
be removed in Salt Neon.
i ( t absolute_importt print_functiont unicode_literalsN( t six( t jsonutilst levelc C@ s t r
d St d f S( u6
Only load if the mysql module is in __salt__
u heatu_ The heat state module cannot be loaded: the oslo_serialization python library is not available.( t HAS_OSLOt False( ( ( s4 /usr/lib/python2.7/site-packages/salt/states/heat.pyt __virtual__F s c C@ s� | j � } | j d � r3 t j j j | � } nb y t j j j | � } Wn1 t j j j k
r } t t
j | � � � n X| d k r� i } n d | k p� d | k p� d | k s� t d � � n | S( u
Parsing template
u {u HeatTemplateFormatVersionu heat_template_versionu AWSTemplateFormatVersionu"