Get environment variables

asked 2016-07-21 07:35:00 -0600

mcorrea gravatar image

Hi everyone! I'm very new at puppet's world and I have a doubt, can I get an environment variable from puppet client to use in my manifest file?

Something like that:


class myclass {

$env_var = env['PATH']

if $env_var == "" { # do something }


edit retag flag offensive close merge delete


Facter should already expose core environment variables. See

maynero gravatar imagemaynero ( 2016-07-25 13:17:11 -0600 )edit