file:
  /etc/registry/config.yml:
    exists: true
    filetype: file
    mode: "0644"
    owner: root
    contains:
      - "level: {{ .Vars.logLevel }}"
      - "rootdirectory: {{ .Vars.persistence.imageChartStorage.filesystem.rootdirectory }}"
      - "addr: localhost:{{ .Vars.registry.server.containerPorts.debug }}"
  {{ .Vars.persistence.imageChartStorage.filesystem.rootdirectory }}:
    exists: true
    filetype: directory
    mode: "2775"
    owner: root
  /etc/registry/root.crt:
    exists: true
    filetype: file
    mode: "0644"
    owner: root
