Jira (PUP-3041) Expose actual environment path to scope in DSL

2017-05-18 Thread Moses Mendoza (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Moses Mendoza updated an issue 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 Puppet /  PUP-3041 
 
 
 
  Expose actual environment path to scope in DSL  
 
 
 
 
 
 
 
 
 

Change By:
 
 Moses Mendoza 
 
 
 

Labels:
 
 triaged 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.4.14#64029-sha1:ae256fe) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
You received this message because you are subscribed to the Google Groups "Puppet Bugs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-bugs@googlegroups.com.
Visit this group at https://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/d/optout.


Jira (PUP-3041) Expose actual environment path to scope in DSL

2014-08-11 Thread Andy Parker (JIRA)
Title: Message Title










 

 Andy Parker commented on an issue


















  Re: Expose actual environment path to scope in DSL 










I think this sounds like a good idea. I'm not sure if $settings is the right place, however, since it isn't a setting per se.












   

 Add Comment

























 Puppet /  PUP-3041



  Expose actual environment path to scope in DSL 







 The new directory environment support is slick BUT one big problem is that there is no really good way to discover from within a catalog compile what the base path to the environment you are in is.   It would be great if there was something akin to $settings::my_environment_path exposed into the scope available to the DSL which adjusted to the root of wh...















 This message was sent by Atlassian JIRA (v6.1.4#6159-sha1:44eaede)




 














-- 
You received this message because you are subscribed to the Google Groups Puppet Bugs group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-bugs@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/d/optout.


Jira (PUP-3041) Expose actual environment path to scope in DSL

2014-08-09 Thread Sean Millichamp (JIRA)
Title: Message Title










 

 Sean Millichamp created an issue


















 Puppet /  PUP-3041



  Expose actual environment path to scope in DSL 










Issue Type:

  Improvement




Affects Versions:


 3.6.2




Assignee:

 Andy Parker




Components:


 Server




Created:


 09/Aug/14 3:17 PM




Priority:

  Normal




Reporter:

 Sean Millichamp










The new directory environment support is slick BUT one big problem is that there is no really good way to discover from within a catalog compile what the base path to the environment you are in is.
It would be great if there was something akin to $settings::my_environment_path exposed into the scope available to the DSL which adjusted to the root of whatever environment was currently being compiled.
This would be useful for things like the extdata() and file() functions, and possibly even in use as a crutch in hiera.yaml until per-environment Hiera configuration files are properly supported.
For old-style environments I think it would be fair to return 'undef' since the idea of an environment root didn't really exist.
Thanks!