Skip to content
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

Plugin is not enabled once installed #20

Open
finferflu opened this issue Feb 22, 2018 · 1 comment
Open

Plugin is not enabled once installed #20

finferflu opened this issue Feb 22, 2018 · 1 comment

Comments

@finferflu
Copy link

Hi,

I can see that the plugin gets installed successfully:

==> default: Installing Ohai plugin

I have private_network set up in my Vagrant file:

config.vm.network "private_network", ip: "192.168.44.10"

But then, the IP is still set to the NAT'ed IP (10.0.2.15):

$ knife node show node1-centos
Node Name:   node1-centos
Environment: _default
FQDN:        localhost
IP:          10.0.2.15
Run List:    recipe[learn_chef_httpd]
Roles:       
Recipes:     learn_chef_httpd, learn_chef_httpd::default
Platform:    centos 7.4.1708
Tags:        

If I run ohai manually specifying the plugins directory, it works:

[vagrant@localhost ~]$ ohai -d /etc/chef/ohai_plugins/ ipaddress
[2018-02-22T21:01:52+00:00] INFO: Ohai override :ipaddress to 192.168.44.10 from ["eth1", {"type"=>"eth", "number"=>"1", "mtu"=>"1500", "flags"=>["BROADCAST", "MULTICAST", "UP", "LOWER_UP"], "encapsulation"=>"Ethernet", "addresses"=>{"08:00:27:3A:A4:E2"=>{"family"=>"lladdr"}, "192.168.44.10"=>{"family"=>"inet", "prefixlen"=>"24", "netmask"=>"255.255.255.0", "broadcast"=>"192.168.44.255", "scope"=>"Global"}, "fe80::a00:27ff:fe3a:a4e2"=>{"family"=>"inet6", "prefixlen"=>"64", "scope"=>"Link", "tags"=>[]}}, "state"=>"up", "arp"=>{"192.168.44.1"=>"0a:00:27:00:00:0a"}, "routes"=>[{"destination"=>"192.168.44.0/24", "family"=>"inet", "scope"=>"link", "metric"=>"100", "proto"=>"kernel", "src"=>"192.168.44.10"}, {"destination"=>"fe80::/64", "family"=>"inet6", "metric"=>"256", "proto"=>"kernel"}], "link_speed"=>1000, "duplex"=>"Full", "port"=>"Twisted Pair", "transceiver"=>"internal", "auto_negotiation"=>"on", "mdi_x"=>"off (auto)", "ring_params"=>{"max_rx"=>4096, "max_rx_mini"=>0, "max_rx_jumbo"=>0, "max_tx"=>4096, "current_rx"=>256, "current_rx_mini"=>0, "current_rx_jumbo"=>0, "current_tx"=>256}}]
[
  "192.168.44.10"
]

Vagrant version: 2.0.2
Ohai version: 13.7.1

Am I missing anything here?

Thank you.

@ismailfaruqi
Copy link

i think i am also having this problem. It was working fine I think.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants