summary refs log tree commit diff
path: root/nixos/modules/services/databases
Commit message (Collapse)AuthorAge
* Revert "Merge branch 'postgresql-user' of git://github.com/ocharles/nixpkgs"Shea Levy2014-04-11
| | | | | | | Reverting postgres superuser changes until after stable. This reverts commit 6cc0cc7ff6136963acb32b5107696484b6220562, reversing changes made to 3c4be425dbe2d5a00f2923210a86ce7e7a4c516f.
* Revert "postgresql: properly fix permissions issue by in postStart"Shea Levy2014-04-11
| | | | | | Reverting postgres superuser changes until after stable. This reverts commit c66be6378d8bbcea271b2d2102741fdda87ec8fe.
* Revert "Create the 'postgres' superuser"Shea Levy2014-04-11
| | | | | | Reverting postgres superuser changes until after stable. This reverts commit 7de29bd26f5e514e95d5d261c08f3029337eecb3.
* Revert "Use PostgreSQL 9.3's `pg_isready` to wait for connectivity"Shea Levy2014-04-11
| | | | | | Reverting postgres superuser changes until after stable. This reverts commit e2066841106a6b89093ab685368742efa4e3c2c1.
* Merge branch 'postgresql-user-fix' of git://github.com/ocharles/nixpkgs into ↵Shea Levy2014-04-07
|\ | | | | | | | | | | fix-new-conduit Create 'postgres' user and use pg_isready
| * Use PostgreSQL 9.3's `pg_isready` to wait for connectivityOliver Charles2014-04-06
| | | | | | | | | | | | | | | | | | | | | | | | | | | | The postgresql module has a postStart section that waits for a database to accept connections before continuing. However, this assumes various properties about the database - specifically the database user and (implicitly) the database name. This means that for old installations, this command fails because there is no 'postgres' user, and the service never starts. While 7deff39 does create the 'postgres' user, a better solution is to use `pg_isready`, who's sole purpose is to check if the database is accepting connections. This has no dependency on users, so should be more robust.
| * Create the 'postgres' superuserOliver Charles2014-04-06
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Old PostgreSQL installations were created using the 'root' database user. In this case, we need to create a new 'postgres' account, as we now assume that this is the superuser account. Unfortunately, these machines will be left with a 'root' user as well (which will have ownership of some databases). While PostgreSQL does let you rename superuser accounts, you can only do that when you are connected as a *different* database user. Thus we'd have to create a special superuser account to do the renaming. As we default to using ident authentication, we would have to create a system level user to do this. This all feels rather complex, so I'm currently opting to keep the 'root' user on these old machines.
* | Added MonetDB NixOS module.George Kollias2014-04-01
|/
* postgresql: properly fix permissions issue by in postStartVladimir Kirillov2014-03-31
| | | | | | | as per postgresql manual, interactions with psql should be carried out with the postgresql system user and postgresql db user by default. ensure it happens in postStart.
* mysql service: Shutdown with normal systemd SIGTERM instead of mysqladminRickard Nilsson2014-03-19
| | | | | | | | | | | | | | According to the MySQL manual, this is a perfectly legal way of shutting down the server. The shutdown logs also looks fine: systemd[1]: Stopping MySQL Server... mysqld[5114]: 140319 8:36:12 [Note] /nix/store/sc26mz82k97mbpx3d1abzn3rrbd155ws-mariadb-10.0.8/bin/mysqld: Normal shutdown mysqld[5114]: 140319 8:36:12 [Note] Event Scheduler: Purging the queue. 0 events mysqld[5114]: 140319 8:36:12 [Note] InnoDB: FTS optimize thread exiting. mysqld[5114]: 140319 8:36:12 [Note] InnoDB: Starting shutdown... mysqld[5114]: 140319 8:36:14 [Note] InnoDB: Shutdown completed; log sequence number 1619078 mysqld[5114]: 140319 8:36:14 [Note] /nix/store/sc26mz82k97mbpx3d1abzn3rrbd155ws-mariadb-10.0.8/bin/mysqld: Shutdown complete systemd[1]: Stopped MySQL Server.
* Merge branch 'postgresql-user' of git://github.com/ocharles/nixpkgsShea Levy2014-03-15
|\ | | | | | | postgresql module: Use the default superuser username
| * postgresql module: Use the default superuser usernameOliver Charles2014-02-13
| | | | | | | | | | | | PostgreSQL defaults to having 'postgres' as the superuser. NixOS should use this default name to provide a less surprising result to people who enable services.postgres.
* | mysql module: Specify --basedirShea Levy2014-03-14
| | | | | | | | Needed for mariadb and safe for mysql
* | nixos/couchdb: fix stopping of service, by making it non-forking, a few ↵Jaka Hudoklin2014-03-10
| | | | | | | | | | | | | | other improvments Conflicts: nixos/modules/services/databases/couchdb.nix
* | couchdb: remove redundant customConfigFileDomen Kožar2014-02-27
| |
* | couchdb: stricter typesDomen Kožar2014-02-27
| |
* | folders of pidFile and uriFile should be writable by couchdb user/groupRok Garbas2014-02-27
| |
* | couchdb(nixos): removing whitespace and line that was commentedRok Garbas2014-02-27
| |
* | update couchdb to 1.5.0(current latest) and add service for itRok Garbas2014-02-27
| |
* | nixos: set all package options to have type packageDomen Kožar2014-02-27
| |
* | Merge mysql55 module into mysqlShea Levy2014-02-26
|/ | | | | This also removes the default for services.mysql.package, as this should not generally be updated automatically if we change the mysql attribute
* services.postgresql: Hint to use mkForce for authenticationOliver Charles2014-01-11
| | | | This fixes #1395
* memcached: set uid to make it work with #1076Jaka Hudoklin2013-12-13
|
* postgresql: Fix shutdownEelco Dolstra2013-12-03
| | | | | | | | | | | Postgres was taking a long time to shutdown. This is because we were sending SIGINT to all processes, apparently confusing the autovacuum launcher. Instead it should only be sent to the main process (which takes care of shutting down the others). The downside is that systemd will also send the final SIGKILL only to the main process, so other processes in the cgroup may be left behind. There should be an option for this...
* Merge pull request #1292 from jozko/openldap-fixesDomen Kožar2013-11-28
|\ | | | | Added openldap user, group and configure service so its not running as root
| * Added openldap user, group and configure service so its not running as root.Jozko Skrablin2013-11-28
| |
* | postgresql: Fix the port optionEelco Dolstra2013-11-27
|/ | | | Also clarify the description of the enableTCPIP option.
* Allow running NixOS services outside of systemdEelco Dolstra2013-11-18
| | | | | | | | | | | | | | | | | | | | | | | | | The attribute ‘config.systemd.services.<service-name>.runner’ generates a script that runs the service outside of systemd. This is useful for testing, and also allows NixOS services to be used outside of NixOS. For instance, given a configuration file foo.nix: { config, pkgs, ... }: { services.postgresql.enable = true; services.postgresql.package = pkgs.postgresql92; services.postgresql.dataDir = "/tmp/postgres"; } you can build and run PostgreSQL as follows: $ nix-build -A config.systemd.services.postgresql.runner -I nixos-config=./foo.nix $ ./result This will run the service's ExecStartPre, ExecStart, ExecStartPost and ExecStopPost commands in an appropriate environment. It doesn't work well yet for "forking" services, since it can't track the main process. It also doesn't work for services that assume they're always executed by root.
* nixos/mongodb: set static uid to work with #1076Jaka Hudoklin2013-11-07
|
* Use the "assertions" option instead of mkAssertEelco Dolstra2013-10-30
|
* Add lots of missing option typesEelco Dolstra2013-10-30
|
* nixos/redis: log to syslog by defaultJaka Hudoklin2013-10-28
|
* nixos/redis: user set uid, make it compatible #1076Jaka Hudoklin2013-10-28
|
* firebird.nix: Fix a misplaced } that causes "users" to be outside "config"Eelco Dolstra2013-10-25
|
* Remove dependencies on the Nixpkgs locationEelco Dolstra2013-10-23
|
* Firebird service:Marc Weber2013-10-21
| | | | | | | | | | * simplify directory layout * clean up option descriptions * let the user override Firebird package * create firebird user * clarify TODO comment Close # 1061.
* postgresql.authMethod: remove unimplemented option.Evgeny Egorochkin2013-10-21
| | | | close #1104.
* Move all of NixOS to nixos/ in preparation of the repository mergeEelco Dolstra2013-10-10