タグ

2020年1月12日のブックマーク (3件)

  • コンテナ技術の学習するなら圧倒的にKatacodaがおすすめ #k8s #kubernetes - My External Storage

    https://www.katacoda.com/ Katacodaはコンテナ技術に強い無料の学習サイトだ。 ブラウザさえあれば簡単にKubernetesなどを動かせるので、とりあえず触ってみたい人におすすめしたい。 TL;DR katacodaは無料で利用できる学習サイト コンテナ周辺技術をブラウザオンリーで動かしながら学習することができる とりあえず触ってみたい人におすすめ チュートリアルのUIが良くてタイポも気にせずに学習できる 各言語、ツールのPlaygroudも豊富 技術背景や概論については別でキャッチアップが必要 Katacodaは無料で利用できる学習サイト Katacodaはブラウザ上で利用できるeラーニングサイトだ。 利用は無料で自分で新しい学習コースを作成することもできる。 https://www.katacoda.com/ 登録をしなくても利用できるが、進捗などを記録し

    tvsk
    tvsk 2020/01/12
    Katacoda ... サーバサイドインフラに特化したサンドボックス
  • Python API — Ansible Documentation

    Note This API is intended for internal Ansible use. Ansible may make changes to this API at any time that could break backward compatibility with older versions of the API. Because of this, external use is not supported by Ansible. If you want to use Python API only for executing playbooks or modules, consider ansible-runner first. There are several ways to use Ansible from an API perspective. You

    tvsk
    tvsk 2020/01/12
    "Because Ansible relies on forking processes, this API is not thread safe."
  • ansible-playbook を Python からコールしてみた

    概要 よくあるケースとしてはダイナミックにサーバをプロビジョニングしたい場合かなと思います 簡単な playbook を作成した後でプログラマブルに Ansible を実行してみます 環境 macOS 10.13.5 Python 2.7.15 Ansible 2.5.5 事前準備 今回は Mac で行っています pip からインストールしました pip install ansible Homebrew でもインストールできるのでそれでも問題ないです 簡単な playbook の作成 非常に簡単なやつを作成します ターゲットのサーバに対してファイルを touch するだけです 全体は以下の通りです tree -a . ├── production ├── roles │ └── file │ └── tasks │ ├── main.yml │ └── new.yml └── site.y

    tvsk
    tvsk 2020/01/12
    ansible 提供のライブラリから関数をいくつかインポートする。用途としてはダイナミックプロビジョニング。