New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add hostname resource from chef_hostname cookbook #6795
Conversation
lib/chef/resource/hostname.rb
Outdated
# @return [String] | ||
def updated_ec2_config_xml | ||
begin | ||
require "nokogiri" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
so nokogiri is evil and this should really be rexml
566309c
to
f567ca4
Compare
Add in a new resource for managing hostnames Signed-off-by: Tim Smith <tsmith@chef.io>
f567ca4
to
bb3fb72
Compare
Signed-off-by: Tim Smith <tsmith@chef.io>
bb3fb72
to
8244273
Compare
Avoid the dep on nokogiri Signed-off-by: Tim Smith <tsmith@chef.io>
property :hostname, | ||
String, | ||
description: "The hostname if different than the resource's name", | ||
name_property: true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what about slightly more compactly?
property :hostname, String, name_property: true,
description: "The hostname if different than the resource's name"
This thread has been automatically locked because it has not had recent activity. Please open a new issue for related bugs and link to relevant comments in this thread. |
Add in a new resource for managing hostnames
Signed-off-by: Tim Smith tsmith@chef.io