Skip to content

Commit 8adb34b

Browse files
committed
Merge pull request #33 from justindowning/upgrade-and-fix
Upgrade and fix various components
2 parents e549016 + 4c31770 commit 8adb34b

File tree

9 files changed

+45
-48
lines changed

9 files changed

+45
-48
lines changed

Puppetfile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
forge 'https://forgeapi.puppetlabs.com'
22

3+
mod 'puppetlabs/apt',
4+
:git => "git://github.com/puppetlabs/puppetlabs-apt.git"
35
mod 'stahnma/epel',
46
:git => "git://github.com/stahnma/puppet-module-epel.git"
5-
mod 'puppetlabs/nodejs',
6-
:git => "git://github.com/puppetlabs/puppetlabs-nodejs.git"
7+
mod 'puppet/nodejs',
8+
:git => "git://github.com/puppet-community/puppet-nodejs.git"
79
mod 'puppetlabs/stdlib',
810
:git => "git://github.com/puppetlabs/puppetlabs-stdlib.git"

Puppetfile.lock

Lines changed: 20 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,42 @@
11
FORGE
22
remote: https://forgeapi.puppetlabs.com
33
specs:
4-
puppetlabs-apt (1.7.0)
5-
puppetlabs-stdlib (>= 2.2.1)
4+
treydock-gpg_key (0.0.3)
65

76
GIT
8-
remote: git://github.com/puppetlabs/puppetlabs-nodejs.git
7+
remote: git://github.com/puppet-community/puppet-nodejs.git
98
ref: master
10-
sha: 003933504245f1087c4c8cfcbc3d9b6097b228a1
9+
sha: 240817d3f57256b387c9adc2cfdda586353db52b
1110
specs:
12-
puppetlabs-nodejs (0.6.1)
13-
puppetlabs-apt (>= 0.0.3)
14-
puppetlabs-stdlib (>= 2.0.0)
11+
puppet-nodejs (1.2.0)
12+
puppetlabs-stdlib (< 5.0.0, >= 4.1.0)
13+
treydock-gpg_key (< 1.0.0, >= 0.0.3)
14+
15+
GIT
16+
remote: git://github.com/puppetlabs/puppetlabs-apt.git
17+
ref: master
18+
sha: 3df188f879d35836ec0c14298c5dbec06179dd18
19+
specs:
20+
puppetlabs-apt (2.1.1)
21+
puppetlabs-stdlib (< 5.0.0, >= 4.5.0)
1522

1623
GIT
1724
remote: git://github.com/puppetlabs/puppetlabs-stdlib.git
1825
ref: master
19-
sha: 79e79e8bbad5f3226b51fae5a2a64bc9a84031ae
26+
sha: 1d89df906e1ae1d09a862974181663caaf8012c6
2027
specs:
21-
puppetlabs-stdlib (4.5.0)
28+
puppetlabs-stdlib (4.8.0)
2229

2330
GIT
2431
remote: git://github.com/stahnma/puppet-module-epel.git
2532
ref: master
26-
sha: 7322b80c268087bc4b967a9a6ca29923853971f8
33+
sha: 370922ee1e4522524c9d00f099c1882a00938b30
2734
specs:
28-
stahnma-epel (1.0.2)
35+
stahnma-epel (1.1.0)
2936

3037
DEPENDENCIES
31-
puppetlabs-nodejs (>= 0)
38+
puppet-nodejs (>= 0)
39+
puppetlabs-apt (>= 0)
3240
puppetlabs-stdlib (>= 0)
3341
stahnma-epel (>= 0)
3442

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ This Puppet module will install [statsd](https://github.com/etsy/statsd/) on Deb
1212

1313
## Requirements
1414

15-
This module assumes nodejs & npm is installed on the host, but will not do it for you. I recommend using [puppetlabs/nodejs](https://github.com/puppetlabs/puppetlabs-nodejs) to set this up.
15+
This module assumes nodejs & npm is installed on the host, but will not do it for you. I recommend using [puppet/nodejs](https://github.com/puppet-community/puppet-nodejs) to set this up.
1616

1717
## Usage
1818
```puppet

Vagrantfile

Lines changed: 8 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -6,22 +6,17 @@ Vagrant.configure("2") do |config|
66
config.vm.synced_folder "modules", "/tmp/puppet-modules", type: "rsync", rsync__exclude: ".git/"
77
config.vm.synced_folder ".", "/tmp/puppet-modules/statsd", type: "rsync", rsync__exclude: ".git/"
88

9+
config.vm.provision :puppet do |puppet|
10+
puppet.environment_path = "tests"
11+
puppet.environment = "vagrant"
12+
puppet.options = ["--modulepath", "/tmp/puppet-modules"]
13+
end
14+
915
config.vm.define "centos" do |centos|
10-
centos.vm.box = 'puppetlabs/centos-7.0-64-puppet'
11-
centos.vm.provision :puppet do |puppet|
12-
puppet.manifests_path = "tests/vagrant"
13-
puppet.manifest_file = "centos.pp"
14-
puppet.options = ["--modulepath", "/tmp/puppet-modules"]
15-
end
16+
centos.vm.box = 'puppetlabs/centos-7.0-64-puppet'
1617
end
1718

1819
config.vm.define "ubuntu", primary: true do |ubuntu|
19-
ubuntu.vm.box = 'puppetlabs/ubuntu-14.04-64-puppet'
20-
ubuntu.vm.provision :shell, :inline => "echo 'Updating apt...' && apt-get update -qq"
21-
ubuntu.vm.provision :puppet do |puppet|
22-
puppet.manifests_path = "tests/vagrant"
23-
puppet.manifest_file = "ubuntu.pp"
24-
puppet.options = ["--modulepath", "/tmp/puppet-modules"]
25-
end
20+
ubuntu.vm.box = 'puppetlabs/ubuntu-14.04-64-puppet'
2621
end
2722
end

manifests/config.pp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
$influxdb_database = $statsd::influxdb_database,
3333
$influxdb_username = $statsd::influxdb_username,
3434
$influxdb_password = $statsd::influxdb_password,
35+
$influxdb_version = $statsd::influxdb_version,
3536
$influxdb_flush = $statsd::influxdb_flush,
3637
$influxdb_proxy = $statsd::influxdb_proxy,
3738
$influxdb_proxy_suffix = $statsd::influxdb_proxy_suffix,
@@ -47,6 +48,7 @@
4748
$librato_includeMetrics = $statsd::librato_includeMetrics,
4849
$librato_excludeMetrics = $statsd::librato_excludeMetrics,
4950
$librato_globalPrefix = $statsd::librato_globalPrefix,
51+
$librato_alwaysSuffixPercentile = $statsd::librato_alwaysSuffixPercentile,
5052
$stackdriver_apiKey = $statsd::stackdriver_apiKey,
5153
$stackdriver_source = $statsd::stackdriver_source,
5254
$stackdriver_sourceFromPrefix = $statsd::stackdriver_sourceFromPrefix,

metadata.json

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,7 @@
1010
"source": "https://github.com/justindowning/puppet-statsd.git",
1111
"issues_url": "https://github.com/justindowning/puppet-statsd/issues",
1212
"dependencies": [
13-
{ "name": "puppetlabs/stdlib", "version_requirement": ">=4.1.0 <5.0.0" },
14-
{ "name": "stahnma/epel", "version_requirement": ">1.0.0 <2.0.0" }
13+
{ "name": "puppetlabs/stdlib", "version_requirement": ">=4.1.0 <5.0.0" }
1514
],
1615
"operatingsystem_support": [
1716
{
@@ -40,7 +39,7 @@
4039
}
4140
],
4241
"requirements": [
43-
{ "name": "pe", "version_requirement": "3.x" },
44-
{ "name": "puppet", "version_requirement": "3.x" }
42+
{ "name": "pe", "version_requirement": ">=3" },
43+
{ "name": "puppet", "version_requirement": ">=3" }
4544
]
4645
}

tests/vagrant/environment.conf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
environment_timeout=0

tests/vagrant/centos.pp renamed to tests/vagrant/manifests/site.pp

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
1-
class { 'epel': }->
2-
class { 'nodejs': }->
1+
case $operatingsystem {
2+
/^(Debian|Ubuntu)$/: { include apt }
3+
'RedHat', 'CentOS': { include epel }
4+
}
5+
6+
class { 'nodejs': manage_package_repo => true }->
37
class { 'statsd':
48
backends => [
59
'./backends/graphite',

tests/vagrant/ubuntu.pp

Lines changed: 0 additions & 14 deletions
This file was deleted.

0 commit comments

Comments
 (0)