Setting environment variables with puppet

前端 未结 5 2063
离开以前
离开以前 2021-02-05 22:36

I\'m trying to work out the best way to set some environment variables with puppet.

I could use exec and just do export VAR=blah. However, that would only

5条回答
  •  终归单人心
    2021-02-05 23:07

    If you add it to your bashrc you can check that it's in the ENV hash by doing

    ENV[VAR]
    

    Which will return => "blah"

提交回复
热议问题