CN106603287A - Automatic node file deployment method for cloud platform - Google Patents

Automatic node file deployment method for cloud platform Download PDF

Info

Publication number
CN106603287A
CN106603287A CN201611155886.2A CN201611155886A CN106603287A CN 106603287 A CN106603287 A CN 106603287A CN 201611155886 A CN201611155886 A CN 201611155886A CN 106603287 A CN106603287 A CN 106603287A
Authority
CN
China
Prior art keywords
node
file
script
public key
deployment
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Withdrawn
Application number
CN201611155886.2A
Other languages
Chinese (zh)
Inventor
马桂成
杨松
季统凯
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
G Cloud Technology Co Ltd
Original Assignee
G Cloud Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by G Cloud Technology Co Ltd filed Critical G Cloud Technology Co Ltd
Priority to CN201611155886.2A priority Critical patent/CN106603287A/en
Publication of CN106603287A publication Critical patent/CN106603287A/en
Withdrawn legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0893Assignment of logical groups to network elements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0876Aspects of the degree of configuration automation
    • H04L41/0886Fully automatic configuration
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0889Techniques to speed-up the configuration process
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/104Peer-to-peer [P2P] networks
    • H04L67/1074Peer-to-peer [P2P] networks for supporting data block transmission mechanisms
    • H04L67/1078Resource delivery mechanisms
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/133Protocols for remote procedure calls [RPC]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/2866Architectures; Arrangements
    • H04L67/30Profiles

Abstract

The invention relates to the automatic cloud platform deployment field and particularly relates to an automatic node file deployment method for a cloud platform. According to the method, a management node is firstly initialized; a target node and a to-be-distributed deployment file are selected; a public key is automatically inputted to the target node; the file is copied to the management node and is distributed to other nodes; the public key on the target node and a temporary file of the management node are deleted. Through the method, problems of manual operation, frequent agent program update, secondary user intervention, low deployment efficiency and mass operation incapability existing when target node files are deployed and distributed through the cloud calculation platform are solved, and the method is applicable to automatic deployment in the cloud platform environment.

Description

A kind of method of cloud platform automatic deployment node file
Technical field
The present invention relates to cloud platform automatic deployment field, particularly a kind of method of cloud platform automatic deployment node file.
Background technology
General newly builds the node that cloud computing platform is all based on substantial amounts, and cloud platform services numerous, business function It is extremely complex, and each service nearly all has quantity configuration file not etc. and script, can so there is following hidden danger:
One is that a set of cloud platform environment of O&M engineer's manually dispose needs to spend many manpower and materials, and has been disposed Into afterwards, it is difficult to check whether that deployment is normal.
Two is that cloud computing platform quickly grows, and function is more and more, and configuration file and script become increasingly complex.O&M engineering Teacher is difficult to the incidence relation for grasping each service profiles and script, easily violates deployment and careless mistake occurs, causes cloud computing platform Service normally can not be provided.
Three is conventional deployment software, generally can not remote auto copy the file or script of one of node to which On his node, generally it is required for O&M engineer to manually enter user, password and can just runs succeeded, and with nodes increasingly Many, the work of manual intervention is just more and more loaded down with trivial details.
Four is that the mode of conventional public key is disposed, poor stability, after deployment is completed, needs operation maintenance personnel according to actual feelings Condition, deletes unwanted public key, inefficiency.
Five be conventional dispositions method be all Agent completing, once control program updates, Agent is accomplished by Continuous renewal could meet business development demand.
The content of the invention
Present invention solves the technical problem that being to propose a kind of method that cloud platform disposes destination node file, cloud is solved Manual operation during calculating platform deployment distribution node file, Agent update frequently, the secondary deployment efficiency of intervening of user is low, no The problems such as energy batch operation.
The present invention solves the technical scheme of above-mentioned technical problem,
Comprise the steps:
Step 1:Initialization management node;
Step 2:Selection target node and deployment file to be distributed;
Step 3:Public key is imported to into destination node;
Step 4:Copied files are distributed on other nodes to management node;
Step 5:The temporary file of the public key and management node of delete target node.
Described step 1, refers to and public key is made in management node, and by destination node, the IP of node to be distributed Address, user name, password are written to configuration file.
Described step 2, refers to the file of deployment to be distributed on user's selection target node and destination node;
Described file, including common file, script.
Described step 3, refers to and for the public key of management to import to mesh by ansible-playbook instrument automatic remotes On mark node.
Described ansible-playbook, be one kind without deployment tool is acted on behalf of, can be local file copy to mesh On mark node, it is also possible to which parameters remote is supplied to the script of other nodes, and long-range perform script;
Described parameter, including the content of public key;
Described script, including import script, mobile file script, give authority script etc.;
Described importing script, refers to and for content of parameter to add write/root/.ssh/authorized_keys files On;
Described /root/.ssh/authorized_keys, it is a kind of setting a file for storage public key content, operates system System, can be in order to avoid username and password can be just copied files on the node belonging to public key according to this content.
In described step 4, to management node, copied files refer to that username and password copy targeting node is exempted from execution Deployment file in management node, as temporary file.
It is distributed in described step 4 on other nodes, refers to the facing management node by ansible-playbook When file and parameter be distributed on other nodes, if including script file, long-range perform script.
The public key of delete target node in described step 5, refers to the script for remotely performing long-range public key, from destination node / root/.ssh/authorized_keys files in delete public key content with regard to management node;
The temporary file of management node is deleted in described step 5, refers to deletion from destination node copy management node Temporary file.
Beneficial effects of the present invention are as follows:
1st, the present invention provides a kind of method of cloud platform without agency's deployment distribution destination node file, solves cloud computing and puts down Manual operation during platform deployment distribution destination node file, Agent update frequently, the secondary intervention of user, deployment efficiency are low, no The problems such as energy batch operation.
2nd, the self-defined method without agency of the present invention, is different from the method for typically having agency, and does not need secondary intervention portion Administration's process, is automatically finished deployment configuration file or script, and being different from needs the dispositions method and batch operation of secondary intervention, high Efficiency completes configuration file or script deployment and updates, and is different from the dispositions method that can only be typically directed to single file, reduces Human resourcess' input of O&M engineer, improves the work efficiency of O&M engineer.
Description of the drawings
The present invention is further described below in conjunction with the accompanying drawings:
Fig. 1 is flow chart;
Fig. 2 is building-block of logic of the present invention.
Specific embodiment
Embodiments of the present invention have various, illustrate one of which implementation method here by taking cloud platform as an example, and flow chart is such as Shown in Fig. 1, specific implementation process is as follows:
1st, management node initialization.
2nd, selection target node and deployment file to be distributed.
3rd, public key is automatically entered and is automatically imported destination node, code is as follows:
4th, to management node, playbook scripts are as follows for copied files:
5th, it is distributed on other nodes, code is as follows:
6th, the public key of delete target node, code are as follows:
7th, the temporary file of management node is deleted, code is as follows:
Whole flow process terminates.
Fig. 2 is building-block of logic of the present invention, is illustrated:Public key is made in management node, management belonging to this public key Destination node, the IP address of node to be distributed, user name, password are written to configuration file, the public key of management are led to by node Cross ansible-playbook instrument automatic remotes to import on destination node with Transfer Parameters on destination node, then perform Exempt from the deployment file of username and password copy targeting node in management node, as temporary file;Management node will afterwards Transfer Parameters are on other nodes, and the long-range perform script on other nodes, copy, deployment file.

