golja-influxdb
golja-influxdb copied to clipboard
Adding apt-get update step before package declaration since a clean …
…install of influxdb on 14.04.5 LTS Ubuntu using vagrant produces the following error: "==> default: Error: Execution of '/usr/bin/apt-get -q -y -o DPkg::Options::=--force-confold install influxdb' returned 100: Reading package lists..."
Based on: http://stackoverflow.com/a/13655214/604048
Maybe the influxdb team doesnt have the 16.04 support. Let me check their repo.
I'm sorry about the confusion, I misread my terminal at startup. The Ubuntu version I used was not 16.04.1 as stated in the commit message. It was the more common 14.04.5 LTS.
Welcome to Ubuntu 14.04.5 LTS (GNU/Linux 3.13.0-96-generic x86_64)
I've updated my pull request. The issue as I see it is that apt needs to be updated after the new source is added, before the package is installed. Running provisioning twice works in my case because I have an apt update section in the start of my vagrant file. Thus influxdb gets installed when I run provisioning twice. The first run fails as described, but second one picks up where the first left off.
Manually installing it also works as expected.
Aha I see ... In theory the apt module should take care of that and run apt-get update, before trying to install the module. I will try to recreate the issue.
Good point. The apt module might be the issue. I'll fish out the version number. The start of the metadata.json
file for my puppetlabs-apt
module says:
{
"name": "puppetlabs-apt",
"version": "2.2.1",
"author": "Puppet Labs",
... if that helps.
Hey @AndreCAndersen - I've addressed this in my refactor found here:
https://github.com/codylane/golja-influxdb/tree/devel
Please let me know if you have questions.