Ask Your Question
0

How to get a list of *wireless* interfaces?

asked 2016-02-19 14:02:10 -0500

l0b0 gravatar image

I'm trying to enable the netctl-auto@${interface} service for each wireless interface on Arch Linux. $interfaces gives me a list of all interface names, but how do I distinguish between wired and wireless interfaces in Puppet?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2016-02-20 00:07:53 -0500

What you need is a custom fact that returns the list of wireless NICs for you. You could try some string manipulation and built in facts but I don't advise that.

The easiest way to do is just to define them statically as external facts.

If you need them to be generated dynamically then you'll need to write a custom fact.

I assume you're using the latest version of Facter 3.1. If not, search out the earlier versions of the Facter docs, but the procedure is pretty similar.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2016-02-19 14:02:10 -0500

Seen: 169 times

Last updated: Feb 20 '16