Skip to content
This repository was archived by the owner on Nov 18, 2017. It is now read-only.
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
70 commits
Select commit Hold shift + click to select a range
e5d5c90
improve Vagrant readability
rplessl Dec 29, 2014
ff4c7cf
Changed Travis to my own travis system
rplessl Dec 29, 2014
6aa5e50
updated documentation for testing with my own fork / branch
rplessl Dec 29, 2014
f869a73
Merge branch 'master' into remove-staging-setup
rplessl Dec 29, 2014
3b268ee
enhance coverage by testing also on Debian 7 and Centos 7
rplessl Dec 29, 2014
821dc16
Merge branch 'improve-vagrant-setup' into remove-staging-setup
rplessl Dec 29, 2014
664212c
remove staging system and external module
rplessl Dec 29, 2014
f1b0543
remove test for staging
rplessl Dec 29, 2014
c1e17be
fix paramter copy-paste-error
rplessl Dec 29, 2014
edfc633
update to new puppet forgeapi system
rplessl Dec 31, 2014
a7e9cce
enhance vagrant setup and documentation
rplessl Dec 31, 2014
8639a1b
change look and feel in docu
rplessl Dec 31, 2014
3247757
change vagrant setup:
rplessl Dec 31, 2014
0a0e527
fix installation for installation with wget and dpkg
rplessl Dec 31, 2014
a9521a3
vagrant testing documentation after workmate test
Jan 7, 2015
14d32a0
should be not necessary - dependency is given in init.pp
Jan 7, 2015
69e4311
add finish class installation / configuration event for puppet
Jan 7, 2015
0dfe5ee
order is given in init.pp
Jan 7, 2015
49dce19
style fixes
Jan 7, 2015
ed85d46
change year
Jan 7, 2015
5bdb4ff
remove staging module
Jan 7, 2015
6e14553
improve documentation
Jan 7, 2015
1a69910
change install mechanism
Jan 7, 2015
e6762a0
changed vagrant / puppet testing setup
Jan 7, 2015
c388810
:dog:
Jan 7, 2015
e3d4e66
added testing environment
Jan 7, 2015
adb75ca
only describe vagrant 1.7+ setup
Jan 8, 2015
cf7026e
improve documentation about parameters and default values
Jan 8, 2015
6876d2f
updated Vagrant test setup and added documentation about testing in t…
Jan 8, 2015
c5f9cef
improve test cases / coverage
Jan 8, 2015
42f371e
remove old operating systems (OS not tested and nearly EOL)
Jan 8, 2015
45969ef
remove template file ... change of single ini contents make more sense
Jan 8, 2015
f646e08
added tracking with timestamp for installation from web, fix dpkg ins…
Jan 8, 2015
37b0d35
:dog:
Jan 8, 2015
6828804
fix missing, ... :construction_worker:
Jan 8, 2015
668f9bf
this has to be logging_file
Jan 8, 2015
af688cd
fix test
Jan 8, 2015
150907d
added test for service
Jan 8, 2015
62eb56b
try to fix handler web vs. repo install
Jan 8, 2015
0655eff
improve test
Jan 8, 2015
affe9a6
fix typo
Jan 8, 2015
718e903
added debian case
Jan 8, 2015
46f535c
test for config
Jan 8, 2015
41839d0
back to working baseline and retesting spec
Jan 8, 2015
790e4f6
added Ruby 1.9.3
Jan 8, 2015
a65a7f2
fix reporting_disabled and seed server config
Jan 12, 2015
944d605
fix status check and restart
Feb 11, 2015
89efd40
first step to make puppet-influxdb ready for influx 0.9.x
Jul 15, 2015
2aecabc
added also CI for 0.9.1 branch
Jul 15, 2015
0607a78
fix spec tests
Jul 15, 2015
5dc1bdc
fix typo config settings
Jul 15, 2015
fbc8a64
fix architecture test ... there exist no i386 packages at the moment
Jul 15, 2015
26e7ce1
default as last option in architecture switch
Jul 15, 2015
a928a83
use new travis infrastructure
Jul 15, 2015
f242fb7
removed docker image and preinstall influxdb
Jul 15, 2015
473a27d
added sudoíng of influxdb package
Jul 15, 2015
c78f328
revert to docker travis-ci testing
Jul 15, 2015
d58aac6
added repo handling for travis
Jul 15, 2015
9800634
added note on minimal influxdb version (influx 0.9.1)
Jul 15, 2015
d93fe9b
increase version to 0.9.1
Jul 15, 2015
2ec9476
added 'none' parameter for non cluster mode, fix installation and tes…
Jul 15, 2015
60e6436
fix version tag
Jul 15, 2015
67d865d
increase version
Jul 15, 2015
dcf0b9e
changed a bit API of puppet class after rolling out the setup to prod…
Jul 20, 2015
b22980f
added influxdb::download_url so you can pass this in instead of use a…
Jul 21, 2015
079a87a
Merge pull request #1 from hurrycaine/source_url
rplessl Jul 29, 2015
6ee498c
enhance documentation for download_url (pull request #1)
rplessl Jul 29, 2015
8c2bea8
move test line for testing installed package
rplessl Jul 29, 2015
83947f9
fix wrong place in test file
rplessl Jul 29, 2015
4569c85
small identation fixes
Aug 11, 2015
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .fixtures.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,5 @@
fixtures:
repositories:
inifile: https://github.com/puppetlabs/puppetlabs-inifile
staging: https://github.com/nanliu/puppet-staging
symlinks:
influxdb: "#{source_dir}"
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
DEADJOE
*~
Gemfile.lock
*.swp
.librarian/
Expand Down
35 changes: 26 additions & 9 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,36 @@
---
branches:
only:
- master
- repo-handling
language: ruby
rvm:
- 1.9.3
- 2.0.0
- 2.1.0
cache: bundler
sudo: false
bundler_args: --without development
script: bundle exec rake spec SPEC_OPTS='--format documentation'
script: "bundle exec rake spec SPEC_OPTS='--format documentation'"
env:
matrix:
- PUPPET_VERSION="2.7.25"
- PUPPET_VERSION="3.1.1"
- PUPPET_VERSION="3.2.4"
- PUPPET_VERSION="3.3.2"
- PUPPET_VERSION="3.4.2"
- PUPPET_VERSION="~> 2.7.0"
- PUPPET_VERSION="~> 3.4.0"
- PUPPET_VERSION="~> 3.5.0"
- PUPPET_VERSION="~> 3.6.0"
- PUPPET_VERSION="~> 3.7.0"
matrix:
exclude:
- rvm: 1.9.3
env: PUPPET_VERSION="~> 2.7.0"
- rvm: 2.0.0
env: PUPPET_VERSION="~> 2.7.0"
- rvm: 2.0.0
env: PUPPET_VERSION="~> 3.0.0"
- rvm: 2.0.0
env: PUPPET_VERSION="~> 3.1.0"
- rvm: 2.1.0
env: PUPPET_VERSION="~> 3.3.0"
- rvm: 2.1.0
env: PUPPET_VERSION="~> 3.4.0"
notifications:
email:
- justin@downing.us
- roman@plessl.info
3 changes: 3 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
The MIT License (MIT)

Copyright (c) 2014 Justin Downing
Copyright (c) 2014-2015 Roman Plessl

Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
Expand Down
3 changes: 1 addition & 2 deletions Puppetfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
forge 'http://forge.puppetlabs.com'
forge 'https://forgeapi.puppetlabs.com'

mod 'nanliu/staging', '>= 0.4.0'
mod 'puppetlabs/inifile', '>= 1.0.0'
8 changes: 3 additions & 5 deletions Puppetfile.lock
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
FORGE
remote: http://forge.puppetlabs.com
remote: https://forgeapi.puppetlabs.com
specs:
nanliu/staging (0.4.0)
puppetlabs/inifile (1.0.3)
puppetlabs-inifile (1.2.0)

DEPENDENCIES
nanliu/staging (>= 0.4.0)
puppetlabs/inifile (>= 1.0.0)
puppetlabs-inifile (>= 1.0.0)

58 changes: 50 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,27 +1,69 @@
# influxdb
# puppet-influxdb

[![Puppet Forge](http://img.shields.io/puppetforge/v/jdowning/influxdb.svg)](https://forge.puppetlabs.com/jdowning/influxdb) [![Build Status](https://travis-ci.org/justindowning/puppet-influxdb.png)](https://travis-ci.org/justindowning/puppet-influxdb)
[![Build Status](https://travis-ci.org/rplessl/puppet-influxdb.png)](https://travis-ci.org/rplessl/puppet-influxdb)

## Description

This Puppet module will install [influxdb](https://influxdb.org) on Debian or RedHat.

This module is still under active development so things are likely to change. If
you have any ideas or contributions, feel free to open a pull request!
puppet module to install and configure [influxdb](https://influxdb.org) (version 0.9.x and newer). Tested with InfluxDB 0.9.1 and 0.9.2.

## Installation

`puppet module install --modulepath /path/to/puppet/modules jdowning-influxdb`
`puppet module install --modulepath /path/to/puppet/modules puppet-influxdb`

## Usage

Basic default uses local package

`class { 'influxdb': }`

Most of the configuration is parameterized, so you can freely adjust settings.
Install the influx packages from InfluxDB upstream Amazon s3 packages. This is the default when not using a self managed repository
```
class { 'influxdb':
install_from_repository => false,
}
```
Alternativly you can install packages using your own url/proxy
```
class { 'influxdb':
install_from_repository => false,
download_url => 'https://download.test.com/proxy/influxdb/influxdb-1.0.0.rpm'
}
```


These configuration parameter can be set:
```
$ensure = 'installed'
$version = 'latest'
$install_from_repository = true
$download_url = undef or https://download.test.com/influxdb.deb
$config_file = '/etc/opt/influxdb/influxdb.conf'

# general section of influxb.conf
$reporting_disabled = false

# [meta]
$meta_hostname = "localhost" or "192.168.0.1"
$meta_peers = undef or ["192.168.0.1:8088", "192.168.0.2:8088", "192.168.0.3:8088"]

# [retention]
$retention_replication = undef or 3
```

## Testing

Install and setup vagrant [https://docs.vagrantup.com/v2/installation/index.html](as described here).

Fetch virtual machines:
```ShellSession
vagrant box add puppetlabs/ubuntu-14.04-64-puppet --insecure
vagrant box add puppetlabs/centos-6.6-64-puppet --insecure
vagrant box add puppetlabs/centos-7.0-64-puppet --insecure
vagrant box add puppetlabs/debian-7.8-64-puppet --insecure
```

Add vagrant puppet support and run tests:
```ShellSession
bundle install
bundle exec librarian-puppet install
vagrant up
Expand Down
2 changes: 1 addition & 1 deletion Rakefile
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
require 'bundler'
Bundler.require(:rake)

require 'rubygems'
require 'puppetlabs_spec_helper/rake_tasks'
require 'puppet-lint/tasks/puppet-lint'
require 'puppet_blacksmith/rake_tasks'

Rake::Task[:lint].clear
PuppetLint::RakeTask.new :lint do |config|
Expand Down
52 changes: 43 additions & 9 deletions Vagrantfile
Original file line number Diff line number Diff line change
@@ -1,26 +1,60 @@
# -*- mode: ruby -*-
# vi: set ft=ruby :

Vagrant.configure("2") do |config|
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
VAGRANTFILE_API_VERSION = "2"

Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.hostname = 'puppet-influxdb'
config.vm.synced_folder "modules", "/tmp/puppet-modules", type: "rsync", rsync__exclude: ".git/"
config.vm.synced_folder ".", "/tmp/puppet-modules/influxdb", type: "rsync", rsync__exclude: ".git/"

config.vm.define "centos", primary: true do |centos|
centos.vm.box = "puppetlabs/centos-6.5-64-puppet"
centos.vm.provision :puppet do |puppet|
config.vm.box_download_insecure = true

config.vm.synced_folder "modules", "/tmp/puppet-modules", type: "rsync", rsync__exclude: ".git/"
config.vm.synced_folder ".", "/tmp/puppet-modules/influxdb", type: "rsync", rsync__exclude: ".git/"

config.vm.define "ubuntu", primary: true do |ubuntu|
ubuntu.vm.box = "puppetlabs/ubuntu-14.04-64-puppet"
ubuntu.vm.provision :puppet do |puppet|
puppet.manifests_path = "tests"
puppet.manifest_file = "vagrant.pp"
puppet.options = ["--modulepath", "/tmp/puppet-modules"]
end
end

config.vm.define "ubuntu", autostart: false do |ubuntu|
ubuntu.vm.box = "puppetlabs/ubuntu-14.04-64-puppet"
ubuntu.vm.provision :puppet do |puppet|
config.vm.define "debian6", autostart: false do |debian6|
debian6.vm.box = "puppetlabs/debian-6.0.10-64-puppet"
debian6.vm.provision :puppet do |puppet|
puppet.manifests_path = "tests"
puppet.manifest_file = "vagrant.pp"
puppet.options = ["--modulepath", "/tmp/puppet-modules"]
end
end

config.vm.define "debian", autostart: false do |debian|
debian.vm.box = "puppetlabs/debian-7.8-64-puppet"
debian.vm.provision :puppet do |puppet|
puppet.manifests_path = "tests"
puppet.manifest_file = "vagrant.pp"
puppet.options = ["--modulepath", "/tmp/puppet-modules"]
end
end

config.vm.define "centos6", autostart: false do |centos6|
centos6.vm.box = "puppetlabs/centos-6.6-64-puppet"
centos6.vm.provision :puppet do |puppet|
puppet.manifests_path = "tests"
puppet.manifest_file = "vagrant.pp"
puppet.options = ["--modulepath", "/tmp/puppet-modules"]
end
end

config.vm.define "centos7", autostart: false do |centos7|
centos7.vm.box = "puppetlabs/centos-7.0-64-puppet"
centos7.vm.provision :puppet do |puppet|
puppet.manifests_path = "tests"
puppet.manifest_file = "vagrant.pp"
puppet.options = ["--modulepath", "/tmp/puppet-modules"]
end
end

end
Loading