Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
Red Hat Satellite engineering is moving the tracking of its product development work on Satellite to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 1302392

Summary: [RFE] Installer puppet shall be isolated from using system wide configuration like hiera
Product: Red Hat Satellite Reporter: Peter Vreman <peter.vreman>
Component: InstallationAssignee: satellite6-bugs <satellite6-bugs>
Status: CLOSED ERRATA QA Contact: Justin Sherrill <jsherril>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.1.6CC: bkearney, jcallaha, jsherril, stbenjam, xdmoon
Target Milestone: UnspecifiedKeywords: FutureFeature, Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-02-21 16:40:37 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 260381, 1122832    

Description Peter Vreman 2016-01-27 17:38:46 UTC
Description of problem:
The katello-installer shall create a local puppet configuration that is better isolated against 

$ cat /etc/puppet/hiera.yaml
---
:logger: console

:backends:
  - yaml

:yaml:
  :datadir: '/opt/hoici/share/hiera'

:hierarchy:
  - hostname/%{::fqdn}
  - hostgroup/%{::hilti_hiera_tier}/%{::hilti_hiera_maingroup}/%{::hilti_hiera_subgroup}
  - hostgroup/%{::hilti_hiera_tier}/%{::hilti_hiera_maingroup}/common
  - hostgroup/%{::hilti_hiera_tier}/common
  - users
  - common

In the katello-installer log it is visible that the hiera configuration above is used:

