puppetlabs-apt module apt::ppa broken?

317 views
Skip to first unread message

Joaquin Menchaca

unread,
May 4, 2018, 3:56:20 PM5/4/18
to Puppet Users
I tried  apt::ppa { 'ppa:webupd8team/java':  } , and I get 

Warning: Unknown variable: '::apt::ppa_options'. (file: /home/vagrant/.puppetlabs/etc/code/modules/apt/manifests/ppa.pp, line: 4, column: 36)
Warning: Unknown variable: '::apt::ppa_package'. (file: /home/vagrant/.puppetlabs/etc/code/modules/apt/manifests/ppa.pp, line: 6, column: 36)
Warning: Unknown variable: '::apt::_proxy'. (file: /home/vagrant/.puppetlabs/etc/code/modules/apt/manifests/ppa.pp, line: 36, column: 15)
Error: Evaluation Error: Error while evaluating a Resource Statement, Evaluation Error: Operator '[]' is not applicable to an Undef Value. (file: /home/vagrant/.puppetlabs/etc/code/modules/apt/manifests/ppa.pp, line: 37, column: 8) (file: /vagrant/scratch/oraclejava/manifests/init.pp, line: 2) on node controlrepo.test


Sort of in shock, this is basic functionality, it cannot be broken, and no one knows about it.  It's not like Debian and Ubuntu are not popular... 

So I thought that I must be doing something wrong?  Anyone see this?  Am I doing something wrong?

Simple Steps to Reproduce (on Ubuntu 14.04 trusty vagrant box puppetlabs/ubuntu-14.04-64-nocm):

 
mkdir scratch & cd scratch
 
puppet module generate foo/oraclejava --skip-interview
puppet module install puppetlabs-stdlib
puppet module install puppetlabs-apt

cat <<-EOF > oraclejava/manifests/init.pp
class oraclejava {
  apt::ppa { 'ppa:webupd8team/java': }
}
EOF

sudo puppet apply \
  --modulepath=.:${HOME}/.puppetlabs/etc/code/modules \
  -e 'include ::oraclejava'

Joaquin Menchaca

unread,
May 6, 2018, 2:44:39 AM5/6/18
to Puppet Users
I fixed this, for some reasons I thought this was optional 

include apt
apt::ppa { 'ppa:webupd8team/java':  }

I wish this was a proper type and provider, rather than puppet module w/ defines.
Reply all
Reply to author
Forward
0 new messages