From nobody Thu Apr 18 15:08:23 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 170.10.133.124 as permitted sender) client-ip=170.10.133.124; envelope-from=patchew-devel-bounces@redhat.com; helo=us-smtp-delivery-124.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 170.10.133.124 as permitted sender) smtp.mailfrom=patchew-devel-bounces@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1675763632; cv=none; d=zohomail.com; s=zohoarc; b=LqqflX2sYYJKX+bgxYFHSb/xFBc+dhkCq+a9KkH0kOEU4CCKZ3U0R9CkPmr6G/XWe0XIuS1ZIbkDjb8z/ZKvNVEXqMdnomMusieX6AzVWc9R5sMpoBjEB2IoJ1G3lh2OTu4+IIwMvemJE3bSEK6LpfCwkHneeEre+bpDGo5rHwU= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1675763632; h=Content-Type:Content-Transfer-Encoding:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=ecSWgDdrcmMY+cP6Jn+P93h0nIOEDQsUsDG/B5LAADI=; b=hVYZnaXYXBSzQiHrP5mXFTS5ksaSR4cciLJktpW5Sno697qhx1pV7w8SGsKNmeMicATiY3HMYHo/XD9cddmqzcpDKL6iaVnWIsEwJiaqi9jiR8GOcRX29851NUYKQ8LfMksDNODoRgt+kwjkqWlKVnPVyGqhdEx/ZUGXh2du3qQ= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 170.10.133.124 as permitted sender) smtp.mailfrom=patchew-devel-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by mx.zohomail.com with SMTPS id 1675763632940939.589264104524; Tue, 7 Feb 2023 01:53:52 -0800 (PST) Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-658-C4lfFxPeOIyOr9QS3iXUtg-1; Tue, 07 Feb 2023 04:53:51 -0500 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.rdu2.redhat.com [10.11.54.7]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id BC78C80D0F1; Tue, 7 Feb 2023 09:53:50 +0000 (UTC) Received: from mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (unknown [10.30.29.100]) by smtp.corp.redhat.com (Postfix) with ESMTP id B303D140EBF4; Tue, 7 Feb 2023 09:53:50 +0000 (UTC) Received: from mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (localhost [IPv6:::1]) by mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (Postfix) with ESMTP id 8C492194658C; Tue, 7 Feb 2023 09:53:40 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx10.intmail.prod.int.rdu2.redhat.com [10.11.54.10]) by mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (Postfix) with ESMTP id EF52419465A2 for ; Tue, 7 Feb 2023 09:53:34 +0000 (UTC) Received: by smtp.corp.redhat.com (Postfix) id C5030492B22; Tue, 7 Feb 2023 09:53:34 +0000 (UTC) Received: from mimecast-mx02.redhat.com (mimecast08.extmail.prod.ext.rdu2.redhat.com [10.11.55.24]) by smtp.corp.redhat.com (Postfix) with ESMTPS id BD6C5492B21 for ; Tue, 7 Feb 2023 09:53:34 +0000 (UTC) Received: from us-smtp-1.mimecast.com (us-smtp-1.mimecast.com [207.211.31.81]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 9CED33828884 for ; Tue, 7 Feb 2023 09:53:34 +0000 (UTC) Received: from mail-ej1-f70.google.com (mail-ej1-f70.google.com [209.85.218.70]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_128_GCM_SHA256) id us-mta-573-2o3oFg0MN5e51DcSOs2Vrg-1; Tue, 07 Feb 2023 04:53:30 -0500 Received: by mail-ej1-f70.google.com with SMTP id ti11-20020a170907c20b00b00886244203fcso10583692ejc.2 for ; Tue, 07 Feb 2023 01:53:30 -0800 (PST) Received: from avogadro.local ([2001:b07:6468:f312:9af8:e5f5:7516:fa89]) by smtp.gmail.com with ESMTPSA id n23-20020a1709062bd700b007a4e02e32ffsm6661553ejg.60.2023.02.07.01.53.28 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Feb 2023 01:53:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1675763631; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=ecSWgDdrcmMY+cP6Jn+P93h0nIOEDQsUsDG/B5LAADI=; b=bmFEr6ugun5OJAr9eYjO2PiIbZ3HzaUQXqjT8Y6iFhpifErMhEJNiMVMyBILV20vbPMUjM dbeYleeB9Trjtdz0jgBxjceko4jtTBSzr2GFzHe4dBHyleXtg/CHNND7uHL2tNbatMvI5N dS8P64H7KYd7QESMMeyft2HkL2xZlIM= X-MC-Unique: C4lfFxPeOIyOr9QS3iXUtg-1 X-Original-To: patchew-devel@listman.corp.redhat.com X-MC-Unique: 2o3oFg0MN5e51DcSOs2Vrg-1 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=+JIbPOZ8ydPSB8k3sgwaT+c8CE+4HEE+JDPcuVZ/TgY=; b=ooThmPkhzO65RsE67w7J42hlZ7YA2mS/GGPEVgJANmqLA0p4CeMklDMroOf005D5Ly OrY4UUTXalEC5uFtc9UzpJUmzBblXV4w+ZTog+1auDpgM22OTyjRfJSoo3F5JBUCJ6IU PIdjR6Pdo+UtoJ/KPH2RKzR4SrIR9RaMuAEiplsFF7V5YGTlLW6ne+J0fir1YcmQN4d6 N96zvV9an/EqIKfhAVDZeF+I7r0QgKaa7ebHXeO++JB7WqNRDFLB+fqxeKqR6DBz5j1L xy9aXTtNz4YWyRcDM1kKbhFAub758CPD3wxjFvhlovyvq4GOBkgNT0qxj+j3SOHR2fzR aUOg== X-Gm-Message-State: AO0yUKX7iL8818mIzWr7LIy1oRRaz9P3OPwiFSgSNwHV1Lq2JsKyndH7 XkNtjhTmDahmti1a0yOMU92ogw6131F7X8IbCG/PxmG94rJ9I8nuM/7+8k8lnPSru32iLE50tKz WkPwvMRjpwIAeU5FsFqHyZpHbiThWAarhddxqNdhORBxVq+Mfk2kHRf9cj84HrNvIxeXxu4q/k9 BUT3w= X-Received: by 2002:a17:906:5f87:b0:878:5524:e932 with SMTP id a7-20020a1709065f8700b008785524e932mr2828983eju.5.1675763609300; Tue, 07 Feb 2023 01:53:29 -0800 (PST) X-Google-Smtp-Source: AK7set/cRhZka9CzIYbQeLWCa9wbvCTOZ+EE4nsYn2zPI4TFr1204JKYyLrO113R2ehY9rBYGwGfLQ== X-Received: by 2002:a17:906:5f87:b0:878:5524:e932 with SMTP id a7-20020a1709065f8700b008785524e932mr2828974eju.5.1675763609024; Tue, 07 Feb 2023 01:53:29 -0800 (PST) From: Paolo Bonzini To: patchew-devel@redhat.com Date: Tue, 7 Feb 2023 10:53:16 +0100 Message-Id: <20230207095318.57814-4-pbonzini@redhat.com> In-Reply-To: <20230207095318.57814-1-pbonzini@redhat.com> References: <20230207095318.57814-1-pbonzini@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.1 on 10.11.54.10 Subject: [Patchew-devel] [PATCH 3/5] playbooks: allow specifying postgresql host X-BeenThere: patchew-devel@redhat.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Patchew development and discussion list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: patchew-devel-bounces@redhat.com Sender: "Patchew-devel" X-Scanned-By: MIMEDefang 3.1 on 10.11.54.7 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1675763633143100004 Content-Type: text/plain; charset="utf-8" Signed-off-by: Paolo Bonzini --- scripts/playbooks/deploy-servers.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/scripts/playbooks/deploy-servers.yml b/scripts/playbooks/deplo= y-servers.yml index 18acb36..12cddb8 100644 --- a/scripts/playbooks/deploy-servers.yml +++ b/scripts/playbooks/deploy-servers.yml @@ -4,6 +4,10 @@ prompt: "Instance name of the webserver" default: patchew-server private: no + - name: db_host + prompt: "Host for PostgreSQL database (empty =3D SQLite)" + default: "" + private: no - name: superuser_name prompt: "Admin account to create (optional)" default: "" @@ -16,7 +20,8 @@ base_dir: "/data/{{ instance_name }}" src_dir: "{{ base_dir }}/src" data_dir: "{{ base_dir }}/data" - docker_run_args: "--link {{ instance_name }}-db:patchew-db" + db_arg: "{{ '-e PATCHEW_DB_PORT_5432_TCP_ADDR=3D' if db_host !=3D '' e= lse '' }}{{ db_host }}" + docker_run_args: "--link {{ instance_name }}-db:patchew-db {{db_arg}}" tasks: - name: Create data dir file: --=20 2.38.1 _______________________________________________ Patchew-devel mailing list Patchew-devel@redhat.com https://listman.redhat.com/mailman/listinfo/patchew-devel