wohali commented on issue #21: Unattended installation appears to ignore nodename setting URL: https://github.com/apache/couchdb-pkg/issues/21#issuecomment-394353672 Hi @worldspawn , thanks for writing in. I'm a bit confused. You've shown in your config that you're setting up a standalone node. But you seem to be trying to set parameters (such as `-name` and `-cookie`) that only make sense for a clustered node. The debian setup is intended to select the expected configuration for standalone nodes, which is `-name [email protected]` and the default (and basically unused) `-cookie monster`. The only parameter that is used when doing a standalone node configuration [is the `bind_address`](https://github.com/apache/couchdb-pkg/blob/master/debian/couchdb.postinst#L143-L161). Also, you _have_ to set the password to use the `debconf` setup for either standalone or clustered mode, otherwise the postinst script will fail, leaving you in a half-configured state. There's no need to go through the CouchDB setup wizard using the Debian preconfiguration functionality for a _standalone_ node; the autoconf script automatically completes this for you by creating the _`users` and `_replicator` databases. So go ahead and set your admin username and password. I can see the desire to change the cookie for a standalone node, perhaps to prevent `remsh` by a local user on the box from accessing the Erlang runtime, so if this is your intent I can enhance the setup script. But I think for most users in standalone mode, deviating from naming the node from `[email protected]` is a significant mistake. The one exception is if you are running multiple CouchDB nodes on the same machine (and, not inside of Docker containers/chroots/jails/similar), and this isn't really possible using the packages anyway. Finally, setting anything other than `couchdb@FULL-IP-ADDRESS` or `[email protected]` is no longer a recommended configuration setting, see the comments in [vm.args](https://github.com/apache/couchdb/blob/master/rel/overlay/etc/vm.args#L13-L28). Happy to help more if none of the above is clear or useful.
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services
