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. On Friday, May 4, 2018 at 12:56:20 PM UTC-7, Joaquin Menchaca wrote: > > 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' > > > -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/c98856e5-5cbc-4a98-a1e9-0de5b0b45a95%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.