[DEBUG 2016-01-25 15:04:20 main] API controllers newer than Apipie cache! Run apipie:cache rake task to regenerate cache.
[DEBUG 2016-01-25 15:04:20 main] echo '$kafo_config_file="/etc/katello-installer/katello-installer.yaml"   include kafo_configure' | RUBYLIB
=/usr/lib/ruby/gems/1.8/gems/kafo-0.6.5.9/lib/kafo/../..//modules: puppet apply --verbose --debug --trace --color=false --show_diff --detail
ed-exitcodes --modulepath /usr/share/katello-installer/modules:/usr/lib/ruby/gems/1.8/gems/kafo-0.6.5.9/modules
[DEBUG 2016-01-25 15:04:20 main] Hook /usr/share/katello-installer/hooks/pre/30-upgrade.rb returned [<Logging::Logger:0x3fcc5be82b20 name="m
ain">, <Logging::Logger:0x3fcc5be62bf4 name="fatal">, <Logging::Logger:0x3fcc5bd00978 name="verbose">]
[DEBUG 2016-01-25 15:04:31 main]  Automatically imported certs from certs into production
[DEBUG 2016-01-25 15:04:31 main]  Automatically imported certs::params from certs/params into production
[DEBUG 2016-01-25 15:04:31 main]  Automatically imported foreman from foreman into production
[DEBUG 2016-01-25 15:04:31 main]  Automatically imported foreman::params from foreman/params into production
[DEBUG 2016-01-25 15:04:31 main]  Automatically imported kafo_configure from kafo_configure into production
[DEBUG 2016-01-25 15:04:31 main]  Automatically imported kafo_configure::yaml_to_class from kafo_configure/yaml_to_class into production
[DEBUG 2016-01-25 15:04:31 main]  Automatically imported katello from katello into production
[DEBUG 2016-01-25 15:04:31 main]  Automatically imported katello::params from katello/params into production
[DEBUG 2016-01-25 15:04:31 main]  importing '/usr/lib/ruby/gems/1.8/gems/kafo-0.6.5.9/modules/kafo_configure/manifests/init.pp' in environme
nt production
[DEBUG 2016-01-25 15:04:31 main]  importing '/usr/lib/ruby/gems/1.8/gems/kafo-0.6.5.9/modules/kafo_configure/manifests/yaml_to_class.pp' in
environment production
[DEBUG 2016-01-25 15:04:31 main]  importing '/usr/share/katello-installer/modules/capsule/manifests/init.pp' in environment production
[DEBUG 2016-01-25 15:04:31 main]  importing '/usr/share/katello-installer/modules/certs/manifests/init.pp' in environment production
[DEBUG 2016-01-25 15:04:31 main]  importing '/usr/share/katello-installer/modules/certs/manifests/params.pp' in environment production
[DEBUG 2016-01-25 15:04:31 main]  importing '/usr/share/katello-installer/modules/foreman/manifests/init.pp' in environment production
[DEBUG 2016-01-25 15:04:31 main]  importing '/usr/share/katello-installer/modules/foreman/manifests/params.pp' in environment production
[DEBUG 2016-01-25 15:04:31 main]  importing '/usr/share/katello-installer/modules/katello/manifests/init.pp' in environment production
[DEBUG 2016-01-25 15:04:31 main]  importing '/usr/share/katello-installer/modules/katello/manifests/params.pp' in environment production
[DEBUG 2016-01-25 15:04:32 main]  Automatically imported capsule from capsule into production
[DEBUG 2016-01-25 15:04:32 main]  Automatically imported capsule::params from capsule/params into production
[DEBUG 2016-01-25 15:04:32 main]  Automatically imported certs::install from certs/install into production
[DEBUG 2016-01-25 15:04:32 main]  Automatically imported foreman::plugin::bootdisk from foreman/plugin/bootdisk into production
[DEBUG 2016-01-25 15:04:32 main]  Automatically imported foreman::plugin::discovery from foreman/plugin/discovery into production
[DEBUG 2016-01-25 15:04:32 main]  Automatically imported foreman::plugin::discovery::params from foreman/plugin/discovery/params into produc
tion
[DEBUG 2016-01-25 15:04:32 main]  Automatically imported foreman::plugin::hooks from foreman/plugin/hooks into production
[DEBUG 2016-01-25 15:04:32 main]  Automatically imported foreman::plugin::tasks from foreman/plugin/tasks into production
[DEBUG 2016-01-25 15:04:32 main]  Automatically imported katello::plugin::gutterball from katello/plugin/gutterball into production
[DEBUG 2016-01-25 15:04:32 main]  Executing '/bin/rpm --version'
[DEBUG 2016-01-25 15:04:32 main]  hiera(): Cannot find datafile /opt/hoici/share/hiera/hostname/li-lc-1578.hag.hilti.com.yaml, skipping
[DEBUG 2016-01-25 15:04:32 main]  hiera(): Cannot find datafile /opt/hoici/share/hiera/hostname/li-lc-1578.hag.hilti.com.yaml, skipping
[DEBUG 2016-01-25 15:04:32 main]  hiera(): Cannot find datafile /opt/hoici/share/hiera/hostname/li-lc-1578.hag.hilti.com.yaml, skipping
[DEBUG 2016-01-25 15:04:32 main]  hiera(): Cannot find datafile /opt/hoici/share/hiera/hostname/li-lc-1578.hag.hilti.com.yaml, skipping
[DEBUG 2016-01-25 15:04:32 main]  hiera(): Hiera YAML backend starting
[DEBUG 2016-01-25 15:04:32 main]  hiera(): Looking for data source common
[DEBUG 2016-01-25 15:04:32 main]  hiera(): Looking for data source common
[DEBUG 2016-01-25 15:04:32 main]  hiera(): Looking for data source common
[DEBUG 2016-01-25 15:04:32 main]  hiera(): Looking for data source common



Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1. Create a /etc/puppet/hiera.yaml
2. Run katello-installer
3.

Actual results:
The hiera configuration of /etc/puppet/hiera.yaml is used

Expected results:
Hiera confurigation is not used


Additional info:

Comment 1 Bryan Kearney 2016-07-26 19:05:50 UTC
Moving 6.2 bugs out to sat-backlog.

Comment 2 Stephen Benjamin 2016-08-23 17:44:21 UTC
The upstream installer now supports having it's own separate hiera config.

Comment 3 Bryan Kearney 2016-08-23 18:12:10 UTC
Moving to POST since upstream bug http://projects.theforeman.org/issues/14945 has been closed

Comment 4 Justin Sherrill 2017-08-09 19:54:15 UTC
Verified on snap 10, could not see the same messages or any indication that the hiera.yaml was being included

Comment 5 Bryan Kearney 2018-02-21 16:39:06 UTC
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA.

For information on the advisory, and where to find the updated files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2018:0336

Comment 6 Bryan Kearney 2018-02-21 16:40:37 UTC
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA.

For information on the advisory, and where to find the updated files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2018:0336

Comment 7 Satellite Program 2018-02-21 16:54:17 UTC
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA.
> 
> For information on the advisory, and where to find the updated files, follow the link below.
> 
> If the solution does not work for you, open a new bug report.
> 
> https://access.redhat.com/errata/RHSA-2018:0336