If auto set hwaddr for bond, it will use the true hwaddr for the first time. It's correct.
But interfaces will display same hwaddr in a bond by use 'ifconfig' or 'ip link show' when bond running,
Then they will reset to same hwaddr when execute state again, os will prompt like:
Bringing up interface bond0: Device eth2 has different MAC address than expected, ignoring.
[ OK ]
eth2 interface in this example will eliminate from bond0. It's incorrect.
Only Debian systems(modules/aptpkg.py) need saltenv for mod_repo function.
If not differentiate it, RedHat famiry systems will add saltenv option to the repo file.
This is an improvement over #10332 in that you don't have to worry about someone creating a ZeroMQChannel then forking (thereby breaking the thread-pid rules). This way once it moves it will create a new sreq as needed.
This is possible now that #13155 is merged
This was passing "hold" as a name, not a quoted string (which succeeded
since there is a function named "hold" in the module), causing the
retrieved selections to be empty, leading to a traceback when the
function later tries to run set_selections().
Use deep copy to get default master and minion options to avoid altering
them.
This fixes an issue encountered when defining grains for multiple nodes in a salt-cloud map file.
Nodes deployed later in the process were getting grains for previously deployed nodes.
This brings these functions more in line with Salt design standards, in
that an error case raises an exception which can be caught elsewhere.
Returning different data types depending on success or error, and then
doing type checking later on, is not pythonic.
This brings these functions more in line with Salt design standards, in
that an error case raises an exception which can be caught elsewhere.
Returning different data types depending on success or error, and then
doing type checking later on, is not pythonic.
Though it's nice for the pkgrepo.managed to run apt-get update when
it adds a ppa, adding multiple ppa will cause it to be run multiple
times, which is slow. The refresh_db allows users to disable automatic
updates of the apt database, so that they can do so based on a wait
condition.