Giter Site home page Giter Site logo

packer-graylog2's Introduction

packer-graylog2

This repo contains packer templates to build machine images with puppet for graylog2.

Preperation

You have to install the following software: packer librarian-puppet

wget https://dl.bintray.com/mitchellh/packer/0.6.1_linux_amd64.zip
sudo unzip -d /usr/local/packer 0.6.1_linux_amd64.zip
export PATH=$PATH:/usr/local/packer
sudo gem install librarian-puppet --no-ri --no-rdoc

Install required puppet modules:

cd puppet
librarian-puppet install

Usage

At the moment just the amazon-ebs builder is supported.

To build an amazon-ebs AMI run packer:

cd packer
packer build \
    -var 'aws_access_key=Lala' \
    -var 'aws_secret_key=Lulu' \
    -var 'aws_instance_type=m1.small' \
    aws-ebs-trusty-puppet.json

Now you have to wait! Packer will bake a fresh machine image for you. After that, create a new security group and allow following ports: tcp 80/443, udp 12201 Launch an EC2 instance with created AMI and security group.

Open your browser go to https://$PublicIP and login with admin/admin

See puppet/manifests/site.pp and https://github.com/synyx/puppet-graylog2 for custom configuration options.

Default values for aws-ebs-trusty-puppet.json:

packer inspect aws-ebs-trusty-puppet.json
Optional variables and their defaults:

  aws_access_key    = 
  aws_ami_name      = graylog2_trusty_x86_64-{{timestamp}}
  aws_instance_type = t1.micro
  aws_region        = eu-west-1
  aws_secret_key    = 
  aws_source_ami    = ami-41bf6c36
  ssh_username      = ubuntu

Builders:

  amazon-ebs

Provisioners:

  shell
  puppet-masterless

Note: If your build names contain user variables or template
functions such as 'timestamp', these are processed at build time,
and therefore only show in their raw form here.

License

packer-graylog2 is released under the MIT License. See the bundled LICENSE file for details.

packer-graylog2's People

Watchers

Joachim Arrasz avatar James Cloos avatar Maya Posch avatar Sascha Rüssel avatar Robin avatar  avatar Andreas Weigel avatar Arnold Franke avatar David Schilling avatar  avatar Pascal Ochs 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.