Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
3
-
2014-07-23, 2014-08-06
Description
In Puppet 3.2 the module tool started using minitar when the tar executable is not present. It turns out that minitar does not understand the PAX format.
An example of a module that was created with this is liamjbennet/win_facts v0.0.1. When that module is installed the problem appears as follows.
C:\Program Files (x86)\Puppet Labs\Puppet\bin>puppet module install liamjbennett
|
-win_facts
|
Notice: Preparing to install into C:/ProgramData/PuppetLabs/puppet/etc/modules .
|
..
|
Notice: Downloading from https://forge.puppetlabs.com ...
|
Notice: Installing -- do not interrupt ...
|
C:/ProgramData/PuppetLabs/puppet/etc/modules
|
└── liamjbennett-win_facts (v0.0.1)
|
|
C:\Program Files (x86)\Puppet Labs\Puppet\bin>puppet apply -e 'notice hello'
|
Error loading fact C:/ProgramData/PuppetLabs/puppet/etc/modules/win_facts/lib/fa
|
cter/PaxHeader/operatingsystemversion.rb C:/ProgramData/PuppetLabs/puppet/etc/mo
|
dules/win_facts/lib/facter/PaxHeader/operatingsystemversion.rb:1: syntax error,
|
unexpected tIDENTIFIER, expecting $end
|
17 gid=790807719
|
^
|
Error loading fact C:/ProgramData/PuppetLabs/puppet/etc/modules/win_facts/lib/fa
|
cter/PaxHeader/windows_productkey.rb C:/ProgramData/PuppetLabs/puppet/etc/module
|
s/win_facts/lib/facter/PaxHeader/windows_productkey.rb:1: syntax error, unexpect
|
ed tIDENTIFIER, expecting $end
|
17 gid=790807719
|
^
|
Error loading fact C:/ProgramData/PuppetLabs/puppet/etc/modules/win_facts/lib/fa
|
cter/PaxHeader/windows_sid.rb C:/ProgramData/PuppetLabs/puppet/etc/modules/win_f
|
acts/lib/facter/PaxHeader/windows_sid.rb:1: syntax error, unexpected tIDENTIFIER
|
, expecting $end
|
17 gid=790807719
|
^
|
|
........
|
The error is because those files are not ruby files:
C:\Program Files (x86)\Puppet Labs\Puppet\bin>type C:\ProgramData\PuppetLabs\puppet\etc\modules\win_facts\lib\facter\PaxHeader\windows_systemtype.rb
|
17 gid=790807719
|
18 uid=2140070515
|
20 ctime=1366908908
|
20 atime=1366908908
|
24 SCHILY.dev=234881026
|
23 SCHILY.ino=78693886
|
18 SCHILY.nlink=1
|
There is a very good write up on the PaxHeader and problems of mixing tools that can be found at http://tickets.opscode.com/browse/CHEF-4107.
It doesn't appear that these warnings actually cause problems, but they do clutter up the output and cause fright.