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:
@@ -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"`
|
||||
|
@@ -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 " +
|
||||
|
Reference in New Issue
Block a user