Last active
August 29, 2015 14:00
-
-
Save SteveMarshall/11343037 to your computer and use it in GitHub Desktop.
Puppetised builddep for nginx
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# `apt` is puppetlabs/apt v1.4.2 | |
include '::apt' | |
apt::source { 'nginx': | |
location => "http://nginx.org/packages/ubuntu", | |
repos => 'nginx', | |
key => '7BD9BF62', | |
key_source => 'http://nginx.org/keys/nginx_signing.key', | |
} | |
apt::builddep { 'nginx': | |
require => Apt::Source['nginx'], | |
} |
Per @nickstenning’s comments on Twitter, this appears to be “broken by design”, and the best solution for now is to copy and paste the exec from apt::builddep into my code. Le sigh.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This fails with:
If I remove line 11 (
require => Apt::Source['nginx'],
), Puppet will run, but always runsApt::Builddep[nginx]
first (whether I explicitly use manifest ordering or not). Depending on the exact contents of the nginx packages maintained by Ubuntu and nginx, this may cause problems.I get the same error if I try to specify the dependency using chaining arrows, too (i.e. removing line 11 and adding
->
on line 9).I can't see how I’m supposed to
apt::builddep
a package from a new source without writing my own version ofapt:source
orapt::builddep
. What am I doing wrong?