Chef-solo-2

  • Category: 電腦相關
  • Last Updated: Wednesday, 22 April 2015 16:28
  • Published: Thursday, 26 March 2015 15:41
  • Written by sam

安裝一下,操作chef的利器Knife-Solo

一切重新開始,下了新的IMAGE

開機後,連入

先從安裝RUBY開始(記得要2.0最少)

所以需要手動一下

sudo apt-get -y update
sudo apt-get -y install build-essential zlib1g-dev libssl-dev libreadline6-dev libyaml-dev
cd /tmp
wget http://cache.ruby-lang.org/pub/ruby/2.0/ruby-2.0.0-p481.tar.gz
tar -xvzf ruby-2.0.0-p481.tar.gz
cd ruby-2.0.0-p481/
./configure --prefix=/usr/local
make && sudo make install

check version

ruby -v
ruby 2.0.0p481 (2014-05-08 revision 45883) [x86_64-linux]

 

Read more: Chef-solo-2

Chef-solo

  • Category: 電腦相關
  • Last Updated: Monday, 30 March 2015 11:53
  • Published: Tuesday, 24 March 2015 16:35
  • Written by sam

Chef install

虛擬機的部份用vagrant這套要搭virtualbox一起使用

先下載母機https://www.virtualbox.org/

再來是軟體https://www.vagrantup.com/downloads.html

上述兩樣都好了,請打開CMD,然後打字

$ vagrant box add {title} {url}

 photo 2015-03-24_145937_zpsq9jkjo27.jpg

再來就是好心人作好的IMAGE了,選自己熟手的下載

http://www.vagrantbox.es/

Read more: Chef-solo

s3 mount to linux or use chef

  • Category: 電腦相關
  • Last Updated: Monday, 01 June 2015 12:04
  • Published: Friday, 13 March 2015 10:56
  • Written by sam

latest code at https://github.com/s0m1in/0528.git 新增chef solo 安裝s3fs fuse mount to dir 

將遠端的AMAZON S3掛載到本機

目前用的系統是UBUNTU,先安裝最基本的套件

apt-get install build-essential libfuse-dev libcurl4-openssl-dev libxml2-dev mime-support automake libtool

再來至

http://sourceforge.net/projects/fuse/files/fuse-2.X/2.9.3/

下載新版本的FUSE回來安裝

以下是大致流程,版號及目錄視您的現況變更

tar xzf XXX.tar.gz
cd XXX
./configure --prefix=/usr/local
make && make install

再來是下載S3FS套件

https://github.com/s3fs-fuse/s3fs-fuse/releases

tar xzf xxxxx.tar.gz
cd XXXX
./autogen.sh
./configure --prefix=/usr/local
make && make install

可以使用新版本的,v1.77.tar.gz (舊版會有現有目錄無法顯示)

Read more: s3 mount to linux or use chef