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 (
ConfigFile = "/var/lib/rancher/rancher.yml"
ConfigFile = "/var/lib/rancher/conf/rancher.yml"
)
type InitFunc func(*Config) error
type ContainerConfig struct {
Id string `yaml:"id,omitempty"`
Cmd string `yaml:"run,omitempty"`
//Config *runconfig.Config `yaml:"-"`
//HostConfig *runconfig.HostConfig `yaml:"-"`
Id string `yaml:"id,omitempty"`
Cmd string `yaml:"run,omitempty"`
MigrateVolumes bool `yaml:"migrate_volumes,omitempty"`
}
type Config struct {
//BootstrapContainers []ContainerConfig `yaml:"bootstrapContainers,omitempty"`
//UserContainers []ContainerConfig `yaml:"userContainser,omitempty"`
Debug bool `yaml:"debug,omitempty"`
Disable []string `yaml:"disable,omitempty"`
Dns []string `yaml:"dns,flow,omitempty"`

View File

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