File tree Expand file tree Collapse file tree 2 files changed +48
-0
lines changed Expand file tree Collapse file tree 2 files changed +48
-0
lines changed Original file line number Diff line number Diff line change @@ -21,6 +21,7 @@ resources:
21
21
- workflowtemplates/enroll-server.yaml
22
22
- workflowtemplates/reclean-server.yaml
23
23
- workflowtemplates/openstack-oslo-event.yaml
24
+ - workflowtemplates/netapp-configure-net.yaml
24
25
# Alert automation
25
26
- sensors/alertmanager-webhook-sensor.yaml
26
27
- eventsources/alertmanager-webhook-eventsource.yaml
Original file line number Diff line number Diff line change
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
You can’t perform that action at this time.
0 commit comments