-
-
Save filler/1400413 to your computer and use it in GitHub Desktop.
Mccloud v0.11 - Vagrant for the cloud - Transcript
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
falcon-pdb patrick$ mkdir mccloud-test | |
falcon-pdb patrick$ cd mccloud-test | |
falcon-pdb:mccloud-test patrick$ gem install mccloud | |
Fetching: net-ssh-2.1.4.gem (100%) | |
Fetching: net-scp-1.0.4.gem (100%) | |
Fetching: builder-3.0.0.gem (100%) | |
Fetching: excon-0.6.1.gem (100%) | |
Fetching: formatador-0.1.3.gem (100%) | |
Fetching: json-1.5.1.gem (100%) | |
Building native extensions. This could take a while... | |
Fetching: mime-types-1.16.gem (100%) | |
Fetching: nokogiri-1.4.4.gem (100%) | |
Building native extensions. This could take a while... | |
Fetching: ruby-hmac-0.4.0.gem (100%) | |
Fetching: fog-0.7.2.gem (100%) | |
Fetching: Platform-0.4.0.gem (100%) | |
Fetching: open4-1.0.1.gem (100%) | |
Fetching: popen4-0.1.2.gem (100%) | |
Fetching: thor-0.14.6.gem (100%) | |
Fetching: highline-1.6.1.gem (100%) | |
Fetching: net-ssh-gateway-1.0.1.gem (100%) | |
Fetching: net-ssh-multi-1.1.gem (100%) | |
Fetching: mccloud-0.0.11.gem (100%) | |
Successfully installed net-ssh-2.1.4 | |
Successfully installed net-scp-1.0.4 | |
Successfully installed builder-3.0.0 | |
Successfully installed excon-0.6.1 | |
Successfully installed formatador-0.1.3 | |
Successfully installed json-1.5.1 | |
Successfully installed mime-types-1.16 | |
Successfully installed nokogiri-1.4.4 | |
Successfully installed ruby-hmac-0.4.0 | |
Successfully installed fog-0.7.2 | |
Successfully installed Platform-0.4.0 | |
Successfully installed open4-1.0.1 | |
Successfully installed popen4-0.1.2 | |
Successfully installed thor-0.14.6 | |
Successfully installed highline-1.6.1 | |
Successfully installed net-ssh-gateway-1.0.1 | |
Successfully installed net-ssh-multi-1.1 | |
Successfully installed mccloud-0.0.11 | |
18 gems installed | |
Installing ri documentation for net-ssh-2.1.4... | |
Installing ri documentation for net-scp-1.0.4... | |
Installing ri documentation for builder-3.0.0... | |
Installing ri documentation for excon-0.6.1... | |
Installing ri documentation for formatador-0.1.3... | |
Installing ri documentation for json-1.5.1... | |
Installing ri documentation for mime-types-1.16... | |
Installing ri documentation for nokogiri-1.4.4... | |
Installing ri documentation for ruby-hmac-0.4.0... | |
Installing ri documentation for fog-0.7.2... | |
Installing ri documentation for Platform-0.4.0... | |
Installing ri documentation for open4-1.0.1... | |
Installing ri documentation for popen4-0.1.2... | |
Installing ri documentation for thor-0.14.6... | |
Installing ri documentation for highline-1.6.1... | |
Installing ri documentation for net-ssh-gateway-1.0.1... | |
Installing ri documentation for net-ssh-multi-1.1... | |
Installing ri documentation for mccloud-0.0.11... | |
Installing RDoc documentation for net-ssh-2.1.4... | |
Installing RDoc documentation for net-scp-1.0.4... | |
Installing RDoc documentation for builder-3.0.0... | |
Installing RDoc documentation for excon-0.6.1... | |
Installing RDoc documentation for formatador-0.1.3... | |
Installing RDoc documentation for json-1.5.1... | |
Installing RDoc documentation for mime-types-1.16... | |
Installing RDoc documentation for nokogiri-1.4.4... | |
Installing RDoc documentation for ruby-hmac-0.4.0... | |
Installing RDoc documentation for fog-0.7.2... | |
Installing RDoc documentation for Platform-0.4.0... | |
Installing RDoc documentation for open4-1.0.1... | |
Installing RDoc documentation for popen4-0.1.2... | |
Installing RDoc documentation for thor-0.14.6... | |
Installing RDoc documentation for highline-1.6.1... | |
Installing RDoc documentation for net-ssh-gateway-1.0.1... | |
Installing RDoc documentation for net-ssh-multi-1.1... | |
Installing RDoc documentation for mccloud-0.0.11... | |
falcon-pdb:mccloud-test patrick$ mccloud init | |
******************************************************************************** | |
* Mccloud v0.0.11 - alpha - use at your own risk | |
- github : https://github.com/jedi4ever/mccloud | |
******************************************************************************** | |
Welcome to the Mccloud configurator: | |
Please provide credentials for provider [AWS]: | |
- aws_access_key_id: <provide your own> | |
- aws_secret_access_key: <provide your own> | |
The following snippet will be written to /Users/patrick/.fog | |
======== snippit start ===== | |
:default: | |
:aws_access_key_id: <provide your own> | |
:aws_secret_access_key: <provide your own> | |
======== snippit end ======= | |
Do you want to save this?: |yes| | |
Provide a name for the environment your are using (ex. development, test, demo) | |
Environment: |development| | |
If you share the same cloud provider account, you can specify an identity | |
to uniquely identify *your* servers (ex. firstname.lastname) | |
Leave blank if you want to work in a team | |
Identity: |patrick| | |
Provide an short name to identify your server (ex. web,db) | |
Servername: |web| | |
Suggested image Ids: | |
1) Ubuntu 10.10 - Maverick 64-bit (Canonical/EBS) - ami-cef405a7 | |
2) Ubuntu 10.10 - Maverick 32-bit (Canonical/EBS) - ami-ccf405a5 | |
3) Ubuntu 10.04 - Lucid 64-bit (Canonical/EBS) - ami-3202f25b | |
4) Ubuntu 10.04 - Lucid 32-bit (Canonical/EBS) - ami-3e02f257 | |
5) Centos 5.4 - 64-bit (Rightscale/EBS) - ami-4d42a924 | |
6) Centos 5.4 - 32-bit (Rightscale/EBS) - ami-2342a94a | |
7) Specify your own: | |
Select the Image Id (aka AMI-ID on EC2): |1| | |
Suggested bootstraps: | |
1) Ruby via standard .deb packages + rubygems from source + (chef,puppet) as gems | |
2) Ruby 1.8.7 via rvm + (chef,puppet) as gems | |
3) Empty bootstrap you can customize | |
Select the Image Id (aka AMI-ID on EC2): |1| | |
Copied bootstrap - bootstrap-ubuntu-system.sh to your current directory | |
Available zones: | |
1) us-east-1a - us-east-1 | |
2) us-east-1b - us-east-1 | |
3) us-east-1c - us-east-1 | |
4) us-east-1d - us-east-1 | |
5) eu-west-1a - eu-west-1 | |
6) eu-west-1b - eu-west-1 | |
Select the zone for your machine: |us-east-1b| | |
Available machine flavors: | |
1) Micro Instance - t1.micro - 2 cores | |
2) Large Instance - m1.large - 4 cores | |
3) Extra Large Instance - m1.xlarge - 8 cores | |
4) High-CPU Extra Large - c1.xlarge - 20 cores | |
5) High-Memory Extra Large - m2.xlarge - 6.5 cores | |
6) High Memory Double Extra Large - m2.2xlarge - 13 cores | |
7) High Memory Quadruple Extra Large - m2.4xlarge - 26 cores | |
8) Cluster Compute Quadruple Extra Large - cc1.4xlarge - 33.5 cores | |
9) Cluster GPU Quadruple Extra Large - cg1.4xlarge - 33.5 cores | |
Select the flavor for your machine: |1| | |
Available security groups: | |
1) [Create new] mccloud-development-patrick-securitygroup | |
2) default - default group | |
Select the security group for your machine: |1| | |
Authorizing access to port 22 | |
Available keypairs: | |
1) Use/Generate a new (mccloud) keypair (RSA) | |
2) Provide your own keypair (RSA) | |
Select a keypair: |1| | |
Please enter a name for your new key: |mccloud-key-patrick| | |
Created a new public key in /Users/patrick/.ssh/mccloud_rsa.pub | |
Created a new private key in /Users/patrick/.ssh/mccloud_rsa | |
I suggest you backup these later. | |
Updating your existing key mccloud-key-patrick with cloud provider | |
Registered mccloud-key-patrick with your cloud provider | |
Writing your config file Mccloudfile | |
falcon-pdb:mccloud-test patrick$ ls /Users/patrick/.ssh/mcc* | |
/Users/patrick/.ssh/mccloud_rsa /Users/patrick/.ssh/mccloud_rsa.pub | |
falcon-pdb:mccloud-test patrick$ cat Mccloudfile | |
Mccloud::Config.run do |config| | |
# All Mccloud configuration is done here. For a detailed explanation | |
# and listing of configuration options, please view the documentation | |
# online. | |
config.mccloud.prefix="mccloud" | |
config.mccloud.environment="development" | |
config.mccloud.identity="patrick" | |
config.vm.define "web" do |web_config| | |
web_config.vm.provider="AWS" | |
#web_config.vm.provisioner=:chef_solo | |
#web_config.vm.provisioner=:puppet | |
web_config.vm.provider_options={ | |
# ID = "ami-cef405a7" = Ubuntu 10.10 - Maverick 64-bit (Canonical/EBS) | |
:image_id => "ami-cef405a7" , | |
:flavor_id => "t1.micro", | |
:groups => %w(mccloud-development-patrick-securitygroup), | |
:key_name => "mccloud-key-patrick", | |
:availability_zone => "us-east-1b" | |
} | |
#Forward 80 remote to localport 8080 | |
web_config.vm.forward_port("http", 8080, 80) | |
web_config.vm.user="ubuntu" | |
web_config.vm.bootstrap="bootstrap-ubuntu-system.sh" | |
web_config.vm.private_key="/Users/patrick/.ssh/mccloud_rsa" | |
web_config.vm.public_key="/Users/patrick/.ssh/mccloud_rsa.pub" | |
end | |
### Provisioners | |
config.vm.provision :puppet do |puppet| | |
puppet.pp_path = "/tmp/vagrant-puppet" | |
#puppet.manifests_path = "puppet/manifests" | |
#puppet.module_path = "puppet/modules" | |
puppet.manifest_file = "newbox.pp" | |
end | |
config.vm.provision :chef_solo do |chef| | |
chef.cookbooks_path = ["<your cookboopath>"] | |
chef.add_recipe("<some recipe>") | |
# You may also specify custom JSON attributes: | |
chef.json.merge!({}) | |
end | |
end | |
falcon-pdb:mccloud-test patrick$ mccloud up | |
******************************************************************************** | |
* Mccloud v0.0.11 - alpha - use at your own risk | |
- github : https://github.com/jedi4ever/mccloud | |
******************************************************************************** | |
Spinning up a new machine called web | |
Waiting for the machine to become accessible | |
................ | |
Waiting for ssh to be come available | |
Ok, ssh is available , proceeding with bootstrap | |
bootstrap web | |
Uploading bootstrap code to machine web | |
Enabling the bootstrap code to run | |
Executing sudo sudo /tmp/bootstrap.sh | |
+ apt-get update | |
Hit http://us-east-1.ec2.archive.ubuntu.com maverick Release.gpg | |
Ign http://us-east-1.ec2.archive.ubuntu.com/ubuntu/ maverick/main Translation-en | |
Ign http://us-east-1.ec2.archive.ubuntu.com/ubuntu/ maverick/main Translation-en_US | |
Ign http://us-east-1.ec2.archive.ubuntu.com/ubuntu/ maverick/universe Translation-en | |
Ign http://us-east-1.ec2.archive.ubuntu.com/ubuntu/ maverick/universe Translation-en_US | |
Get:1 http://us-east-1.ec2.archive.ubuntu.com maverick-updates Release.gpg [198B] | |
Ign http://us-east-1.ec2.archive.ubuntu.com/ubuntu/ maverick-updates/main Translation-en | |
Ign http://us-east-1.ec2.archive.ubuntu.com/ubuntu/ maverick-updates/main Translation-en_US | |
Ign http://us-east-1.ec2.archive.ubuntu.com/ubuntu/ maverick-updates/universe Translation-en | |
Ign http://us-east-1.ec2.archive.ubuntu.com/ubuntu/ maverick-updates/universe Translation-en_US | |
Hit http://us-east-1.ec2.archive.ubuntu.com maverick Release | |
Get:2 http://us-east-1.ec2.archive.ubuntu.com maverick-updates Release [31.4kB] | |
Get:3 http://security.ubuntu.com maverick-security Release.gpg [198B] | |
Ign http://security.ubuntu.com/ubuntu/ maverick-security/main Translation-en | |
Ign http://security.ubuntu.com/ubuntu/ maverick-security/main Translation-en_US | |
Get:4 http://us-east-1.ec2.archive.ubuntu.com maverick/main Sources [829kB] | |
Ign http://security.ubuntu.com/ubuntu/ maverick-security/universe Translation-en | |
Ign http://security.ubuntu.com/ubuntu/ maverick-security/universe Translation-en_US | |
Get:5 http://security.ubuntu.com maverick-security Release [31.4kB] | |
Get:6 http://us-east-1.ec2.archive.ubuntu.com maverick/universe Sources [4,179kB] | |
Hit http://us-east-1.ec2.archive.ubuntu.com maverick/main amd64 Packages | |
Hit http://us-east-1.ec2.archive.ubuntu.com maverick/universe amd64 Packages | |
Get:7 http://us-east-1.ec2.archive.ubuntu.com maverick-updates/main Sources [96.9kB] | |
Get:8 http://us-east-1.ec2.archive.ubuntu.com maverick-updates/universe Sources [39.7kB] | |
Get:9 http://us-east-1.ec2.archive.ubuntu.com maverick-updates/main amd64 Packages [269kB] | |
Get:10 http://us-east-1.ec2.archive.ubuntu.com maverick-updates/universe amd64 Packages [113kB] | |
Get:11 http://security.ubuntu.com maverick-security/main Sources [35.6kB] | |
Get:12 http://security.ubuntu.com maverick-security/universe Sources [13.4kB] | |
Get:13 http://security.ubuntu.com maverick-security/main amd64 Packages [122kB] | |
Get:14 http://security.ubuntu.com maverick-security/universe amd64 Packages [54.9kB] | |
Fetched 5,816kB in 2s (2,774kB/s) | |
Reading package lists... | |
+ apt-get -y install ruby ruby-dev libopenssl-ruby rdoc ri irb build-essential wget ssl-cert | |
Reading package lists... | |
Building dependency tree... | |
Reading state information... | |
wget is already the newest version. | |
The following extra packages will be installed: | |
binutils dpkg-dev fakeroot g++ g++-4.4 gcc gcc-4.4 libalgorithm-diff-perl | |
libalgorithm-merge-perl libc-bin libc-dev-bin libc6 libc6-dev libdpkg-perl | |
libgomp1 libreadline5 libruby libruby1.8 libstdc++6-4.4-dev linux-libc-dev | |
manpages-dev ri1.8 ruby1.8 ruby1.8-dev | |
Suggested packages: | |
binutils-doc debian-keyring g++-multilib g++-4.4-multilib gcc-4.4-doc | |
libstdc++6-4.4-dbg gcc-multilib autoconf automake1.9 libtool flex bison gdb | |
gcc-doc gcc-4.4-multilib libmudflap0-4.4-dev gcc-4.4-locales libgcc1-dbg | |
libgomp1-dbg libmudflap0-dbg libcloog-ppl0 libppl-c2 libppl7 glibc-doc | |
libstdc++6-4.4-doc ruby1.8-examples openssl-blacklist | |
The following NEW packages will be installed: | |
binutils build-essential dpkg-dev fakeroot g++ g++-4.4 gcc gcc-4.4 | |
libalgorithm-diff-perl libalgorithm-merge-perl libc-dev-bin libc6-dev | |
libdpkg-perl libgomp1 libreadline5 libruby libruby1.8 libstdc++6-4.4-dev | |
linux-libc-dev manpages-dev ri ri1.8 ruby ruby-dev ruby1.8 ruby1.8-dev | |
ssl-cert | |
The following packages will be upgraded: | |
libc-bin libc6 | |
2 upgraded, 27 newly installed, 0 to remove and 56 not upgraded. | |
Need to get 28.6MB of archives. | |
After this operation, 117MB of additional disk space will be used. | |
Get:1 http://us-east-1.ec2.archive.ubuntu.com/ubuntu/ maverick-updates/main libc-bin amd64 2.12.1-0ubuntu10.2 [817kB] | |
Get:2 http://us-east-1.ec2.archive.ubuntu.com/ubuntu/ maverick-updates/main libc6 amd64 2.12.1-0ubuntu10.2 [4,397kB] | |
Get:3 http://us-east-1.ec2.archive.ubuntu.com/ubuntu/ maverick/main binutils amd64 2.20.51.20100908-0ubuntu2 [2,573kB] | |
Get:4 http://us-east-1.ec2.archive.ubuntu.com/ubuntu/ maverick-updates/main libc-dev-bin amd64 2.12.1-0ubuntu10.2 [227kB] | |
Get:5 http://us-east-1.ec2.archive.ubuntu.com/ubuntu/ maverick-updates/main linux-libc-dev amd64 2.6.35-1028.49 [835kB] | |
Get:6 http://us-east-1.ec2.archive.ubuntu.com/ubuntu/ maverick-updates/main libc6-dev amd64 2.12.1-0ubuntu10.2 [2,736kB] | |
Get:7 http://us-east-1.ec2.archive.ubuntu.com/ubuntu/ maverick/main libgomp1 amd64 4.5.1-7ubuntu2 [25.4kB] | |
Get:8 http://us-east-1.ec2.archive.ubuntu.com/ubuntu/ maverick/main gcc-4.4 amd64 4.4.4-14ubuntu5 [2,961kB] | |
Get:9 http://us-east-1.ec2.archive.ubuntu.com/ubuntu/ maverick/main gcc amd64 4:4.4.4-1ubuntu2 [5,070B] | |
Get:10 http://us-east-1.ec2.archive.ubuntu.com/ubuntu/ maverick/main libstdc++6-4.4-dev amd64 4.4.4-14ubuntu5 [1,563kB] | |
Get:11 http://us-east-1.ec2.archive.ubuntu.com/ubuntu/ maverick/main g++-4.4 amd64 4.4.4-14ubuntu5 [5,605kB] | |
Get:12 http://us-east-1.ec2.archive.ubuntu.com/ubuntu/ maverick/main g++ amd64 4:4.4.4-1ubuntu2 [1,448B] | |
Get:13 http://us-east-1.ec2.archive.ubuntu.com/ubuntu/ maverick-updates/main libdpkg-perl all 1.15.8.4ubuntu3.1 [505kB] | |
Get:14 http://us-east-1.ec2.archive.ubuntu.com/ubuntu/ maverick-updates/main dpkg-dev all 1.15.8.4ubuntu3.1 [772kB] | |
Get:15 http://us-east-1.ec2.archive.ubuntu.com/ubuntu/ maverick/main build-essential amd64 11.5 [7,228B] | |
Get:16 http://us-east-1.ec2.archive.ubuntu.com/ubuntu/ maverick/main fakeroot amd64 1.14.4-1ubuntu1 [101kB] | |
Get:17 http://us-east-1.ec2.archive.ubuntu.com/ubuntu/ maverick/main libalgorithm-diff-perl all 1.19.02-1 [51.3kB] | |
Get:18 http://us-east-1.ec2.archive.ubuntu.com/ubuntu/ maverick/main libalgorithm-merge-perl all 0.08-1 [13.0kB] | |
Get:19 http://us-east-1.ec2.archive.ubuntu.com/ubuntu/ maverick/main libreadline5 amd64 5.2-7build1 [147kB] | |
Get:20 http://us-east-1.ec2.archive.ubuntu.com/ubuntu/ maverick/main libruby1.8 amd64 1.8.7.299-2 [1,804kB] | |
Get:21 http://us-east-1.ec2.archive.ubuntu.com/ubuntu/ maverick/main libruby all 4.5 [5,720B] | |
Get:22 http://us-east-1.ec2.archive.ubuntu.com/ubuntu/ maverick/main manpages-dev all 3.24-1ubuntu1 [1,567kB] | |
Get:23 http://us-east-1.ec2.archive.ubuntu.com/ubuntu/ maverick/main ruby1.8 amd64 1.8.7.299-2 [32.3kB] | |
Get:24 http://us-east-1.ec2.archive.ubuntu.com/ubuntu/ maverick/universe ri1.8 all 1.8.7.299-2 [1,170kB] | |
Get:25 http://us-east-1.ec2.archive.ubuntu.com/ubuntu/ maverick/universe ri all 4.5 [5,584B] | |
Get:26 http://us-east-1.ec2.archive.ubuntu.com/ubuntu/ maverick/main ruby all 4.5 [21.8kB] | |
Get:27 http://us-east-1.ec2.archive.ubuntu.com/ubuntu/ maverick/main ruby1.8-dev amd64 1.8.7.299-2 [619kB] | |
Get:28 http://us-east-1.ec2.archive.ubuntu.com/ubuntu/ maverick/main ruby-dev all 4.5 [5,524B] | |
Get:29 http://us-east-1.ec2.archive.ubuntu.com/ubuntu/ maverick/main ssl-cert all 1.0.26 [14.5kB] | |
debconf: unable to initialize frontend: Dialog | |
debconf: (Dialog frontend will not work on a dumb terminal, an emacs shell buffer, or without a controlling terminal.) | |
debconf: falling back to frontend: Readline | |
debconf: unable to initialize frontend: Readline | |
debconf: (This frontend requires a controlling tty.) | |
debconf: falling back to frontend: Teletype | |
dpkg-preconfigure: unable to re-open stdin: | |
Fetched 28.6MB in 0s (29.7MB/s) | |
(Reading database ... 23308 files and directories currently installed.) | |
Preparing to replace libc-bin 2.12.1-0ubuntu10 (using .../libc-bin_2.12.1-0ubuntu10.2_amd64.deb) ... | |
Unpacking replacement libc-bin ... | |
Processing triggers for man-db ... | |
debconf: unable to initialize frontend: Dialog | |
debconf: (Dialog frontend will not work on a dumb terminal, an emacs shell buffer, or without a controlling terminal.) | |
debconf: falling back to frontend: Readline | |
debconf: unable to initialize frontend: Readline | |
debconf: (This frontend requires a controlling tty.) | |
debconf: falling back to frontend: Teletype | |
Setting up libc-bin (2.12.1-0ubuntu10.2) ... | |
(Reading database ... 23308 files and directories currently installed.) | |
Preparing to replace libc6 2.12.1-0ubuntu10 (using .../libc6_2.12.1-0ubuntu10.2_amd64.deb) ... | |
debconf: unable to initialize frontend: Dialog | |
debconf: (Dialog frontend will not work on a dumb terminal, an emacs shell buffer, or without a controlling terminal.) | |
debconf: falling back to frontend: Readline | |
debconf: unable to initialize frontend: Readline | |
debconf: (This frontend requires a controlling tty.) | |
debconf: falling back to frontend: Teletype | |
Unpacking replacement libc6 ... | |
Setting up libc6 (2.12.1-0ubuntu10.2) ... | |
debconf: unable to initialize frontend: Dialog | |
debconf: (Dialog frontend will not work on a dumb terminal, an emacs shell buffer, or without a controlling terminal.) | |
debconf: falling back to frontend: Readline | |
debconf: unable to initialize frontend: Readline | |
debconf: (This frontend requires a controlling tty.) | |
debconf: falling back to frontend: Teletype | |
Generating locales... | |
en_US.ISO-8859-1... done | |
en_US.UTF-8... done | |
Generation complete. | |
Processing triggers for libc-bin ... | |
ldconfig deferred processing now taking place | |
Selecting previously deselected package binutils. | |
(Reading database ... 23308 files and directories currently installed.) | |
Unpacking binutils (from .../binutils_2.20.51.20100908-0ubuntu2_amd64.deb) ... | |
Selecting previously deselected package libc-dev-bin. | |
Unpacking libc-dev-bin (from .../libc-dev-bin_2.12.1-0ubuntu10.2_amd64.deb) ... | |
Selecting previously deselected package linux-libc-dev. | |
Unpacking linux-libc-dev (from .../linux-libc-dev_2.6.35-1028.49_amd64.deb) ... | |
Selecting previously deselected package libc6-dev. | |
Unpacking libc6-dev (from .../libc6-dev_2.12.1-0ubuntu10.2_amd64.deb) ... | |
Selecting previously deselected package libgomp1. | |
Unpacking libgomp1 (from .../libgomp1_4.5.1-7ubuntu2_amd64.deb) ... | |
Selecting previously deselected package gcc-4.4. | |
Unpacking gcc-4.4 (from .../gcc-4.4_4.4.4-14ubuntu5_amd64.deb) ... | |
Selecting previously deselected package gcc. | |
Unpacking gcc (from .../gcc_4%3a4.4.4-1ubuntu2_amd64.deb) ... | |
Selecting previously deselected package libstdc++6-4.4-dev. | |
Unpacking libstdc++6-4.4-dev (from .../libstdc++6-4.4-dev_4.4.4-14ubuntu5_amd64.deb) ... | |
Selecting previously deselected package g++-4.4. | |
Unpacking g++-4.4 (from .../g++-4.4_4.4.4-14ubuntu5_amd64.deb) ... | |
Selecting previously deselected package g++. | |
Unpacking g++ (from .../g++_4%3a4.4.4-1ubuntu2_amd64.deb) ... | |
Selecting previously deselected package libdpkg-perl. | |
Unpacking libdpkg-perl (from .../libdpkg-perl_1.15.8.4ubuntu3.1_all.deb) ... | |
Selecting previously deselected package dpkg-dev. | |
Unpacking dpkg-dev (from .../dpkg-dev_1.15.8.4ubuntu3.1_all.deb) ... | |
Selecting previously deselected package build-essential. | |
Unpacking build-essential (from .../build-essential_11.5_amd64.deb) ... | |
Selecting previously deselected package fakeroot. | |
Unpacking fakeroot (from .../fakeroot_1.14.4-1ubuntu1_amd64.deb) ... | |
Selecting previously deselected package libalgorithm-diff-perl. | |
Unpacking libalgorithm-diff-perl (from .../libalgorithm-diff-perl_1.19.02-1_all.deb) ... | |
Selecting previously deselected package libalgorithm-merge-perl. | |
Unpacking libalgorithm-merge-perl (from .../libalgorithm-merge-perl_0.08-1_all.deb) ... | |
Selecting previously deselected package libreadline5. | |
Unpacking libreadline5 (from .../libreadline5_5.2-7build1_amd64.deb) ... | |
Selecting previously deselected package libruby1.8. | |
Unpacking libruby1.8 (from .../libruby1.8_1.8.7.299-2_amd64.deb) ... | |
Selecting previously deselected package libruby. | |
Unpacking libruby (from .../archives/libruby_4.5_all.deb) ... | |
Selecting previously deselected package manpages-dev. | |
Unpacking manpages-dev (from .../manpages-dev_3.24-1ubuntu1_all.deb) ... | |
Selecting previously deselected package ruby1.8. | |
Unpacking ruby1.8 (from .../ruby1.8_1.8.7.299-2_amd64.deb) ... | |
Selecting previously deselected package ri1.8. | |
Unpacking ri1.8 (from .../ri1.8_1.8.7.299-2_all.deb) ... | |
Selecting previously deselected package ri. | |
Unpacking ri (from .../apt/archives/ri_4.5_all.deb) ... | |
Selecting previously deselected package ruby. | |
Unpacking ruby (from .../apt/archives/ruby_4.5_all.deb) ... | |
Selecting previously deselected package ruby1.8-dev. | |
Unpacking ruby1.8-dev (from .../ruby1.8-dev_1.8.7.299-2_amd64.deb) ... | |
Selecting previously deselected package ruby-dev. | |
Unpacking ruby-dev (from .../archives/ruby-dev_4.5_all.deb) ... | |
Selecting previously deselected package ssl-cert. | |
Unpacking ssl-cert (from .../ssl-cert_1.0.26_all.deb) ... | |
Processing triggers for man-db ... | |
debconf: unable to initialize frontend: Dialog | |
debconf: (Dialog frontend will not work on a dumb terminal, an emacs shell buffer, or without a controlling terminal.) | |
debconf: falling back to frontend: Readline | |
debconf: unable to initialize frontend: Readline | |
debconf: (This frontend requires a controlling tty.) | |
debconf: falling back to frontend: Teletype | |
Setting up binutils (2.20.51.20100908-0ubuntu2) ... | |
Setting up libc-dev-bin (2.12.1-0ubuntu10.2) ... | |
Setting up linux-libc-dev (2.6.35-1028.49) ... | |
Setting up libc6-dev (2.12.1-0ubuntu10.2) ... | |
Setting up libgomp1 (4.5.1-7ubuntu2) ... | |
Setting up gcc-4.4 (4.4.4-14ubuntu5) ... | |
Setting up gcc (4:4.4.4-1ubuntu2) ... | |
Setting up libdpkg-perl (1.15.8.4ubuntu3.1) ... | |
Setting up dpkg-dev (1.15.8.4ubuntu3.1) ... | |
Setting up fakeroot (1.14.4-1ubuntu1) ... | |
update-alternatives: using /usr/bin/fakeroot-sysv to provide /usr/bin/fakeroot (fakeroot) in auto mode. | |
Setting up libalgorithm-diff-perl (1.19.02-1) ... | |
Setting up libalgorithm-merge-perl (0.08-1) ... | |
Setting up libreadline5 (5.2-7build1) ... | |
Setting up libruby1.8 (1.8.7.299-2) ... | |
Setting up libruby (4.5) ... | |
Setting up manpages-dev (3.24-1ubuntu1) ... | |
Setting up ruby1.8 (1.8.7.299-2) ... | |
Setting up ri1.8 (1.8.7.299-2) ... | |
Setting up ri (4.5) ... | |
Setting up ruby (4.5) ... | |
Setting up ruby1.8-dev (1.8.7.299-2) ... | |
Setting up ruby-dev (4.5) ... | |
Setting up ssl-cert (1.0.26) ... | |
debconf: unable to initialize frontend: Dialog | |
debconf: (Dialog frontend will not work on a dumb terminal, an emacs shell buffer, or without a controlling terminal.) | |
debconf: falling back to frontend: Readline | |
debconf: unable to initialize frontend: Readline | |
debconf: (This frontend requires a controlling tty.) | |
debconf: falling back to frontend: Teletype | |
Setting up libstdc++6-4.4-dev (4.4.4-14ubuntu5) ... | |
Setting up g++-4.4 (4.4.4-14ubuntu5) ... | |
Setting up g++ (4:4.4.4-1ubuntu2) ... | |
update-alternatives: using /usr/bin/g++ to provide /usr/bin/c++ (c++) in auto mode. | |
Setting up build-essential (11.5) ... | |
Processing triggers for libc-bin ... | |
ldconfig deferred processing now taking place | |
+ cd /tmp | |
+ test '!' -f rubygems-1.3.7 | |
+ wget http://production.cf.rubygems.org/rubygems/rubygems-1.3.7.tgz | |
--2011-04-08 13:12:30-- http://production.cf.rubygems.org/rubygems/rubygems-1.3.7.tgz | |
Resolving production.cf.rubygems.org... 216.137.33.206, 216.137.33.211, 216.137.33.217, ... | |
Connecting to production.cf.rubygems.org|216.137.33.206|:80... connected. | |
HTTP request sent, awaiting response... 200 OK | |
Length: 290986 (284K) [application/octet-stream] | |
Saving to: `rubygems-1.3.7.tgz' | |
0K .......... .......... .......... .......... .......... 17% 6.04M 0s | |
50K .......... .......... .......... .......... .......... 35% 16.5M 0s | |
100K .......... .......... .......... .......... .......... 52% 23.8M 0s | |
150K .......... .......... .......... .......... .......... 70% 19.6M 0s | |
200K .......... .......... .......... .......... .......... 87% 22.6M 0s | |
250K .......... .......... .......... .... 100% 9.19M=0.02s | |
2011-04-08 13:12:30 (13.0 MB/s) - `rubygems-1.3.7.tgz' saved [290986/290986] | |
+ test -f rubygems-1.3.7.tgz | |
+ tar zxf rubygems-1.3.7.tgz | |
+ cd rubygems-1.3.7 | |
+ ruby setup.rb --no-format-executable | |
RubyGems 1.3.7 installed | |
=== 1.3.7 / 2010-05-13 | |
NOTE: | |
http://rubygems.org is now the default source for downloading gems. | |
You may have sources set via ~/.gemrc, so you should replace | |
http://gems.rubyforge.org with http://rubygems.org | |
http://gems.rubyforge.org will continue to work for the forseeable future. | |
New features: | |
* `gem` commands | |
* `gem install` and `gem fetch` now report alternate platforms when a | |
matching one couldn't be found. | |
* `gem contents` --prefix is now the default as specified in --help. Bug | |
#27211 by Mamoru Tasaka. | |
* `gem fetch` can fetch of old versions again. Bug #27960 by Eric Hankins. | |
* `gem query` and friends output now lists platforms. Bug #27856 by Greg | |
Hazel. | |
* `gem server` now allows specification of multiple gem dirs for | |
documentation. Bug #27573 by Yuki Sonoda. | |
* `gem unpack` can unpack gems again. Bug #27872 by Timothy Jones. | |
* `gem unpack` now unpacks remote gems. | |
* --user-install is no longer the default. If you really liked it, see | |
Gem::ConfigFile to learn how to set it by default. (This change was made | |
in 1.3.6) | |
* RubyGems now has platform support for IronRuby. Patch #27951 by Will Green. | |
Bug fixes: | |
* Require rubygems/custom_require if --disable-gem was set. Bug #27700 by | |
Roger Pack. | |
* RubyGems now protects against exceptions being raised by plugins. | |
* rubygems/builder now requires user_interaction. Ruby Bug #1040 by Phillip | |
Toland. | |
* Gem::Dependency support #version_requirements= with a warning. Fix for old | |
Rails versions. Bug #27868 by Wei Jen Lu. | |
* Gem::PackageTask depends on the package dir like the other rake package | |
tasks so dependencies can be hooked up correctly. | |
------------------------------------------------------------------------------ | |
RubyGems installed the following executables: | |
/usr/bin/gem | |
+ gem install chef --no-ri --no-rdoc | |
Building native extensions. This could take a while... | |
Successfully installed mixlib-config-1.1.2 | |
Successfully installed mixlib-cli-1.2.0 | |
Successfully installed mixlib-log-1.3.0 | |
Successfully installed mixlib-authentication-1.1.4 | |
Successfully installed json-1.4.6 | |
Successfully installed extlib-0.9.15 | |
Successfully installed systemu-1.2.0 | |
Successfully installed ohai-0.5.8 | |
Successfully installed mime-types-1.16 | |
Successfully installed rest-client-1.6.1 | |
Successfully installed bunny-0.6.0 | |
Successfully installed erubis-2.7.0 | |
Successfully installed moneta-0.6.0 | |
Successfully installed highline-1.6.1 | |
Successfully installed uuidtools-2.1.2 | |
Successfully installed chef-0.9.14 | |
16 gems installed | |
+ gem install puppet --no-ri --no-rdoc | |
Successfully installed facter-1.5.8 | |
Successfully installed puppet-2.6.7 | |
2 gems installed | |
Successfully executed | |
falcon-pdb:mccloud-test patrick$ mccloud ssh | |
******************************************************************************** | |
* Mccloud v0.0.11 - alpha - use at your own risk | |
- github : https://github.com/jedi4ever/mccloud | |
******************************************************************************** | |
Executing - ssh -p 22 -o UserKnownHostsFile=/dev/null -t -o StrictHostKeyChecking=no -o IdentitiesOnly=yes -o VerifyHostKeyDNS=no -i /Users/patrick/.ssh/mccloud_rsa [email protected] "" | |
Warning: Permanently added '50.17.2.179' (RSA) to the list of known hosts. | |
Linux domU-12-31-39-09-9C-F1 2.6.35-24-virtual #42-Ubuntu SMP Thu Dec 2 05:15:26 UTC 2010 x86_64 GNU/Linux | |
Ubuntu 10.10 | |
Welcome to Ubuntu! | |
* Documentation: https://help.ubuntu.com/ | |
System information disabled due to load higher than 1 | |
--------------------------------------------------------------------- | |
At the moment, only the core of the system is installed. To tune the | |
system to your needs, you can choose to install one or more | |
predefined collections of software by running the following | |
command: | |
sudo tasksel --section server | |
--------------------------------------------------------------------- | |
Last login: Fri Apr 8 13:11:44 2011 from somewhere.here.be | |
ubuntu@domU-12-31-39-09-9C-F1:~$ uptime | |
13:13:07 up 1 min, 1 user, load average: 1.31, 0.77, 0.30 | |
ubuntu@domU-12-31-39-09-9C-F1:~$ exit | |
logout | |
Connection to 50.17.2.179 closed. | |
falcon-pdb:mccloud-test patrick$ mccloud status | |
******************************************************************************** | |
* Mccloud v0.0.11 - alpha - use at your own risk | |
- github : https://github.com/jedi4ever/mccloud | |
******************************************************************************** | |
Using Filter: mccloud - development - patrick | |
Name Instance Id IP Type Status | |
================================================================================ | |
web i-141b8a7b 50.17.2.179 Micro Instance running | |
falcon-pdb:mccloud-test patrick$ mccloud halt | |
******************************************************************************** | |
* Mccloud v0.0.11 - alpha - use at your own risk | |
- github : https://github.com/jedi4ever/mccloud | |
******************************************************************************** | |
Halting machine web(i-141b8a7b) | |
............ | |
falcon-pdb:mccloud-test patrick$ mccloud up | |
******************************************************************************** | |
* Mccloud v0.0.11 - alpha - use at your own risk | |
- github : https://github.com/jedi4ever/mccloud | |
******************************************************************************** | |
Booting up machine web | |
............. | |
falcon-pdb:mccloud-test patrick$ mccloud up | |
# Adding puppet as provider | |
falcon-pdb:mccloud-test patrick$ vi Mccloudfile | |
falcon-pdb:mccloud-test patrick$ cat Mccloudfile | |
Mccloud::Config.run do |config| | |
# All Mccloud configuration is done here. For a detailed explanation | |
# and listing of configuration options, please view the documentation | |
# online. | |
config.mccloud.prefix="mccloud" | |
config.mccloud.environment="development" | |
config.mccloud.identity="patrick" | |
config.vm.define "web" do |web_config| | |
web_config.vm.provider="AWS" | |
#web_config.vm.provisioner=:chef_solo | |
web_config.vm.provisioner=:puppet | |
web_config.vm.provider_options={ | |
# ID = "ami-cef405a7" = Ubuntu 10.10 - Maverick 64-bit (Canonical/EBS) | |
:image_id => "ami-cef405a7" , | |
:flavor_id => "t1.micro", | |
:groups => %w(mccloud-development-patrick-securitygroup), | |
:key_name => "mccloud-key-patrick", | |
:availability_zone => "us-east-1b" | |
} | |
#Forward 80 remote to localport 8080 | |
web_config.vm.forward_port("http", 8080, 80) | |
web_config.vm.user="ubuntu" | |
web_config.vm.bootstrap="bootstrap-ubuntu-system.sh" | |
web_config.vm.private_key="/Users/patrick/.ssh/mccloud_rsa" | |
web_config.vm.public_key="/Users/patrick/.ssh/mccloud_rsa.pub" | |
end | |
### Provisioners | |
config.vm.provision :puppet do |puppet| | |
puppet.pp_path = "/tmp/vagrant-puppet" | |
#puppet.manifests_path = "puppet/manifests" | |
#puppet.module_path = "puppet/modules" | |
puppet.manifest_file = "newbox.pp" | |
end | |
config.vm.provision :chef_solo do |chef| | |
chef.cookbooks_path = ["<your cookboopath>"] | |
chef.add_recipe("<some recipe>") | |
# You may also specify custom JSON attributes: | |
chef.json.merge!({}) | |
end | |
end | |
falcon-pdb:mccloud-test patrick$ cat <<EOF > newbox.pp | |
> package { "apache2": | |
> ensure => installed | |
> } | |
> EOF | |
#Let's provision | |
falcon-pdb:mccloud-test patrick$ mccloud provision | |
******************************************************************************** | |
* Mccloud v0.0.11 - alpha - use at your own risk | |
- github : https://github.com/jedi4ever/mccloud | |
******************************************************************************** | |
Starting provisioning on web with puppet as provisioner | |
Synching manifest newbox.pp | |
Running puppet | |
Executing command: sudo puppet /tmp/vagrant-puppet/manifest.pp | |
notice: /Stage[main]//Package[apache2]/ensure: ensure changed 'purged' to 'present' | |
notice: Finished catalog run in 7.36 seconds | |
# Let's re-provision | |
falcon-pdb:mccloud-test patrick$ mccloud provision | |
******************************************************************************** | |
* Mccloud v0.0.11 - alpha - use at your own risk | |
- github : https://github.com/jedi4ever/mccloud | |
******************************************************************************** | |
Starting provisioning on web with puppet as provisioner | |
Synching manifest newbox.pp | |
Running puppet | |
Executing command: sudo puppet /tmp/vagrant-puppet/manifest.pp | |
notice: Finished catalog run in 0.05 seconds | |
#Forward the ports | |
falcon-pdb:mccloud-test patrick$ mccloud server | |
******************************************************************************** | |
* Mccloud v0.0.11 - alpha - use at your own risk | |
- github : https://github.com/jedi4ever/mccloud | |
******************************************************************************** | |
Starting server mode | |
Forwarding remote port 80 from web to local port 8080 | |
^CYou've hit CTRL-C . Stopping server now | |
# And from another shell do a curl... | |
# Apache is running! | |
curl http://localhost:8080 | |
<html><body><h1>It works!</h1> | |
<p>This is the default web page for this server.</p> | |
<p>The web server software is running but no content has been added, yet.</p> | |
</body></html> | |
falcon-pdb:mccloud-test patrick$ mccloud destroy | |
******************************************************************************** | |
* Mccloud v0.0.11 - alpha - use at your own risk | |
- github : https://github.com/jedi4ever/mccloud | |
******************************************************************************** | |
Destroying machine web (i-141b8a7b) | |
.............. | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment