Skip to content

Instantly share code, notes, and snippets.

@otiai10
Last active December 23, 2015 03:49
Show Gist options
  • Save otiai10/6576225 to your computer and use it in GitHub Desktop.
Save otiai10/6576225 to your computer and use it in GitHub Desktop.
# わたしとAnsible ~ only my ansible ~

only_my_ansible

thanks to!

目次

  1. アンシブル?アンジブル?
  2. What is Ansible?
  3. 自鯖での環境要件洗い出し
  4. Ansibleをローカルにインストール
  5. 自鯖で使ってみる
  6. 別自鯖で使ってみる
  7. GoogleComputeEngineで使えるか調べる
  8. GCEに向けてやってみる (ansibleとgcutilのcompetionとか大丈夫?)
  9. [GOAL] GCEで同じ構成のインスタンスを複数つくれる!

記録

アンシブル?アンジブル?

  • あん'し'ぶる、でした thanks, Brian

What is Ansible?

  • 本家repository https://github.com/ansible/ansible
    • Ansible is a radically simple IT orchestration engine that makes your applications and systems easier to deploy. Avoid writing scripts or custom code to deploy and update your applications— automate in a language that approaches plain English, using SSH, with no agents to install on remote systems. http://ansibleworks.com/

  • OK, understood nothing!
  • きのうのPyConセッションの資料
  • おとといのPyConセッションの資料
    • http://www.slideshare.net/TakeshiKomiya/python-26185953
    • この図が一番全体感をとらえやすい
    • table
    • 「べきとうせい」→ 結果が同じ事を保証 <-> 操作が同じ事を保証
    • Chef -> レシピ、 Ansible -> ◯◯ (こういう構成にしてくれ、という定義書)
    • FabricとかAnsibleは、管理対象にクライアントをインストールする必要がない?sshだから
    • sshだから、Chefと異なり色んな場面で使えるはず(ネットワークセットアップとか)
    • Puppetはオワコン by wakadannacom

自鯖での環境要件洗い出し

  • OS : Debian6.0.7 squeeze
    • hoge (すでにはいってるもんとして)
  • Lib : Tesseract-ocr https://code.google.com/p/tesseract-ocr/
    • installation : sudo apt-get install tesseract-ocr
  • Python : === 2.6.6
    • pip
      • installation : sudo easy_install pip
    • pyocr
      • installation : sudo pip install pyocr
    • Flask and its dependencies
      • installation : sudo pip install Flask

ansibleをローカルにインストール

記録

  • 最初Macに入れようと思ったんだけど、C compiler が無いって言われてまじくそシネ
  • VPS(Debian6.0.7squeeze) に入れました
[12:54:14] % pyenv local 2.7.5
[12:54:34] % pip install ansible
@shirou
Copy link

shirou commented Sep 16, 2013

ansibleではpycryptoという暗号化ライブラリを使っており、それのインストールにC Compilerが必要なのです。すいません。

@otiai10
Copy link
Author

otiai10 commented Sep 17, 2013

ありがとうございます! @shirou
MacもVPSも初期化してライブラリとかpyenvとか綺麗にして再アタックしたいと思います!( ゚Д゚)ゞ !!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment