@@ -0,0 +1,430 @@
+'''%0ATake in a hiera configuration file location and execute it.%0AAdds the hiera data to pillar%0A'''%0A%0A# Import third party libs%0Aimport yaml%0A%0Adef ext_pillar(conf):%0A    '''%0A    Execute hiera and return the data%0A    '''%0A    cmd = 'hiera %7B0%7D'.format(conf)%0A    for key, val in __grains__.items():%0A        if isinstance(val, string_types):%0A            cmd += ' %7B0%7D=%7B1%7D'.format(key, val)%0A    return yaml.safe_load(__salt__%5B'cmd.run'%5D(cmd))%0A

Add hiera ext_pillar