This commit is contained in:
204
deploy.yaml
204
deploy.yaml
@@ -1,108 +1,114 @@
|
|||||||
id: deploy
|
id: deploy
|
||||||
type: PageSiderMenu
|
type: PageHeaderMenu
|
||||||
properties:
|
properties:
|
||||||
title: Deploy
|
title: Deploy
|
||||||
|
|
||||||
areas:
|
areas:
|
||||||
content:
|
content:
|
||||||
blocks:
|
blocks:
|
||||||
- id: title
|
- id: content
|
||||||
type: Title
|
type: Card
|
||||||
layout:
|
layout:
|
||||||
grow: 1
|
size: 800 # Set the size of the card so it does not fill the full screen
|
||||||
properties:
|
contentGutter: 16 # Make a 16px gap between all blocks in this card
|
||||||
content: Deploy
|
blocks:
|
||||||
- id: macaddress
|
- id: title
|
||||||
required: true
|
type: Title
|
||||||
type: TextInput
|
layout:
|
||||||
properties:
|
grow: 1
|
||||||
title: MAC Address
|
|
||||||
placeholder: 00:00:00:00:00:00
|
|
||||||
- id: projectname
|
|
||||||
type: TextInput
|
|
||||||
properties:
|
|
||||||
title: Project name
|
|
||||||
- id: hostname
|
|
||||||
required: true
|
|
||||||
type: TextInput
|
|
||||||
properties:
|
|
||||||
title: Hostname
|
|
||||||
- id: ipaddress
|
|
||||||
required: true
|
|
||||||
type: TextInput
|
|
||||||
properties:
|
|
||||||
title: IP address
|
|
||||||
placeholder: 0.0.0.0
|
|
||||||
- id: subnetmask
|
|
||||||
required: true
|
|
||||||
type: TextInput
|
|
||||||
properties:
|
|
||||||
title: Subnet mask
|
|
||||||
placeholder: 255.255.255.0
|
|
||||||
- id: gateway
|
|
||||||
required: true
|
|
||||||
type: TextInput
|
|
||||||
properties:
|
|
||||||
title: Gateway
|
|
||||||
placeholder: 0.0.0.0
|
|
||||||
- id: dnsserver
|
|
||||||
type: TextInput
|
|
||||||
properties:
|
|
||||||
title: DNS server
|
|
||||||
placeholder: 0.0.0.0, 0.0.0.0
|
|
||||||
- id: dnssuffix
|
|
||||||
type: TextInput
|
|
||||||
properties:
|
|
||||||
title: DNS suffix
|
|
||||||
placeholder: example.org
|
|
||||||
- id: warning
|
|
||||||
type: Alert
|
|
||||||
properties:
|
|
||||||
message: When pressing 'Start Deployment' the physical device should be booted over LAN (PXE).
|
|
||||||
type: warning
|
|
||||||
- id: reset_button
|
|
||||||
type: Button
|
|
||||||
layout:
|
|
||||||
grow: 1
|
|
||||||
properties:
|
|
||||||
title: Reset
|
|
||||||
Icon: ClearOutlined
|
|
||||||
block: true
|
|
||||||
type: default
|
|
||||||
actions:
|
|
||||||
onClick:
|
|
||||||
- id: reset
|
|
||||||
type: reset()
|
|
||||||
- id: start_deployment
|
|
||||||
type: Button
|
|
||||||
layout:
|
|
||||||
grow: 3
|
|
||||||
properties:
|
|
||||||
title: Start Deployment
|
|
||||||
icon: RocketOutlined
|
|
||||||
block: true
|
|
||||||
requests:
|
|
||||||
- id: update_brand
|
|
||||||
type: MongoDBUpdateOne # MongoDb updateOne request to update the brand.
|
|
||||||
connectionId: brands
|
|
||||||
properties:
|
properties:
|
||||||
filter:
|
content: Deploy
|
||||||
_id:
|
- id: macaddress
|
||||||
_state: _id # Select the document that matches the document's _id that is in state.
|
required: true
|
||||||
update:
|
type: TextInput
|
||||||
$set:
|
properties:
|
||||||
name:
|
title: MAC Address
|
||||||
_state: name # Insert the brand name we set in state.
|
placeholder: 00:00:00:00:00:00
|
||||||
description:
|
- id: projectname
|
||||||
_state: description # Insert the description name we set in state.
|
type: TextInput
|
||||||
updated_at:
|
properties:
|
||||||
_date: now # Set the updated_at date as current time.
|
title: Project name
|
||||||
events:
|
- id: hostname
|
||||||
onClick:
|
required: true
|
||||||
- id: update_brand # Call the update_brand request.
|
type: TextInput
|
||||||
type: Request
|
properties:
|
||||||
params: update_brand
|
title: Hostname
|
||||||
- id: link_to_brands # Link back to the brands page.
|
- id: ipaddress
|
||||||
type: Link
|
required: true
|
||||||
params:
|
type: TextInput
|
||||||
pageId: brands
|
properties:
|
||||||
|
title: IP address
|
||||||
|
placeholder: 0.0.0.0
|
||||||
|
- id: subnetmask
|
||||||
|
required: true
|
||||||
|
type: TextInput
|
||||||
|
properties:
|
||||||
|
title: Subnet mask
|
||||||
|
placeholder: 255.255.255.0
|
||||||
|
- id: gateway
|
||||||
|
required: true
|
||||||
|
type: TextInput
|
||||||
|
properties:
|
||||||
|
title: Gateway
|
||||||
|
placeholder: 0.0.0.0
|
||||||
|
- id: dnsserver
|
||||||
|
type: TextInput
|
||||||
|
properties:
|
||||||
|
title: DNS server
|
||||||
|
placeholder: 0.0.0.0, 0.0.0.0
|
||||||
|
- id: dnssuffix
|
||||||
|
type: TextInput
|
||||||
|
properties:
|
||||||
|
title: DNS suffix
|
||||||
|
placeholder: example.org
|
||||||
|
- id: warning
|
||||||
|
type: Alert
|
||||||
|
properties:
|
||||||
|
message: When pressing 'Start Deployment' the physical device should be booted over LAN (PXE).
|
||||||
|
type: warning
|
||||||
|
- id: reset_button
|
||||||
|
type: Button
|
||||||
|
layout:
|
||||||
|
grow: 1
|
||||||
|
properties:
|
||||||
|
title: Reset
|
||||||
|
icon: ClearOutlined
|
||||||
|
block: true
|
||||||
|
type: default
|
||||||
|
actions:
|
||||||
|
onClick:
|
||||||
|
- id: reset
|
||||||
|
type: reset()
|
||||||
|
- id: start_deployment
|
||||||
|
type: Button
|
||||||
|
layout:
|
||||||
|
grow: 3
|
||||||
|
properties:
|
||||||
|
title: Start Deployment
|
||||||
|
icon: RocketOutlined
|
||||||
|
block: true
|
||||||
|
requests:
|
||||||
|
- id: update_brand
|
||||||
|
type: MongoDBUpdateOne # MongoDb updateOne request to update the brand.
|
||||||
|
connectionId: brands
|
||||||
|
properties:
|
||||||
|
filter:
|
||||||
|
_id:
|
||||||
|
_state: _id # Select the document that matches the document's _id that is in state.
|
||||||
|
update:
|
||||||
|
$set:
|
||||||
|
name:
|
||||||
|
_state: name # Insert the brand name we set in state.
|
||||||
|
description:
|
||||||
|
_state: description # Insert the description name we set in state.
|
||||||
|
updated_at:
|
||||||
|
_date: now # Set the updated_at date as current time.
|
||||||
|
events:
|
||||||
|
onClick:
|
||||||
|
- id: update_brand # Call the update_brand request.
|
||||||
|
type: Request
|
||||||
|
params: update_brand
|
||||||
|
- id: link_to_brands # Link back to the brands page.
|
||||||
|
type: Link
|
||||||
|
params:
|
||||||
|
pageId: brands
|
||||||
|
Reference in New Issue
Block a user