Atsystem use method, the current system functions:
Dashboard Main Page
User Management Module
User Group Management Module
Minions Client List module
Minions group Customer Unit Management module
Background Task Management Module
System front-end display is I find a template on the Internet, some buttons or links are currently not added functionality, can be ignored, the following are described in accordance with the modules listed above.
First, dashboard Main page.
650) this.width=650; "Src=" Http://s3.51cto.com/wyfs02/M00/83/66/wKioL1dyRe_w6ZYdAAd5mk-8k4U776.png-wh_500x0-wm_3 -wmp_4-s_3993603695.png "title=" Firefox _2016-06-28t07-38-15.104z.png "alt=" wkiol1dyre_w6zydaad5mk-8k4u776.png-wh_50 "/ >
In the user rights are divided into administrators and ordinary users, so the main interface display is also different, ordinary users only
Permission to use these two modules.
On the left side of the main page is the module
Right
Statistics currently has user status statistics and Minion status statistics.
User information displays basic information about users, groups they belong to, and permissions they have
Minion statistic is a statistic and proportion that shows the various states of the Minion client.
Minion and Mgroup are lists of clients and groups
Gallery currently has no development
Second, the User management module
650) this.width=650; "Src=" Http://s5.51cto.com/wyfs02/M01/83/64/wKioL1dyLkqxZbQcAAMYfOIA4pc940.png-wh_500x0-wm_3 -wmp_4-s_4210570467.png "title=" 1.png "alt=" Wkiol1dylkqxzbqcaamyfoia4pc940.png-wh_50 "/>
The module contains functions: Adding users, deleting users, updating user information.
Add user interface:
650) this.width=650; "Src=" Http://s1.51cto.com/wyfs02/M02/83/65/wKiom1dyL6WQHDjdAAJ5EKvHd6U029.png-wh_500x0-wm_3 -wmp_4-s_3319163262.png "title=" 2.png "alt=" Wkiom1dyl6wqhdjdaaj5ekvhd6u029.png-wh_50 "/>
To update the user information interface:
650) this.width=650; "Src=" Http://s1.51cto.com/wyfs02/M00/83/64/wKioL1dyL9ihsUnKAAKqlj3VyH0570.png-wh_500x0-wm_3 -wmp_4-s_2698179479.png "title=" 3.png "alt=" Wkiol1dyl9ihsunkaakqlj3vyh0570.png-wh_50 "/>
Third, user group management module
The module and the user module are roughly the same, do not introduce more.
650) this.width=650; "Src=" Http://s3.51cto.com/wyfs02/M01/83/65/wKiom1dyMHuCg6LJAANrpfTlSB0658.png-wh_500x0-wm_3 -wmp_4-s_874421626.png "title=" 4.png "alt=" Wkiom1dymhucg6ljaanrpftlsb0658.png-wh_50 "/>
Iv. Minions Client Management module
650) this.width=650; "Src=" Http://s4.51cto.com/wyfs02/M01/83/64/wKioL1dyMgTTq_eeAALrTOwiRgk508.png-wh_500x0-wm_3 -wmp_4-s_3112454872.png "title=" 5.png "alt=" Wkiol1dymgttq_eeaalrtowirgk508.png-wh_50 "/>
The main function of the module is to perform operations on Minion through master, and the main functions are:
Update the Minion information to the database (master accepts the new minion, can be updated manually to the database, but there are tasks in the background will be automatically updated, not manual operation can also)
Detects if the communication between master and Minion is normal.
File copy distribution. (select one or several hosts, click File Copy, the target path must be written as absolute path contains the target file name),
650) this.width=650; "Src=" Http://s5.51cto.com/wyfs02/M02/83/66/wKiom1dyN1CSz1LVAADWISPQaLY988.png-wh_500x0-wm_3 -wmp_4-s_1568030033.png "title=" 7.png "alt=" Wkiom1dyn1csz1lvaadwispqaly988.png-wh_50 "/>
remote command execution. (Input command, the black part below is the echo of the command)
650) this.width=650; "Src=" Http://s2.51cto.com/wyfs02/M00/83/66/wKiom1dyN3mRToN1AABsT19uUMc159.png-wh_500x0-wm_3 -wmp_4-s_825663325.png "title=" 8.png "alt=" Wkiom1dyn3mrton1aabst19uumc159.png-wh_50 "/>
Software Installation. (This feature requires you to manually write the SLS configuration file in the Salt_root_path directory configured in the sys.conf configuration file, to install it, you need to study it yourself)
650) this.width=650; "Src=" Http://s1.51cto.com/wyfs02/M00/83/66/wKioL1dyQTSSW26YAABQKrzZWWs621.png-wh_500x0-wm_3 -wmp_4-s_4086029035.png "title=" 9.png "alt=" Wkiol1dyqtssw26yaabqkrzzwws621.png-wh_50 "/>
650) this.width=650; "Src=" Http://s1.51cto.com/wyfs02/M00/83/65/wKioL1dyNHaiJSi1AARJBHx6gSY656.png-wh_500x0-wm_3 -wmp_4-s_4174742375.png "title=" 6.png "alt=" Wkiol1dynhaijsi1aarjbhx6gsy656.png-wh_50 "/>
Select Hosts, select the host group you want to join, and then click Add.
650) this.width=650; "Src=" Http://s5.51cto.com/wyfs02/M02/83/66/wKioL1dyQbzxfZNtAAO79XWvqB4799.png-wh_500x0-wm_3 -wmp_4-s_614743097.png "title=" 10.png "alt=" Wkiol1dyqbzxfzntaao79xwvqb4799.png-wh_50 "/>
Five, the main group management module
Host group Management also has all the functions of action, but a set of actions for the unit, while there are add, delete, update the function of the group, there is no more introduction.
650) this.width=650; "Src=" Http://s5.51cto.com/wyfs02/M01/83/66/wKioL1dyQkjxHs5EAAKY8bwUZG0359.png-wh_500x0-wm_3 -wmp_4-s_74377382.png "title=" 11.png "alt=" Wkiol1dyqkjxhs5eaaky8bwuzg0359.png-wh_50 "/>
VI. System Background Task management module
Maybe sometimes we want to write a method in the background to perform some operations, this time can be used to manage, but this function method implementation needs your app directory in the tasks.py file to manually write, format reference other methods. Task scheduling is similar to Linux system crontab. The celery is used.
Add a task.
When you have finished writing your task, the system automatically discovers your task name and adds it to the Discover task list. You can also add interval and crontabyourself. A task can only select one of the scheduling types interval and crontab .
650) this.width=650; "Src=" Http://s4.51cto.com/wyfs02/M01/83/67/wKiom1dyRHWzuywGAAK_SSzV860928.png-wh_500x0-wm_3 -wmp_4-s_3874310559.png "title=" 13.png "alt=" Wkiom1dyrhwzuywgaak_sszv860928.png-wh_50 "/>
Delete a task
Update task Information
At present, the function of the system is these, because the front-end is the first contact, some features are not very perfect, can only learn the edge of the update, the system right in the user information there is also a schedule function, but currently only add the schedule, modification and deletion has not yet been implemented.
This article is from the "Venuxs" blog, make sure to keep this source http://venuxs.blog.51cto.com/11763538/1793644
Atsystem Use introduction--saltstack Web management platform