apt-get update running before installing packages - dependency not working

298 views
Skip to first unread message

Mr Pink

unread,
Mar 8, 2012, 10:34:04 AM3/8/12
to Puppet Users
Hi,

I'm having some issues with it doing an apt-get update before
installing packages. In my Apt modules I have

Exec["apt-update"] -> Package <| |>

and in the run itself I see

debug: /Stage[main]/Apt/Exec[apt-update]/before: requires
Package[libmysqlclient-dev]
debug: /Stage[main]/Apt/Exec[apt-update]/before: requires
Package[mysql-server]

but then it does the following without the update

debug: Puppet::Type::Package::ProviderApt: Executing '/usr/bin/apt-get
-q -y -o DPkg::Options::=--force-confold --force-yes install
libmysqlclient-dev=5.1.*'

Not sure if this correct but it definitely doesn't appear to be doing
the update

Any help most appreciated,

Will




jcbollinger

unread,
Mar 9, 2012, 9:28:11 AM3/9/12
to Puppet Users
Check elsewhere in your log for messages about dependency cycles. As
I recall, when you have a dependency cycle Puppet will break it in
some unspecified manner instead of failing the catalog altogether. In
many cases that allows Puppet to still reach the target configuration,
albeit in more than one run.

You haven't shown much manifest code, but my bet would be that
Exec['apt-update'] has a relationship on the apt package. The chain
you showed would set up the complementary relationship, thus closing a
cycle.


John
Reply all
Reply to author
Forward
0 new messages