I'm creating a bash script to try to join nodes in a cluster automatically.
When I try to join the node to the cluster, with the pvecm command, it asks if I want to accept the figerprint and also asks the password of the superuser of the master node. Theoretically I would be able to pass the fingerprint as a parameter on the command line, using "--fingerprint". However, I don't know how to get this fingerprint code from the master node automatically, through the CLI, without having to look at the GUI to pass it through the command line. I also don't know how to pass this password through the command parameter.
Two questions:
- Would it be possible to get the fingerprint in advance before entering the pvecm command, with an another shell command (without looking at Web UI) on the master node or on the node that I'm adding?
- Would it be possible to pass this superuser password by parameter to the pvecm command, so that it does not open a prompt asking for the password?
Tanks!
When I try to join the node to the cluster, with the pvecm command, it asks if I want to accept the figerprint and also asks the password of the superuser of the master node. Theoretically I would be able to pass the fingerprint as a parameter on the command line, using "--fingerprint". However, I don't know how to get this fingerprint code from the master node automatically, through the CLI, without having to look at the GUI to pass it through the command line. I also don't know how to pass this password through the command parameter.
Code:
pvecm add $ipv4_cluster -link0 $no_vlan8_address --fingerprint 62:21:29:A4:33:0E:18:62:A1:12:59:29:E3:6B:03:2C:DA:78:9B:B5:E4:3E:95:C9:D6:5E:6A:F1:BE:M3:15:86
Two questions:
- Would it be possible to get the fingerprint in advance before entering the pvecm command, with an another shell command (without looking at Web UI) on the master node or on the node that I'm adding?
- Would it be possible to pass this superuser password by parameter to the pvecm command, so that it does not open a prompt asking for the password?
Tanks!