flannel: added flannel support and helper to make dropins

fleet, flannel, and etcd all generate dropins from config.
To reduce code duplication, factor out a helper to do that.
This commit is contained in:
Eugene Yakubovich
2014-10-06 12:06:33 -07:00
parent d9d89a6fa0
commit a20addd05e
9 changed files with 113 additions and 25 deletions

View File

@@ -131,6 +131,7 @@ func Apply(cfg config.CloudConfig, env *Environment) error {
for _, ccu := range []CloudConfigUnit{
system.Etcd{Etcd: cfg.Coreos.Etcd},
system.Fleet{Fleet: cfg.Coreos.Fleet},
system.Flannel{Flannel: cfg.Coreos.Flannel},
system.Update{Update: cfg.Coreos.Update, ReadConfig: system.DefaultReadConfig},
} {
units = append(units, ccu.Units()...)