1
0
mirror of https://github.com/rancher/os.git synced 2025-09-01 23:04:41 +00:00

make cloud-config the configuration mechanism for RancherOS

This commit is contained in:
Ivan Mikushin
2015-07-29 11:52:15 +05:00
parent 5d93d51fc5
commit 7ad60c07bd
24 changed files with 919 additions and 917 deletions

View File

@@ -6,9 +6,9 @@ import (
log "github.com/Sirupsen/logrus"
)
type InitFunc func(*Config) error
type InitFunc func(*CloudConfig) error
func RunInitFuncs(cfg *Config, initFuncs []InitFunc) error {
func RunInitFuncs(cfg *CloudConfig, initFuncs []InitFunc) error {
for i, initFunc := range initFuncs {
log.Debugf("[%d/%d] Starting", i+1, len(initFuncs))
if err := initFunc(cfg); err != nil {