In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
Introduction to Ansible
Ansible is a new automatic operation and maintenance tool. Based on Python development, it integrates the advantages of many operation and maintenance tools (puppet, chef, func, fabric), and realizes the functions of batch system configuration, batch program deployment, batch running commands and so on.
Ansible is based on paramiko development, and is based on modular work, and does not have the ability to deploy in batches. What really has batch deployment is the module that ansible runs, and ansible only provides a framework. Ansible does not need to install client/agents on remote hosts because they communicate with remote hosts based on ssh. Ansible has been officially acquired by Red Hat and is the most recognized automated operation and maintenance tool. It is easy to use and easy to learn. It is one of the skills that every operation and maintenance engineer must master.
Functional characteristics
1. The deployment is simple, only the Ansible environment needs to be deployed in the main control side, and the controlled side does not need to do anything.
two。 The SSH protocol is used by default to manage the device.
3. There are a large number of routine operation and maintenance operation modules, which can realize most of the daily operations.
4. Simple configuration, powerful function and strong expansibility
5. Support for API and custom modules, which can be easily extended through Python.
6. Customize powerful configuration and state management through Playbooks.
7. Lightweight, no need to install agent on the client side, you only need to make an update on the manipulator when updating.
8. Provide a powerful and operational Web management interface and REST API interface-AWX platform.
9. Support non-root user management operations, support sudo.
Comparison of operation and maintenance tools
Advantages and disadvantages of operation and maintenance tools
Deployment process 1. Installation
Yum install-y epel-release / / install the epel source
Yum install ansible-y
Ansible-- version / / View the ansible version
two。 Configure host list
Vim / etc/ansible/hosts
[web] # Custom group name 192.168.200.129 # add the IP [abc] of the managed host 192.168.200.1303. Set SSH password-free login
Ssh-keygen-t rsa
4. Configure key pair authentication
Ssh-copy-id root@192.168.0.100
Ssh-copy-id root@192.168.0.115
5. Interaction-free agent
Ssh-agent bash
Ssh-add
6. Verification
Ansible web-m command-a 'date'
Ansible abc-m command-a 'date'
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.