2014年10月1日にクララオンラインで開催した Ansible 勉強会の資料です。 グローバルソリューション事業部 ソリューションビジネスグループ吉村 真輝
![Fabricでサーバー管理をDRYにしよう](https://cdn-ak-scissors.b.st-hatena.com/image/square/8bd1d14d651dbb1f31aa7e9979b893698b4a9633/height=288;version=1;width=512/https%3A%2F%2Fcdn.slidesharecdn.com%2Fss_thumbnails%2Ffabric-120901072606-phpapp01-thumbnail.jpg%3Fwidth%3D640%26height%3D640%26fit%3Dbounds)
2014年10月1日にクララオンラインで開催した Ansible 勉強会の資料です。 グローバルソリューション事業部 ソリューションビジネスグループ吉村 真輝
Fabric は指定したコマンドを各ホストで実行する実行モデルです。この場合は特にホストの指定がなかったので、全部ローカルで、一回実行することになります。 これは結構つまんないので、本当の例を見ましょう。これは最近、仕事で作ったコマンドです。 nginx サーバーでメンテ画面を出すようなコマンドです。 各ロードバランサーで実行します。 from fabric.api import run, cd, abort, require, sudo, env from fabric.decorators import runs_once, roles from fabric.contrib.console import confirm ... @roles('loadbalancers') def start_maintenance(): """ メンテナンス画面に切り替える """ _produc
Please note This documentation is for the stable (0.9) version of Fabric. To view documentation for the in-development (1.0) version, please click here. About¶ Fabric is a Python library and command-line tool for streamlining the use of SSH for application deployment or systems administration tasks. It provides a basic suite of operations for executing local or remote shell commands (normally or v
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く