狠狠撸
Submit Search
Ansible Module Topic
?
1 like
?
1,534 views
Takeshi Kuramochi
About NetApp clustered Data ONTAP in Tech-Circle Event 2017/3/31
Read less
Read more
1 of 15
Download now
Downloaded 10 times
More Related Content
Ansible Module Topic
1.
Ansible Module Topic 2017/3/31 TIS
OSS 推進室 倉持健史
2.
Ansible とは、 『 オートメーション(自動化)することができるソフトウェア
』 3つの特徴 Simple Powerful Agentless Source : https://www.ansible.com/it-automation
3.
Ansible の適用範囲 自動化出来るのは サーバだけじゃない!
4.
エンタープライズ志向なAnsible ? ネットワーク機器 の対応 Cisco、Juniper、F5、A10、??? ?
ストレージ機器 の対応 NetApp、INFINIDAT ? Windows の対応 ? クラウド の対応 ? Docker の対応
5.
Source: docs.ansible.com
6.
Author ? Sumit Kumar ?
timuster(https://github.com/timuster) ? TME(テクニカルマーケティングエンジニア) ? NetApp, Inc. 所属
7.
Requirement for NetApp
cDOT Modules ? Ansible version ? v2.3(RC2) ? Python module ? netapp-lib(2015.9.25 <) ? latest version: 2016.10.14 ? Target Storage OS version ? clustered DataONTAP 8.3 ? Status ? preview
8.
Readiness # git clone
git://github.com/ansible/ansible.git # cd ansible/ # git checkout stable-2.3 # source ./hacking/env-setup # ansible --version ansible 2.3.0.0 (stable-2.3 af83d4d4df) last updated 2017/03/30 15:16:14 (GMT +900) config file = /etc/ansible/ansible.cfg configured module search path = Default w/o overrides python version = 2.7.5 (default, Nov 20 2015, 02:00:19) [GCC 4.8.5 20150623 (Red Hat 4.8.5-4)] # pip install netapp-lib
9.
Playbook --- - name: Test
Playbook for NetApp cDOT Modules hosts: localhost gather_facts: no vars: netapp_hostname: 192.168.175.206 netapp_username: "admin" netapp_password: “PASSWORD" mysvm: "my_SVM" svm_root_vol: "root_v01“ tasks: - name: create SVM na_cdot_svm: state: present name: "{{ mysvm }}" root_volume: "{{ svm_root_vol }}" root_volume_aggregate: "itc_aggr02" root_volume_security_style: mixed hostname: "{{ netapp_hostname }}" username: "{{ netapp_username }}" password: "{{ netapp_password }}" tags: CREATE
10.
Before Console : Clustered Data
ONTAP
11.
Run Playbook # ansible-playbook
-i hosts playbook.yml -t CREATE PLAY [Test Playbook for NetApp cDOT Modules] ** TASK [create SVM] ** changed: [localhost] PLAY RECAP ** localhost : ok=1 changed=1 unreachable=0 failed=0
12.
After Console : Clustered Data
ONTAP
13.
Playbook (cont.) - block: -
name: before destroy SVM make root vol offline na_cdot_volume: state: absent name: "{{ svm_root_vol }}" vserver: "{{ mysvm }}" hostname: "{{ netapp_hostname }}" username: "{{ netapp_username }}" password: "{{ netapp_password }}" - name: destroy SVM na_cdot_svm: state: absent name: "{{ mysvm }}" hostname: "{{ netapp_hostname }}" username: "{{ netapp_username }}" password: "{{ netapp_password }}" tags: DESTROY
14.
References ? Roadmap Core 2.3
Target: Mid April 2017 https://github.com/ansible/ansible/blob/devel/docs/docsite/rst/roadmap/ROADMAP_2_3.rst ? Sample Playbook https://github.com/timuster/netapp_ansible_playbooks
Download