1
0
mirror of https://github.com/rancher/os.git synced 2025-09-17 15:40:47 +00:00

Default config changes

This commit is contained in:
Darren Shepherd
2015-02-19 08:34:38 -07:00
parent b9c8b5baf4
commit 23484e4821
2 changed files with 7 additions and 9 deletions

View File

@@ -27,21 +27,18 @@ const (
) )
var ( var (
ConfigFile = "/var/lib/rancher/rancher.yml" ConfigFile = "/var/lib/rancher/conf/rancher.yml"
) )
type InitFunc func(*Config) error type InitFunc func(*Config) error
type ContainerConfig struct { type ContainerConfig struct {
Id string `yaml:"id,omitempty"` Id string `yaml:"id,omitempty"`
Cmd string `yaml:"run,omitempty"` Cmd string `yaml:"run,omitempty"`
//Config *runconfig.Config `yaml:"-"` MigrateVolumes bool `yaml:"migrate_volumes,omitempty"`
//HostConfig *runconfig.HostConfig `yaml:"-"`
} }
type Config struct { type Config struct {
//BootstrapContainers []ContainerConfig `yaml:"bootstrapContainers,omitempty"`
//UserContainers []ContainerConfig `yaml:"userContainser,omitempty"`
Debug bool `yaml:"debug,omitempty"` Debug bool `yaml:"debug,omitempty"`
Disable []string `yaml:"disable,omitempty"` Disable []string `yaml:"disable,omitempty"`
Dns []string `yaml:"dns,flow,omitempty"` Dns []string `yaml:"dns,flow,omitempty"`

View File

@@ -12,14 +12,14 @@ func NewConfig() *Config {
Dev: "LABEL=RANCHER_STATE", Dev: "LABEL=RANCHER_STATE",
FsType: "auto", FsType: "auto",
}, },
SystemDockerArgs: []string{"docker", "-d", "-s", "overlay", "-b", "none"}, SystemDockerArgs: []string{"docker", "-d", "-s", "overlay", "-b", "none", "--restart=false"},
Modules: []string{}, Modules: []string{},
SystemContainers: []ContainerConfig{ SystemContainers: []ContainerConfig{
{ {
Cmd: "--name=system-state " + Cmd: "--name=system-state " +
"--net=none " + "--net=none " +
"--read-only " + "--read-only " +
"-v=/var/lib/rancher/etc:/var/lib/rancher/etc " + "-v=/var/lib/rancher/conf:/var/lib/rancher/conf " +
"state", "state",
}, },
{ {
@@ -72,6 +72,7 @@ func NewConfig() *Config {
}, },
{ {
Cmd: "--name=ntp " + Cmd: "--name=ntp " +
"--rm " +
"-d " + "-d " +
"--privileged " + "--privileged " +
"--net=host " + "--net=host " +