0.01
No commit activity in last 3 years
No release in over 3 years
A knife plugin for simple node creation automation
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

>= 0.10
 Project Readme

Knife Nodefu¶ ↑

Website

github.com/brianbianco/nodefu

DESCRIPTION:¶ ↑

A basic utility to help automate the creation and destruction of ec2 servers managed by chef.

INSTALLATION:¶ ↑

gem install knife-nodefu

Definitions File Directory¶ ↑

This file provides all the proper definitions for nodefu to be able to easily build out servers. You can either pass in the definitions file directory with the -d option, or set the following option in your knife.rb file.

NOTE: VPC Mode is enabled when setting a Private IP

LIMITATIONS:

  • Range is not supported when an Elastic IP or Private IP is set

  • VPC instances require an elastic_ip_address and server_connect_attribute to be set to: public_ip_address

  • VPC instances require group_ids, they don’t support generated groups or aux_groups

nodefu_definitions “Path to directory”

Example definitions yml file:

default:

domain: 'gf-svc.com'

vm_spec:
  m1.xlarge:
    ami: 'ami-00000000'
    region: 'us-east-1'
    az: 'us-east-1d'
    ssh_key: 'id_rsa'
    type: 'm1.xlarge'
    bootstrap: 'ubuntu10.10-gems'
    user: 'ubuntu'
node_spec:
  noodle:
    vm_spec: 'm1.large'
    run_list:
      - 'role[noodle]'
  vpc_noodle:
    vm_spec: 'm1.large'
    run_list:
      - 'role[noodle]'
    subnet_id: 'subnet-00000000'
    private_ip_address: ###.###.###.###
    elastic_ip_address: ###.###.###.###
    group_ids:
      - 'sg-00000000'
      - 'sg-00000000'
    server_connect_attribute: public_ip_address

env:

production:
staging:
  vm_spec:
    m1.large:
      ssh_key: 'other_key'
  node_spec:
    worker:
      aux_groups:
        - 'env_base_group1'

SUBCOMMANDS:¶ ↑

This plugin provides the following Knife subcommands. Specific command options can be found by invoking the subcommand with a –help flag

knife nodefu create¶ ↑

This command expects an argument in the format of <hostname>, <hostname><id> or <hostname> where id is an integer. It will automatically use the hostname as the node_spec unless you specify one with the -n option

options:

-n, –node_spec -y, –yes -d, –definitions_file

knife nodefu destroy¶ ↑

This command expects a regular expression which it will use to search the node names. It will then delete the client entry, node entry, and ec2 instances for those (of course not without confirmation unless you use -y)

options:

-y, –yes -c, –skip-clients -n, –skip-nodes -i, –skip-instances

LICENSE:¶ ↑

Author
Brian Bianco

(<brian.bianco@gmail.com>)

Author_Website

www.brianbianco.com

License

Apache License, Version 2.0

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.