piserver icon indicating copy to clipboard operation
piserver copied to clipboard

feature request / import mac's for supported rpi's via csv

Open heini66 opened this issue 3 years ago • 3 comments

atm i'll have to boot each rpi that i want to have in a new piserv config'ed, i'll hav to boot them all each once to get the mac's from them an d adopt them into the new piserv. woild be nice to have an export/import option fot the mac's and the images thes are assigend to....

heini66 avatar May 04 '21 18:05 heini66

Not sure how common the use of this functionality would be. I would imagine that for most users that want to migrate their Piserver instance to another server, other issues like the desire to preserve user information may be more problematic, than the minor annoyance of having to power cycle each Pi once to have it added again on the new system...

You do can transfer the information manually (e.g. with rsync).

  • Make sure Piserver is fully installed on the new server first (go through the first use wizard).
  • Transfer:

/var/lib/piserver/hosts.json has the list of MAC addresses. Transferring the symlinks in /var/lib/piserver/tftproot preserves the mapping between MAC and operating system.

(/var/lib/piserver/os has the operating system files /var/lib/piserver/installed_distros.json has the list of installed operating systems. But you can transfer the operating system itself easily by using the "export" button under the "software" tab in the Piserver GUI instead)

  • Call "sudo piserver --update-ip" after transferring files to have dnsmasq DHCP server configuration regenerated.

Do NOT transfer settings.json to the new location, as it contains an internal password to access the local LDAP server that will be different on the new server. (Set to something random during installation)

maxnet avatar May 05 '21 11:05 maxnet

i know about /var/lib/piserver/hosts.json, the symlinks in /var/lib/piserver/tftproot, /var/lib/piserver/installed_distros.json and i'm also fine with copy files via scp. but: i don't kow if other user will be able to get rid of this stuff. i'm thinking piserver('s) in a environment with 1-2-3 hundert attched client rpi's and 1,2,3,n piserver ( i386 based (x64 stuff for this would be anther kick) ) on real or virtual machines next point for me is to get the ldad server configable after the initual setup of the piserv. ( to make the ldap-server changeable on a runnig instance ) should i open another request for this ???

heini66 avatar May 05 '21 21:05 heini66

but: i don't kow if other user will be able to get rid of this stuff. i'm thinking piserver('s) in a environment with 1-2-3 hundert attched client rpi's and 1,2,3,n piserver

Cannot have more than one Piserver in practice, if you want users to be able to have the same central home directory...

( to make the ldap-server changeable on a runnig instance ) should i open another request for this ???

Do not think that will be supported. Too many caveats. Problem is that if you change LDAP server the user id numbers will in many cases no longer be the same as before, and as a result the permissions of all your home directories wrong.

maxnet avatar May 06 '21 01:05 maxnet