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 ChefSolo
build()
ChefSolo.Builder
cookbookPath(String cookbookPath)
Directory where Chef Solo will look for cookbooks.ChefSolo.Builder
cookbookPaths(Iterable<String> cookbookPaths)
Directories where Chef Solo will look for cookbooks.ChefSolo.Builder
cookbooksArchiveLocation(String cookbooksArchiveLocation)
Local file path or remote URL of a cookbook tar file.ChefSolo.Builder
dataBagPath(String dataBagPath)
Directory where Chef Solo will store data bags.ChefSolo.Builder
defineDataBag(DataBag dataBag)
Creates a data bag.ChefSolo.Builder
defineDataBags(Iterable<DataBag> databags)
Creates a set of data bags.ChefSolo.Builder
defineRole(Role role)
Creates a role.ChefSolo.Builder
defineRoles(Iterable<Role> roles)
Creates a set of roles.ChefSolo.Builder
fileCachePath(String fileCachePath)
Directory where Chef Solo will store files.ChefSolo.Builder
group(String group)
The goup to set privilege to.ChefSolo.Builder
interval(Integer interval)
Run chef-client periodically, in seconds.ChefSolo.Builder
jsonAttributes(String jsonAttributes)
JSON attributes to customize cookbook values.ChefSolo.Builder
logFile(String logFile)
Set the log file location, by default STDOUT.ChefSolo.Builder
logLevel(String logLevel)
Set he Log level (debug, info, warn, error, fatal).ChefSolo.Builder
nodeName(String nodeName)
Set the name for the node.ChefSolo.Builder
rolePath(String rolePath)
Directory where Chef Solo will store roles.ChefSolo.Builder
runlist(RunList runlist)
The run list to be executed in the Chef Solo run.ChefSolo.Builder
splay(Integer splay)
The splay time for running at intervals, in seconds.ChefSolo.Builder
user(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 thefileCachePath
directory.
-
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()
-
-