2013年5月15日水曜日

(とりあえず)Chef(Solo)やってみた

スズキです。

そろそろ、ある程度は理解しておかないと置いていかれそうなので...

ダウンロードは下記(本家)から可能です。ここではRHEL6(CentOS6)用を
使っていますが、いろいろなプラットホーム毎に用意されています。
Install Chef

インストール

# curl -L https://www.opscode.com/chef/install.sh | bash
...
Downloading Chef  for el...
...
Installing Chef 
警告: /tmp/tmp.wlXWdFaE/chef-.x86_64.rpm: ヘッダ V4 DSA/SHA1 Signature, key ID 83ef826a: NOKEY
準備中...                ################################# [100%]
   1:chef                   ################################# [100%]
Thank you for installing Chef!

Gitリポジトリの作成

# mkdir -p /var/chef/cookbooks
# cd /var/chef/cookbooks
# git init
Initialized empty Git repository in /var/chef/cookbooks/.git/

JSONファイルの用意

# cat localhost.json
{
    "run_list": [
        "apache2"
    ]
}
下記の"apache2"の"cookbook"を利用する想定です。
Opscode Community

コミット

# git add .
# git commit -m init
...
 create mode 100644 localhost.json
※"/var/chef/cookbooks"はGitリポジトリにしてコミットまでしてないと
下記がうまく行きませんでした...

"cookbook"のダウンロード?

# knife cookbook site vendor apache2
WARNING: No knife configuration file found
Installing apache2 to /var/chef/cookbooks
Checking out the master branch.
Creating pristine copy branch chef-vendor-apache2
Downloading apache2 from the cookbooks site at version 1.6.2 to /var/chef/cookbooks/apache2.tar.gz
Cookbook saved: /var/chef/cookbooks/apache2.tar.gz
Removing pre-existing version.
Uncompressing apache2 version 1.6.2.
removing downloaded tarball
1 files updated, committing changes
Creating tag cookbook-site-imported-apache2-1.6.2
Checking out the master branch.
Updating ec540d0..2dc8dcb
Fast-forward
...
 111 files changed, 5491 insertions(+), 0 deletions(-)
...
Cookbook apache2 version 1.6.2 successfully installed
上記の"Opscode Community"からダウンロード?しています。

適用?

# chef-solo -j localhost.json
...
上記で作成したJSONファイルを指定しています。

確認

# ps aux | grep http
root   2103 0.0 0.4 73352 2508 ? Ss 11:08 0:00 /usr/sbin/httpd
apache 2106 0.0 0.3 73352 1924 ? S  11:08 0:00 /usr/sbin/httpd
apache 2107 0.0 0.3 73352 1924 ? S  11:08 0:00 /usr/sbin/httpd
apache 2108 0.0 0.3 73352 1924 ? S  11:08 0:00 /usr/sbin/httpd
apache 2109 0.0 0.3 73352 1924 ? S  11:08 0:00 /usr/sbin/httpd
apache 2110 0.0 0.3 73352 1924 ? S  11:08 0:00 /usr/sbin/httpd
apache 2111 0.0 0.3 73352 1924 ? S  11:08 0:00 /usr/sbin/httpd
apache 2112 0.0 0.3 73352 1924 ? S  11:08 0:00 /usr/sbin/httpd
apache 2113 0.0 0.3 73352 1924 ? S  11:08 0:00 /usr/sbin/httpd
apache 2114 0.0 0.3 73352 1924 ? S  11:08 0:00 /usr/sbin/httpd
apache 2115 0.0 0.3 73352 1924 ? S  11:08 0:00 /usr/sbin/httpd
apache 2116 0.0 0.3 73352 1924 ? S  11:08 0:00 /usr/sbin/httpd
apache 2117 0.0 0.3 73352 1924 ? S  11:08 0:00 /usr/sbin/httpd
apache 2118 0.0 0.3 73352 1924 ? S  11:08 0:00 /usr/sbin/httpd
apache 2119 0.0 0.3 73352 1924 ? S  11:08 0:00 /usr/sbin/httpd
apache 2120 0.0 0.3 73352 1924 ? S  11:08 0:00 /usr/sbin/httpd
apache 2121 0.0 0.3 73352 1924 ? S  11:08 0:00 /usr/sbin/httpd
ちゃんと"httpd"まで立ち上がってました!

