func (p *chefsoloProvisioner) Stateup(b *provision.Box, w io.Writer) error { fmt.Fprintf(w, "--- stateup box (%s)\n", b.GetFullName()) var repo string if b.Repo != nil { repo = b.Repo.Gitr() } DefaultAttributes, _ := json.Marshal(&Attributes{ RunList: []string{"recipe[" + p.Cookbook + "]"}, ToscaType: b.GetShortTosca(), Scm: repo, }) p.Attributes = string(DefaultAttributes) p.Format = DefaultFormat p.LogLevel = DefaultLogLevel p.RootPath = meta.MC.Dir p.Sudo = DefaultSudo return p.kickOffSolo(b, w) }