Uploaded image for project: 'Modules'
  1. Modules
  2. MODULES-1630

apt::ppa constantly re-adds PPAs on Ubuntu Utopic

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: apt, supported
    • Labels:
    • Environment:

      Ubuntu 14.04+ 'Trusty Tahr' or newer, puppetlabs-apt 2.2.0

    • Template:
    • Epic Link:
    • Team:
      Modules

      Description

      When using apt::ppa from puppetlabs-apt on Ubuntu Utopic, PPAs are added successfully, but on subsequent agent runs the add-apt-repository Exec is re-ran. This means that an apt-get update is triggered on every puppet run for all Utopic machines using the apt::ppa define.

      The cause of this appears to be that 'add-apt-repository' creates a source list named 'username-ubuntu-ppa_name-lsbdistcodename.list', whereas apt::ppa expects the source list to be named 'username-ppa_name-lsbdistcodename.list' (see https://github.com/puppetlabs/puppetlabs-apt/blob/master/manifests/ppa.pp#L24).

      For example, when adding 'ppa:gencfsm/ppa' like so:

      apt::ppa { 'ppa:gencfsm/ppa': }
      

      add-apt-repository creates a file called 'gencfsm-ubuntu-ppa-utopic.list' but the module expects a file called 'gencfsm-ppa-utopic.list'

        Attachments

          Activity

            jsd-sla-details-panel

              People

              • Assignee:
                david.swan David Swan
                Reporter:
                insertjokehere Will Hughes
              • Votes:
                6 Vote for this issue
                Watchers:
                7 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: