(targetNode *yaml.Node)
| 58 | } |
| 59 | |
| 60 | func ensureSampleUsers(targetNode *yaml.Node) bool { |
| 61 | _, modified := targetNode.EnsureKey( |
| 62 | "users", |
| 63 | yaml.NewMappingNode(), |
| 64 | &yaml.EnsureOptions{ |
| 65 | Comment: ` |
| 66 | Users defines the users who have access to the service. They will need an |
| 67 | SSH key or invite added to their user account before they can access the |
| 68 | server. |
| 69 | # |
| 70 | Sample user (with all options set): |
| 71 | # |
| 72 | belak: |
| 73 | is_admin: true |
| 74 | disabled: false |
| 75 | keys: |
| 76 | - ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIDeQfBUWIqpGXS8xCOg/0RKVOGTnzpIdL7r9wK1/xA52 belak@tmp`, |
| 77 | }, |
| 78 | ) |
| 79 | |
| 80 | return modified |
| 81 | } |
| 82 | |
| 83 | func ensureSampleGroups(targetNode *yaml.Node) bool { |
| 84 | _, modified := targetNode.EnsureKey( |
no test coverage detected