(targetNode *yaml.Node)
| 81 | } |
| 82 | |
| 83 | func ensureSampleGroups(targetNode *yaml.Node) bool { |
| 84 | _, modified := targetNode.EnsureKey( |
| 85 | "groups", |
| 86 | yaml.NewMappingNode(), |
| 87 | &yaml.EnsureOptions{ |
| 88 | Comment: ` |
| 89 | Groups can be used in any place a normal user could be used. They are prefixed |
| 90 | with a $, so the admins group could be accessed with $admins. Groups can be |
| 91 | defined recursively, but they cannot have loops. |
| 92 | # |
| 93 | Sample groups: |
| 94 | # |
| 95 | groups: |
| 96 | admins: |
| 97 | - belak |
| 98 | - some-trusted-user |
| 99 | vault-members: |
| 100 | - $admins |
| 101 | - some-less-trusted-user`, |
| 102 | }, |
| 103 | ) |
| 104 | |
| 105 | return modified |
| 106 | } |
| 107 | |
| 108 | func ensureSampleOrgs(targetNode *yaml.Node) bool { |
| 109 | _, modified := targetNode.EnsureKey( |
no test coverage detected