Subject: | install failure with ubuntu / puppet |
Date: | Thu, 13 Feb 2014 11:26:12 -0500 |
To: | bug-PAR-Packer [...] rt.cpan.org |
From: | Andrew Pennebaker <andrew.pennebaker [...] gmail.com> |
I'm able to install several CPAN packages with Puppet, but PAR::Packer
seems to be misbehaving. The package appears to install with no error
messages, but the pp binary never installs.
Vagrantfile:
VAGRANTFILE_API_VERSION = '2'
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.box = 'precise64'
config.vm.box_url = 'http://files.vagrantup.com/precise64.box'
# Disable tty warning
config.vm.provision :shell,
:inline => "sed -i 's/^mesg n$/tty -s \\&\\& mesg n/g' /root/.profile"
config.vm.provision :shell, path: 'upgrade-puppet.sh'
# Install puppet modules
config.vm.provision :shell, path: 'bootstrap.rb', args:
"puppetlabs-stdlib \
puppetlabs/apt \
example42/puppi \
example42/perl"
config.vm.provision :puppet do |puppet|
puppet.options = ENV['PUPPET_OPTIONS']
end
end
manifests/default.pp:
class { 'perl': }
perl::cpan::module { 'App::Ack':
require => Package['build-essential']
}
perl::cpan::module { 'Test::More': }
perl::cpan::module { 'Perl::Critic': }
perl::cpan::module { 'PAR::Packer':
require => Package['build-essential']
}
perl::cpan::module { 'WWW::Mechanize': }
Trace:
$ vagrant provision
Notice:
/Stage[main]/Main/Perl::Cpan::Module[PAR::Packer]/Exec[cpan-PAR::Packer-present]/returns:
executed successfully
$ vagrant ssh
$ which pp
$
$ which perlcritic
/usr/local/bin/perlcritic
System:
* CPAN 1.57
* Perl 5.14
* Puppet 3.4.2
* Ubuntu 12.04 Precise Pangolin
* VirtualBox 4.3.6
* Vagrant 1.4.3
* Homebrew 0.9.5
* Mac OS X 10.9.1 Mavericks
--
Cheers,
Andrew Pennebaker
www.yellosoft.us