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

     1  name: "mm_{{ .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        source: "{{.Source}}"
    22        checksum: "{{ .ArchiveChecksum }}"
    23        verify: "SHA256SUMS"
    24        verify_checksum: "{{ .ContentChecksumsChecksum }}"
    25        creates: "{{ .Name }}"
    26        target: "{{ .Target }}"
    27        username: "{{ .Username }}"
    28        password: "{{ .Password }}"
    29        governor: "{{ .Governor }}"