言葉(用語)の使い方に、まだ自身が持てない...
--------
http://www.suz-lab.com

12 コメント:

匿名 さんのコメント...

With havin so much content do you ever run into any problems of plagorism or copyright
violation? My site has a lot of exclusive content I've either written myself or outsourced but it looks like a lot of it is popping it up all over the web without my permission. Do you know any solutions to help prevent content from being ripped off? I'd really appreciate it.



Here is my weblog: http://testforcextremeblog.org/

匿名 さんのコメント...

7 Tips Hermes bags untroubled [b][url=http://japanprada.weebly.com/#252139]プラダ トートバッグ[/url][/b] to tag unadulterated [b][url=http://japanprada.weebly.com/#252138]プラダ バッグ 新作[/url][/b] and falseHermes satchel has a lock neaten up congruence, it is the start sort [b][url=http://japanprada.weebly.com/#252137]プラダ バッグ[/url][/b] English the dialect birth b deliver of letters "H". Such as printed with the the humanities [b][url=http://japanprada.weebly.com/#252133]プラダ バッグ メンズ[/url][/b] "H" in Hermes bags canvas handbag backside of the hold and button zipper at all.[b][url=http://bestshandbags.weebly.com/#252132]人気 財布 メンズ[/url][/b] The believe of the learning[b][url=http://japanpradas.weebly.com/#252143]プラダ 財布 レディース[/url][/b] "H" reticent to artisans in the weaving system at again, appointments to the complex mo = 'modus operandi' more high-priced penalty [b][url=http://japanprada.weebly.com/#252135]プラダ 財布 レディース[/url][/b] than constitution weaves and then hand-embroidered. Quick emulation of the formation drill go,[b][url=http://japanpradas.weebly.com/#252146]プラダ バッグ 新作[/url][/b] without doubt recognizable.Hermes bags canvas bags of noodles France urbane knitting techniques, weaving lines from two remodelled directions alternating blocks from,[b][url=http://japanprada.weebly.com/#252134]prada 財布[/url][/b] degree than uncommon marsh knitting method,[b][url=http://japanpradasale.weebly.com/#252153]メンズ 財布[/url][/b] which is high-priced Hermes toilet kit a person of the reasons, the deterrent Hermes attach?case is embroidered lines.

匿名 さんのコメント...

Can I simply say what a relief to discover a person that
genuinely knows what they are talking about online. You certainly
understand how to bring an issue to light and make
it important. A lot more people ought to read this and understand this side of
your story. It's surprising you're not more popular since
you certainly possess the gift.

Also visit my web-site - Buy dermal meds

匿名 さんのコメント...

7 Tips Hermes bags untroubled [b][url=http://japanprada.weebly.com/#252134]prada 財布[/url][/b] to own empathize with literal [b][url=http://japanpradasale.weebly.com/#252155]バッグ 人気[/url][/b] and falseHermes bag has a completely neaten up individuality, it is the primary [b][url=http://bestshandbags.weebly.com/#252132]人気 財布 メンズ[/url][/b] English the world of letters "H". Such as printed with the culture [b][url=http://japanpradas.weebly.com/#252144]プラダ アクセサリー[/url][/b] "H" in Hermes bags canvas handbag matrix opinion of the repress and button zipper at all.[b][url=http://japanpradasale.weebly.com/#252153]メンズ 財布[/url][/b] The manage of the epistle[b][url=http://japanpradas.weebly.com/#252145]プラダ バッグ[/url][/b] "H" alongside artisans in the weaving method at after godlike every so often, apposite to the complex procedure more expensive charge [b][url=http://japanpradas.weebly.com/#252147]プラダ トートバッグ[/url][/b] than construction weaves and then hand-embroidered. Turbulent impersonation of the creation proceeding,[b][url=http://japanpradas.weebly.com/#252147]プラダ トートバッグ[/url][/b] distrust recognizable.Hermes bags canvas bags of noodles France sophisticated knitting techniques, weaving lines from two distinguishable directions alternating blocks from,[b][url=http://japanprada.weebly.com/#252133]プラダ バッグ メンズ[/url][/b] melodic than conventional bog knitting method,[b][url=http://japanpradasale.weebly.com/#252155]バッグ 人気[/url][/b] which is valuable Hermes purse a identified with of the reasons, the bungalow Hermes suitcase is embroidered lines.

匿名 さんのコメント...

7 Tips Hermes bags guaranteed [b][url=http://japanprada.weebly.com/#252133]プラダ バッグ メンズ[/url][/b] to designate dutiful [b][url=http://japanprada.weebly.com/#252136]プラダ アクセサリー[/url][/b] and falseHermes evening bag has a fact clear individuality, it is the basic ready [b][url=http://japanpradas.weebly.com/#252142]prada 財布[/url][/b] English really "H". Such as printed with the the humanities [b][url=http://japanpradas.weebly.com/#252146]プラダ バッグ 新作[/url][/b] "H" in Hermes bags canvas handbag form analysis of the contend with with and button zipper at all.[b][url=http://japanpradas.weebly.com/#252145]プラダ バッグ[/url][/b] The call the tune of the epistle[b][url=http://japanprada.weebly.com/#252140]プラダ バッグ デニム[/url][/b] "H" alongside artisans in the weaving method at due to the fact that godlike occasionally, meet to the complex take care of more high-priced consequence [b][url=http://bestshandbags.weebly.com/#252127]バッグ 人気[/url][/b] than construction weaves and then hand-embroidered. Unjust impersonation of the manufacturing method,[b][url=http://japanpradasale.weebly.com/#252154]グッチ バッグ[/url][/b] conclusively recognizable.Hermes bags canvas bags of noodles France sophisticated knitting techniques, weaving lines from two new directions alternating blocks from,[b][url=http://japanpradas.weebly.com/#252149]財布 メンズ[/url][/b] more than hardened matt knitting method,[b][url=http://bestshandbags.weebly.com/#252129]リュック メンズ[/url][/b] which is priceless Hermes shopping ogress a established of the reasons, the hut Hermes suitcase is embroidered lines.

匿名 さんのコメント...

The State [url=http://oakley.amigasa.jp/#455227]http://oakley.amigasa.jp/[/url]
Non-exclusive Superintendence of Motionless Supervision, Inspection and Quarantine announced yesterday that the 2012 staying [url=http://sunglassesnew.aikotoba.jp/#455237]rayban wayfarer[/url]
optical linkage checks showed, sunglasses, eyeglass frames two types of products excellence mouthful pass status of 90.9% and 91.5%, respectively. Sunglasses products physical in the crucial [url=http://rayban.aikotoba.jp/#455232]レイバン ウェイファーラー[/url]
eminence problems are refulgent trend relationship, logos and other projects failed; paper frames opposite involved up with the biggest [url=http://sunglasses.amigasa.jp/#455216]http://sunglasses.amigasa.jp/[/url]
importance problems are inter-chip stiffness, airliner lens dimensions of the punch method, [url=http://sunglassesall.client.jp/#455218]人気サングラス[/url]
anti-sweat corrosion extinguished failed.The operation, a all-out of 261 glasses manufacturers and 507 in Beijing, Tianjin, Shanghai and other places eyewear allocation work carried entirely [url=http://sunglassesall.client.jp/#455217]サングラス ブランド[/url]
smudge checks. Involving 237 cinema (including commission processing) shaping [url=http://sunglassesnew.aikotoba.jp/#455234]サングラス ブランド[/url]
of 351 batches of sunglasses and 389 end follow (including the commission processing) pattern of 551 batches of specs frames products. [url=http://sunglasses.amigasa.jp/#455215]ブランドサングラス[/url]
Splodge checks start that a gross of 32 batches of substandard sunglasses, display frames a rude of 47 batches of substandard.
[url=http://sunglassesnew.aikotoba.jp/#455235]人気サングラス[/url]

匿名 さんのコメント...

Greеtings! This is my 1st commеnt hеrе so I
just wanted to give а quick shout out and tell уou
I trulу enjoy reading your articles. Can уou rеcommend any other blogs/wеbsіteѕ/forums that cover the ѕame subjects?
Mаny thankѕ!

Hеre is my blog рost breast enlargement

匿名 さんのコメント...

) as well aѕ the Noνa Ѕcotia (Supportіng & Indication,
Y Ѕimply & Capital T Ѕilicone, Ηy - POWΕR Comрuters,
Ϲommerсiаl Gear Company. The Vοlѵo lineup
of νеhіcles fοг 2007 has reacheԁ а
pinnacle of quality, innovatiοn, and safety not previouѕlу achieveԁ.
25% -30% of the body's energy comes from fat, so fat is essential.

My web page; skf Carb toroidal Roller bearings

匿名 さんのコメント...

Those who failed the qualitу оf the pгοԁuct, even if the prіce
were lower, no matter hοw gοoԁ аttitude dіd nоt dare to uѕe.
Other than ball bearings, ЅKF bearing gоods also incoгporate straіght-lіne beаringѕ, ѕlidіng bearіngs, ,
beaгіngѕ box, bаll and
rolleг scrеw, textile machinerу components, retaіneгs,
аnd numerouѕ preciѕion mechanical paгts.
Tаble 1 Selection of eleсtric power enterpгises to use the fіre
extinguisher.

Visit mу blog post - SKF Self-Aligning Ball Bearings

匿名 さんのコメント...

7 Tips Hermes bags untroubled プラダ アクセサリー to scratch faithful バッグ 人気 and falseHermes dispatch- has a lock acute psyche, it is the primary プラダ バッグ 新作 English urbanity "H". Such as printed with the the humanities プラダ バッグ 新作 "H" in Hermes bags canvas handbag backside of the hang on a last and button zipper at all.リュック レディース The conduct of the noteプラダ トートバッグ "H" not later than artisans in the weaving method at once, appropriate to the complex art more extravagant lead in バッグ 人気 than constitution weaves and then hand-embroidered. Turbulent impersonation of the genesis method,グッチ バッグ indisputably recognizable.Hermes bags canvas bags of noodles France urbane knitting techniques, weaving lines from two offbeat directions alternating blocks from,プラダ 財布 レディース melodic than habitual bog knitting method,リュック レディース which is high-priced Hermes shopping bag one-liner of the reasons, the darbies restriction Hermes satchel is embroidered lines.

匿名 さんのコメント...

The Serious [url=http://sunglasses.amigasa.jp/#455213]スポーツメガネ[/url]
Non-exclusive Regulation of High quality Supervision, Inspection and Quarantine announced yesterday that the 2012 popular [url=http://rayban.aikotoba.jp/#455231]http://rayban.aikotoba.jp/[/url]
optical linkage checks showed, sunglasses, eyeglass frames two types of products excellence representational pass moderator of 90.9% and 91.5%, respectively. Sunglasses products byzantine in the paramount [url=http://rayban.aikotoba.jp/#455232]レイバン ウェイファーラー[/url]
mark problems are bearable telling proportion, logos and other projects failed; wonder frames tangled the most urgent [url=http://sunglassesall.client.jp/#455221]rayban clubmaster[/url]
eminence problems are inter-chip stiffness, prone lens hugeness of the caddy method, [url=http://sunglassesnew.aikotoba.jp/#455237]rayban wayfarer[/url]
anti-sweat corrosion conjure up failed.The darbies, a all-out of 261 glasses manufacturers and 507 in Beijing, Tianjin, Shanghai and other places eyewear deployment order carried away [url=http://oakley.amigasa.jp/#455225]オークリー サングラス 激安[/url]
smudge checks. Involving 237 direction (including commission processing) large screen [url=http://sunglasses.amigasa.jp/#455212]サングラス 人気[/url]
of 351 batches of sunglasses and 389 producing (including the commission processing) shaping of 551 batches of laughing-stock frames products. [url=http://sunglasses.amigasa.jp/#455215]ブランドサングラス[/url]
Splodge checks radical that a take in of 32 batches of substandard sunglasses, unseeable frames a perfect of 47 batches of substandard.
[url=http://oakley.amigasa.jp/#455223]オークリー ゴルフ[/url]

匿名 さんのコメント...

Mаny remarκѕ shoωed
that the sweet аnԁ ѕοοthing aгοma can sіmply change a рersоn to a better moοd
by burning beeswaх cаndles. Remember, that it's not just about finding a good cleanser for your face - look for an effective body wash that washes away cleanly, especially if you have particularly hard water. You may feel like you are older than you are, but with treatments, you can still look younger.

Check out my webpage cosmetic tools