Agile DevOps - architecture, technical practices, and culture

Use Cloud and DevOps to build infrastructure by rapid agile iterative development using collaborative open source tools:
-chef cookbooks, puppet modules or ansible playbooks to build servers.
-Test Kitchen to deploy and test them.
-EC2Dream a graphic user interface that provides a 'single pane of glass' to do agile devops primarily on cloud servers.
-Cloud Formation or Terraform using cfndsl Ruby or Troposphere DSL for easy orchestration.
-Amazon AWS, Azure, Google Compute Engine, Softlayer, Openstack, Local and Hosted servers.

EC2Dream Installation

Pre-Requisites - Install Ruby

Install Ruby 2.x for your operating system as per Set Up a Sane Ruby Cookbook Authoring Environment for Chef on Mac OS X, Linux and Windows
(For windows install 32 bit version of Ruby and Ruby DevKit)

Vagrant

To use vagrant with Test Kitchen install:
Oracle Virtual Box
Vagrant

Windows

1. In a windows command line enter: gem install ec2dream

2. To run enter: ec2dream

Using EC2Dream and Puppet on Windows

Don't install Ruby 2.x and ec2dream as above INSTEAD:

1. Download and install puppet from the windows msi file from https://downloads.puppetlabs.com/windows/ (Use a 64 bit version).

2. Select "Start Command Prompt with Puppet" to go to a Command Window.

3. install the Ruby DevKit:
    a. Download and install devkit from http://rubyinstaller.org/downloads
         (Use a 64 bit version for ruby 2.0 and above)
    b. In the devkit directory run “ruby dk.rb init”.
    c. Edit the config.yml generated and add the the path of the ruby install for puppet
        (it will be <install dir of puppet>/sys/ruby).
    d. run “ruby dk.rb install” to bind it to the puppet ruby installation.

4. From the "Start Command Prompt with Puppet" not a normal Windows Command prompt:
    gem install librarian-puppet
    gem install ec2dream

6. ALWAYS run ec2dream from the "Start Command Prompt with Puppet" not a normal Windows Command prompt.

If you have problems installing Ruby DevKit on Windows

If you have problems installing try:
1. run “ruby dk.rb install --force”
2. prepen to Windows PATH Environment Variable:
    C:\devkit\bin;C:\devkit\mingw\bin
where c:\devkit is wher the Ruby devkit is unzipped to.

Using EC2Dream with chef berkshelf

To work with chef repositories with a Berks file berkshelf needs to be able to run on your workstation.
1. To do this on windows first install the Ruby DevKit.
2. Install berkshelf: gem install berkshelf -v 2.0.17

Mac OSX Yosemite

1. Install Ruby 2.0
Installing Ruby 2.0.0 With RVM And Homebrew

2. Install
brew tap homebrew/x11
brew install fox
brew install libxml2 libxslt
gem install fxruby
gem install ec2dream

3. Run by entering:
 ec2dream

Fedora 14 or newer

NOTE: The following was testing using vmware image from http://www.trendsigma.net/vmware/fedora14.html

1. Install packages
 sudo yum groupinfo "Development Tools"yum groupinfo "Development Tools"  sudo yum install -y libXrandr libXrandr-devel libXcursor-devel libpng-devel xterm

2. Add fox toolkit repository locations to yum if /etc/yum.repos.d//etc/yum.repos.d/ does not exist then:
 wget http://repos.fedorapeople.org/repos/gomix/fox/fedora-fox.repo
 edit fedora-fox.repo and change
 fedora-$releasever
to
 fedora-13
 because as time of writing no fedora 14 location
 copy fedora-fox.repo to /etc/yum.repos.d/ directory

3. Install Fox toolkit
 yum install -y fox fox-devel

4. If running GNOME install the terminator extension
 yum install -y terminator

5. Make sure in Ruby 2.0 or higher
 chruby ruby-2.0
 ruby -v

6.Install fxruby
 gem install fxruby

7. Install ec2dream
 gem install ec2dream

8. Run by entering:
 ec2dream

Ubuntu 12 or newer

NOTE: The following was testing using vmware image from http://www.trendsigma.net/vmware/ubuntu1204.html 

1. Install packages
 sudo apt-get install libXrandr-dev

2. Install fox toolkit.
 sudo apt-get install -y libfox-1.6-dev libfox-1.6-0

3. If running GNOME install the terminator extension
 sudo apt-get install -y terminator

4. Make sure in Ruby 2.0 or higher
 chruby ruby-2.0
 ruby -v

5. install fxruby
 gem install fxruby

6. Install ec2dream:
 gem install ec2dream

7. Run by entering:
 ec2dream

10 comments:

Anonymous said...

I'm getting the following error on FC12 after following the Fedora instructions:

[matt@matt-linux ElastDream] $ sh run.sh
/home/matt.gem/ruby/1.8/gems/FXRuby-1.6.20-x86-mingw32/lib/fox16.so: /home/matt/.gem/ruby/1.8/gems/FXRuby-1.6.20-x86-mingw32/lib/fox16.so: invalid ELF header - /home/matt/.gem/ruby/1.8/gems/FXRuby-1.6.20-x86-mingw32/lib/fox16.so (LoadError)
from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in `require`
from /home/matt/bin/ElastDream/system/EC2_Main.rb:4

Neill Turner said...
This comment has been removed by the author.
Neill Turner said...

Looks like a problem with the fox install. ELF header means fox16.so is corrupt or invalid.
On Fedora the Fox install is not in yum. Ubuntu is better as the fox install is in apt-get. To progress you need to say what Fox rpm you used. Did you install a 64 bit version on a 32 bit machine. To progress use issues http://code.google.com/p/ec2dream/issues/list rather than post in comments

Anonymous said...

Sorry, we're a 100% Fedora/CentOS shop, no Ubuntu. 32 bit desktop

Neill Turner said...

You could try using the fox install files from from http://sourceforge.net/projects/mingw-cross/files/

Anonymous said...
This comment has been removed by a blog administrator.
Anonymous said...
This comment has been removed by a blog administrator.
Neill said...

This means you have not install FXRuby

Rana said...

Please correct your Spet 7's command:
7. Finally install ec2dream gem:
sudo gem install ec2ream

It should be: sudo gem install ec2dream

Neill Turner said...

thanks it is corrected....

Post a Comment