测试项目 - 样题
以下是提交给 WorldSkills 的所有《测试项目》提案中必须包含的章节或信息清单。
此《测试项目》由以下文档/文件组成:
准确和最新的文档一直是信息技术的挑战。由于在同一系统有很多工程师一起工作,这就使追踪是谁改变了什么内容变得很困难。Applix 公司决定处理这个问题,并雇佣你来对他们的基础设施进行现代化改造,强化和拓展。
您将虚拟机迁移为基础架构即代码(IaC),并简化创建新服务的过程。你可以访问开发虚拟机(DEV-LIN & DEV-WIN)。你可以使用这些虚拟机来开发及测试你的工作,你应该完全能够使用Ansible和Python来完成所有的任务。
Linux 用户名 : root / appadmin ?
Windows用户名 : Administrator / appadmin
密码: CNSkills-2023
所有的虚拟机和设备都连接到管理网络(10.22.0.0/24),都有静态配置IP地址。网络表中的所有IP地址都不会因为评分而更改。管理网络可以被用来配置不同的主机。你可以在SSH, HTTPS or WinRM上使用用户名和密码登录。
你可以在虚拟机上安装额外所需的软件包和功能。
从HOST VM使用Ansible和Python脚本配置Linux主机LIN[1-5]。在评分前,所有的Linux VMs都会重置到初始状态。
您可以将Debian 11 ISO连接到VMs。
“Welcome to the intranet of Applix”
“This site was served by <hostname>”
从HOST VM使用Ansible和python配置Windows主机WIN[1-5]。
XX days XX hours XX minutes XX seconds XX days XX hours XX minutes XX seconds XX days XX hours XX minutes XX seconds
从HOST VM使用Ansible和Python脚本配置路由器RTR[1-8]。在评分前,所有的网络设备都会重置到初始状态。
创建一个Python API来查询有关基础设施的数据。API应当被托管在HOST?VM上,所有API文件应位于/data/api下。你可以自由地使用Debian ISO上任何可用的模块和框架。
{
"ram_free": "X",
"uptime": "XX:XX:XX:XX,
"api_pid": "X",
"api_prio": "X",
"total_proc": "X”
}
{
"devices": [{
"hostname": "X",
"management_ip": "XXX.XXX.XXX",
"ios_version": "XX.XX",
???????? "interfaces": [
???????????? {
????????????????"name": "GigabitEthernet1",
????????????????"mac": "XX:XX:XX:XX:XX:XX",
????????????????"ip": "XXX.XXX.XXX.XXX",
????????????????"pkts-in": "XX",
????????????????"pkts-out": "XX"
???????????? },
???????????? {
????????????????"name": "Loopback0",
????????????????"mac": "XX:XX:XX:XX:XX:XX",
????????????????"ip": "XXX.XXX.XXX.XXX",
????????????????"pkts-in": "XX",
????????????????"pkts-out": "XX"
???????????? }, ....
????????]
}, {
"hostname": "X",
"management_ip": "XXX.XXX.XXX.XXX",
"ios_version": "X", ....
}, .... ]
}
{
"devices": [{
"management_ip": "XXX.XXX.XXX.XXX",
???????? "bgp_neighbors": [
???????????? {
????????????????"id": "XXX.XXX.XXX.XXX",
????????????????"as": "XXX",
????????????????"uptime": "hh:mm:ss",
????????????????"keepalives-sent": "X",
????????????????"keepalives-received": "X"
???????????? },
???????????? {
????????????????"id": "XXX.XXX.XXX.XXX",
????????????????"as": "XXX",
????????????????"uptime": "hh:mm:ss",
????????????????"keepalives-sent": "X",
????????????????"keepalives-received": "X"
???????????? }, ....
????????]
}, {
"management_ip": "XXX.XXX.XXX.XXX",
}, .... ]
}
ID | IP | OS | HOSTNAME | GROUP | DESCRIPTION |
DEV-LIN | 10.22.0.251 | Debian 11.3 (GNOME) |
|
| Development VM with the following software installed:
|
DEV-WIN | 10.22.0.252 | Windows 10 Pro |
|
| Development VM with the following software installed:
|
HOST | 10.22.0.50 | Debian 11.3 | host | host | Host Server |
LIN1 | 10.22.0.1 | Debian 11.3 | APPLIX-LINUXHOST-001 | web | Dynamic Config |
LIN2 | 10.22.0.2 | Debian 11.3 | APPLIX-LINUXHOST-002 | dns | Dynamic Config |
LIN3 | 10.22.0.3 | Debian 11.3 | APPLIX-LINUXHOST-003 | dns | Dynamic Config |
LIN4 | 10.22.0.4 | Debian 11.3 | APPLIX-LINUXHOST-004 | web/dns | Dynamic Config |
LIN5 | 10.22.0.5 | Debian 11.3 | APPLIX-LINUXHOST-005 | dns | Dynamic Config |
WIN1 | 10.22.0.101 | Windows Server 2019 | PETER | dc | Dynamic Config |
WIN2 | 10.22.0.102 | Windows Server 2019 (Core) | MAX | dc | Dynamic Config |
WIN3 | 10.22.0.103 | Windows Server 2019 (Core) | BEN | iis | Dynamic Config |
WIN4 | 10.22.0.104 | Windows Server 2019 | ANNA | iis | Dynamic Config |
WIN5 | 10.22.0.105 | Windows Server 2019 (Core) | LISA | iis | Dynamic Config |
RTR1 | Gig1 - 10.22.0.201 | Cisco CSR1000v | Internal-RTR1 | Internal-router | Internal - Dynamic Config |
RTR2 | Gig1 - 10.22.0.202 | Cisco CSR1000v | Internal-RTR2 | Internal-router | Internal - Dynamic Config |
RTR3 | Gig1 - 10.22.0.203 | Cisco CSR1000v | Internal-RTR3 | Internal-router | Internal - Dynamic Config |
RTR4 | Gig1 - 10.22.0.204 | Cisco CSR1000v | Internal-RTR4 | Internal-router | Internal - Dynamic Config |
RTR5 | Gig1 - 10.22.0.205 | Cisco CSR1000v | Edge-RTR5 | Edge-router | Edge - Dynamic Config |
RTR6 | Gig1 - 10.22.0.206 | Cisco CSR1000v | Edge-RTR6 | Edge-router | Edge - Dynamic Config |
RTR7 | Gig1 - 10.22.0.207 | Cisco CSR1000v | External-RTR7 | External-router | External - Dynamic Config |
RTR8 | Gig1 - 10.22.0.208 | Cisco CSR1000v | External-RTR8 | External-router | External - Dynamic Config |
CML | 10.22.0.240 | Cisco Modelling Lab | - CML | - CML | Web Access |