Class ChefSolo.Builder
- java.lang.Object
-
- org.jclouds.scriptbuilder.statements.chef.ChefSolo.Builder
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ChefSolobuild()ChefSolo.BuildercookbookPath(String cookbookPath)Directory where Chef Solo will look for cookbooks.ChefSolo.BuildercookbookPaths(Iterable<String> cookbookPaths)Directories where Chef Solo will look for cookbooks.ChefSolo.BuildercookbooksArchiveLocation(String cookbooksArchiveLocation)Local file path or remote URL of a cookbook tar file.ChefSolo.BuilderdataBagPath(String dataBagPath)Directory where Chef Solo will store data bags.ChefSolo.BuilderdefineDataBag(DataBag dataBag)Creates a data bag.ChefSolo.BuilderdefineDataBags(Iterable<DataBag> databags)Creates a set of data bags.ChefSolo.BuilderdefineRole(Role role)Creates a role.ChefSolo.BuilderdefineRoles(Iterable<Role> roles)Creates a set of roles.ChefSolo.BuilderfileCachePath(String fileCachePath)Directory where Chef Solo will store files.ChefSolo.Buildergroup(String group)The goup to set privilege to.ChefSolo.Builderinterval(Integer interval)Run chef-client periodically, in seconds.ChefSolo.BuilderjsonAttributes(String jsonAttributes)JSON attributes to customize cookbook values.ChefSolo.BuilderlogFile(String logFile)Set the log file location, by default STDOUT.ChefSolo.BuilderlogLevel(String logLevel)Set he Log level (debug, info, warn, error, fatal).ChefSolo.BuildernodeName(String nodeName)Set the name for the node.ChefSolo.BuilderrolePath(String rolePath)Directory where Chef Solo will store roles.ChefSolo.Builderrunlist(RunList runlist)The run list to be executed in the Chef Solo run.ChefSolo.Buildersplay(Integer splay)The splay time for running at intervals, in seconds.ChefSolo.Builderuser(String user)The user to set privilege to.
-
-
-
Method Detail
-
fileCachePath
public ChefSolo.Builder fileCachePath(String fileCachePath)
Directory where Chef Solo will store files.
-
rolePath
public ChefSolo.Builder rolePath(String rolePath)
Directory where Chef Solo will store roles.
-
dataBagPath
public ChefSolo.Builder dataBagPath(String dataBagPath)
Directory where Chef Solo will store data bags.
-
cookbookPath
public ChefSolo.Builder cookbookPath(String cookbookPath)
Directory where Chef Solo will look for cookbooks.
-
cookbookPaths
public ChefSolo.Builder cookbookPaths(Iterable<String> cookbookPaths)
Directories where Chef Solo will look for cookbooks.
-
cookbooksArchiveLocation
public ChefSolo.Builder cookbooksArchiveLocation(String cookbooksArchiveLocation)
Local file path or remote URL of a cookbook tar file. Chef solo will download and unpack its contents in thefileCachePathdirectory.
-
jsonAttributes
public ChefSolo.Builder jsonAttributes(String jsonAttributes)
JSON attributes to customize cookbook values.
-
group
public ChefSolo.Builder group(String group)
The goup to set privilege to.
-
interval
public ChefSolo.Builder interval(Integer interval)
Run chef-client periodically, in seconds.
-
logLevel
public ChefSolo.Builder logLevel(String logLevel)
Set he Log level (debug, info, warn, error, fatal).
-
logFile
public ChefSolo.Builder logFile(String logFile)
Set the log file location, by default STDOUT.
-
nodeName
public ChefSolo.Builder nodeName(String nodeName)
Set the name for the node. By default the hostname will be used.
-
splay
public ChefSolo.Builder splay(Integer splay)
The splay time for running at intervals, in seconds.
-
user
public ChefSolo.Builder user(String user)
The user to set privilege to.
-
defineRole
public ChefSolo.Builder defineRole(Role role)
Creates a role.
-
defineRoles
public ChefSolo.Builder defineRoles(Iterable<Role> roles)
Creates a set of roles.
-
defineDataBag
public ChefSolo.Builder defineDataBag(DataBag dataBag)
Creates a data bag.- Since:
- Chef 0.10.4
-
defineDataBags
public ChefSolo.Builder defineDataBags(Iterable<DataBag> databags)
Creates a set of data bags.- Since:
- Chef 0.10.4
-
runlist
public ChefSolo.Builder runlist(RunList runlist)
The run list to be executed in the Chef Solo run.
-
build
public ChefSolo build()
-
-