Switch from Batali to Berkshelf to manage upstream cookbooks
This commit is contained in:
16
cookbooks/hostname/.gitignore
vendored
16
cookbooks/hostname/.gitignore
vendored
@@ -1,16 +0,0 @@
|
||||
*#
|
||||
*.un~
|
||||
*~
|
||||
.#*
|
||||
.*.sw[a-z]
|
||||
.bundle/*
|
||||
.kitchen.local.yml
|
||||
.kitchen/
|
||||
.vagrant
|
||||
/cookbooks
|
||||
Berksfile.lock
|
||||
Gemfile.lock
|
||||
\#*#
|
||||
bin/*
|
||||
metadata.json
|
||||
Gemfile.lock
|
||||
@@ -1 +0,0 @@
|
||||
--color
|
||||
@@ -1,14 +0,0 @@
|
||||
bundler_args: --without integration
|
||||
before_script: bundle exec berks install
|
||||
script: bundle exec rake
|
||||
language: ruby
|
||||
rvm:
|
||||
- 2.3.1
|
||||
sudo: false
|
||||
notifications:
|
||||
hipchat:
|
||||
secure: ! 'mTePogP3SZVXbZ8l3o1yN+uszEEwQY3WgBXXXQc4hV1nLGhAXgjgj5ueCKAE
|
||||
|
||||
JzFSZEjp+31OOg4CIMKs+awwv/SUnFUjB1hlHPrpVnWqUORez6l2fvPABiIs
|
||||
|
||||
kshNJ3x5zPlxJwo/U8jObaxJ7XdjxFKugod3q2rzTsq3TlLF2WA='
|
||||
@@ -1,8 +0,0 @@
|
||||
# -*- ruby -*-
|
||||
source 'https://supermarket.getchef.com'
|
||||
|
||||
metadata
|
||||
|
||||
group :integration do
|
||||
cookbook 'minitest-handler'
|
||||
end
|
||||
@@ -1,65 +0,0 @@
|
||||
# Change History
|
||||
|
||||
0.4.2 (2017-05-04)
|
||||
==================
|
||||
- #51: Make host file idempotent on RHEL
|
||||
- #52: Add `append_hostsfile_ip` logic for improved idempotence
|
||||
- #55: Ensure sysctl `kernel.hostname` set correctly on RHEL
|
||||
|
||||
0.4.1 (2017-04-24)
|
||||
==================
|
||||
- #43: Set unique hosts file entry for hostname
|
||||
- #44: Make hostname mapping to `127.0.0.1` optional
|
||||
- #59: Updates to resolve deprecations warnings
|
||||
- #60, #61: various test fixes
|
||||
|
||||
0.4.0 (2015-03-16)
|
||||
==================
|
||||
- #40: Use file resources with lazy eval and notifies to prevent network restarts from occurring on every chef run (Matt Kasa)
|
||||
- Add box with Ubuntu 14.04 for kitchen tests
|
||||
- #27: Update default recipe to reload only the hostname plugin instead of ohai (Jonathan Serafini)
|
||||
|
||||
0.3.0 (2014-05-20)
|
||||
==================
|
||||
- Fixed (and tested) FreeBSD support
|
||||
- #17: added support for RedHat & CentOS (Damien Roche, Marta Paciorkowska)
|
||||
- added instructions on manual testing with reboot (Marta Paciorkowska)
|
||||
|
||||
0.2.0
|
||||
=====
|
||||
- Refresh and fix tests, add Rubocop style checks (Marta Paciorkowska)
|
||||
- #16: do not remove existing /etc/hosts entries on 127.0.0.1, use
|
||||
configurable IP for hostname entry we need to have for ourselves
|
||||
(Jean Mertz, Marta Paciorkowska)
|
||||
|
||||
0.1.0
|
||||
=====
|
||||
- Tests: chefspec, test-kitchen
|
||||
- Substitute `*` in `set_fqdn` with `node.name` to allow fully
|
||||
automatic FQDN setup.
|
||||
|
||||
0.0.6
|
||||
=====
|
||||
- Clean up backup files from community.opscode.com release
|
||||
|
||||
0.0.5
|
||||
=====
|
||||
- Added change log
|
||||
- `metadata.rb` explicitly states cookbook name (Chulki Lee)
|
||||
- New recipe `hostname::vmware` (tily)
|
||||
- Use hostsfile cookbook to manipulate `/etc/hosts`, use 127.0.1.1
|
||||
instead of trying to figure out own IP (Guilhem Lettron)
|
||||
|
||||
0.0.4
|
||||
=====
|
||||
- Use attribute levels when setting for Chef 11 compatibility (Alan
|
||||
Wilhelm)
|
||||
|
||||
0.0.3
|
||||
=====
|
||||
- Syntax fix for compatibility with Ruby 1.9.2
|
||||
|
||||
0.0.2 and before
|
||||
================
|
||||
|
||||
This is prehistory.
|
||||
44
cookbooks/hostname/metadata.json
Normal file
44
cookbooks/hostname/metadata.json
Normal file
@@ -0,0 +1,44 @@
|
||||
{
|
||||
"name": "hostname",
|
||||
"description": "Configures hostname and FQDN",
|
||||
"long_description": "# hostname cookbook\n\n[](https://travis-ci.org/3ofcoins/chef-cookbook-hostname)\n[](https://supermarket.chef.io/cookbooks/hostname)\n## Description\n\nSets hostname and FQDN of the node. The latest code is hosted at\nhttps://github.com/3ofcoins/chef-cookbook-hostname\n\n### Important\n\nSetting hostname on FQDN is not (and won't be) supported. Unfortunately, using dots in the hostname can cause\n[inconsistent results for any system that consumes DNS](http://serverfault.com/questions/229331/can-i-have-dots-in-a-hostname)\nand [is not allowed by RFC952](http://tools.ietf.org/html/rfc952). If a user\nneeds additional info in their shell prompt, they can change PS1 in etc/profile\nto include the FQDN together with any information they find useful (such as\nthe customer, the environment, etc).\n\n## Attributes\n\n- `node['set_fqdn']` - FQDN to set.\n\nThe asterisk character will be replaced with `node.name`. This way,\nyou can add this to base role:\n\n```ruby\ndefault_attributes :set_fqdn => '*.project-domain.com'\n```\n\nand have node set its FQDN and hostname based on its chef node name\n(which is provided on `chef-client` first run's command line).\n\n- `node['hostname_cookbook']['hostsfile_ip']` -- IP used in\n `/etc/hosts` to correctly set FQDN (default: `127.0.1.1`)\n- `node['hostname_cookbook']['hostsfile_aliases']` -- list of aliases used in\n `/etc/hosts` for the ip set above (default: [`hostname`])\n- `node['hostname_cookbook']['hostsfile_include_hostname_in_aliases']` -- whether to include the hostname\n at the end of the aliases list above (default: true)\n\n- `node['hostname_cookbook']['append_hostsfile_ip']` -- Set to `false` to\n prevent an entry for the node's hostname from being appended in `/etc/hosts` (default: `true`)\n\n## Recipes\n\n* `hostname::default` -- will set node's FQDN to value of `set_fqdn` attribute,\nand hostname to its host part (up to first dot).\n* `hostname::vmware` -- sets hostname automatically using vmtoolsd.\nYou do not need to set `node[\"set_fqdn\"]`.\n\n## Author\n\nAuthor: Maciej Pasternacki maciej@3ofcoins.net\n",
|
||||
"maintainer": "Maciej Pasternacki",
|
||||
"maintainer_email": "maciej@3ofcoins.net",
|
||||
"license": "MIT",
|
||||
"platforms": {
|
||||
"debian": ">= 0.0.0",
|
||||
"ubuntu": ">= 0.0.0",
|
||||
"freebsd": ">= 0.0.0"
|
||||
},
|
||||
"dependencies": {
|
||||
"hostsfile": ">= 0.0.0"
|
||||
},
|
||||
"recommendations": {
|
||||
|
||||
},
|
||||
"suggestions": {
|
||||
|
||||
},
|
||||
"conflicting": {
|
||||
|
||||
},
|
||||
"providing": {
|
||||
|
||||
},
|
||||
"replacing": {
|
||||
|
||||
},
|
||||
"attributes": {
|
||||
|
||||
},
|
||||
"groupings": {
|
||||
|
||||
},
|
||||
"recipes": {
|
||||
|
||||
},
|
||||
"version": "0.4.2",
|
||||
"source_url": "https://github.com/3ofcoins/chef-cookbook-hostname",
|
||||
"issues_url": "https://github.com/3ofcoins/chef-cookbook-hostname/issues",
|
||||
"privacy": false
|
||||
}
|
||||
@@ -1,20 +0,0 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
name 'hostname'
|
||||
maintainer 'Maciej Pasternacki'
|
||||
maintainer_email 'maciej@3ofcoins.net'
|
||||
license 'MIT'
|
||||
description 'Configures hostname and FQDN'
|
||||
long_description IO.read(File.join(File.dirname(__FILE__), 'README.md'))
|
||||
version '0.4.2'
|
||||
|
||||
supports 'debian'
|
||||
supports 'ubuntu'
|
||||
supports 'freebsd'
|
||||
|
||||
depends 'hostsfile'
|
||||
|
||||
source_url 'https://github.com/3ofcoins/chef-cookbook-hostname' if respond_to?(:source_url)
|
||||
issues_url 'https://github.com/3ofcoins/chef-cookbook-hostname/issues' if respond_to?(:issues_url)
|
||||
|
||||
chef_version '>= 12.1' if respond_to?(:chef_version)
|
||||
Reference in New Issue
Block a user