puppet-network
puppet-network copied to clipboard
Overwriting behavior
Here's my scenario. I have a newly provisioned server with the loopback interface and em4 defined in /etc/network/interfaces. Puppet has never run on this server. I install puppet and it checks in with my puppet master and finds this in its catalog:
network_config { 'em4':
ensure => present,
method => manual,
onboot => false,
}
Sure enough, puppet runs and finds some things about this interface that need to change:
Nov 21 18:42:54 server01 puppet-agent[2147]: (/Stage[main]/Profiles::Server::Interfaces/Network_config[em4]/method) method changed 'dhcp' to 'manual'
Nov 21 18:42:54 server01 puppet-agent[2147]: (/Stage[main]/Profiles::Server::Interfaces/Network_config[em4]/hotplug) hotplug changed '' to 'true'
But, notice, it hasn't changed the onboot status. I check /etc/network/interfaces and it's still listed in the "auto" section. I run puppet resource network_config em4
and it returns:
user@server01:~$ sudo puppet resource network_config em4
network_config { 'em4':
ensure => 'present',
family => 'inet',
hotplug => 'true',
method => 'manual',
onboot => 'true',
}
So I run puppet again:
user@server01:~$ sudo puppet agent -tv
Info: Retrieving plugin
Info: Loading facts in /var/lib/puppet/lib/facter/postgres_default_version.rb
Info: Loading facts in /var/lib/puppet/lib/facter/rabbitmq_erlang_cookie.rb
Info: Loading facts in /var/lib/puppet/lib/facter/puppet_vardir.rb
Info: Loading facts in /var/lib/puppet/lib/facter/iptables_version.rb
Info: Loading facts in /var/lib/puppet/lib/facter/facter_dot_d.rb
Info: Loading facts in /var/lib/puppet/lib/facter/iptables_persistent_version.rb
Info: Loading facts in /var/lib/puppet/lib/facter/ip6tables_version.rb
Info: Loading facts in /var/lib/puppet/lib/facter/root_home.rb
Info: Loading facts in /var/lib/puppet/lib/facter/os_maj_version.rb
Info: Loading facts in /var/lib/puppet/lib/facter/lvm_support.rb
Info: Loading facts in /var/lib/puppet/lib/facter/concat_basedir.rb
Info: Caching catalog for server01.domain.com
Info: Applying configuration version '1385058759'
Notice: Finished catalog run in 1.83 seconds
I'm at a loss on this one...
Hello:
What's the status of this issue? I'm just pinging old issues.