Git Product home page Git Product logo

puppet-geoip's Introduction

Puppet Module geoip

Table of Contents

  1. Overview
  2. Module Description - What the module does and why it is useful
  3. Setup - The basics of getting started with geoip
  4. Usage - Configuration options and additional functionality
  5. Reference - An under-the-hood peek at what the module is doing and how
  6. Limitations - OS compatibility, etc.
  7. Development - Guide for contributing to the module

Overview

Manages Maxmind GeoIP database.

Module Description

Installs packages containing executables and libraries, and manages the database files.

Setup

What geoip affects

  • /etc/GeoIP.conf
  • packages relative to geoip
  • cron job to update databases

Beginning with geoip

Usage

Default

include ::geoip

Custom

class { '::geoip':
  autoupdate => false,
  userid => '1234567',
  licensekey => '1234567',
  productids => ['506', 'GeoLite2-City'],
  manage_defaultdb => true,
  defaultdb => 'GeoLite2-City'
}

Reference

Class geoip

Parameters

  • package_name string containing the name of the Service to manage. Defaults to OS specific value (see params.pp)
  • update_command string containing the name of the command to execute geoip updates. Defaults to OS specific value (see params.pp)
  • db_dir string containing the path to geoip's dbfile location. Defaults to OS specific value (see params.pp)
  • userid string containing maxmind customer id. Defaults to free account
  • licensekey string containing maxmind license id. Defaults to free lite license.
  • productids array containing list of databases to download
  • autoupdate boolean controlling wether cronjob should be installed to update geoip databases on a daily basis. Defaults to true
  • manage_defaultdb boolean controlling wether we should manage the API's default db. Defaults to false
  • defaultdb string containing the name of the default db. Defaults to GeoLiteCity

Class geoip::update

Manages the autoupdate process. Cureently implemented by a cronjob. No parameters yet.

Class geoip::defaultdb

Manages the default db file. Cureently implemented by a symlink. No parameters yet.

Limitations

Only tested on Debian 8 and Centos 7

Development

Testing

bundle install --path vendor/bundle
bundle exec rake spec

Issues

https://gitlab.in2p3.fr/cc-in2p3-puppet-service/geoip

puppet-geoip's People

Contributors

faxm0dem avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.