Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: criteo-cookbooks/librenms
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 0.2.23
Choose a base ref
...
head repository: criteo-cookbooks/librenms
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref

Commits on Jul 23, 2018

  1. Fix on rrdcached service and mysql DB creation

     - rrdcached options need to be in a specific order
     - rrd path was wrong
     - username not taken into account on DB creation
    nicolasgrieco committed Jul 23, 2018
    Copy the full SHA
    d762a79 View commit details
  2. Copy the full SHA
    fb58628 View commit details

Commits on Aug 20, 2018

  1. Merge pull request #62 from criteo-cookbooks/quickfixes

    Fix on rrdcached service and mysql DB creation
    nicolasgrieco authored Aug 20, 2018
    Copy the full SHA
    da5277e View commit details

Commits on Dec 11, 2018

  1. update Chef files with code_generator

    Antoine Meillet committed Dec 11, 2018
    Copy the full SHA
    31bbac1 View commit details
  2. Add user apache to librenms group

    This is required by LibreNMS UI, for example when removing a device (so
    that Apache can clean up RRD files).
    Antoine Meillet committed Dec 11, 2018
    Copy the full SHA
    f139426 View commit details
  3. Bump installed version to 1.46

    Antoine Meillet committed Dec 11, 2018
    Copy the full SHA
    6678cc7 View commit details

Commits on Dec 12, 2018

  1. Merge pull request #64 from criteo-cookbooks/code_generator

    update Chef files with code_generator
    inetAnt authored Dec 12, 2018
    Copy the full SHA
    b6815c2 View commit details
  2. Copy the full SHA
    6b6e0f6 View commit details
  3. Copy the full SHA
    1faa752 View commit details
  4. Merge pull request #66 from criteo-cookbooks/apache_group

    Add user apache to librenms group
    inetAnt authored Dec 12, 2018
    Copy the full SHA
    0c3d6df View commit details
  5. Copy the full SHA
    979b3c6 View commit details
  6. Merge pull request #68 from criteo-cookbooks/bump_1.46

    Bump installed version to 1.46
    inetAnt authored Dec 12, 2018
    Copy the full SHA
    28b0114 View commit details

