<commit_before># chef_hostname Cookbook

Sets the node's hostname

* resource-driven cookbook
* supports FQDNs as hostnames
* persists after a reboot
* reloads ohai
* runs at compile-time (no need to use lazy)
* fixes up /etc/hosts so node["fqdn"] works
* runs nearly everywhere
* supports hostnamectl from systemd

## Motivation

* Make strong guarantees that `node["fqdn"]` in other recipes "just works"
* No need to `lazy { node["fqdn"] }`
* Be very portable

## Requirements

## Platforms
- Ubuntu/Debian/Mint/Raspbian
- RHEL/CentOS/Scientific/Oracle/Fedora/Pidora
- OpenSUSE/SLES
- FreeBSD/OpenBSD/NetBSD
- Windows

### Chef
- Chef 12.1+

### Cookbooks
- compat_resource


## Custom Resources

hostname Sets the hostname, ensures that reboot will preserve the hostname, re-runs the ohai plugin to set the node data.

### Actions

- :set: Ses the hostname

### Properties

- hostname: hostname to set<commit_msg>add to README that docker is supported<commit_after># chef_hostname Cookbook

Sets the node's hostname

* resource-driven cookbook
* supports FQDNs as hostnames
* persists after a reboot
* reloads ohai
* runs at compile-time (no need to use lazy)
* fixes up /etc/hosts so node["fqdn"] works
* runs nearly everywhere
* supports hostnamectl from systemd

## Motivation

* Make strong guarantees that `node["fqdn"]` in other recipes "just works"
* No need to `lazy { node["fqdn"] }`
* Be very portable

## Requirements

## Platforms
- Ubuntu/Debian/Mint/Raspbian
- RHEL/CentOS/Scientific/Oracle/Fedora/Pidora
- OpenSUSE/SLES
- FreeBSD/OpenBSD/NetBSD
- Docker Containers
- Windows

### Chef
- Chef 12.1+

### Cookbooks
- compat_resource


## Custom Resources

hostname Sets the hostname, ensures that reboot will preserve the hostname, re-runs the ohai plugin to set the node data.

### Actions

- :set: Ses the hostname

### Properties

- hostname: hostname to set
{'fraction_non_alphanumeric': 0.0974960042621204, 'fraction_numerical': 0.0031965903036760787, 'mean_word_length': 4.231197771587744, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '549196', 'n_tokens_mistral': 655, 'n_tokens_neox': 606, 'n_words': 213}