Class ChefSolo.Builder

java.lang.Object
org.jclouds.scriptbuilder.statements.chef.ChefSolo.Builder
Enclosing class:
ChefSolo

public static class ChefSolo.Builder extends Object
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • 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 the fileCachePath 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()