Skip to content
This repository has been archived by the owner on Feb 20, 2019. It is now read-only.

puppet agent -t fails due to missing /usr/bin/add-apt-repository #164

Open
stuartf opened this issue Aug 6, 2015 · 1 comment
Open

puppet agent -t fails due to missing /usr/bin/add-apt-repository #164

stuartf opened this issue Aug 6, 2015 · 1 comment
Assignees
Labels

Comments

@stuartf
Copy link
Contributor

stuartf commented Aug 6, 2015

Newly provisioned machines don't appear to have /usr/bin/add-apt-repository so puppet gives an error like:
Error: /Stage[main]/Oaeservice::Deps::Ppa::Oae/Apt::Ppa[ppa:oae/deps]/Exec[add-apt-repository-ppa:oae/deps]/returns: change from notrun to 0 failed: Could not find command '/usr/bin/add-apt-repository'

/usr/bin/add-apt-repository comes from the python-software-properties package, so that should be installed before trying to run add-apt-repository

@mrvisser
Copy link
Contributor

mrvisser commented Sep 2, 2015

This was probably just an error waiting to happen, as before it probably just so happened that python-software-properties was installed before the add-apt-repository was performed.

Currently we have this here:

root@puppet:/etc/puppet/puppet-hilary# git grep python-software-properties
modules/oaeservice/manifests/deps/common.pp:    Class['::apt::update'] -> Package <| title != "python-software-properties" and title != "software-properties-common" |>

We'll have to add some similar constraints that tell puppet to run the python-software-properties package before any call to maybe ::apt::source. Which could look something like this (probably syntax errors):

Package['python-software-properties'] -> Class['::apt::update']
Package['python-software-properties'] -> Apt::Update <| |>

@stuartf stuartf added the To Fix label Sep 2, 2015
@stuartf stuartf self-assigned this Sep 2, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants