Skip to content

Commit 8714175

Browse files
committed
add netapp-configure-net WorkflowTemplate
1 parent 2d8dde3 commit 8714175

File tree

2 files changed

+48
-0
lines changed

2 files changed

+48
-0
lines changed

workflows/argo-events/kustomization.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ resources:
2121
- workflowtemplates/enroll-server.yaml
2222
- workflowtemplates/reclean-server.yaml
2323
- workflowtemplates/openstack-oslo-event.yaml
24+
- workflowtemplates/netapp-configure-net.yaml
2425
# Alert automation
2526
- sensors/alertmanager-webhook-sensor.yaml
2627
- eventsources/alertmanager-webhook-eventsource.yaml
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
apiVersion: argoproj.io/v1alpha1
2+
metadata:
3+
name: netapp-configure-net
4+
annotations:
5+
workflows.argoproj.io/title: NetApp LIF configuration
6+
workflows.argoproj.io/description: |
7+
Configures LIFs on the NetApp based on the Nautobot data.
8+
9+
To test this workflow you can run it with the following:
10+
11+
```
12+
argo -n argo-events submit --from workflowtemplate/netapp-configure-net \
13+
-p project_id=3c1648df945f429893b676648eddff7b
14+
```
15+
NOTE: no dashes in project_id !
16+
17+
Defined in `workflows/argo-events/workflowtemplates/netapp-configure-net.yaml`
18+
kind: WorkflowTemplate
19+
spec:
20+
entrypoint: main
21+
serviceAccountName: workflow
22+
templates:
23+
- name: main
24+
inputs:
25+
parameters:
26+
- name: project_id
27+
container:
28+
image: ghcr.io/rackerlabs/understack/ironic-nautobot-client:latest
29+
command:
30+
- netapp-configure-interfaces
31+
args:
32+
- "--project-id"
33+
- "{{workflow.parameters.project_id}}"
34+
volumeMounts:
35+
- mountPath: /etc/nb-token/
36+
name: nb-token
37+
readOnly: true
38+
- mountPath: /etc/netapp
39+
name: netapp-ini
40+
readOnly: true
41+
volumes:
42+
- name: nb-token
43+
secret:
44+
secretName: nautobot-token
45+
- name: netapp-ini
46+
secret:
47+
secretName: netapp-config

0 commit comments

Comments
 (0)