Giter VIP home page Giter VIP logo

puppet-cobbler's Introduction

Puppet module for managing Cobbler

Fork of https://bitbucket.org/jsosic/puppet-cobbler

puppet-cobbler is a Puppet module used to deploy and manage Cobbler installation(s).

Cobbler is a Linux installation server that allows for rapid setup of network installation environments. It glues together and automates many associated Linux tasks so you do not have to hop between lots of various commands and applications when rolling out new systems, and, in some cases, changing existing ones.

Puppet is an open source configuration management tool written in Ruby.

Requirements

currently this module supports:

Centos 6 / 7
Puppet >= 3.1.1  
Ruby   >= 1.8.7  

Basic usage

To install Cobbler:

include cobbler

To add cobbler web management:

include cobbler::web

Distros, repos, profiles and systems

You can easily add distros to your Cobbler installation just by specifying download link of ISO image and distro name:

cobbler::add_distro { 'CentOS-6.3-x86_64':
  arch    => 'x86_64',
  isolink => 'http://mi.mirror.garr.it/mirrors/CentOS/6.3/isos/x86_64/CentOS-6.3-x86_64-bin-DVD1.iso',
}

Repos example:

cobblerrepo { 'PuppetLabs-6-x86_64-deps':
  ensure         => present,
  arch           => 'x86_64',
  mirror         => 'http://yum.puppetlabs.com/el/6/dependencies/x86_64',
  mirror_locally => false,
  priority       => 99,
  require        => [ Service[$cobbler::service_name], Service[$cobbler::apache_service] ],
}

Profile example:

cobblerprofile { 'CentOS-6.3-x86_64':
  ensure      => present,
  distro      => 'CentOS-6.3-x86_64',
  nameservers => $cobbler::nameservers,
  repos       => ['PuppetLabs-6-x86_64-deps', 'PuppetLabs-6-x86_64-products' ],
  kickstart   => '/somepath/kickstarts/CentOS-6.3-x86_64-static.ks',
}

And finally, system:

cobblersystem { 'somehost':
  ensure     => present,
  profile    => 'CentOS-6.3-x86_64',
  interfaces => { 'eth0' => {
                    mac_address      => 'AA:BB:CC:DD:EE:F0',
                    interface_type   => 'bond_slave',
                    interface_master => 'bond0',
                    static           => true,
                    management       => true,
                  },
                  'eth1' => {
                    mac_address      => 'AA:BB:CC:DD:EE:F1',
                    interface_type   => 'bond_slave',
                    interface_master => 'bond0',
                    static           => true,
                  },
                  'bond0' => {
                    ip_address     => '192.168.1.210',
                    netmask        => '255.255.255.0',
                    static         => true,
                    interface_type => 'bond',
                    bonding_opts   => 'miimon=300 mode=1 primary=em1',
                  },
  },
  netboot    => true,
  gateway    => '192.168.1.1',
  hostname   => 'somehost.example.com',
  require    => Service[$cobbler::service_name],
}

Dependencies

Some functionality is dependent on other modules:

Notes

Contributors

  • currently none

Copyright and License

Copyright (C) 2012 Jakov Sosic [email protected]

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

puppet-cobbler's People

Contributors

sebastiansucker avatar wleese avatar jsosic 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.