Jira (PUP-6553) Environment compiler and app_management language need to support hiera lookups

1 view
Skip to first unread message

Ryan Coleman (JIRA)

unread,
Jul 26, 2016, 6:05:25 PM7/26/16
to puppe...@googlegroups.com
Ryan Coleman moved an issue
 
Puppet / Bug PUP-6553
Environment compiler and app_management language need to support hiera lookups
Change By: Ryan Coleman
Affected Organization/s: BBC_Future_Media KPN
Key: PE PUP - 13444 6553
Project: Puppet  Enterprise [Internal]
Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v6.4.13#64028-sha1:b7939e9)
Atlassian logo

Ryan Coleman (JIRA)

unread,
Jul 26, 2016, 6:06:17 PM7/26/16
to puppe...@googlegroups.com

Ryan Coleman (JIRA)

unread,
Aug 1, 2016, 2:12:14 PM8/1/16
to puppe...@googlegroups.com

Eric Sorenson (JIRA)

unread,
Jan 30, 2017, 8:19:03 PM1/30/17
to puppe...@googlegroups.com
Eric Sorenson commented on Improvement PUP-6553
 
Re: Environment compiler and app_management language need to support hiera lookups

Sorry for my ignorance on the subject, but does this work with the lookup() function / environment data?

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

Henrik Lindberg (JIRA)

unread,
Jan 31, 2017, 3:27:03 AM1/31/17
to puppe...@googlegroups.com

Eric Sorenson The issue (in a nutshell) is that there is setup missing; facts, node, environment (and others). We may have to fake some kind of (Über) Node and facts, or refactor some aspects of environment-catalog-compilation / regular-compilation to make this work. Conceptually a hiera.yaml is authored to deal with different views of data wrt. nodes - what should the facts be for the environment-catalog itself?

Alex Dreyer (JIRA)

unread,
Jan 31, 2017, 11:02:03 AM1/31/17
to puppe...@googlegroups.com
Alex Dreyer commented on Improvement PUP-6553

If we set up fake facts for environment compilation they may be used. This would run a high risk of compiling a different application graph for each node and breaking dependencies.

I think a better path forward for this problem is to allow users to configure an "application_manifest" in environment.conf and not load the main manifest at all. This is separate from the discussion of how we should load data during environment compilation but either way we'll want a different set of variables and data then is generally used for nodes.

Henrik Lindberg (JIRA)

unread,
Feb 1, 2017, 3:10:02 AM2/1/17
to puppe...@googlegroups.com

There are potential problems if a "fake node" (i.e. one that represents a kind of virtual node that represents all nodes in the env"), and "fake data" (i.e. data designed for the compilation of the environment catalog) - this because the data hierarchy defined by the global/env/modules may be designed to use variables that regular nodes provide, and when those are missing, the paths may point to bad places, or the code will simply error when evaluated if strict variables are turned on.

OTOH - there is a desire that the same data is shared because parameters are wanted both in the regular compilation and in the environment catalog compilation.

I think there is a problematic contradiction there.

Joe Pinsonault (JIRA)

unread,
May 16, 2017, 4:43:04 PM5/16/17
to puppe...@googlegroups.com

Joe Pinsonault (JIRA)

unread,
May 16, 2017, 4:43:05 PM5/16/17
to puppe...@googlegroups.com

Owen Rodabaugh (JIRA)

unread,
Aug 10, 2017, 4:54:02 PM8/10/17
to puppe...@googlegroups.com
Owen Rodabaugh updated an issue
Change By: Owen Rodabaugh
CS Priority: Major Normal
CS Frequency: 2 1  -  5  1 - 25 5 % of Customers

Dimitri Tischenko (JIRA)

unread,
Sep 26, 2017, 7:57:02 PM9/26/17
to puppe...@googlegroups.com
Dimitri Tischenko commented on Improvement PUP-6553
 
Re: Environment compiler and app_management language need to support hiera lookups

Thanks to Reid Vandewiele we can confirm there is, in fact, a work-around for this issue using Hiera 5. The only thing which is needed is to allow the value to be looked up from a hierarchy not using any node-level variables. Example:

---
# managed by puppet
version: 5
 
defaults:
  datadir: /etc/puppetlabs/code/environments/%{environment}/hieradata
  data_hash: yaml_data
 
hierarchy:
 
# "normal" hierarchies skipped for clarity
 
  - name: "Hierarchy with fixed environment - to work around hiera lookup issue"
    # let datadir to live on a fixed path
    datadir: /etc
    paths:
      - "global.yaml"

Alex Dreyer (Jira)

unread,
Mar 18, 2020, 4:54:03 PM3/18/20
to puppe...@googlegroups.com
Alex Dreyer commented on Improvement PUP-6553

oddly we're working on adding facts to plans right now and would prefer this behavior.

Close it.

This message was sent by Atlassian Jira (v8.5.2#805002-sha1:a66f935)
Atlassian logo
Reply all
Reply to author
Forward
0 new messages