Claims (10)

1. a kind of method of cloud platform automatic deployment node file, it is characterised in that comprise the steps:
Step 1:Initialization management node;
Step 2:Selection target node and deployment file to be distributed;
Step 3:Public key is imported to into destination node;
Step 4:Copied files are distributed on other nodes to management node;
Step 5:The temporary file of the public key and management node of delete target node.
2. method according to claim 1, it is characterised in that described step 1, refers to and makes public in management node Key, and destination node, the IP address of node to be distributed, user name, password are written to into configuration file.
3. method according to claim 1, it is characterised in that described step 2, refer to user's selection target node and The file of deployment to be distributed on destination node;
Described file, including common file, script.
4. method according to claim 2, it is characterised in that described step 2, refer to user's selection target node and The file of deployment to be distributed on destination node;
Described file, including common file, script.
5. the method according to any one of Claims 1-4, it is characterised in that described step 3, refer to will management public affairs Key is imported on destination node by ansible-playbook instrument automatic remotes.
Described ansible-playbook, be one kind without deployment tool is acted on behalf of, can be local file copy to target section On point, it is also possible to which parameters remote is supplied to the script of other nodes, and long-range perform script;
Described parameter, including the content of public key;
Described script, including import script, mobile file script, give authority script etc.;
Described importing script, refers to and content of parameter is added on write/root/.ssh/authorized_keys files;
Described/root/.ssh/authorized_keys, is a kind of setting a file for storage public key content, operating system root Content accordingly, can be in order to avoid username and password can be just copied files on the node belonging to public key.
6. the method according to any one of Claims 1-4, it is characterised in that copied files are to management in described step 4 Node, refers to that execution exempts from the deployment file of username and password copy targeting node in management node, as temporary file.
It is distributed in described step 4 on other nodes, refers to the interim text by management node by ansible-playbook Part and parameter are distributed on other nodes, if including script file, long-range perform script.
7. method according to claim 5, it is characterised in that copied files are referred to management node in described step 4 Execution exempts from the deployment file of username and password copy targeting node in management node, as temporary file.
It is distributed in described step 4 on other nodes, refers to the interim text by management node by ansible-playbook Part and parameter are distributed on other nodes, if including script file, long-range perform script.
8. the method according to any one of Claims 1-4, it is characterised in that delete target node in described step 5 Public key, refers to the script for remotely performing long-range public key, from destination node /root/.ssh/authorized_keys files in Delete the public key content with regard to management node;
The temporary file of management node is deleted in described step 5, deletion facing from destination node copy management node is referred to When file.
9. method according to claim 6, it is characterised in that the public key of delete target node in described step 5, refers to Remotely perform the script of long-range public key, from destination node /root/.ssh/authorized_keys files in delete with regard to pipe The public key content of reason node;
The temporary file of management node is deleted in described step 5, deletion facing from destination node copy management node is referred to When file.
10. method according to claim 7, it is characterised in that the public key of delete target node in described step 5, be Finger remotely performs the script of long-range public key, from destination node /root/.ssh/authorized_keys files in delete with regard to The public key content of management node;
The temporary file of management node is deleted in described step 5, deletion facing from destination node copy management node is referred to When file.
CN201611155886.2A 2016-12-14 2016-12-14 Automatic node file deployment method for cloud platform Withdrawn CN106603287A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611155886.2A CN106603287A (en) 2016-12-14 2016-12-14 Automatic node file deployment method for cloud platform

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611155886.2A CN106603287A (en) 2016-12-14 2016-12-14 Automatic node file deployment method for cloud platform

Publications (1)

Publication Number Publication Date
CN106603287A true CN106603287A (en) 2017-04-26

Family

ID=58801400

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611155886.2A Withdrawn CN106603287A (en) 2016-12-14 2016-12-14 Automatic node file deployment method for cloud platform

Country Status (1)

Country Link
CN (1) CN106603287A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108964982A (en) * 2018-06-13 2018-12-07 众安信息技术服务有限公司 For realizing the method, apparatus and storage medium of the deployment of the multinode of block chain
CN109298898A (en) * 2018-08-24 2019-02-01 深圳职业技术学院 Cloud computing resources method of automatic configuration and device
CN112564989A (en) * 2021-02-23 2021-03-26 鲁班(北京)电子商务科技有限公司 Application deployment method and device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8402679B2 (en) * 2008-07-08 2013-03-26 Gregory Sylvester Campbell Remote control snow remover
CN105528232A (en) * 2016-01-27 2016-04-27 国家电网公司 Automatic installation method and system for software
CN105553741A (en) * 2015-12-28 2016-05-04 江苏省电力公司信息通信分公司 Automatic deployment method for application system based on cloud computing

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8402679B2 (en) * 2008-07-08 2013-03-26 Gregory Sylvester Campbell Remote control snow remover
CN105553741A (en) * 2015-12-28 2016-05-04 江苏省电力公司信息通信分公司 Automatic deployment method for application system based on cloud computing
CN105528232A (en) * 2016-01-27 2016-04-27 国家电网公司 Automatic installation method and system for software

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
OPENSAMLEE: "《自动化运维工具Ansible架构部署应用及playbooks简单应用》", 《HTTP://BLOG.51CTO.COM/GZSAMLEE/1835383》 *
月白白222: "《ansible --- 批量推送及更换密钥的简单介绍》", 《HTTPS://WWW.JIANSHU.COM/P/DDD8B099B1B8》 *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108964982A (en) * 2018-06-13 2018-12-07 众安信息技术服务有限公司 For realizing the method, apparatus and storage medium of the deployment of the multinode of block chain
CN109298898A (en) * 2018-08-24 2019-02-01 深圳职业技术学院 Cloud computing resources method of automatic configuration and device
CN112564989A (en) * 2021-02-23 2021-03-26 鲁班(北京)电子商务科技有限公司 Application deployment method and device

Similar Documents

Publication Publication Date Title
Luque et al. Phase transitions in random networks: Simple analytic determination of critical points
CN102364894B (en) Issuing method for configuration data file and network management equipment
CN106603287A (en) Automatic node file deployment method for cloud platform
CN105404952A (en) Approval workflow dynamic configuration method and system based on SAP platform
CN105808273B (en) Method for upgrading software and software updating apparatus
CN108363545A (en) A kind of data configuration method and data configuration device
CN105894159A (en) Implementation method of cross-domain and cross-platform user unified management system
CN110808839B (en) Processing method, device, equipment and medium for block chain abnormal data
CN104506367A (en) Updating management system
CN108920435B (en) Visual program page data node matching method
US20200186424A1 (en) Validation of execution plan for configuring an information technology infrastructure
JP2018078523A (en) Network management device, method, and program
US20200183739A1 (en) Validation of execution plan for configuring an information technology infrastructure
CN107977310B (en) Traversal test command generation method and device
CN109324856A (en) Menu treating method, device, computer equipment and storage medium
CN101425117A (en) Method and device for constructing SQL statement
CN109542432A (en) Air control rule editing method and terminal device
US20160078648A1 (en) Physical connection of network components in a graphical computer environment with one-way signal propagation
CN106682275A (en) Load processing method and device for industrial plant structural modeling
CN107749800B (en) Method for realizing implicit deletion of automatic test configuration of communication equipment
CN106408156A (en) Flow template recovering method and device
US20220239661A1 (en) Methods, mediums, and systems for tenancy management
CN105093964A (en) Construction method for industrial electronic embedded system simulation device model
CN104933267A (en) Behavior logic modeling method of industrial electronic system
Ali et al. The five ws taxonomy on customization of software as a service applications

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
WW01 Invention patent application withdrawn after publication
WW01 Invention patent application withdrawn after publication

Application publication date: 20170426