github.com/choria-io/go-choria@v0.28.1-0.20240416190746-b3bf9c7d5a45/aagent/watchers/pluginswatcher/machine.yaml (about)

     1  name: "{{ .NamePrefix }}_{{ .Name }}"
     2  version: 1.0.0
     3  initial_state: MANAGE
     4  
     5  transitions:
     6    - name: enter_maintenance
     7      from: [ MANAGE ]
     8      destination: MAINTENANCE
     9  
    10    - name: resume
    11      from: [ MAINTENANCE ]
    12      destination: MANAGE
    13  
    14  watchers:
    15    - name: download
    16      type: archive
    17      interval: "{{.Interval}}"
    18      state_match:
    19        - MANAGE
    20      properties:
    21        checksum: "{{ .ArchiveChecksum }}"
    22        creates: "{{ .Name }}"
    23        governor: "{{ .Governor }}"
    24        password: "{{ .Password }}"
    25        source: "{{.Source}}"
    26        target: "{{ .Target }}"
    27        username: "{{ .Username }}"
    28        verify: "SHA256SUMS"
    29        verify_checksum: "{{ .ContentChecksumsChecksum }}"