Ansible Introduction
Ansible is a new automated operation tools, based on Python development, the collection of a number of operations tools (puppet, Cfengine, Chef, func, fabric) The advantages of the implementation of batch system configuration, batch program deployment, batch Run command and other functions.
Ansible is a module-based operation and does not ha
AnsibleHost group Management:Ansible ConfigurationDescription: About the parameters available in the Ansible Hosts file:Ansible_ssh_port=22 #远程主机登陆端口Ansible_ssh_user=root #远程主机登陆用户名Ansible_ssh_pass=chekir #远程主机登陆用户名的密码Ansible_ssh_private_key_file=/etc/ansible/hosts #指定管理主机群列表文件Host_key_checking=false #跳过第一次连接检测询问是否登陆的提示 (yes/no)Here Hosts file I did a mutual trust authentication, so the hosts file I wrote a
Ansible Maintenance Automation Toolssoftware Package Installation RPM-IVH Http://mirrors.sohu.com/fedora-epel/6/x86_64/epel-release-6-8.noarch.rpmyum Install Ansible-yConfigure the Keyless key on the master server to generate Ssh-key and distribute to all clients ssh-keygen-t RSA "All-in-a- return" ssh-copy-id-i ~/.ssh/id_rsa.pub "Client IP Address"after the configuration installation is complete, configur
I. Ansible INTRODUCTIONCommonly used automated maintenance toolsPuppet -Ruby-based development with C/S architecture, strong extensibility, SSL-based, and relatively weak remote command executionSaltstack -based on Python, with C/S architecture, relatively puppet and lighter, configuration syntax using Ymal, making configuration scripts simpler ansible-based on Pythonparamiko development, distributed, witho
Preface
Two previous articles talk about ansible deployment and use of ansible modules respectively. They have an initial understanding of ansible. This article focuses on introducing playbook.For details about ansible deployment, click ansible first: DeploymentAnsible modul
[[Email protected]:/etc]# tree/etc/ansible//etc/ansible/├──ansible.cfg├──hosts├──python.yml└──roles└──python_install├──files│└──python-3.6.6. tgz├──tasks│├──copy.yml│├──Install. Yml│└──main.yml└──templates└──python_install.SHDescription: Files: Store the source file and configuration files that need to be synchronized to the remote server; handlers: the action to be taken when the resource changes, if no su
I. Ansible Introduction
Ansbile is a powerful python-based batchcompute Command Execution tool. It has powerful functions in managing a large number of clusters. It is small in size and has little dependencies, and has a general trend.
II. Install
The ansible Binary Package is provided in RHEL6. When using CentOS6, you may need to add an epel source.
# yum install an
Background information:There are a lot of facts in ansible, but not enough in many cases.For example, Ansible has no ansible_private_ipv4_address such a facts, which is used to save a private network IP address.And we just need such a facts, because we have a lot of server's default network card is not eth0, some bond0,eth1,em0,em1, and the public network IP address and private network IP address also does
SaltStack Salt multiple insecure temporary file creation vulnerabilities (CVE-2014-3563)
Release date:Updated on:
Affected Systems:SaltStack salt Description:--------------------------------------------------------------------------------Bugtraq id: 69319CVE (CAN) ID: CVE-2014-3563Salt is a basic platform management tool.Salt (SaltStack) versions earlier than January 10, have multiple security vulnerabili
Three methods for finding the target minion are summarized in the common commands of Saltstack: salt amp; 39; shell regular amp; 39; command salt-E amp; 39; prel regular amp; 39; salt-N $ group command salt-L amp; 39; server_id1, server_id2, server _ Saltstack common commands summarize three methods to find the target minion: salt 'shell regularize' command salt-E 'prel regularized' salt-N $ group comm
Grains is a component of Saltstack record Minion static information, we can simply understand that the grains contains some of the common properties of each minion, such as CPU, memory, disk, network information, etc. We can view a minion of all grains information through the Grains.items, Minions grains information is minions start when the collection report to master, in the actual application environment we need to customize some grains according t
Saltstack is generally considered to be a puppet version of the simplified version and the FuncInstallation:
Deployment environment:
Role
Hostname
Ip
Operating system
Python version
Master
Master
192.168.224.141
CentOS Release 6.4 (Final)
Python 2.6.6
minion001
minion001
192.168.224.142
CentOS Release 6.4 (Fina
Today try to install the Saltstack Automated OPS tool on the CENTOS7, here are the installation steps:First of all, we install the Bash-completion package, which can complement the CENTOS7 command.Yum Install-y bash-completionAbout the service startup issue:First, set up the service boot automatically:Systemctl Enable Salt-masterCheck to see if the boot startup is set up:Systemctl is-enabled Salt-masterStart the service:Systemctl Restart Salt-masterVi
Saltstack in-depth-understand the basic usage of state againFirst, the basic Environment 1, on the basis of tvm-saltmaster operation. 2, Network: eth0:host-only (for virtual intranet, manually fixed IP, so from the host can directly connect to this VM) Eth1:nat (for Sisu network, dynamic IP) [[emailprotected]~]# cd/etc/sysconfig/network-scripts/[[emailprotected]network-scripts]#cat ifcfg-eth0device=eth0type=ethernetonboot=yesnm_controlled=yesbootproto
Grains is the most important component of saltstack, the role of grains is the basic information of the mobile phone is controlled by the host, these information are static data, such as CPU, kernel, operating system, virtualization, etc., on the server side can be flexibly customized according to this information, This information can be used by administrators to personalize different businesses (the first class is understood as: grains is used to di
Salt-master startup processEnvironment introductionWe use the following environment to analyze the SaltStack source code:System: CentOS-7Python version: 2.7.5Saltstack version: 2015.5.2 (Lithium)We use the following method to install salt-master:Rpm-Uvh http://mirrors.opencas.cn/epel/7/x86_64/e/epel-release-7-5.noarch.rpmYum install salt-masterScenario descriptionThis section analyzes the salt-master startup process. We use the following command to st
Saltstack, saltstackweb Interface
Saltstack is developed in Python and can be managed by thousands of servers.
Repetitive O M work: system installation, Environment deployment, addition of monitoring, code release (based on git or svn secondary development), project migration, and task scheduling.
Salt is a new basic platform management tool. It takes only several minutes to run. scalability is enough to s
Saltstack Quest-Install VIM, Nginx Service and configuration, custom scripts1. configuration Minion First, remove the original test minion[[emailprotected]bin]#salt-key-dtest230the followingkeysaregoingtobedeleted:acceptedkeys:test230proceed?[ n/y]ykeyforminiontest230deleted. New minion: "Svr205-2" [[emailprotected] ~]#yuminstallsalt-minion-y[[emailprotected]~]#vim/etc/salt/ Minionmaster:10.0.200.21id:svr205-2[[emailprotected]~]#servicesalt-minion sta
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.