Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1h40w8-0005xL-6t for pgsql-admin@arkaria.postgresql.org; Wed, 13 Mar 2019 10:16:36 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1h40w6-00038G-Oi for pgsql-admin@arkaria.postgresql.org; Wed, 13 Mar 2019 10:16:34 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1h40w6-000388-Da for pgsql-admin@lists.postgresql.org; Wed, 13 Mar 2019 10:16:34 +0000 Received: from r0.smtpout1.paris1.alwaysdata.com ([2a00:b6e0:1:40:1:0:10:1]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1h40w3-0003Yf-2q for pgsql-admin@postgresql.org; Wed, 13 Mar 2019 10:16:33 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=alwaysdata.net; s=hexack; h=In-Reply-To:Content-Transfer-Encoding: Content-Type:MIME-Version:References:Message-ID:Subject:Cc:To:From:Date: Sender:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=an351UzlOCmio3TrR9Z/8YRi8UUQjSzX1l1ZOE9sEGw=; b=CBw1PzXTEJlajXVQsD84T5HuFp CfT392Cw7YMdUpqjLNPNaH/Am+oQLzSY88emDPhqqiQth5QltU+++BN52kvEb2zahyBplDC3kgcan lQxwC9HM+BfrCGq0Ej370HVZl+Vf+8IrIp2u/I6YhAU+dHsdZRQJTd2Yzt0NmvT/rbns=; Received: from mas01-1-78-225-200-186.fbx.proxad.net ([78.225.200.186] helo=office.hexack.fr) by smtpout1.paris1.alwaysdata.com with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1h40vp-0007nC-Gx; Wed, 13 Mar 2019 11:16:18 +0100 Date: Wed, 13 Mar 2019 11:16:14 +0100 From: =?utf-8?B?U3TDqXBoYW5l?= KANSCHINE To: Pierre Ochsenbein Cc: pgsql-admin@postgresql.org Subject: Re: pgsql auto Message-ID: <20190313101613.tlmvr2pg3lwbbft6@office.hexack.fr> References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: Organization: HexACK User-Agent: NeoMutt/20180716 X-alwaysdata-ID: 404768673 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Le mar. 12 mars, vers 19:00, Pierre Ochsenbein exprimait : > Hi, Hey ! > I would like to build PostgreSQL (automation) with script like DbaaS > (ansible). > You recognize to create one database cluster per VM or multiple database > clusters per VM, if yes how many? You can do whatever you want, 1 cluster per database, 1 cluster per VM or all in one according to your load or something in between. I'm basically using a list of databases either in host_vars or inventories and include_vars: dir: to create clusters and databases per host or per environment. To be more specific, this list is for a cluster name (default is main on Debian) and this cluster is combined to a port variables to make more clusters per host with 1 or more databases per host. All this with streaming replication+wal shipping, backup and restore configured properly for each cluster. So what's your question about ansible ? :-) Regards, -- Stéphane KANSCHINE - https://www.hexack.fr./ - https://www.nuajik.io./ @ stephane@hexack.fr  +33 6 64 31 72 52