[Puppet Users] puppetlabs-apt module apt::ppa broken?

2018-05-04 Thread Joaquin Menchaca
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/20f5c69c-5bc2-4201-a9a5-25c40d9d8d6f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[Puppet Users] puppetlabs/apt and apt::ppa

2012-12-25 Thread Andrey Ageyev
Greetings,

I'm trying to add ppa:nginx/stable repo for Ubuntu 12.04.1 LTS.
Server: puppetmaster-common 3.0.1-1puppetlabs1 
Agent: puppet  2.7.11

And when I try to apply manifest - getting: 
puppet agent -t
info: Caching catalog for wproxy71.tpnt.net
err: Failed to apply catalog: Could not find dependency 
File[/etc/apt/sources.list.d] for 
Exec[add-apt-repository-ppa:openstack-ppa/bleeding-edge] at 
/etc/puppet/modules/apt/manifests/ppa.pp:38

The folder - */etc/apt/sources.list.d* exists.
Does anybody know what's can be wrong?

Thanks,
Andrey.


-- 
You received this message because you are subscribed to the Google Groups 
Puppet Users group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/puppet-users/-/BPkgzDYkpy0J.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.



Re: [Puppet Users] puppetlabs/apt and apt::ppa

2012-12-25 Thread Brian Lalor
Is that directory managed as a resource with puppet? Puppet doesn't recognize 
non-managed resources as dependencies. 

--
Brian Lalor
bla...@bravo5.org

On Dec 25, 2012, at 9:22 PM, Andrey Ageyev a.age...@gmail.com wrote:

 The folder - /etc/apt/sources.list.d exists.
 Does anybody know what's can be wrong?

-- 
You received this message because you are subscribed to the Google Groups 
Puppet Users group.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.



Re: [Puppet Users] puppetlabs/apt and apt::ppa

2012-12-25 Thread Andrey Ageyev
This directory exists in the fresh ubuntu system.

I only found this, but there is no solution or workaround.

On Dec 26, 2012, at 4:31 AM, Brian Lalor bla...@bravo5.org wrote:

 Is that directory managed as a resource with puppet? Puppet doesn't recognize 
 non-managed resources as dependencies. 
 
 --
 Brian Lalor
 bla...@bravo5.org
 
 On Dec 25, 2012, at 9:22 PM, Andrey Ageyev a.age...@gmail.com wrote:
 
 The folder - /etc/apt/sources.list.d exists.
 Does anybody know what's can be wrong?
 
 
 -- 
 You received this message because you are subscribed to the Google Groups 
 Puppet Users group.
 To post to this group, send email to puppet-users@googlegroups.com.
 To unsubscribe from this group, send email to 
 puppet-users+unsubscr...@googlegroups.com.
 For more options, visit this group at 
 http://groups.google.com/group/puppet-users?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
Puppet Users group.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.