ansible
文章平均质量分 50
lanfeicdsn
这个作者很懒,什么都没留下…
展开
-
The playbook to creeate the VMs from openstack cluster
- name: Deploy new instances in OpenStack hosts: localhost connection: local gather_facts: False user: ubuntu vars: name: cache-01 image: ubuntu-14.04 network: exampl原创 2017-03-18 14:24:17 · 563 阅读 · 0 评论 -
ansbile 创建 主机之间的信任关系
- hosts: servers user: ubuntu sudo: yes gather_facts: no tasks: - name: create temp dir file: path=/tmp/special state=directory mode=0755 - name: check private key st原创 2017-03-18 14:48:48 · 693 阅读 · 0 评论 -
”shade is required for this module“ issue
在使用ansible 的模块os_server创建 openstack VMs的时候报上面的错。解决方法如下: Install python+shade on target machine步骤:1.添加 debhttp://us.archive.ubuntu.com/ubuntuwily main universe到/etc/apt/sources.list原创 2017-03-28 14:25:08 · 754 阅读 · 0 评论 -
ansible playbook-格式化新的卷并创建LVM卷
playbook如下:---- hosts: server1 user: ubuntu sudo: yes gather_facts: no vars: mntp: "/data01" vgname: "vg01" pvname1: "/dev/xvdf1" pvname: "/dev/xvdf" lv1: "原创 2017-03-14 14:53:19 · 4809 阅读 · 0 评论 -
使用多台机器进行S3数据同步
使用多台机器进行S3数据同步时机器awscli环境的初始化:---- hosts: server1 user: ubuntu sudo: yes gather_facts: no vars: tasks: - name: update apt repo apt: update_cache=yes - name: install原创 2017-03-14 15:11:05 · 848 阅读 · 0 评论 -
ansible playbook 更换运行中AWS实例类型
- name: change the instance_type hosts: localhost gather_facts: false connection: local user: ubuntu vars: instance_ids: - "{{ instance_id }}" private_ip: "{{ ip }}"原创 2017-03-15 09:58:04 · 602 阅读 · 0 评论 -
Amazon EBS Enables Live Volume Modifications with Elastic Volumes
Elastic Volumes:亚马逊EBS新特性:卷的属性的在线修改-包括卷的类型和大小目前该功能只支持卷的扩展,不支持卷的缩小。该功能针对的目标卷有两种:root系统卷和数据卷。无论是root系统卷和数据卷,如果没有创建分区的话,通过特性扩展完EBS卷后,在线扩展文件系统即可。根据官方文档解释如下:如果使用了分区,在扩展了EBS卷后,需要unmount EBS卷原创 2017-03-18 09:53:23 · 624 阅读 · 0 评论