1

I'm using the puppetlabs-apt forge module together with hiera in puppet 3.8.5.

Adding apt::sources works:

apt::sources:
  'ubuntu':
    location: 'http://server.com/ubuntu'
    release: "%{::lsbdistcodename}"
    repos: 'main restricted universe multiverse'

... but so far I haven't been able to figure out how to add apt::ppa's to the hiera yaml.

I have tried:

apt::ppa:
   'ppa:webupd8team/java':
     ensure: 'present'

... and:

apt::ppa:'ppa:webupd8team/java'::ensure: 'present'

... but no luck.

Has anybody else got this working?

1
  • I have found that apt::ppa only works within a manifest if you first include ::apt. For that reason, I doubt it will work in hiera like this and I would consider it a flaw/bug in the module.
    – jordanm
    Apr 23, 2016 at 16:59

1 Answer 1

0

For those (like me) who found this while googling;

apt::ppa:
  'ppa:webupd8team/java':
    ensure: 'present'

now works. ( Puppet 4.10, hiera 5, puppetlabs/apt v1.4.0 )

2
  • If you found that elsewhere in a search, consider also including a link to the source. Welcome to ServerFault! Jul 20, 2017 at 6:17
  • A coworker of mine came to this conclusion using trial-and-error, but I'll make sure to keep that in mind ! Jul 20, 2017 at 16:07

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .