Git Product home page Git Product logo

cfengine-3-by-example-vagrant's Introduction

CFEngine 3 by Example - Vagrant Project

A vagrant project to bootstrap a test enviornment.

This project will bring up a CFEngine hub and a remote agent.

  • cfhub - 10.1.1.10
  • cfclient - 10.1.1.11

Requirements

Quickstart

Want to get going as fast as possible?

git clone git://github.com/nickanderson/CFEngine-3-by-example-vagrant.git

# Dowload CFEngine 3.4.1 for Centos6 (i386)
cd packages
curl -O -J -L https://cfengine.com/inside/binarydownload/download/items/990

# Install the packages
cd ..
make
vagrant up 

Getting Started

  1. Run make - This will prepare seed.tar.gz. This seed policy is source from here. It also creates masterfiles.git in the Vagrant project directory which is a bare git repository of masterfiles from the seed. This repository is used as the "central repository". The hubs /var/cfengine/masterfiles is kept in a clean clone state from the repository. Changes to the policy are intended to be made by checking the changes into this repository. This is a typical workflow and is intended to familarize you with hands off administration.

  2. Run vagrant up and in a few minutes you will have a hub and a client bootstrapped.

  3. Clone the masterfiles.git repository so you can start writing policy!

    git clone masterfiles.git

Special Note

The CFEngine Provisioner plugin is still in active development, things may be changing. The version of the Vagrant CFEngine provisioner this Vagrantfile was tested against is deposited in the Vagrant project directory as part of make.

Windows Users

I have successfully tested this on windows. You need the vagrant msi package, virtualbox, and cygwin with tar, and git. wget and vim are also useful to have. You will need to the the git clone and make from a Cygwin shell and run vagrant.bat up instead of vagrant up.

You might try installing cygwin like this: setup.exe --quiet-mode --packages openssh, wget, tar, git

TODO

  • Excersises designed to get you used to working with CFEngine 3 for hands off administration.

cfengine-3-by-example-vagrant's People

Contributors

nickanderson avatar wunki avatar

Watchers

 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.