From owner-freebsd-current@FreeBSD.ORG Wed Jan 14 00:14:31 2015 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 5BD1379A for ; Wed, 14 Jan 2015 00:14:31 +0000 (UTC) Received: from mx1.scaleengine.net (beauharnois2.bhs1.scaleengine.net [142.4.218.15]) by mx1.freebsd.org (Postfix) with ESMTP id 1BB7A229 for ; Wed, 14 Jan 2015 00:14:30 +0000 (UTC) Received: from [192.168.1.2] (Seawolf.HML3.ScaleEngine.net [209.51.186.28]) (Authenticated sender: allanjude.freebsd@scaleengine.com) by mx1.scaleengine.net (Postfix) with ESMTPSA id E65078ED7B for ; Wed, 14 Jan 2015 00:14:29 +0000 (UTC) Message-ID: <54B5B4EF.3010109@freebsd.org> Date: Tue, 13 Jan 2015 19:14:39 -0500 From: Allan Jude User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.3.0 MIME-Version: 1.0 To: freebsd-current@freebsd.org Subject: Re: Devops question: freebsd-update needs a real tty to run, problem for automation References: In-Reply-To: Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="M6k9rrJ9MOQP7s9qERx7fW4P4Dw57qpwc" X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 14 Jan 2015 00:14:31 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --M6k9rrJ9MOQP7s9qERx7fW4P4Dw57qpwc Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable On 2015-01-13 18:11, Craig Rodrigues wrote: > Hi, >=20 > Ahmed Kamal, a devops expert, is helping me to script the steps to > upgrade a cluster of FreeBSD machines. For certain machines, > we want to track the official FreeBSD releases and use freebsd-update > to install official updates. >=20 > We found that when the invocation of freebsd-update was scripted > and not run via a real tty, we can into this error: >=20 > "freebsd-update fetch should not be run non-interactively." >=20 > There are various workarounds mentioned on various web pages. > However, should we modify freebsd-update so that it can work better > when not run via a real tty? This would make it more devops/automation= > friendly. >=20 > The closest thing I have found is "freebsd-update cron", which can fetc= h > the updates and run without a real tty. The only problem with > "freebsd-update cron" > is that it sleeps a random amount of time between 1 and 3600 seconds be= fore > fetching the updates. This is OK when run in a cron job, > but not OK when run as part of a devops automation framework. >=20 > Anybody have ideas as to the best way to proceed in fixing this in > freebsd-update? > -- > Craig > _______________________________________________ > freebsd-current@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.o= rg" >=20 I think this requirement was originally added when Colin hosted the mirrors for FreeBSD update himself, and was worried about everyone scripting it to run via crontab at midnight every night. It is likely a false requirement, and can be safely removed. Dealing with the merges, only really affects version upgrades, and is less of an issue compared to being able to automate security fixes. --=20 Allan Jude --M6k9rrJ9MOQP7s9qERx7fW4P4Dw57qpwc Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (MingW32) iQIcBAEBAgAGBQJUtbTzAAoJEJrBFpNRJZKfnyAP/AtUB53FaCb11OZGWAYSqIB8 EKg3ltMU8Cs9D9qsUcz9O6iTqOy+Zmh3Wjj9XBi4OWfuAEeTkSGmjVQzVi9Fu/kS ulV7+wVyfDOp1meqEL8IOYUoAMrTJmWHAHOLt4jbWOP5MRbv90P2bsLV1soKqnXU rWIy+XGfmumCNGwU0sVIndqzHNYxdOnEvlT5FG8eY5MDrTBFje1RSQ6ymJpOnu0O CFshGSp2x7nZgT34U+jNKbXIdqbjOnVRW7CNxXcpMHojZRnyjZRZoZZzPWiAU6Qt 7iKjO0sgUD6uytLF73VS8rHrqmqfRDV3YlZ0Lbri9DCApU8kzoC/S//Ioz349XF1 XpzwPtIHBdGV4cTc3sH55QQ83f/z0Qz7e1k/uq2MwB+TglQyy8dF72mb8+qojMXw t9lpc11yfqre0DM0IBlQcMmlKfLW2RGlPS4VYHx8ffafnmcA0I/JenK63gBTzmj1 NldDzcNrrl4o7UHz7bhDH0AUi6m4BF1oqJgourIwJ5xS11tTLxpSNrpRanWZamqt tDBVfqk472e0B4WCi9JAy+LbINeAgcmXvOznMCKqqdUyfZNsmyFRgiMjuXD/JBDK Y+JkJ8s/CmcImbzCLIrSOEkCvVbonQ/b7z6cbljamEHFjda4SeqK4+BpV2RbxmVo 3b0ErC+0GSrWHPCcODcR =eLx+ -----END PGP SIGNATURE----- --M6k9rrJ9MOQP7s9qERx7fW4P4Dw57qpwc--