This repository has been archived by the owner on Jul 11, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Setup A record for instances where node['cloud_v2'] is nil
Sam Kottler
committed
Jul 3, 2014
1 parent
2e37b7d
commit 085f34b
Showing
3 changed files
with
12 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,4 +19,14 @@ | |
password dnsimple_credentials['password'] | ||
action :create | ||
end | ||
else | ||
dwradcliffe_dnsimple_record "create A record for #{node.name}" do | ||
name node.name.sub('.rubygems.org', '') | ||
content `/usr/bin/curl http://169.254.169.254/latest/meta-data/public-ipv4`.chomp | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
skottler
Member
|
||
type 'A' | ||
domain 'rubygems.org' | ||
username dnsimple_credentials['username'] | ||
password dnsimple_credentials['password'] | ||
action :create | ||
end | ||
end |
What happened to the ohai plugin?