CN115883348B - Automatic deployment method, equipment and medium for all-in-one machine based on cobbler - Google Patents
Automatic deployment method, equipment and medium for all-in-one machine based on cobbler Download PDFInfo
- Publication number
- CN115883348B CN115883348B CN202211564597.3A CN202211564597A CN115883348B CN 115883348 B CN115883348 B CN 115883348B CN 202211564597 A CN202211564597 A CN 202211564597A CN 115883348 B CN115883348 B CN 115883348B
- Authority
- CN
- China
- Prior art keywords
- deployment
- machine
- edge
- script
- information
- 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.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 46
- 238000013515 script Methods 0.000 claims abstract description 95
- 238000009434 installation Methods 0.000 claims abstract description 47
- 230000006835 compression Effects 0.000 claims abstract description 13
- 238000007906 compression Methods 0.000 claims abstract description 13
- 238000012423 maintenance Methods 0.000 claims description 19
- 230000002159 abnormal effect Effects 0.000 claims description 7
- 230000004044 response Effects 0.000 claims description 4
- 238000012360 testing method Methods 0.000 claims description 3
- 238000010586 diagram Methods 0.000 description 6
- 230000008569 process Effects 0.000 description 5
- 230000009286 beneficial effect Effects 0.000 description 3
- 230000000694 effects Effects 0.000 description 3
- 230000004048 modification Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 238000004422 calculation algorithm Methods 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 238000007689 inspection Methods 0.000 description 1
- 238000011900 installation process Methods 0.000 description 1
- 238000012545 processing Methods 0.000 description 1
- 230000000750 progressive effect Effects 0.000 description 1
Landscapes
- Stored Programmes (AREA)
Abstract
The application provides a cobbler-based automatic deployment method, equipment and medium for an all-in-one machine, wherein the method can acquire first deployment information; the first deployment information comprises a plurality of shell scripts and system image files. And generating a corresponding configuration file based on the second deployment information preconfigured by the user. The configuration file is cobbler corresponding to the configuration file. And acquiring an IP address request allocation instruction of at least one edge all-in-one machine, and allocating a corresponding IP address to the edge all-in-one machine so as to establish a system deployment channel. Based on deployment request information of the edge all-in-one machine, sequentially sending corresponding guide files and preset deployment compression packages to the edge all-in-one machine from a system deployment channel. The boot file is used for guiding installation of the corresponding system image file. Based on the first deployment information and the configuration file, corresponding system image files, applications and middleware are installed to the edge all-in-one machine, and the deployment progress of the edge all-in-one machine is determined.
Description
Technical Field
The application relates to the technical field of computers, in particular to an automatic deployment method, equipment and medium for an all-in-one machine based on rapid establishment of a Linux network installation environment cobbler.
Background
The edge all-in-one machine is an Internet of things edge platform integrating software and hardware and is applied to small and medium-scale Internet of things application scenes. The method can bear the application and algorithm of the edge business and provide convenient service for enterprises.
At present, before an integrated machine is accessed into an enterprise system, operation and maintenance personnel are generally required to install the system and business services, and the installation problem in the installation process is solved on site by the operation and maintenance personnel. This way of installation is time consuming, and there are many instable factors in the installation, consuming human resources.
Disclosure of Invention
The embodiment of the application provides a cobbler-based automatic deployment method, cobbler-based automatic deployment equipment and medium for an integrated machine, which are used for solving the problems that the current edge integrated machine deployment consumes labor, has low efficiency and cannot flexibly and efficiently perform automatic configuration.
In one aspect, an embodiment of the present application provides an automatic deployment method for an all-in-one machine based on cobbler, where the method includes:
acquiring first deployment information; the first deployment information comprises a plurality of shell scripts and system mirror image files;
generating a corresponding configuration file based on second deployment information preconfigured by a user; the configuration file is a configuration file corresponding to cobbler;
acquiring an IP address request allocation instruction of at least one edge all-in-one machine, and allocating a corresponding IP address to the edge all-in-one machine so as to establish a system deployment channel;
Based on the deployment request information of the edge all-in-one machine, sequentially sending corresponding guide files and preset deployment compression packages to the edge all-in-one machine from the system deployment channel; the guide file is used for guiding and installing corresponding system image files;
and based on the first deployment information and the configuration file, installing corresponding system image files, applications and middleware to the edge all-in-one machine, and determining the deployment progress of the edge all-in-one machine.
In one implementation manner of the application, a guiding storage position of the edge all-in-one machine is determined through a preset management scheduling module, so that the system image file is installed through the cobbler and the guiding file in the edge all-in-one machine; the management scheduling module is used for scheduling cobbler, shell scripts and an allowable module; the stable module is used for scheduling and executing the shell script;
And under the condition that the deployment progress of the edge all-in-one machine is that the installation of the system mirror image is completed, sequentially scheduling the shell script and the stable module according to a preset sequence by the management scheduling module so as to install the application and the middleware corresponding to the shell script to the edge all-in-one machine.
In one implementation of the application, whether installation error information exists is determined by scheduling a self-checking script in the shell script;
Under the condition that the installation error information exists, determining an application, middleware or a system mirror image file corresponding to the security error information, and generating corresponding alarm information; the alarm information is used for indicating an application, middleware or a system image file with installation errors; the alarm information at least comprises one or more of the following: sound, text, picture;
And sending the alarm information to a corresponding user terminal.
In one implementation manner of the application, after receiving the IP address request allocation instruction, determining the MAC address of the edge all-in-one machine, and comparing the MAC address with a preset local area network address table to determine whether the MAC address of the edge all-in-one machine is in a deployable local area network;
If yes, the corresponding IP address is distributed to the edge all-in-one machine so as to establish a system deployment channel;
Otherwise, generating abnormal access information and sending the abnormal access information to the user terminal and the edge all-in-one machine.
In one implementation of the present application, a plurality of deployment templates are generated based on configuration operations of the user; the deployment template comprises a plurality of deployment parameters in the second deployment information; the deployment parameters are used for configuring the configuration parameters of cobbler, ansible modules and shell scripts; the deployment template is scheduled by the management scheduling module.
In one implementation of the present application, the configuration file includes: user configuration file Profile file and automatic response file kckstart file;
Based on the first deployment information and the configuration file, installing corresponding system image files, applications and middleware to the edge all-in-one machine specifically comprises:
the management scheduling module is used for sending the system image file in the first deployment information to the edge all-in-one machine; installing the system image file to the edge all-in-one machine through the configuration file;
Under the condition that the deployment progress of the edge all-in-one machine is that the installation of the system mirror image is completed, installing the application and the middleware to the edge all-in-one machine according to the corresponding deployment scripts of the application and the middleware corresponding to the shell script and the preset deployment compression package; and configuring the configuration parameters of the installed application and middleware according to the configuration file.
In one implementation of the present application, the shell script includes a control script, a self-checking script, and a deployment script; the control script is used for scheduling the self-checking script and the deployment script; and the self-checking script and the deployment script feed back the running result to the control script.
In one implementation of the present application, the deployment script includes at least one or more of the following: a relational database management system MySQL installation script, a remote dictionary service Redis installation script, an industrial Internet IIoT installation script and a terminal remote maintenance management system TMS installation script.
On the other hand, the embodiment of the application also provides cobbler-based all-in-one automatic deployment equipment, which comprises:
At least one processor; and a memory communicatively coupled to the at least one processor; wherein the memory stores instructions executable by the at least one processor, the instructions are executable by the at least one processor to enable the at least one processor to:
acquiring first deployment information; the first deployment information comprises a plurality of shell scripts and system mirror image files;
generating a corresponding configuration file based on second deployment information preconfigured by a user; the configuration file is a configuration file corresponding to cobbler;
acquiring an IP address request allocation instruction of at least one edge all-in-one machine, and allocating a corresponding IP address to the edge all-in-one machine so as to establish a system deployment channel;
Based on the deployment request information of the edge all-in-one machine, sequentially sending corresponding guide files and preset deployment compression packages to the edge all-in-one machine from the system deployment channel; the guide file is used for guiding and installing corresponding system image files;
and based on the first deployment information and the configuration file, installing corresponding system image files, applications and middleware to the edge all-in-one machine, and determining the deployment progress of the edge all-in-one machine.
In yet another aspect, an embodiment of the present application further provides a cobbler-based all-in-one automatic deployment non-volatile computer storage medium, storing computer-executable instructions configured to:
acquiring first deployment information; the first deployment information comprises a plurality of shell scripts and system mirror image files;
generating a corresponding configuration file based on second deployment information preconfigured by a user; the configuration file is a configuration file corresponding to cobbler;
acquiring an IP address request allocation instruction of at least one edge all-in-one machine, and allocating a corresponding IP address to the edge all-in-one machine so as to establish a system deployment channel;
Based on the deployment request information of the edge all-in-one machine, sequentially sending corresponding guide files and preset deployment compression packages to the edge all-in-one machine from the system deployment channel; the guide file is used for guiding and installing corresponding system image files;
and based on the first deployment information and the configuration file, installing corresponding system image files, applications and middleware to the edge all-in-one machine, and determining the deployment progress of the edge all-in-one machine.
The edge integrated machines for establishing the system channels are automatically deployed through the first deployment information and the second deployment information, and the operation and maintenance personnel are not required to perform manual operation system and service deployment when each integrated machine deploys a system, service application and middleware. The method saves the deployment time of the all-in-one machine, and solves the problems that the current edge all-in-one machine is deployed, labor is consumed, the efficiency is low, and automatic configuration cannot be flexibly and efficiently performed.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this specification, illustrate embodiments of the application and together with the description serve to explain the application and do not constitute a limitation on the application. In the drawings:
FIG. 1 is a schematic flow chart of an automatic deployment method of an all-in-one machine based on cobbler in an embodiment of the application;
FIG. 2 is a schematic diagram of an automatic deployment method of an all-in-one machine based on cobbler in an embodiment of the present application;
fig. 3 is a schematic structural diagram of a server corresponding to an automatic deployment method of an all-in-one machine based on cobbler in an embodiment of the present application;
FIG. 4 is another schematic diagram of an automatic deployment method of an all-in-one machine based on cobbler in an embodiment of the present application;
Fig. 5 is a schematic diagram of a shell script in an automatic deployment method of an all-in-one machine based on cobbler in an embodiment of the present application;
fig. 6 is a schematic structural diagram of an automatic integrated machine deployment device based on cobbler in an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the technical solutions of the present application will be clearly and completely described below with reference to specific embodiments of the present application and corresponding drawings. It will be apparent that the described embodiments are only some, but not all, embodiments of the application. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
The embodiment of the application provides a cobbler-based automatic deployment method, cobbler-based automatic deployment equipment and medium for an all-in-one machine, which are used for solving the problems that the current edge all-in-one machine deployment consumes labor, has low efficiency and cannot flexibly and efficiently perform automatic configuration. The automatic deployment of the integrated machine is realized, and the workload of operation and maintenance personnel is reduced.
Various embodiments of the present application are described in detail below with reference to the attached drawing figures.
The embodiment of the application provides an automatic deployment method of an all-in-one machine based on cobbler, which can comprise the following steps of S101-S105 as shown in figure 1:
S101, a server acquires first deployment information.
The first deployment information comprises a plurality of shell scripts and system image files. The first deployment information is information preset in the server by the operation and maintenance personnel.
It should be noted that, the server is used as an execution body of the automatic deployment method of the edge all-in-one machine based on cobbler, such as the pioneer all-in-one machine, and the execution body is only exemplary, and the execution body is not limited to the server, and the application is not limited in particular.
The server is preset with an application of an integrated machine and a deployment script of middleware written and deployed by operation and maintenance personnel and a setting cobbler in the server so as to automatically install a linux operating system. The system also comprises an automatic operation and maintenance tool available module for scheduling and executing shell scripts. As shown in fig. 2, the operation and maintenance personnel 210 configures the deployment template 310 and manages the deployment template 320 on the server 220, and the server 220 automatically deploys all the edge integrated machines 230, so that for convenience of explanation of the embodiment, only three edge integrated machines are drawn in the figure, and in the actual use process, the edge integrated machines connected with the server are not limited to only three. The deployment template management 320 includes template adding 321, template deleting 322, and template publishing 323 as shown in fig. 3, and the operation and maintenance personnel can also perform system image management 330 (image uploading 331, image deleting 332, and image updating 333) and shell script management 340 (including shell script uploading 341, shell script deleting 342, and shell script updating 343). In addition, the server further includes cobbler module 350, an allowable module 360, and a shell script module 370.
S102, the server generates a corresponding configuration file based on second deployment information preconfigured by the user.
The configuration file is a configuration file corresponding to cobbler.
In the embodiment of the application, the server may generate the configuration file according to the second deployment information preconfigured by the user (such as the user of the operation and maintenance personnel or the edge all-in-one machine), where the second deployment information refers to deployment parameters such as cobbler, ansible and shell scripts, for example, release information, version information, installation path and the like of the system image file. Generating cobbler a corresponding configuration file according to the second pre-configured deployment information, for example: user Profile file and automatic response file kckstart file.
In one example, before generating the corresponding configuration file based on the second deployment information preconfigured by the user, the method further includes:
The server generates a number of deployment templates based on the user's (operation and maintenance personnel's) configuration operations. The deployment template includes a number of deployment parameters in the second deployment information. The deployment parameters are used for configuring the cobbler, ansible modules and the configuration parameters of the shell script. The deployment template is scheduled by the management scheduling module.
In other words, the second deployment information may have a deployment template corresponding to a preset by an operation and maintenance person, and cobbler may perform configuration by selecting the deployment template when performing configuration of the deployment parameters of the edge all-in-one machine.
S103, the server acquires an IP address request allocation instruction of at least one edge all-in-one machine, and allocates a corresponding IP address to the edge all-in-one machine so as to establish a system deployment channel.
In the embodiment of the present application, the edge integrated machine can generate an IP address request allocation instruction, and send the IP address request allocation instruction to the server performing system deployment through the corresponding switch 410 (as shown in fig. 4, the server may connect the edge integrated machine and the user terminal of the operation and maintenance personnel through the switch). After the server acquires the IP address request allocation instruction, a system deployment channel can be established according to the allocated IP address from the system deployment service.
The server obtains an IP address request allocation instruction of at least one edge all-in-one machine and allocates a corresponding IP address to the edge all-in-one machine to establish a system deployment channel, and the method specifically comprises the following steps:
After receiving the IP address request allocation instruction, the server determines the MAC address of the edge all-in-one machine, and compares the MAC address with a preset local area network address table to determine whether the MAC address of the edge all-in-one machine is in a deployable local area network. I.e. in the local area network address table, there is a MAC address of the edge all-in-one machine, then the MAC address is in the deployable local area network, otherwise it is not.
The preset local area network address table can be preset with the server or a storage medium connected with the server, such as a database, and the local area network address table is an address table of a local area network where the server is located.
And under the condition that the edge all-in-one machine is determined to be in the deployable local area network, the corresponding IP address is allocated to the edge all-in-one machine so as to establish a system deployment channel. Otherwise, generating abnormal access information and sending the abnormal access information to the user terminal and the edge all-in-one machine.
By inquiring the local area network address table, the local area network where the integrated machine is located at the server is determined, so that the integrated machine can be safely deployed and cannot be stolen or illegal systems are installed. And the abnormal access information is sent to the user terminal and the edge all-in-one machine, so that whether a user has an illegal deployment request or not can be reminded, or the corresponding user of the edge all-in-one machine can select a correct local area network for automatic deployment.
S104, the server sequentially sends corresponding guide files and preset deployment compression packages to the edge all-in-one machine from the system deployment channel based on the deployment request information of the edge all-in-one machine.
The boot file is used for guiding and installing the corresponding system image file.
In the embodiment of the application, in response to the operation of the user on the edge all-in-one machine (selecting the version, the type and the like of the installation operating system), corresponding deployment request information of the user operation is sent to a server of system deployment through a system deployment channel; the deployment request information is used for requesting a boot file, and the boot file type at least comprises an operating system boot file, a middleware boot file and an application service boot file. Then, the edge all-in-one machine configures a corresponding system according to the guide file from the system deployment server and a preset deployment compression package corresponding to the guide file.
The sending sequence of the guide files is preset, and the sequence can be preset in the management scheduling module, and the management scheduling module performs uniform scheduling of deployment.
S105, the server installs corresponding system image files, applications and middleware to the edge all-in-one machine based on the first deployment information and the configuration files, and determines the deployment progress of the edge all-in-one machine.
The deployment progress refers to the progress of system image file installation, application installation progress and middleware installation progress according to the configuration file. The installation system image file and the guide file are sent to the edge all-in-one machine, the guide system image file can be installed, and the deployment compression package of the application and the middleware is also located in the edge all-in-one machine, so that the installation can be performed on the edge all-in-one machine.
Based on the first deployment information and the configuration file, installing corresponding system image files, applications and middleware to the edge all-in-one machine, and determining the deployment progress of the edge all-in-one machine, wherein the method specifically comprises the following steps:
firstly, a server determines a guide storage position of the edge all-in-one machine through a preset management scheduling module so as to install a system image file through cobbler and guide files in the edge all-in-one machine. The management scheduling module is used for scheduling cobbler, shell scripts and the allowable module. and the allowable module is used for scheduling and executing the shell script.
That is, the system image file, the application, and the boot storage location (installation location) of the middleware in the edge all-in-one are determined by the management scheduling module, and then the system image file is automatically installed by the boot file.
The cobbler module is responsible for the installation of an operating system of the integrated machine, and the shell script module is responsible for the installation of applications and middleware and the self-inspection of operation and maintenance.
And under the condition that the deployment progress of the edge all-in-one machine is that the installation of the system mirror image is completed, sequentially scheduling the shell script and the allowable module according to a preset sequence by a management scheduling module so as to install the application and the middleware corresponding to the shell script to the edge all-in-one machine.
In the deployment process, there may be installation failure, and an operation and maintenance self-checking function is required, which is specifically as follows:
and the server determines whether installation error information exists or not by scheduling the self-checking script in the shell script.
And under the condition that the installation error information exists, determining an application, middleware or system image file corresponding to the security error information, and generating corresponding alarm information. The alarm information is used for indicating the application, middleware or system image file with the installation error. The alarm information comprises at least one or more of the following: sound, text, pictures. And then, sending the alarm information to the corresponding user terminal.
The shell scripts comprise control scripts, self-checking scripts and deployment scripts. The workflow of the shell script module is shown in fig. 5, and the control script schedules the self-checking script and the deployment script.
Wherein control script 510 is used to schedule 511 self-test script 520 and deployment script 530. The self-test script and the deployment script feed back 512 the running results to the control script. The deployment script includes at least one or more of the following: a relational database management system MySQL installation script, a remote dictionary service Redis installation script, an industrial internet IIoT installation script, and a terminal remote maintenance management system (TERMINAL MANAGEMENT SYSTEM, TMS) installation script.
In the embodiment of the application, based on the first deployment information and the configuration file, the corresponding system image file, application and middleware are installed to the edge all-in-one machine, and the method specifically further comprises the following steps:
And the server sends the system image file in the first deployment information to the edge all-in-one machine through the management scheduling module. And installing the system image file to the edge all-in-one machine through the configuration file. And under the condition that the deployment progress of the edge all-in-one machine is that the installation of the system mirror image is completed, installing the application and the middleware to the edge all-in-one machine according to the corresponding deployment script and the preset deployment compression package of the application and the middleware corresponding to the shell script. And configuring the configuration parameters of the installed application and middleware according to the configuration file.
That is, when the installation of the operating system of the edge all-in-one machine is completed, the application and the middleware are installed by the shell script. The applications may include: microservices developed based on spring closed, middleware such as: mySQL, redis, a database MongoDB based on distributed file storage, an open source stream processing platform kafka, a dynamic service discovery, configuration management and service management platform (DYNAMIC NAMING AND Configuration Service, nacos) for easily building cloud native applications, an open source million-level distributed MQTT message server emqx, and a compute engine spark.
According to the application, the automatic deployment of the edge integrated machine is performed through the server (deployment platform) of the scheme, and operation and maintenance personnel do not need to manually operate when each integrated machine performs deployment systems, service applications and middleware, so that the deployment time of the integrated machine is saved, and the problems that the current edge integrated machine deployment consumes labor, has low efficiency and cannot flexibly and efficiently perform automatic configuration are solved
Fig. 6 is a schematic diagram of an automatic integrated machine deployment device based on cobbler according to an embodiment of the present application, where the device includes:
At least one processor; and a memory communicatively coupled to the at least one processor. Wherein the memory stores instructions executable by the at least one processor, the instructions being executable by the at least one processor to enable the at least one processor to:
And acquiring first deployment information. The first deployment information comprises a plurality of shell scripts and system image files. And generating a corresponding configuration file based on the second deployment information preconfigured by the user. The configuration file is cobbler corresponding to the configuration file. And acquiring an IP address request allocation instruction of at least one edge all-in-one machine, and allocating a corresponding IP address to the edge all-in-one machine so as to establish a system deployment channel. Based on deployment request information of the edge all-in-one machine, sequentially sending corresponding guide files and preset deployment compression packages to the edge all-in-one machine from a system deployment channel. The boot file is used for guiding installation of the corresponding system image file. Based on the first deployment information and the configuration file, corresponding system image files, applications and middleware are installed to the edge all-in-one machine, and the deployment progress of the edge all-in-one machine is determined.
The embodiment of the application also provides a cobbler-based all-in-one automatic deployment nonvolatile computer storage medium, which stores computer executable instructions, wherein the computer executable instructions are set as follows:
And acquiring first deployment information. The first deployment information comprises a plurality of shell scripts and system image files. And generating a corresponding configuration file based on the second deployment information preconfigured by the user. The configuration file is cobbler corresponding to the configuration file. And acquiring an IP address request allocation instruction of at least one edge all-in-one machine, and allocating a corresponding IP address to the edge all-in-one machine so as to establish a system deployment channel. Based on deployment request information of the edge all-in-one machine, sequentially sending corresponding guide files and preset deployment compression packages to the edge all-in-one machine from a system deployment channel. The boot file is used for guiding installation of the corresponding system image file. Based on the first deployment information and the configuration file, corresponding system image files, applications and middleware are installed to the edge all-in-one machine, and the deployment progress of the edge all-in-one machine is determined.
The embodiments of the present application are described in a progressive manner, and the same and similar parts of the embodiments are all referred to each other, and each embodiment is mainly described in the differences from the other embodiments. In particular, for the apparatus, medium embodiments, since they are substantially similar to the method embodiments, the description is relatively simple, and reference is made to the description of the method embodiments for relevant points.
The device, medium and method provided by the embodiment of the application are in one-to-one correspondence, so that the device and medium also have similar beneficial technical effects as the corresponding method, and the beneficial technical effects of the device and medium are not repeated here because the beneficial technical effects of the method are described in detail above.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article or apparatus that comprises the element.
The foregoing is merely exemplary of the present application and is not intended to limit the present application. Various modifications and variations of the present application will be apparent to those skilled in the art. Any modification, equivalent replacement, improvement, etc. which come within the spirit and principles of the application are to be included in the scope of the claims of the present application.
Claims (7)
1. An all-in-one automatic deployment method based on cobbler, which is characterized by comprising the following steps:
acquiring first deployment information; the first deployment information comprises a plurality of shell scripts and system mirror image files;
generating a corresponding configuration file based on second deployment information preconfigured by a user; the configuration file is a configuration file corresponding to cobbler;
acquiring an IP address request allocation instruction of at least one edge all-in-one machine, and allocating a corresponding IP address to the edge all-in-one machine so as to establish a system deployment channel;
Based on the deployment request information of the edge all-in-one machine, sequentially sending corresponding guide files and preset deployment compression packages to the edge all-in-one machine from the system deployment channel; the guide file is used for guiding and installing corresponding system image files;
based on the first deployment information and the configuration file, installing corresponding system image files, applications and middleware to the edge all-in-one machine, and determining the deployment progress of the edge all-in-one machine;
based on the first deployment information and the configuration file, installing corresponding system image files, applications and middleware to the edge all-in-one machine, and determining the deployment progress of the edge all-in-one machine, wherein the method specifically comprises the following steps:
Determining a guide storage position of the edge all-in-one machine through a preset management scheduling module, so as to install the system image file through the cobbler and the guide file in the edge all-in-one machine; the management scheduling module is used for scheduling cobbler, shell scripts and an allowable module; the stable module is used for scheduling and executing the shell script;
When the deployment progress of the edge all-in-one machine is that the installation of the system mirror image is completed, sequentially scheduling the shell script and the stable module according to a preset sequence by the management scheduling module so as to install the application and the middleware corresponding to the shell script to the edge all-in-one machine;
wherein the method further comprises:
determining whether installation error information exists or not by scheduling a self-checking script in the shell script;
Under the condition that the installation error information exists, determining an application, middleware or a system mirror image file corresponding to the installation error information, and generating corresponding alarm information; the alarm information is used for indicating an application, middleware or a system image file with installation errors; the alarm information at least comprises one or more of the following: sound, text, picture;
Sending the alarm information to a corresponding user terminal;
The method comprises the steps of obtaining an IP address request allocation instruction of at least one edge all-in-one machine, and allocating a corresponding IP address to the edge all-in-one machine to establish a system deployment channel, and specifically comprises the following steps:
after receiving the IP address request allocation instruction, determining the MAC address of the edge all-in-one machine, and comparing the MAC address with a preset local area network address table to determine whether the MAC address of the edge all-in-one machine is in a deployable local area network;
If yes, the corresponding IP address is distributed to the edge all-in-one machine so as to establish a system deployment channel;
Otherwise, generating abnormal access information and sending the abnormal access information to the user terminal and the edge all-in-one machine.
2. The method of claim 1, wherein prior to generating the corresponding configuration file based on the second deployment information preconfigured by the user, the method further comprises:
Generating a plurality of deployment templates based on the configuration operation of the user; the deployment template comprises a plurality of deployment parameters in the second deployment information; the deployment parameters are used for configuring the configuration parameters of cobbler, ansible modules and shell scripts; the deployment template is scheduled by the management scheduling module.
3. The method of claim 1, wherein the configuration file comprises: user configuration file Profile file and automatic response file kckstart file;
Based on the first deployment information and the configuration file, installing corresponding system image files, applications and middleware to the edge all-in-one machine specifically comprises:
the management scheduling module is used for sending the system image file in the first deployment information to the edge all-in-one machine; installing the system image file to the edge all-in-one machine through the configuration file;
Under the condition that the deployment progress of the edge all-in-one machine is that the installation of the system mirror image is completed, installing the application and the middleware to the edge all-in-one machine according to the corresponding deployment scripts of the application and the middleware corresponding to the shell script and the preset deployment compression package; and configuring the configuration parameters of the installed application and middleware according to the configuration file.
4. The method of claim 1, wherein the shell script comprises a control script, a self-test script, a deployment script; the control script is used for scheduling the self-checking script and the deployment script; and the self-checking script and the deployment script feed back the running result to the control script.
5. The method of claim 4, wherein the deployment script comprises at least one or more of: a relational database management system MySQL installation script, a remote dictionary service Redis installation script, an industrial Internet IIoT installation script and a terminal remote maintenance management system TMS installation script.
6. Cobbler-based all-in-one automatic deployment equipment, characterized in that the equipment comprises:
at least one processor; and
A memory communicatively coupled to the at least one processor; wherein,
The memory stores instructions executable by the at least one processor to enable the at least one processor to perform an automatic cobbler-based all-in-one deployment method as set forth in any one of claims 1-5.
7. A non-volatile computer storage medium for automatic deployment of a single machine based on cobbler, storing computer executable instructions, wherein the computer executable instructions are capable of performing a single machine automatic deployment method based on cobbler as claimed in any one of claims 1 to 5.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202211564597.3A CN115883348B (en) | 2022-12-07 | 2022-12-07 | Automatic deployment method, equipment and medium for all-in-one machine based on cobbler |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202211564597.3A CN115883348B (en) | 2022-12-07 | 2022-12-07 | Automatic deployment method, equipment and medium for all-in-one machine based on cobbler |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN115883348A CN115883348A (en) | 2023-03-31 |
| CN115883348B true CN115883348B (en) | 2024-09-17 |
Family
ID=85766371
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202211564597.3A Active CN115883348B (en) | 2022-12-07 | 2022-12-07 | Automatic deployment method, equipment and medium for all-in-one machine based on cobbler |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN115883348B (en) |
Families Citing this family (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN116755728A (en) * | 2023-08-21 | 2023-09-15 | 成都佰维存储科技有限公司 | System deployment method, device, computer-readable storage medium and electronic equipment |
Citations (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN113741989A (en) * | 2021-09-03 | 2021-12-03 | 杭州安恒信息技术股份有限公司 | Operating system batch installation method and device, computer equipment and storage medium |
Family Cites Families (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US8185891B2 (en) * | 2007-05-14 | 2012-05-22 | Red Hat, Inc. | Methods and systems for provisioning software |
| CN101345990B (en) * | 2007-07-11 | 2011-12-28 | 华为技术有限公司 | Service quality QoS configuration file generation method, network element equipment and system |
| CN105528232A (en) * | 2016-01-27 | 2016-04-27 | 国家电网公司 | A software automatic installation method and system |
| CN108574702A (en) * | 2017-03-08 | 2018-09-25 | 中兴通讯股份有限公司 | A kind of cloud application dispositions method and system |
| CN107896167A (en) * | 2017-12-01 | 2018-04-10 | 济南浪潮高新科技投资发展有限公司 | Structure and method are realized in a kind of virtualization multipurpose cloud service based on OpenStack |
| CN114327498B (en) * | 2021-12-24 | 2025-08-19 | 中国电信股份有限公司 | Automatic deployment method, system, electronic equipment and computer readable medium |
-
2022
- 2022-12-07 CN CN202211564597.3A patent/CN115883348B/en active Active
Patent Citations (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN113741989A (en) * | 2021-09-03 | 2021-12-03 | 杭州安恒信息技术股份有限公司 | Operating system batch installation method and device, computer equipment and storage medium |
Also Published As
| Publication number | Publication date |
|---|---|
| CN115883348A (en) | 2023-03-31 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN110752947B (en) | K8s cluster deployment method and device, and deployment platform | |
| CN108551487B (en) | Application deployment method, device, server and storage medium of PaaS platform | |
| CN108595221B (en) | Plug-in loading method, device, server and storage medium for PaaS platform | |
| EP4002113B1 (en) | Method and system to process requests to execute user code on one or more virtual machine instances identified from a plurality of warmed unassigned virtual machine | |
| US20190171430A1 (en) | Preinstalled Application Management Method for Mobile Terminal and Mobile Terminal | |
| US10430172B2 (en) | Re-configuration in cloud computing environments | |
| CN107800580B (en) | Method, server and system for monitoring installation state of large-batch operating systems | |
| JP2017534107A (en) | Dynamic code deployment and versioning | |
| CN114168179A (en) | Micro-service management method, device, computer equipment and storage medium | |
| CN106886434B (en) | Distributed application installation method and device | |
| CN110753088B (en) | System deployment method and device | |
| CN113407222A (en) | Service updating method and device, computer equipment and storage medium | |
| CN110058894B (en) | Method, apparatus and computer program product for executing applications in a hybrid cloud | |
| CN110098952A (en) | A kind of management method and device of server | |
| CN113568755A (en) | Distributed compilation system and distributed compilation method | |
| CN110955441B (en) | Algorithm updating method and device | |
| CN115883348B (en) | Automatic deployment method, equipment and medium for all-in-one machine based on cobbler | |
| CN113419818B (en) | Basic component deployment method, device, server and storage medium | |
| CN110727503A (en) | Container deployment method, device, equipment, storage medium and container deployment system | |
| CN113296795A (en) | Application deployment method, device, equipment, storage medium and program product | |
| KR20200038038A (en) | Apparatus and method for managing application on multi-cloud service environment | |
| CN102831494A (en) | Scheduling method, scheduling device and scheduling system | |
| CN115357258B (en) | Application deployment method and device, storage medium and electronic device | |
| US20190012161A1 (en) | Distributed and self-deleting apparatus for fast software deployment and upgrade in a network | |
| CN112015524B (en) | Workflow deployment method, device, system and storage medium |
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 | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant |