Class: Furnish::Provisioner::Chef11Server
- Inherits:
-
KnifeServer
- Object
- API
- KnifeServer
- Furnish::Provisioner::Chef11Server
- Defined in:
- lib/furnish/provisioners/chef11_server.rb
Overview
Builds a Chef 11 Server as a part of a Furnish::ProvisionerGroup.
Please see Furnish::Provisioner::Chef11Server#new and Furnish::Provisioner::KnifeServer for information on how to create this provisioner.
Instance Method Summary collapse
-
#initialize(args) ⇒ Chef11Server
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) ⇒ Chef11Server
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: “omnibus” – this is knife-server speak for “use erchef omnibus”, and should be portable.
-
#bootstrap_version: “11.0.6”
Note that bootstrap versions that do not start with “11” 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/chef11_server.rb', line 41 def initialize(args) super @platform = "omnibus" @bootstrap_version ||= "11.0.6" unless @bootstrap_version =~ /^11\./ raise ArgumentError, "#{self.class} provisioner requires a bootstrap version in the 11.x series" end end |