You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
**NOTE**: `deploy/rbac.yaml` creates a `ClusterRoleBinding` and assumes we are
379
-
working in namespace `default`. If you are working in a different namespace you
380
-
must modify this file before creating it.
381
-
382
383
Verify that the foo-operator is up and running:
383
384
384
385
```sh
@@ -388,7 +389,11 @@ foo-operator 1 1 1 1 1m
388
389
```
389
390
390
391
## Extra vars sent to Ansible
391
-
The extravars that are sent to Ansible are predefined and managed by the operator. The `spec` section will pass along the key-value pairs as extra vars. This is equivalent to how above extra vars are passed in to `ansible-playbook`.
392
+
The extra vars that are sent to Ansible are managed by the operator. The `spec`
393
+
section will pass along the key-value pairs as extra vars. This is equivalent
394
+
to how above extra vars are passed in to `ansible-playbook`. The operator also
395
+
passes along additional variables under the `meta` field for the name of the CR
396
+
and the namespace of the CR.
392
397
393
398
For the CR example:
394
399
```yaml
@@ -401,7 +406,7 @@ spec:
401
406
newParameter: "newParam"
402
407
```
403
408
404
-
The structure is:
409
+
The structure passed to Ansible as extra vars is:
405
410
406
411
407
412
```json
@@ -416,7 +421,9 @@ The structure is:
416
421
},
417
422
}
418
423
```
419
-
`message` and `newParameter` are set in the top level as extra variables and `meta` provides the relevant metadata for the Custom Resource as defined in the operator. The `meta` fields can be access via dot notation in Ansible as so:
424
+
`message`and `newParameter` are set in the top level as extra variables, and
425
+
`meta`provides the relevant metadata for the Custom Resource as defined in the
426
+
operator. The `meta` fields can be accesses via dot notation in Ansible as so:
0 commit comments