%PDF- %PDF-
Direktori : /lib/python2.7/site-packages/salt/states/ |
Current File : //lib/python2.7/site-packages/salt/states/grafana4_datasource.pyc |
� ���^c @@ s� d Z d d l m Z m Z m Z d d l m Z d d l m Z d � Z d d d d d d d d d d d d d d d � Z d d d � Z d d � Z d S( u� Manage Grafana v4.0 data sources .. versionadded:: 2017.7.0 :configuration: This state requires a configuration profile to be configured in the minion config, minion pillar, or master config. The module will use the 'grafana' key by default, if defined. Example configuration using basic authentication: .. code-block:: yaml grafana: grafana_url: http://grafana.localhost grafana_user: admin grafana_password: admin grafana_timeout: 3 Example configuration using token based authentication: .. code-block:: yaml grafana: grafana_url: http://grafana.localhost grafana_token: token grafana_timeout: 3 The behavior of this module is to create data sources if the do not exists, and to update data sources if the already exists. .. code-block:: yaml Ensure influxdb data source is present: grafana4_datasource.present: - name: influxdb - type: influxdb - url: http://localhost:8086 - access: proxy - basic_auth: true - basic_auth_user: myuser - basic_auth_password: mypass - is_default: true i ( t absolute_importt print_functiont unicode_literals( t string_types( t deep_diffc C@ s d t k S( u) Only load if grafana4 module is availableu grafana4.get_datasource( t __salt__( ( ( sC /usr/lib/python2.7/site-packages/salt/states/grafana4_datasource.pyt __virtual__4 s u grafanac ! C@ s t | t � r"