portertech/puppet-mongodb — pull request #13 by nixon (2012-07-20 22:52:34+00:00)
Title: run apt-get update prior to installing packages

Re-order dependencies so that "update-apt" runs after adding the 10gen
repo but before installing packages.

When running puppet-mongodb for the first time on a new box, the following error happens:

```
[default] err: /Stage[main]/Mongodb/Package[python-software-properties]/ensure: change from purged to present failed: Execution of '/usr/bin/apt-get -q -y -o DPkg::Options::=--force-confold install python-software-properties' returned 100: Reading package lists...
...
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

[default]
[default] notice: /Stage[main]/Mongodb/Exec[10gen-apt-repo]: Dependency Package[python-software-properties] has failures: true
[default]
[default] warning: /Stage[main]/Mongodb/Exec[10gen-apt-repo]: Skipping because of failed dependencies
```