Class: Furnish::Provisioner::Chef10Server
- Inherits:
-
KnifeServer
- Object
- API
- KnifeServer
- Furnish::Provisioner::Chef10Server
- Defined in:
- lib/furnish/provisioners/chef10_server.rb
Overview
Builds a Chef 10 Server as a part of a Furnish::ProvisionerGroup.
Please see Furnish::Provisioner::Chef10Server#new and Furnish::Provisioner::KnifeServer for information on how to create this provisioner.
Instance Method Summary collapse
-
#initialize(args) ⇒ Chef10Server
constructor
Construct a provisioner.
Methods inherited from KnifeServer
#bootstrap_version, #check_ssh_args, #config_file, #init_knife_plugin, #install_test, #node_name, #platform, #report, #shutdown, #ssh_identity_file, #ssh_password, #ssh_user, #startup
Constructor Details
#initialize(args) ⇒ Chef10Server
Construct a provisioner.
There are a large number of arguments covered in Furnish::Provisioner::KnifeServer that apply to all provisioners that inherit from it, so you should read that too.
The defaults here are:
-
#platform: “auto” – this is knife-server speak for “figure it out”
-
#bootstrap_version: “10.24.0”
Note that bootstrap versions that do not start with “10” or “0.10” will raise during provisioner construction.
It takes a hash of arguments, which maps to the attributes described in this class and KnifeServer.
41 42 43 44 45 46 47 48 49 50 |
# File 'lib/furnish/provisioners/chef10_server.rb', line 41 def initialize(args) super @platform ||= "auto" @bootstrap_version ||= "10.24.0" unless @bootstrap_version =~ /^10\./ or @bootstrap_version =~ /^0\.10/ raise ArgumentError, "#{self.class} provisioner requires a bootstrap version in the 10.x series" end end |