diff --git a/config/types.go b/config/types.go index e4468adf..c252b524 100644 --- a/config/types.go +++ b/config/types.go @@ -113,6 +113,8 @@ type StateConfig struct { Required bool `yaml:"required,omitempty"` Autoformat []string `yaml:"autoformat,omitempty"` FormatZero bool `yaml:"formatzero,omitempty"` + MdadmScan bool `yaml:"mdadm_scan,omitempty"` + Script string `yaml:"script,omitempty"` OemFsType string `yaml:"oem_fstype,omitempty"` OemDev string `yaml:"oem_dev,omitempty"` } diff --git a/os-config.yml b/os-config.yml index 066ff7d8..61d38f4d 100644 --- a/os-config.yml +++ b/os-config.yml @@ -1,5 +1,21 @@ rancher: bootstrap: + state-script: + image: rancher/os-statescript:v0.4.3-dev + labels: + io.rancher.os.detach: "false" + io.rancher.os.scope: system + io.rancher.os.after: udev-bootstrap + log_driver: json-file + net: host + uts: host + privileged: true + volumes: + - /dev:/host/dev + - /lib/modules:/lib/modules + - /lib/firmware:/lib/firmware + - /usr/bin/ros:/usr/bin/ros:ro + - /usr/share/ros:/usr/share/ros:ro udev-bootstrap: image: rancher/os-udev:v0.4.3-dev environment: