Skip to content

Instantly share code, notes, and snippets.

@ccallahan
Created August 31, 2021 13:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ccallahan/79499440b4bf54b3defececf168b0c09 to your computer and use it in GitHub Desktop.
Save ccallahan/79499440b4bf54b3defececf168b0c09 to your computer and use it in GitHub Desktop.
storage:
files:
- path: /etc/zincati/config.d/55-updates-strategy.toml
contents:
inline: |
[updates]
strategy = "periodic"
[updates.periodic]
time_zone = "US/Eastern"
[[updates.periodic.window]]
days = [ "Tue" ]
start_time = "22:00"
length_minutes = 60
disks:
- device: /dev/vda
wipe_table: true
partitions:
- label: root0
size_mib: 5000
type_guid: A19D880F-05FC-4D3B-A006-743F0F84911E
- label: data0
type_guid: A19D880F-05FC-4D3B-A006-743F0F84911E
- device: /dev/vdb
wipe_table: true
partitions:
- label: root1
size_mib: 5000
type_guid: A19D880F-05FC-4D3B-A006-743F0F84911E
- label: data1
type_guid: A19D880F-05FC-4D3B-A006-743F0F84911E
raid:
- name: "md-data"
devices:
- "/dev/disk/by-partlabel/data0"
- "/dev/disk/by-partlabel/data1"
level: "raid1"
- name: "md-root"
devices:
- "/dev/disk/by-partlabel/root0"
- "/dev/disk/by-partlabel/root1"
level: "raid1"
filesystems:
- label: "data"
device: "/dev/md/md-data"
format: "xfs"
wipe_filesystem: true
path: "/path/to/mount"
with_mount_unit: true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment