Jira (FACT-1351) Facter on Alpine Linux requires root permissions

2017-06-09 Thread JIRA
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Igor Galić commented on  FACT-1351 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
  Re: Facter on Alpine Linux requires root permissions  
 
 
 
 
 
 
 
 
 
 
given that we have the puppet-agent build-chain open sourced now, some enterprising entity might wanna try to build the puppet-agent themselves. 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 

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





-- 
You received this message because you are subscribed to the Google Groups "Puppet Bugs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-bugs@googlegroups.com.
Visit this group at https://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/d/optout.


Jira (FACT-1351) Facter on Alpine Linux requires root permissions

2017-05-31 Thread Ethan Brown (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Ethan Brown commented on  FACT-1351 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
  Re: Facter on Alpine Linux requires root permissions  
 
 
 
 
 
 
 
 
 
 
Gareth Rushgrove I would work on a getting a PR up for this ASAP as we'd like to release the Facter 2.5.0 gem by around 6/14. 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 

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





-- 
You received this message because you are subscribed to the Google Groups "Puppet Bugs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-bugs@googlegroups.com.
Visit this group at https://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/d/optout.


Jira (FACT-1351) Facter on Alpine Linux requires root permissions

2017-05-31 Thread Ethan Brown (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Ethan Brown updated an issue 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 Facter /  FACT-1351 
 
 
 
  Facter on Alpine Linux requires root permissions  
 
 
 
 
 
 
 
 
 

Change By:
 
 Ethan Brown 
 
 
 

Comment:
 
 [~gareth] I would work on a getting a PR up for this ASAP as we'd like to release the Facter 2.5.0 gem by around 6/14. 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 

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





-- 
You received this message because you are subscribed to the Google Groups "Puppet Bugs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-bugs@googlegroups.com.
Visit this group at https://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/d/optout.


Jira (FACT-1351) Facter on Alpine Linux requires root permissions

2017-05-31 Thread Gareth Rushgrove (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Gareth Rushgrove commented on  FACT-1351 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
  Re: Facter on Alpine Linux requires root permissions  
 
 
 
 
 
 
 
 
 
 
Ethan Brown Branan Riley thanks, I'll either make some time for this or close as won't fix so it gets out of the way either way. Cheers 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 

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





-- 
You received this message because you are subscribed to the Google Groups "Puppet Bugs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-bugs@googlegroups.com.
Visit this group at https://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/d/optout.


Jira (FACT-1351) Facter on Alpine Linux requires root permissions

2017-05-31 Thread Ethan Brown (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Ethan Brown commented on  FACT-1351 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
  Re: Facter on Alpine Linux requires root permissions  
 
 
 
 
 
 
 
 
 
 
Gareth Rushgrove I would work on a getting a PR up for this ASAP as we'd like to release the Facter 2.5.0 gem by around 6/14. 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 

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





-- 
You received this message because you are subscribed to the Google Groups "Puppet Bugs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-bugs@googlegroups.com.
Visit this group at https://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/d/optout.


Jira (FACT-1351) Facter on Alpine Linux requires root permissions

2017-05-31 Thread Branan Riley (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Branan Riley commented on  FACT-1351 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
  Re: Facter on Alpine Linux requires root permissions  
 
 
 
 
 
 
 
 
 
 
We need to do the Facter 2.5 gem before we can do the Puppet 5.0.0 gem, but it doesn't have to lead it by a lot. We're probably doing that release in the next sprint, so if you can get the PR up in the next couple of weeks it should be no problem to get in. 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 

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





-- 
You received this message because you are subscribed to the Google Groups "Puppet Bugs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-bugs@googlegroups.com.
Visit this group at https://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/d/optout.


Jira (FACT-1351) Facter on Alpine Linux requires root permissions

2017-05-30 Thread Gareth Rushgrove (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Gareth Rushgrove commented on  FACT-1351 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
  Re: Facter on Alpine Linux requires root permissions  
 
 
 
 
 
 
 
 
 
 
Branan Riley thanks. When would you need something by for that release? I've been on holiday for the last week so just catching up. 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 

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





-- 
You received this message because you are subscribed to the Google Groups "Puppet Bugs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-bugs@googlegroups.com.
Visit this group at https://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/d/optout.


Jira (FACT-1351) Facter on Alpine Linux requires root permissions

2017-05-25 Thread Branan Riley (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Branan Riley commented on  FACT-1351 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
  Re: Facter on Alpine Linux requires root permissions  
 
 
 
 
 
 
 
 
 
 
The right fix, if we want to support Alpine as a first-class citizen, is to get a proper Facter 3 build there. Possibly a real agent build. 
We are (despite my best efforts to murder it) doing a Facter 2.5 gem release soon to support Ruby 2.4 for developer workflows, and roll up some other minor fixes that never got out the door. If you can supply a patch we can likely incorporate it, but since Alpine is not a platform that we currently consider an agent target, we are unlikely to get to this ourselves  
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 

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





-- 
You received this message because you are subscribed to the Google Groups "Puppet Bugs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-bugs@googlegroups.com.
Visit this group at https://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/d/optout.


Jira (FACT-1351) Facter on Alpine Linux requires root permissions

2017-05-18 Thread Moses Mendoza (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Moses Mendoza updated an issue 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 Facter /  FACT-1351 
 
 
 
  Facter on Alpine Linux requires root permissions  
 
 
 
 
 
 
 
 
 

Change By:
 
 Moses Mendoza 
 
 
 

Labels:
 
 triaged 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 

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





-- 
You received this message because you are subscribed to the Google Groups "Puppet Bugs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-bugs@googlegroups.com.
Visit this group at https://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/d/optout.


Jira (FACT-1351) Facter on Alpine Linux requires root permissions

2017-05-18 Thread Gareth Rushgrove (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Gareth Rushgrove commented on  FACT-1351 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
  Re: Facter on Alpine Linux requires root permissions  
 
 
 
 
 
 
 
 
 
 
Unfortunately this is the only way of running Facter at present on Alpine as we don't have native puppet agents available.  
The puppet-agent-alpine (https://hub.docker.com/r/puppet/puppet-agent-alpine/) docker image has proved the most popular of the agent images released, with 46071 downloads as of today. That incorporates the workaround but if we want to have supported Docker images using Alpine (based on the above that would likely be appreciated by the community) we'll probably need to consider this issue. That might want tracking elsewhere so feel free to close and simply link that up I guess. 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 

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





-- 
You received this message because you are subscribed to the Google Groups "Puppet Bugs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-bugs@googlegroups.com.
Visit this group at https://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/d/optout.


Jira (FACT-1351) Facter on Alpine Linux requires root permissions

2017-05-17 Thread Maggie Dreyer (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Maggie Dreyer updated an issue 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 Facter /  FACT-1351 
 
 
 
  Facter on Alpine Linux requires root permissions  
 
 
 
 
 
 
 
 
 

Change By:
 
 Maggie Dreyer 
 
 
 

Labels:
 
 triaged 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 

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





-- 
You received this message because you are subscribed to the Google Groups "Puppet Bugs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-bugs@googlegroups.com.
Visit this group at https://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/d/optout.


Jira (FACT-1351) Facter on Alpine Linux requires root permissions

2016-02-26 Thread Gareth Rushgrove (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Gareth Rushgrove updated an issue 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 Facter /  FACT-1351 
 
 
 
  Facter on Alpine Linux requires root permissions  
 
 
 
 
 
 
 
 
 

Change By:
 
 Gareth Rushgrove 
 
 
 
 
 
 
 
 
 
 Running facter on Alpine linux as a non-root user currently fails with the following error:{code}$ facterPermission denied @ dir_initialize - /sys/block/{code}The version of facter is 2.4.6, installed via the gem as a native package for Alpine is not available.{code}$ facter --version2.4.6{code}Note that asking for specific facts does not trigger the error, for instance:{code ] } $ facter osfamilyLinux{code}I've tracked this down to the blockdevice facts, and can trigger the error by asking for those facts directly.{code}$ sudo facter | grep blockblockdevice_sda_model => VBOX HARDDISKblockdevice_sda_size => 10737418240blockdevice_sda_vendor => ATAblockdevices => sda$ facter blockdevice_sda_modelCould not retrieve blockdevice_sda_model: Permission denied @ dir_initialize - /sys/block/$ facter blockdevice_sda_sizeCould not retrieve blockdevice_sda_size: Permission denied @ dir_initialize - /sys/block/$ facter blockdevice_sda_vendorCould not retrieve blockdevice_sda_vendor: Permission denied @ dir_initialize - /sys/block/$ facter blockdevicesCould not retrieve blockdevices: Permission denied @ dir_initialize - /sys/block/{code}So it appears to be the block device facts which require the permissions.The workaround I'm using at present is to delete those facts from the filesystem :){code}$ sudo rm /usr/lib/ruby/gems/2.2.0/gems/facter-2.4.6/lib/facter/blockdevices.rb{code}I think it would be good if, instead of preventing all output due to failures in individual facts, facter could fail only to output the blockdevice facts, maybe logging a warning, and output everything else. 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.4.12#64027-sha1:e3691cc) 
 
 
 
 
  

Jira (FACT-1351) Facter on Alpine Linux requires root permissions

2016-02-26 Thread Gareth Rushgrove (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Gareth Rushgrove created an issue 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 Facter /  FACT-1351 
 
 
 
  Facter on Alpine Linux requires root permissions  
 
 
 
 
 
 
 
 
 

Issue Type:
 
  Bug 
 
 
 

Assignee:
 

 Unassigned 
 
 
 

Created:
 

 2016/02/26 12:54 AM 
 
 
 

Priority:
 
  Normal 
 
 
 

Reporter:
 
 Gareth Rushgrove 
 
 
 
 
 
 
 
 
 
 
Running facter on Alpine linux as a non-root user currently fails with the following error: 
 
 
 
 
 
 
$ facter 
 
 
 
 
Permission denied @ dir_initialize - /sys/block/
 
 
 
 
 
 
 
The version of facter is 2.4.6, installed via the gem as a native package for Alpine is not available. 
 
 
 
 
 
 
$ facter --version