Coreos-bootstrapCoreOS 主機(jī)啟動(dòng)程序
Coreos-bootstrap 是使用 Ansible 來啟動(dòng) CoreOS 主機(jī)。
配置示例:
[coreos] host-01 host-02 [coreos:vars] ansible_ssh_user=core ansible_python_interpreter="PATH=/home/core/bin:$PATH python"
啟動(dòng)演示
- hosts: coreos gather_facts: False roles: - defunctzombie.coreos-bootstrap
示例
- name: Nginx Example hosts: web sudo: true tasks: - name: Start etcd service: name=etcd.service state=started - name: Install docker-py pip: name=docker-py - name: pull container raw: docker pull nginx:1.7.1 - name: launch nginx container docker: image="nginx:1.7.1" name="example-nginx" ports="8080:80" state=running
評(píng)論
圖片
表情
