The company I work for is purchasing around 20 or so Qnaps. The models are the TVS-663 and TVS-863.
Obviously, setting up these Qnaps manually, one by one is far less than desirable. I have experience with Ansible (If you don't know what that is, you should google it).
With Ansible, I have managed to setup ssh keys, so I can login without a password into the shell.
Note: Ansible requires python-simplejson for its modules, but the Qnap OS does not have this, so you must use the 'raw' module in your playbooks.
I am trying to accomplish the following (all via command line... No GUI)
Code: Select all
- ssh # The only one done so far.
- host_settings # (hostname, password)
- network # (ntp, TimeZone, join to domain)
- services # (windows/linux (NFS, SMB/CIFS, File Station))
- disk # (All disks in a raid 6)
Due to the lack of the qcli documentation, I thought it would be wise to post here if anyone has any insight on these tools and the commands required to pull off the above roles.
Once I have successfully pulled off what I am trying to achieve, I will happily post my efforts onto GitHub for anyone and everyone to use and modify to suit their needs. Credits will go out to all who help contribute
OR, If there is another way to centrally deploy/configure 20+ Qnaps, I'm all ears.
Thank you in advance,