Bug 1302392 - [RFE] Installer puppet shall be isolated from using system wide configuration like hiera
Summary: [RFE] Installer puppet shall be isolated from using system wide configuration...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Installer
Version: 6.1.6
Hardware: Unspecified
OS: Unspecified
unspecified
medium vote
Target Milestone: Unspecified
Assignee: satellite6-bugs
QA Contact: Justin Sherrill
URL:
Whiteboard:
Depends On:
Blocks: 260381 1122832
TreeView+ depends on / blocked
 
Reported: 2016-01-27 17:38 UTC by Peter Vreman
Modified: 2019-09-25 21:26 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Enhancement
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-02-21 16:40:37 UTC
Target Upstream Version:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 14945 0 None None None 2016-08-23 17:44:20 UTC

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


Note You need to log in before you can comment on or make changes to this bug.