Skip to content

laboshinl/chef-openstack-icehouse

Repository files navigation

Jumpstart

Bootstrap script installs knife-solo, downloads necessary cookbooks from git and starts All-in-one installation process

  1. Install CentOS 6.4 minimal http://mirror.yandex.ru/centos/6.4/isos/x86_64/CentOS-6.4-x86_64-minimal.iso

    Note. LVM volume group is required for cinder. Use logical volumes during installation or create your own VG before processing

  2. Execute as root user

curl -s https://raw.github.com/laboshinl/openstack-havana-cookbook/master/bootstrap.sh | bash
  1. Reboot
  2. Change addreses in /root/floating-pool.sh and run it to create neutron external network
  3. All done! Go to http://ipaddress/dashboard login: admin password: mySuperSecret

Note. Swift will not work until you mount any disk at /srv/node/device.

mount /dev/your_disk /srv/node/device

chown swift.swift /srv/node/device

swift-init main restart

Don't forget to mount it in fstab.

centos_cloud Cookbook

This cookbook installs openstack "havana".

####Neutron:

  • vlan
  • openvswitch
  • namespaces

####Compute:

  • kvm

####Glance:

  • swift backend

####Cinder:

  • lvm driver

####Includes:

  • heat
  • ceilometer
  • swift

Requirements

OS

  • CentOS 6.4 minimal x86_64

Interfaces

  • At least one network interface on controller and nodes

LVM

  • Volume group for cinder

cookbooks

  • simple_iptables - centos_cloud needs simple_iptables to manage iptables.
  • libcloud - centos_cloud needs libcloud to use scp, manage ssh-keys, etc.
  • selinux - centos_cloud needs selinux to disable selinux.
  • tar - centos_cloud needs tar to manage tar.gz

databags

  • openstack
$ knife data bag show ssh_keypairs openstack
id : openstack
private_key: -----BEGIN RSA PRIVATE KEY----- ... -----END RSA PRIVATE KEY-----
public_key: ssh-rsa ... user@host

Attributes

Key Type Description Default
[:creds][:admin_password] string admin user password mySuperSecret
[:creds][:mysql_password] string mysql root user password r00tSqlPass
[:creds][:keystone_token] string keystone token c6c5de883bfd0ef30a71
[:creds][:swift_hash] string swift hash 12c51e21fc2824fff5c5
[:creds][:quantum_secret] string quantum shared secret c6c5de883bfd0ef30a71
[:creds][:ssh_keypair] string name of databag containing ssh-keypair openstack
[:ip][:controller] string compute node ipaddress node[:ipaddress]
[:ip][:qpid] string message broker ipaddress [:ip][:controller]
[:ip][:keystone] string identity service ipaddress [:ip][:controller]
[:ip][:swift] string objectstore service ipaddress [:ip][:controller]
[:ip][:glance] string image service ipaddress [:ip][:controller]
[:ip][:cinder] string block storage service ipaddress [:ip][:controller]
[:ip][:quantum] string network service ipaddress [:ip][:controller]
[:ip][:nova] string compute service ipaddress [:ip][:controller]
[:ip][:heat] string cloudformation service ipaddress [:ip][:controller]
[:ip][:ceilometer] string metric service ipaddress [:ip][:controller]

Usage

Just include centos-cloud in your node's run_list:

{
  "run_list": [
    "recipe[centos-cloud]"
  ]
}

http://[IPADDRESS]/dashboard
login: admin password: mySuperSecret

Add compute node

{
  "ip" : { 
    "controller": "IPADDRESS"
  },
  "run_list": [
    "recipe[centos-cloud::node]"
  ]
}

Contributing

  1. Fork the repository on Github
  2. Create a named feature branch (like add_component_x)
  3. Write you change
  4. Write tests for your change (if applicable)
  5. Run the tests, ensuring they all pass
  6. Submit a Pull Request using Github

License and Authors

Authors: Leonid Laboshin

About

openstack-icehouse

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published