Chef cookbook to install and configure a Windows Failover Cluster Server.
Attributes in this cookbook:
Name | Types | Description | Default |
---|---|---|---|
['windows_failover_cluster']['run_as_user'] |
String | Sets the default cluster user for resources | nil |
['windows_failover_cluster']['run_as_password'] |
String | Sets the default cluster user password | nil |
Setting these attributes allows you skip the run_as_user
and run_as_password
properties when using this cookbook's resources.
This cookbook doesn't ship any recipes.
It creates a new Windows Failover Cluster or joins an existing cluster.
create
- (default) Creates a new Windows Failover Cluster.join
- Joins a node to an existing cluster.
windows_failover_cluster_node 'name' do
cluster_ip String # required when using :create action
cluster_name String # default value: 'name' unless specified
install_tools true, false # default value: true
quorum_disk String
run_as_password String # default value: node['windows_failover_cluster']['run_as_password']
run_as_user String # default value: node['windows_failover_cluster']['run_as_user']
action Symbol # defaults to :create if not specified
end
Create a cluster:
windows_failover_cluster_node 'Cluster1' do
cluster_ip '192.168.10.10'
quorum_disk 'Cluster Disk 1'
action :create
end
Join an existing cluster:
windows_failover_cluster_node 'Cluster1' do
action :join
end
It creates a generic service for a Windows Failover Cluster.
create
- (default) Creates a new Windows Failover Cluster Generic Service.
windows_failover_cluster_generic_service 'name' do
service_name String # default value: 'name' unless specified
checkpoint_key [Array, String]
role_name String # required
run_as_password String # default value: node['windows_failover_cluster']['run_as_password']
run_as_user String # default value: node['windows_failover_cluster']['run_as_user']
service_ip String # required
storage String
action Symbol # defaults to :create if not specified
end
Create a generic cluster service:
windows_failover_cluster_generic_service 'Service1' do
role_name 'Role1'
service_ip '192.168.10.20'
storage 'Cluster Disk 1'
action :create
end
This cookbook uses Semantic Versioning 2.0.0.
Given a version number MAJOR.MINOR.PATCH, increment the:
- MAJOR version when you make functional cookbook changes,
- MINOR version when you add functionality in a backwards-compatible manner,
- PATCH version when you make backwards-compatible bug fixes.
We welcome contributed improvements and bug fixes via the usual work flow:
- Fork this repository
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new pull request
Authors and contributors:
- Author: Stephen Hoekstra (stephenhoekstra@gmail.com)
Copyright 2018, Stephen Hoekstra <stephenhoekstra@gmail.com>
Copyright 2018, Schuberg Philis
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.