[chef] Re: How change ip address of node?


Chronological Thread 
  • From: idzzy < >
  • To:
  • Subject: [chef] Re: How change ip address of node?
  • Date: Thu, 10 Jul 2014 20:43:28 +0900

Hello,

in addition,

I already use edit command, but there is not ip address.
and also “-a” option, but I’m not sure which part should I modify.

-----------------------------------------
# knife node edit node-4
{
  "name": "node-4",
  "chef_environment": "poc",
  "normal": {
    "tags": [

    ]
  },
  "run_list": [

  ]
}
-----------------------------------------

Thank you.

idzzy


On July 10, 2014 at 8:36:54 PM, idzzy ( "> ) wrote:

Hello,

Let me ask about how to change ip address of node.

target sever has some ip address like this.
eth0 : 192.168.10.1
eth1: 192.168.20.1
eth2: 192.168.30.1

I run bootstrap from chef workstation to the target server. workstation has 192.168.10.100.
----------------------
knife bootstrap 192.168.10.1 -N node-4 -E poc -x root -d centos6
----------------------

and then completed to install chef-client, register to chef-server.
chef-serrver has 192.168.10.200

So all (workstation / chef-server / target-server) is in 192.168.10.x

But  the ip address registered to chef-server is 192.168.20.1. Why?
How can I change the ip address to 192.168.10.1?

----------------------
# knife node show node-4
Node Name:   node-4
Environment: poc
FQDN:        node-4
IP:          192.168.20.1
Run List:
Roles:
Recipes:
Platform:    centos 6.5
Tags:
----------------------

Thank you.

idzzy



Archive powered by MHonArc 2.6.16.

§