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

$macaddress_x Not a mac addres #105

Open
gorttman opened this issue Jul 12, 2016 · 1 comment
Open

$macaddress_x Not a mac addres #105

gorttman opened this issue Jul 12, 2016 · 1 comment
Assignees
Labels

Comments

@gorttman
Copy link

Hi firstly, lent me say thanks for a great module, in most aspects its working great. But.
I'm newish to puppet and Im having 2 small issues with setting bonds in hiera.
anything except an actual mac is rejected. I cannot seem to get something like
network::bond_slave:
eth1:
macaddress: $macaddress_eth1
ethtool_opts: 'autoneg off speed 1000 duplex full'
master: bond0
tp work. If i replace the var $macaddress_eth1 with xx:xx:xx:xx:xx it works fine.
also, how do I reference global in hiera. Anything like
network::global:
ipv6networking: false
gateway: x.x.x.x

gets ignored.

thanks in advance.

@esalberg
Copy link
Contributor

esalberg commented Aug 3, 2016

To refer to a fact in hiera, you reference it without the $, so in this case, you would probably want to use %{::macaddress_eth1}
https://docs.puppet.com/hiera/3.2/variables.html#from-puppet

I actually just put in a pull request that would try to use the macaddress fact if no macaddress is specified, but it obviously hasn't been merged yet.

To set the gateway entries, use something like:

network::global::ipv6networking: false

@razorsedge razorsedge self-assigned this Jul 28, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants