This cookbook includes an LWRP chef_server_image
for setting up and configuring chef-server. It creates the organisation and user for chef-server and also configures the Management UI.
Supported on Ubuntu 12.04
Exposes a bash command chef-server-setup
which sets up and configures chef-server on the node.
- :setup: exposes command
chef-server-setup
package_url
: package_url for chef-server.api_fqdn
: set API FQDNcloud_provider
: set the cloud provider. Default isazure
fqdn_type
: Allowed values areinternal
orexternal
. Default isinternal
package_version
: Specify package version.package_name
: Specify package name. Default ischef-server-core
chef_server_configuration
: Configuration hash for chef serveropscode_ui_configuration
: Configuration hash for Opscode UI.apt_repo_distribution
: Apt repository distribution
# Basic chef-server setup and configuration
chef_server_image "chef_server_image setup" do
action :setup
end
After bootstrapping the node with chef_server_image
cookbook, a message will be dispalyed on login to the node:
Run following command to install and configure Chef Server
$ sudo chef-server-setup -u <username> -p <password> -o <organizations-short-name>
Example:
sudo chef-server-setup -u sysadmin -p \$MYPASSWORD -o engineering
Use -? option for additional customization options
Running the command specified above will configure chef-server.