1
0
mirror of https://github.com/rancher/os.git synced 2025-09-13 13:39:53 +00:00

Extend write_files to run in all system services

This commit is contained in:
Josh Curl
2016-08-14 19:17:24 -07:00
parent 6658917591
commit 0a053c62ab
11 changed files with 191 additions and 34 deletions

View File

@@ -85,12 +85,17 @@ type Repositories map[string]Repository
type CloudConfig struct {
SSHAuthorizedKeys []string `yaml:"ssh_authorized_keys"`
WriteFiles []config.File `yaml:"write_files"`
WriteFiles []File `yaml:"write_files"`
Hostname string `yaml:"hostname"`
Mounts [][]string `yaml:"mounts,omitempty"`
Rancher RancherConfig `yaml:"rancher,omitempty"`
}
type File struct {
config.File
Container string `yaml:"container,omitempty"`
}
type RancherConfig struct {
Console string `yaml:"console,omitempty"`
Environment map[string]string `yaml:"environment,omitempty"`
@@ -119,6 +124,7 @@ type RancherConfig struct {
Defaults Defaults `yaml:"defaults,omitempty"`
ResizeDevice string `yaml:"resize_device,omitempty"`
Sysctl map[string]string `yaml:"sysctl,omitempty"`
RestartServices []string `yaml:"restart_services,omitempty"`
}
type UpgradeConfig struct {