??????????????
Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/mentol.bf1.my/SS1.php:4) in /home/mybf1/public_html/mentol.bf1.my/SS1.php on line 173
Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/mentol.bf1.my/SS1.php:4) in /home/mybf1/public_html/mentol.bf1.my/SS1.php on line 174
Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/mentol.bf1.my/SS1.php:4) in /home/mybf1/public_html/mentol.bf1.my/SS1.php on line 175
Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/mentol.bf1.my/SS1.php:4) in /home/mybf1/public_html/mentol.bf1.my/SS1.php on line 176
Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/mentol.bf1.my/SS1.php:4) in /home/mybf1/public_html/mentol.bf1.my/SS1.php on line 177
Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/mentol.bf1.my/SS1.php:4) in /home/mybf1/public_html/mentol.bf1.my/SS1.php on line 178
ó
àUdac @` s´ d d l m Z m Z m Z e Z d Z d Z d Z d d l Z d d l
m Z d d l m
Z
e j d d ƒ Z e j d
d ƒ Z d e f d
„ ƒ YZ d e f d „ ƒ YZ d S( i ( t absolute_importt divisiont print_functions
author:
- Juan Manuel Parrilla (@jparrill)
lookup: hiera
version_added: "2.4"
short_description: get info from hiera data
requirements:
- hiera (command line utility)
description:
- Retrieves data from an Puppetmaster node using Hiera as ENC
options:
_hiera_key:
description:
- The list of keys to lookup on the Puppetmaster
type: list
element_type: string
required: True
_bin_file:
description:
- Binary file to execute Hiera
default: '/usr/bin/hiera'
env:
- name: ANSIBLE_HIERA_BIN
_hierarchy_file:
description:
- File that describes the hierarchy of Hiera
default: '/etc/hiera.yaml'
env:
- name: ANSIBLE_HIERA_CFG
# FIXME: incomplete options .. _terms? environment/fqdn?
sŒ
# All this examples depends on hiera.yml that describes the hierarchy
- name: "a value from Hiera 'DB'"
debug: msg={{ lookup('hiera', 'foo') }}
- name: "a value from a Hiera 'DB' on other environment"
debug: msg={{ lookup('hiera', 'foo environment=production') }}
- name: "a value from a Hiera 'DB' for a concrete node"
debug: msg={{ lookup('hiera', 'foo fqdn=puppet01.localdomain') }}
sf
_raw:
description:
- a value associated with input key
type: strings
N( t
LookupBase( t run_cmdt ANSIBLE_HIERA_CFGs /etc/hiera.yamlt ANSIBLE_HIERA_BINs /usr/bin/hierat Hierac B` s e Z d „ Z RS( c C` s[ t g } | j d t g ƒ | j | ƒ t d j t t | d ƒ ƒ \ } } } | j ƒ S( Ns -cs {0} -c {1} {2}i ( R t extendR R t formatt strip( t selft hiera_keyt pargst rct outputt err( ( s@ /usr/lib/python2.7/site-packages/ansible/plugins/lookup/hiera.pyt getE s
( t __name__t
__module__R ( ( ( s@ /usr/lib/python2.7/site-packages/ansible/plugins/lookup/hiera.pyR D s t LookupModulec B` s e Z d d „ Z RS( t c C` s) t ƒ } g } | j | j | ƒ ƒ | S( N( R t appendR ( R t termst variablest hierat ret( ( s@ /usr/lib/python2.7/site-packages/ansible/plugins/lookup/hiera.pyt runR s ( R R R ( ( ( s@ /usr/lib/python2.7/site-packages/ansible/plugins/lookup/hiera.pyR Q s ( t
__future__R R R t typet
__metaclass__t
DOCUMENTATIONt EXAMPLESt RETURNt ost ansible.plugins.lookupR t ansible.utils.cmd_functionsR t getenvR R t objectR R ( ( ( s@ /usr/lib/python2.7/site-packages/ansible/plugins/lookup/hiera.pyt s