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

Support string values for runcmd

This commit is contained in:
Josh Curl
2016-11-07 11:36:37 -08:00
parent ee16cd4311
commit c1abc67fa8
6 changed files with 65 additions and 14 deletions

View File

@@ -7,6 +7,7 @@ import (
"github.com/coreos/coreos-cloudinit/config"
"github.com/docker/engine-api/types"
composeConfig "github.com/docker/libcompose/config"
"github.com/rancher/os/config/yaml"
)
const (
@@ -83,13 +84,13 @@ type Repository struct {
type Repositories map[string]Repository
type CloudConfig struct {
SSHAuthorizedKeys []string `yaml:"ssh_authorized_keys"`
WriteFiles []File `yaml:"write_files"`
Hostname string `yaml:"hostname"`
Mounts [][]string `yaml:"mounts,omitempty"`
Rancher RancherConfig `yaml:"rancher,omitempty"`
Runcmd [][]string `yaml:"runcmd,omitempty"`
Bootcmd [][]string `yaml:"bootcmd,omitempty"`
SSHAuthorizedKeys []string `yaml:"ssh_authorized_keys"`
WriteFiles []File `yaml:"write_files"`
Hostname string `yaml:"hostname"`
Mounts [][]string `yaml:"mounts,omitempty"`
Rancher RancherConfig `yaml:"rancher,omitempty"`
Runcmd []yaml.StringandSlice `yaml:"runcmd,omitempty"`
Bootcmd []yaml.StringandSlice `yaml:"bootcmd,omitempty"`
}
type File struct {