Version information
released Dec 6th 2017
This version is compatible with:
- Puppet Enterprise 2018.1.x, 2017.3.x, 2017.2.x, 2017.1.x, 2016.5.x, 2016.4.x
- Puppet >=4.0.0 < 6.0.0
Start using this module
Add this module to your Puppetfile:
mod 'roshan-ruby', '2.4.0'
Learn more about managing modules with a PuppetfileDocumentation
roshan/ruby — version 2.4.0 Dec 6th 2017
Ruby version 2.4.0
Sensu Version | Recommended Puppet Module Version |
---|---|
>= 0.26.0 | latest |
0.22.x - 0.25.x | 2.1.0 |
0.20.x - 0.21.x | 2.0.0 |
0.17.x - 0.19.x | 1.5.5 |
Upgrade note
Versions prior to 1.0.0 are incompatible with previous versions of the Sensu-Puppet module.
Installation
###include in site.pp
node 'example.com' {
file { '/opt/install-ruby.sh':
path => '/opt/install-ruby.sh',
ensure => file,
source => ['puppet:///modules/ruby/install-ruby.sh'],
mode => '0755',
owner => 'root',
group => 'root',
}
exec { 'ruby_install':
command => '/opt/install-ruby.sh',
user => 'root',
}
file { '/etc/yum.repos.d/sensu.repo':
path => '/etc/yum.repos.d/sensu.repo',
ensure => file,
source => ['puppet:///modules/ruby/sensu.repo'],
mode => '0755',
owner => 'root',
group => 'root',
}
}
Rubygem:
sudo gem install json
Debian & Ubuntu:
sudo apt-get install ruby-json
Quick start
Before this Puppet module can be used, the following items must be configured on the server.
- Install Redis
- Install RabbitMQ
Dependencies
- puppetlabs/stdlib (>=4.16.0 <5.0.0)