Commits on Dec 17, 2018

  1. Execute LibreNMS install commands as librenms user (#65)

    Running these commands as root prevents LibreNMS from doing operations
    on its own.
    inetAnt authored Dec 17, 2018
    Copy the full SHA
    0f3b622 View commit details
  2. Refactor LibreNMS directories creation (#67)

    - Correct rights for group (add the right to execute)
    - Loop on variables instead of copy-pasting code :)
    inetAnt authored Dec 17, 2018
    Copy the full SHA
    695b244 View commit details
  3. Release 0.2.24 (#69)

    - update Chef files with code_generator : we can now perform Kitchen
    tests
    - Add user apache to librenms group : helps for LibreNMS to perform
    operations such as removing RRDs when removing devices
    - Bump installed version to 1.46 : LibreNMS 1.46 is now installed by
    default
    - Execute LibreNMS install commands as librenms user
    - Refactor LibreNMS directories creation
    inetAnt authored Dec 17, 2018
    Copy the full SHA
    b2ea9ff View commit details

Commits on Aug 27, 2019

  1. Copy the full SHA
    43eee0c View commit details
  2. Copy the full SHA
    537ae14 View commit details
  3. Release 0.2.25

    Koaxiel committed Aug 27, 2019
    Copy the full SHA
    e0e27b8 View commit details
  4. Copy the full SHA
    2d6a976 View commit details

Commits on Feb 16, 2020

  1. Add MySQL attributes

    Allows to configure the MySQL wait_timeout and
    max_connect_errors variables
    Koaxiel committed Feb 16, 2020
    Copy the full SHA
    3573dce View commit details
  2. Release 0.2.26

    Koaxiel committed Feb 16, 2020
    Copy the full SHA
    65cbd21 View commit details

Commits on Feb 17, 2020

  1. Merge pull request #71 from criteo-cookbooks/0.2.26

    Release 0.2.26
    nicolasgrieco authored Feb 17, 2020
    Copy the full SHA
    2e9b2df View commit details

Commits on Feb 19, 2020

  1. fix mariadb template not having some vars

    added variables are:
    - max_connect_errors
    - wait_timeout
    Anthony Iheoma committed Feb 19, 2020
    Copy the full SHA
    bd702ad View commit details
  2. Merge pull request #72 from criteo-cookbooks/fix_mariadb_vars

    fix mariadb template not having some vars
    Anthony Iheoma authored Feb 19, 2020
    Copy the full SHA
    23ea13d View commit details

Commits on Mar 4, 2020

  1. Copy the full SHA
    b308515 View commit details
  2. Merge pull request #73 from criteo-cookbooks/fix_mariadb_wait_timeout

    raise mariadb wait_timeout to 600s
    Koaxiel authored Mar 4, 2020
    Copy the full SHA
    902da8c View commit details

Commits on Oct 23, 2020

  1. Copy the full SHA
    5f73cf8 View commit details

Commits on Oct 26, 2020

  1. Fix permissions

    kpetremann committed Oct 26, 2020
    Copy the full SHA
    2682cd8 View commit details

Commits on Oct 27, 2020

  1. Merge pull request #75 from kpetremann/master

    Fix permissions and missing dependency
    kpetremann authored Oct 27, 2020
    Copy the full SHA
    fb6944a View commit details

Commits on Oct 28, 2020

  1. Copy the full SHA
    38a034e View commit details

Commits on Oct 29, 2020

  1. Merge pull request #76 from kpetremann/master

    Install python packages via pypi
    kpetremann authored Oct 29, 2020
    Copy the full SHA
    9534ab3 View commit details

Commits on May 6, 2021

  1. Copy the full SHA
    4e4e25f View commit details
  2. Copy the full SHA
    9e00951 View commit details
  3. update metadata.rb

    Koaxiel committed May 6, 2021
    Copy the full SHA
    66c8a42 View commit details
  4. update travis.yml

    Koaxiel committed May 6, 2021
    Copy the full SHA
    8a2a304 View commit details
  5. Merge pull request #77 from criteo-cookbooks/add_customization_options

    Add customization options
    Koaxiel authored May 6, 2021
    Copy the full SHA
    46d9a43 View commit details
8 changes: 0 additions & 8 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -16,11 +16,3 @@ bin/*
.kitchen.local.yml

.cookbook_version
.gitignore
.RETRYABLE_KITCHEN_TASK
.env
.kitchen.ec2.yml
.kitchen.yml
bundler/
cache/

42 changes: 42 additions & 0 deletions .kitchen.ec2.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
---
# The following environment variables are required:
# - AWS_ACCESS_KEY_ID
# - AWS_SECRET_ACCESS_KEY
# - AWS_SSH_KEY_ID
# - AWS_REGION
#
# Optional environment variables:
# - AWS_SECURITY_GROUP
# - AWS_SUBNET
# - KITCHEN_NO_CONCURRENCY set it to true if you do not want concurrency

driver:
name: ec2
instance_type: t2.micro
associate_public_ip: true
iam_profile_name: test-kitchen
region: <%= ENV['AWS_REGION'] || 'us-west-2' %>
tags:
created-by: <%= ENV['AWS_SSH_KEY_ID'] %>
subnet_filter:
tag: 'Name'
value: <%= ENV['AWS_SUBNET'] || 'chef-testing-opensource-vpc-subnet' %>
security_group_filter:
tag: 'Name'
value: <%= ENV['AWS_SECURITY_GROUP'] || 'chef-testing-opensource-vpc-security-group' %>
block_device_mappings:
- device_name: /dev/sda1
ebs:
volume_type: gp2
delete_on_termination: true

transport:
ssh_key: <%= ENV['HOME'] %>/.ssh/id_rsa

platforms:
- name: centos-7
driver:
image_id: ami-d2c924b2

suites:
<%= require 'erubis'; Erubis::Eruby.new(File.read('.kitchen_suites.yml')).evaluate %>
6 changes: 4 additions & 2 deletions .rubocop.yml
Original file line number Diff line number Diff line change
@@ -4,7 +4,7 @@
# - submit the change in the code_generator

AllCops:
TargetRubyVersion: 2.3
TargetRubyVersion: 2.4


# This requires to alphabetically sort Gem's requirements
@@ -23,7 +23,9 @@ Metrics/LineLength:
# Based on data from http://sideeffect.kr/popularconvention#ruby
#
### Comma after each line in a list
Style/TrailingCommaInLiteral:
Style/TrailingCommaInArrayLiteral:
EnforcedStyleForMultiline: comma
Style/TrailingCommaInHashLiteral:
EnforcedStyleForMultiline: comma
# It is very common to add key/value pairs to hashes in Chef attributes. Making
# sure each line has a comma diminishes the chance of someone making an error
3 changes: 1 addition & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
language: ruby
cache: bundler
rvm:
- 2.3.2
- 2.4.0
deploy:
skip_cleanup: true
edge: true
edge:
source: criteo-forks/dpl
branch: chef_ruby2
Binary file added .travis/travis-ci.pem.enc
Binary file not shown.
2 changes: 2 additions & 0 deletions Berksfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
source 'https://supermarket.chef.io'


cookbook 'kitchen-ohai' # required for ec2

metadata
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
@@ -18,4 +18,4 @@ group :ec2 do
end

# Other gems should go after this comment
gem 'rubocop', '=0.51.0'
gem 'rubocop', '=0.61.1'
19 changes: 17 additions & 2 deletions attributes/default.rb
Original file line number Diff line number Diff line change
@@ -4,6 +4,9 @@
default['mariadb']['user_librenms']['password'] = 'default'
default['mariadb']['bind_address'] = '127.0.0.1'
default['mariadb']['max_connections'] = 302
default['mariadb']['max_connect_errors'] = 1000
default['mariadb']['wait_timeout'] = 600
default['mariadb']['datadir'] = '/var/lib/mysql'

default['librenms']['root_dir'] = '/var/opt'
default['librenms']['path'] = ::File.join(node['librenms']['root_dir'], 'librenms')
@@ -49,10 +52,13 @@
default['librenms']['repo_opennms']['gpgkey'] = 'https://yum.opennms.org/OPENNMS-GPG-KEY'
default['yum']['epel']['enabled'] = true

# package option
default['librenms']['package']['default_action'] = :install

# downloading librenms
default['librenms']['install']['url'] = 'https://github.com/librenms/librenms/archive/'
default['librenms']['install']['version'] = '1.35'
default['librenms']['install']['checksum'] = '72019d9b58b145b617b1e9bfe7f39bd01c9fe5c254e561ef0c80b0a3eb56ac3f'
default['librenms']['install']['version'] = '1.46'
default['librenms']['install']['checksum'] = '0583bf4ccca54f65ed9287d1848d4bfc3f8343e9311907dcfe46932932e6b704'
# override this with the proper archive checksum if you install a
# specific version and care about checksums.
default['librenms']['install']['checksum'] = nil
@@ -94,6 +100,7 @@
default['librenms']['rrdcached']['enabled'] = false
default['librenms']['rrdcached']['config_file'] = '/etc/sysconfig/rrdcached'
default['librenms']['rrdcached']['options'] = '-w 1800 -z 1800 -f 3600 -B -R -j /var/tmp -l unix:/var/run/rrdcached/rrdcached.sock -t 4 -F'
default['librenms']['rrdcached']['binary_path'] = '/usr/bin/rrdcached'

# autodiscover switches
default['librenms']['autodiscover']['xdp'] = false
@@ -128,3 +135,11 @@

# Syslog
default['librenms']['syslog']['enabled'] = false

# Cleanup options
default['librenms']['syslog_purge'] = 30
default['librenms']['eventlog_purge'] = 30
default['librenms']['authlog_purge'] = 30
default['librenms']['device_perf_purge'] = 7
default['librenms']['rrd_purge'] = false
default['librenms']['ports_purge'] = false
33 changes: 17 additions & 16 deletions metadata.rb
Original file line number Diff line number Diff line change
@@ -1,17 +1,18 @@
name 'librenms'
maintainer 'Criteo'
name 'librenms'
maintainer 'Criteo'
maintainer_email 'use_github_issues@criteo.com'
license 'Apache-2.0'
description 'Installs/Configures librenms'
long_description IO.read(File.join(File.dirname(__FILE__), 'README.md'))
version '0.2.23'
supports 'centos7'

source_url 'https://github.com/criteo-cookbooks/librenms' if respond_to?(:source_url)
issues_url 'https://github.com/criteo-cookbooks/librenms/issues' if respond_to?(:issues_url)

depends 'apache2'
depends 'logrotate'
depends 'yum-epel'
depends 'ark'
chef_version '>= 12.5' if respond_to?(:chef_version)
license 'Apache-2.0'
description 'Installs/Configures librenms'
long_description 'This cookbook installs and configure LibreNMS along with the required components (Apache and MySQL). LibreNMS is an autodiscovering PHP/MySQL-based network monitoring system.'
issues_url 'https://github.com/criteo-cookbooks/librenms/issues'
source_url 'https://github.com/criteo-cookbooks/librenms'
version '0.2.29'
chef_version '>= 12.14.34'
supports 'centos7'
supports 'centos'
depends 'apache2'
depends 'logrotate'
depends 'yum-epel'
depends 'ark'
depends 'facl'
depends 'poise-python'
Loading