<commit_before>clonezillalive Cookbook
=======================

Deploy Clonezilla-Live for network-booting.

Clonezilla then allows to save and restore images of hard-disks.

If the image is for windows and prepared for example with sysprep, it can be
used to install several machines over and over again.

Requirements
------------

The development of this cookbook happens on debian wheezy (7.x), which makes
this the supported platform. It should work on ubuntu too.

#### cookbooks
 - `pxe`: For the booting and creation of the pxe-menu
 - `nfs`: For the image store

Attributes
----------

#### node\['clonezilla'\]\['append\_line'\] = 'boot=live config noswap nolocales edd=on nomodeset noprompt'
Basic appendline to boot. Will be extended by the keyboard-layout and the specific options to run clonezilla.

#### node\['clonezilla'\]\['kbdlayout'\] = 'us'
Set the keyboard-layout to use in clonezilla.

#### node\['clonezilla'\]\['serverip'\] = nil
If the server is reachable via two (or more) interfaces, use the given address
for the clients to boot from. If not given, node\['ipaddress'\] is used. 

#### node\['clonezilla'\]\['debug\_boot'\] = false
By default clonezilla boots with `quiet` added to the appendline. With this attribute set to `true`, `quiet` is replaced by `nosplash`.

#### node\['clonezilla'\]\['version'\] = '2.2.1-25'
The version of clonezilla to install.

#### node\['clonezilla'\]\['checksum'\] = '&lt;checksum\_of\_2.2.1-25&gt;'
The corresponding md5-checksum of the clonezilla-version to verify the download.

#### node\['clonezilla'\]\['file'\]
Customized name of the file to download. Defaults to `clonezilla-live-#{node['clonezilla']['version']}-amd64.zip`.

#### node\['clonezilla'\]\['url'\]
Customized download url. Defaults to `http://sourceforge.net/projects/clonezilla/files/clonezilla_live_stable/#{node['clonezilla']['version']}/#{node['clonezilla']['file']}/download`.

Usage
-----
#### clonezillalive::default

This recipe does nothing. Its there to play it safe if I want to add providers
and resources to this cookbook.

#### clonezillalive::server

This recipe grabs the clonezilla live image and unpacks the files needed for
network-boot. Then it installs tftp and syslinux and configures pxe-booting for
the clonezilla image.

Contributing
------------

Standard opensource cookbook rules apply:

1. Fork the repository on Github
2. Create a named feature branch (like `add_component_x`)
3. Write your change
4. Run `rubocop` and `foodcritic .` and try to have not to many issues.
5. <del>Write tests for your change (if applicable)</del>
6. <del>Run the tests, ensuring they all pass</del>
7. Submit a Pull Request using Github

License and Authors
-------------------
Authors: <NAME> (for bcs kommunikationslösungen)
Contributors: <NAME> (Outloud Industries, LLC)<commit_msg>make the contributors a paragraph<commit_after>clonezillalive Cookbook
=======================

Deploy Clonezilla-Live for network-booting.

Clonezilla then allows to save and restore images of hard-disks.

If the image is for windows and prepared for example with sysprep, it can be
used to install several machines over and over again.

Requirements
------------

The development of this cookbook happens on debian wheezy (7.x), which makes
this the supported platform. It should work on ubuntu too.

#### cookbooks
 - `pxe`: For the booting and creation of the pxe-menu
 - `nfs`: For the image store

Attributes
----------

#### node\['clonezilla'\]\['append\_line'\] = 'boot=live config noswap nolocales edd=on nomodeset noprompt'
Basic appendline to boot. Will be extended by the keyboard-layout and the specific options to run clonezilla.

#### node\['clonezilla'\]\['kbdlayout'\] = 'us'
Set the keyboard-layout to use in clonezilla.

#### node\['clonezilla'\]\['serverip'\] = nil
If the server is reachable via two (or more) interfaces, use the given address
for the clients to boot from. If not given, node\['ipaddress'\] is used. 

#### node\['clonezilla'\]\['debug\_boot'\] = false
By default clonezilla boots with `quiet` added to the appendline. With this attribute set to `true`, `quiet` is replaced by `nosplash`.

#### node\['clonezilla'\]\['version'\] = '2.2.1-25'
The version of clonezilla to install.

#### node\['clonezilla'\]\['checksum'\] = '&lt;checksum\_of\_2.2.1-25&gt;'
The corresponding md5-checksum of the clonezilla-version to verify the download.

#### node\['clonezilla'\]\['file'\]
Customized name of the file to download. Defaults to `clonezilla-live-#{node['clonezilla']['version']}-amd64.zip`.

#### node\['clonezilla'\]\['url'\]
Customized download url. Defaults to `http://sourceforge.net/projects/clonezilla/files/clonezilla_live_stable/#{node['clonezilla']['version']}/#{node['clonezilla']['file']}/download`.

Usage
-----
#### clonezillalive::default

This recipe does nothing. Its there to play it safe if I want to add providers
and resources to this cookbook.

#### clonezillalive::server

This recipe grabs the clonezilla live image and unpacks the files needed for
network-boot. Then it installs tftp and syslinux and configures pxe-booting for
the clonezilla image.

Contributing
------------

Standard opensource cookbook rules apply:

1. Fork the repository on Github
2. Create a named feature branch (like `add_component_x`)
3. Write your change
4. Run `rubocop` and `foodcritic .` and try to have not to many issues.
5. <del>Write tests for your change (if applicable)</del>
6. <del>Run the tests, ensuring they all pass</del>
7. Submit a Pull Request using Github

License and Authors
-------------------
Authors: <NAME> (for bcs kommunikationslösungen)

Contributors: <NAME> (Outloud Industries, LLC)
{'fraction_non_alphanumeric': 0.14645308924485126, 'fraction_numerical': 0.007393064601302588, 'mean_word_length': 4.24169741697417, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 15, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 8, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4380839', 'n_tokens_mistral': 1740, 'n_tokens_neox': 1658, 'n_words': 655}