Jira (FACT-2335) Investigate the usage of Facter-NG in Puppet as a gem

16 views
Skip to first unread message

Mihai Buzgau (JIRA)

unread,
Jan 30, 2020, 7:35:04 AM1/30/20
to puppe...@googlegroups.com
Mihai Buzgau assigned an issue to Mihai Buzgau
 
Facter / Task FACT-2335
Investigate the usage of Facter-NG in Puppet as a gem
Change By: Mihai Buzgau
Assignee: Mihai Buzgau
Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v7.7.1#77002-sha1:e75ca93)
Atlassian logo

Mihai Buzgau (JIRA)

unread,
Jan 30, 2020, 7:35:04 AM1/30/20
to puppe...@googlegroups.com
Mihai Buzgau created an issue
Issue Type: Task Task
Assignee: Unassigned
Created: 2020/01/30 4:33 AM
Priority: Normal Normal
Reporter: Mihai Buzgau

Steps:
1. update the Puppet dependency to be more permissive. Currently puppet requires facter > 2.0.1, < 4. Update the dependency to cover Facter 4
2. Smoke test Puppet Gem with Facter 4
3. Test what happens if a repo has a Facter locked to ~> 2.5 and dependency to Puppet

Mihai Buzgau (JIRA)

unread,
Jan 30, 2020, 7:35:04 AM1/30/20
to puppe...@googlegroups.com
Mihai Buzgau commented on Task FACT-2335
 
Re: Investigate the usage of Facter-NG in Puppet as a gem

Steps to deploy ruby gem server that accepts push using docker:

docker run -d -p 9292:9292 -v /root/geminabox/data:/webapps/geminabox/data -e RUBYGEMS_PROXY=true --name geminabox spoonest/geminabox:latest

Mihai Buzgau (JIRA)

unread,
Jan 30, 2020, 8:40:04 AM1/30/20
to puppe...@googlegroups.com
Mihai Buzgau commented on Task FACT-2335

PDK

PDK only uses facter for analytics and the dependency is locked to ~>2.5.1 - Pushing facter-ng as facter should not impact this project

Mihai Buzgau (JIRA)

unread,
Jan 30, 2020, 8:47:05 AM1/30/20
to puppe...@googlegroups.com
Mihai Buzgau commented on Task FACT-2335

Modules.

The modules do not have a lock on facter.
Releasing the facter-ng as facter will cause all the modules to use this in their testing.

Actions to mitigate:
The module Gemspec allows users to set FACTER_GEM_VERSION. If this is set, Facter 4 will be ignored.

Actions to determine the impact:
We should run all the module tests to detemine what tests fail.

Note: To setup a different gem repository one needs to specify the GEM_SOURCE.

Mihai Buzgau (JIRA)

unread,
Jan 30, 2020, 8:57:04 AM1/30/20
to puppe...@googlegroups.com
Mihai Buzgau commented on Task FACT-2335

Given the following Gemfile:

source 'http://plenary-radical.delivery.puppetlabs.net:9292/'
 
gem 'puppet'
gem 'facter', '~> 2.5.1'

On a `bundle install`, this will install the latest available puppet with the facter version specified in the Gemfile, evan in Facter 4 is available on rubygems:

[root@oral-petitioner a]# bundle install
Don't run Bundler as root. Bundler can ask for sudo if it is needed, and installing your bundle as root will break
this application for all non-root users on this machine.
Fetching gem metadata from http://plenary-radical.delivery.puppetlabs.net:9292/..............
Resolving dependencies...
Using bundler 2.1.4
Using concurrent-ruby 1.1.5
Using deep_merge 1.2.1
Using facter 2.5.7
Using fast_gettext 1.8.0
Using hiera 3.6.0
Using hocon 1.3.0
Using httpclient 2.8.3
Using locale 2.1.2
Using multi_json 1.14.1
Using puppet-resource_api 1.8.7
Using semantic_puppet 1.0.2
Using puppet 6.12.0.47
Bundle complete! 2 Gemfile dependencies, 13 gems now installed.
Use `bundle info [gemname]` to see where a bundled gem is installed.

Mihai Buzgau (JIRA)

unread,
Feb 3, 2020, 8:25:03 AM2/3/20
to puppe...@googlegroups.com
Mihai Buzgau commented on Task FACT-2335

Modules have a dependency to litmus -> litmus has a dependecy to PDK -> PDK has facter locked to ~>2.5.1

Mihai Buzgau (JIRA)

unread,
Feb 4, 2020, 5:11:03 AM2/4/20
to puppe...@googlegroups.com
Mihai Buzgau commented on Task FACT-2335

Facterdb

Changed facterdb/facts/Gemfile to:

Reply all
Reply to author
Forward
0 new messages