Git Product home page Git Product logo

puppet-sandbox's Introduction

Metrics Setup Instructions

Introduction

This program is a multi-VM Vagrant-based Puppet development environment used for creating and testing new modules outside of your production environment. It will set up and configure following machines with customized settings.

  • puppet - the Puppet master server
  • influxdbSeed - the influxdb seed node
  • influxdbChild1 - influxdb client nodes
  • influxdbChild2 - influxdb client nodes
  • grafana - grafana + apache server
  • hekad - heka daemon

Initial Setup

Open Ports

The program will use following forward host ports so please be sure they are available when running the program.

  • 8142 for puppet master
  • 8003 for grafana
  • 8004 for influxdbSeed
  • 8005 for influxdbChild1
  • 8006 for influxdbChild2
  • 8007 for hekad

If any of these ports has special usage, you can always make changes in vagrantfile.

Default Value Setup

Please check settings in Vagrantfile, to see if the following variables are set as you expected.

environment: "dev" -- development environment

cluster_seed_servers: "influxdbSeed.example.com"

db_name: "test2" -- default database

Running with virtualbox, these machines are using following IP addresses and ports:

  • puppet - 172.16.32.10:8140
  • influxdbSeed - 172.16.32.11:8083
  • grafana - 172.16.32.12:80
  • influxdbChild1 - 172.16.32.13:8083
  • influxdbChild2 - 172.16.32.14:8083

For influxdb cluster, the default username and password are both root.

Environment Installation

To vagrant up your c3 boxes, please finish INSTALLATION to have correct environment setup. Note: for this project, your keypair should be named as metrics instead of vagrant.

Correct Activation Order

  • Puppet master (puppet) node must be activated before all other nodes.
  • influxdbSeed must be activated before child nodes (influxdbChild1, influxdbChild2).

Bring up your machines

You can easily bring up your machine by

$ . bin/metrics.sh

In the prompt, you can specify the provider of your machines: v -- virtualbox, o -- openstack.

If you are running with c3 instances, you need to set up cluster_seed_servers ($project_root/hieradata/env/dev/common) after you have influxdbSeed node up so that the client nodes can have a recognizable hostname to join.

Check Your Handiwork

To log on to the virtual machines and see the result of your applied Puppet modules, just use standard Vagrant Multi-VM Environment commands, and provide the proper VM name:

$ vagrant ssh influxdbSeed

See Visualized Result!

  1. Database cluster - you should be able to see all nodes of the cluster under cluster tab from any of the hosts in influxdb GUI. To access the GUI, you can go to $influxdb_seed_node_ip:8083, i.e. 172.16.32.11:8083 if you are running with virtualbox.

  2. Grafana - grafana is connected with influxdb seed node. You can see the visualization from $grafana_domain:$grafana_port, i.e.172.16.32.12 if you are running with virtualbox. Currently there should be nothing inside because the databases are newly created.

puppet-sandbox's People

Contributors

oliviazhang0809 avatar tianzhang0809 avatar

Watchers

 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.