When using an INI configuration, installation and updates will still be
done using the tpm command. Instead of providing
configuration information on the command line, the tpm
command will look for an INI file at
/etc/tungsten/tungsten.ini. The file must be readable
by the tungsten system user.
Here is an example of a
tungsten.ini file that would
setup a simple dataservice.
[defaults] application-password=secret application-port=3306 application-user=app replication-password=secret replication-port=13306 replication-user=tungsten start-and-report=true user=tungsten [alpha] connectors=host1,host2,host3 master=host1 members=host1,host2,host3
The property names in the INI file are the same as what is used on the
command line. Simply remove the leading
-- characters and add it to the
proper section. Each section in the INI file replaces a single
tpm configure call. The section name inside of the
square brackets is used as the service name. In the case of the
[defaults] section, this will act
like the tpm configure defaults command.
Include any host-specific options in the appropriate section. This configuration will only apply to the local server, so there is no need to put host-specific settings in a different section.