Skip to content

Commit

Permalink
Merge pull request crowbar#27 from VictorLowther/pull-req-feature-ip-…
Browse files Browse the repository at this point in the history
…hacking-master-bf15337413

Rewrite network barclamp to manage interfaces directly. [10/22]
  • Loading branch information
galthaus committed Jun 25, 2012
2 parents e2787d2 + bf15337 commit 529e8a8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion chef/cookbooks/keystone/recipes/monitor.rb
Expand Up @@ -20,7 +20,7 @@
# if monitored by nagios, install the nrpe commands

# Node addresses are dynamic and can't be set from attributes only.
my_ipaddress = Chef::Recipe::Barclamp::Inventory.get_network_by_type(node, "admin").address
my_ipaddress = node.address.addr

node[:keystone][:monitor] = {} if node[:keystone][:monitor].nil?
node[:keystone][:monitor][:svcs] = [] if node[:keystone][:monitor][:svcs].nil?
Expand Down
6 changes: 3 additions & 3 deletions chef/cookbooks/keystone/recipes/server.rb
Expand Up @@ -47,7 +47,7 @@
mysql = node
end

mysql_address = Chef::Recipe::Barclamp::Inventory.get_network_by_type(mysql, "admin").address if mysql_address.nil?
mysql_address = mysql.address.addr
Chef::Log.info("Mysql server found at #{mysql_address}")

# Create the Keystone Database
Expand Down Expand Up @@ -104,8 +104,8 @@
action :run
end

my_ipaddress = Chef::Recipe::Barclamp::Inventory.get_network_by_type(node, "admin").address
pub_ipaddress = Chef::Recipe::Barclamp::Inventory.get_network_by_type(node, "public").address rescue my_ipaddress
my_ipaddress = node.address.addr
pub_ipaddress = node.address("public").addr

# Silly wake-up call - this is a hack
keystone_register "wakeup keystone" do
Expand Down

0 comments on commit 529e8a8

Please sign in to comment.