-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
Just use YAML/JSON/jinja to create a dictionary, don't bother with importing CSV for 2 values per minion. If you don't care about other minions seeing the assignment you can just list them in a key like [VPN:ips]:
vpn:
ips:
minion1: 192.0.2.101
minion2: 192.0.2.103
minion3: 192.0.2.110
Or use the pillar for the hostsfile-formula for hostnames like "minion1.vpn" and choose minion_id + ".vpn" for the IP in the openvpn-config.
For setting and especially retrieving a value on other minions you should take a look at the salt-mine.
And /please/, if you want an IPv4 address for documentation/examples use TEST-NET aka
192.0.2.0/24 [0] (or TEST-NET-2, TEST-NET-3) instead of something syntactically invalid…
Regards, Florian
[0]
http://en.m.wikipedia.org/wiki/Reserved_IP_addresses
>>> 192.[0.2].101
>>> minion2:
>>> localip:
>>> 192.[0.2].103
>>> minion3
>>> localip:
>>> 192.[0.2].110
>>>
>>> They don't need to be contiguous, just as long as they are unique
>and
>>> within the range of a subnet (/24). I don't think there will ever be
>any
>>> way that I will manage to get to 100+ hosts, so a method to allocate
>from
>>> 192.[0.2].100-192.[0.2].200 would be fine by me.
>>>
-----BEGIN PGP SIGNATURE-----
Version: APG v1.1.1
iQFTBAEBCAA9BQJVQY9DNhxGbG9yaWFuIEVybWlzY2ggPGZsb3JpYW4uZXJtaXNj
aEBhbHVtbmkudHUtYmVybGluLmRlPgAKCRAu8tzCHoBI/Zu/CACgMe7UTea/mXDW
/WFyKtDvjDiyk0EhmNhP3AI0ZHmNiYz5P1D6WYxeOxe3DIkaBoubet1gx6epbeIK
1B5V3hJA67prQ5q0ubSMNNmFZuB1gy1BhWEtd1ODtsMuLmlJg4FBNOjYVQrbLH98
c24rUuUSILY2JhVIQWMEfF6BtxLcJByScGXn65cGGZzFvkA1uHoTxVeKZecjzY99
MgpyFrJpxu+i5M87w6kh8LckeDXCQGHYM7LxoFa7Iiwh4pEWfru7HpkOxg6bdIJG
RVbwb2hq1NKBiYWlxCdPDb7ADX0aKSEtmBCQ1ymHjU2BE/QHu0tqlEX9qzSauaoQ
UVYp9Nee
=DmC3
-----END PGP SIGNATURE-----