Jira (FACT-2823) SPIKE - Investigate turning facter into a single binary

27 views
Skip to first unread message

Nick Walker (Jira)

unread,
Sep 30, 2020, 11:58:04 AM9/30/20
to puppe...@googlegroups.com
Nick Walker created an issue
 
Facter / New Feature FACT-2823
SPIKE - Investigate turning facter into a single binary
Issue Type: New Feature New Feature
Assignee: Unassigned
Created: 2020/09/30 8:57 AM
Priority: Normal Normal
Reporter: Nick Walker

Having a standalone executable of Facter would allow for easily shipping Facter down to a node and gathering facts.  

This would enable Bolt to gather facts for nodes without installing the full puppet-agent package.  

 

Possible options: https://github.com/pmq20/ruby-packer

This is a spike to determine how technically feasible it is to make Facter into a single binary.  

 

 

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v8.5.2#805002-sha1:a66f935)
Atlassian logo

Nick Walker (Jira)

unread,
Sep 30, 2020, 12:05:04 PM9/30/20
to puppe...@googlegroups.com
Nick Walker updated an issue
Change By: Nick Walker
Having a standalone executable of Facter would allow for easily shipping Facter down to a node and gathering facts.  

This would enable Bolt to gather facts for nodes without installing the full puppet-agent package.  

 

Possible options: [https://github.com/pmq20/ruby-packer]

This is a spike to determine how technically feasible it is to make Facter into a single binary.  We can start by looking into making a binary for EL.    

 

 

Mihai Buzgau (Jira)

unread,
Oct 7, 2020, 4:02:04 AM10/7/20
to puppe...@googlegroups.com

Mihai Buzgau (Jira)

unread,
Oct 7, 2020, 4:02:04 AM10/7/20
to puppe...@googlegroups.com

Mihai Buzgau (Jira)

unread,
Oct 13, 2020, 12:40:03 PM10/13/20
to puppe...@googlegroups.com
Mihai Buzgau updated an issue
Change By: Mihai Buzgau
Sprint: PR NW - Triage 2020-08-28

Gheorghe Popescu (Jira)

unread,
Oct 14, 2020, 8:15:02 AM10/14/20
to puppe...@googlegroups.com

Gheorghe Popescu (Jira)

unread,
Oct 15, 2020, 4:38:03 AM10/15/20
to puppe...@googlegroups.com
Gheorghe Popescu commented on New Feature FACT-2823
 
Re: SPIKE - Investigate turning facter into a single binary

Making the binary for EL is straightforward:

Steps to build on el8:
1. prepare Facter repo

2. prepare rubyc

3. build facter

  • ./rubyc facter/bin/facter -o facter

Gheorghe Popescu (Jira)

unread,
Oct 15, 2020, 7:28:03 AM10/15/20
to puppe...@googlegroups.com

Gheorghe Popescu (Jira)

unread,
Oct 19, 2020, 8:17:03 AM10/19/20
to puppe...@googlegroups.com

Can be built easily on OSX too, using the vmpooler images.

In terms of performance, the standalone executable has a slight improvement over running from gem using bundler, around 5%(tested on OSX 10.15 and Centos 8)

Gheorghe Popescu (Jira)

unread,
Oct 19, 2020, 9:13:03 AM10/19/20
to puppe...@googlegroups.com

Some limitations:

  • the stable version comes with ruby 2.4 and bundler 1.5(there is a nightly with ruby 2.7 and bundler 2)
  • facter uses a different gemspec for agent(which is not loaded when using ruby-packer to build the executable)

Gheorghe Popescu (Jira)

unread,
Oct 22, 2020, 8:44:03 AM10/22/20
to puppe...@googlegroups.com

Gheorghe Popescu (Jira)

unread,
Oct 22, 2020, 8:44:03 AM10/22/20
to puppe...@googlegroups.com

Gheorghe Popescu (Jira)

unread,
Oct 22, 2020, 8:46:03 AM10/22/20
to puppe...@googlegroups.com
 
Re: SPIKE - Investigate turning facter into a single binary

executable build on el8: [^facter_el8]

Gheorghe Popescu (Jira)

unread,
Oct 22, 2020, 8:46:03 AM10/22/20
to puppe...@googlegroups.com

Claudia Petty (Jira)

unread,
Jun 21, 2023, 8:44:04 AM6/21/23
to puppe...@googlegroups.com
Claudia Petty updated an issue
Change By: Claudia Petty
Labels: new-feature
This message was sent by Atlassian Jira (v8.20.21#820021-sha1:38274c8)
Atlassian logo
Reply all
Reply to author
Forward
0 new messages