Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 7 Oct 2019 07:57:18 +0100
From:      Matthew Seaman <matthew@FreeBSD.org>
To:        freebsd-questions@freebsd.org
Subject:   Re: Ansible for FreeBSD - use cases?
Message-ID:  <c4174ccb-8f12-5738-c444-e7236c9885d8@FreeBSD.org>
In-Reply-To: <20191007042856.GB98441@admin.sibptus.ru>
References:  <20191005141507.GA1223@admin.sibptus.ru> <20191006184205.sr4gt3gmnzzzuzua@deathbolt.927589452.space> <20191007042856.GB98441@admin.sibptus.ru>

next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 4880 and 3156)
--0E1UUQfZzvbHsdCIvlJd6p1qwhX6cN6Yn
Content-Type: multipart/mixed; boundary="tieqpJQR2M0w7uCBPSSkF0BzIMF6nojsu";
 protected-headers="v1"
From: Matthew Seaman <matthew@FreeBSD.org>
To: freebsd-questions@freebsd.org
Message-ID: <c4174ccb-8f12-5738-c444-e7236c9885d8@FreeBSD.org>
Subject: Re: Ansible for FreeBSD - use cases?
References: <20191005141507.GA1223@admin.sibptus.ru>
 <20191006184205.sr4gt3gmnzzzuzua@deathbolt.927589452.space>
 <20191007042856.GB98441@admin.sibptus.ru>
In-Reply-To: <20191007042856.GB98441@admin.sibptus.ru>

--tieqpJQR2M0w7uCBPSSkF0BzIMF6nojsu
Content-Type: text/plain; charset=windows-1252
Content-Language: en-GB
Content-Transfer-Encoding: quoted-printable

On 07/10/2019 05:28, Victor Sudakov wrote:
> If I have packages in multiple jails, can ansible help me keep them all=

> up-to-date? Without sshd inside jails?

Yes.  Ansible has a 'jail connector' which effectively lets you use
jexec(8) to run programs within your jails.  It has some limitations:

   - you can only run ansible on the host system to access jails on the
same machine

   - you have to run ansible as root

Aside from that, basically you can do anything with ansible inside a
jail that you could do by ssh'ing in.

There is an improved version of the jail connector floating around on
GitHub which those limitations -- see
https://github.com/austinhyde/ansible-sshjail

Of course, pkg(8) also has native functionality for managing packages in
jails. eg:

    pkg -j jailname update


	Cheers,

	Matthew


--tieqpJQR2M0w7uCBPSSkF0BzIMF6nojsu--

--0E1UUQfZzvbHsdCIvlJd6p1qwhX6cN6Yn
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----

iQKTBAEBCgB9FiEEGfFU7L8RLlBUTj8wAFE/EOCp5OcFAl2a4c9fFIAAAAAALgAo
aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldDE5
RjE1NEVDQkYxMTJFNTA1NDRFM0YzMDAwNTEzRjEwRTBBOUU0RTcACgkQAFE/EOCp
5OeFfA//V1rJdpYAp/Vgtv6Wi9W16fYjAY+9xxDqMOXr8KY56UXyqKu08OJTvYky
FymvMXcGy90Sd1hkKw5FyuqYSt7W28JViRzr9S/yVVdlS+lnRNGwJL61WMTuA17g
gT9cX4sUE9SzMnOuA/5NeuY8WOZuKLA7+vwSF5Zmol/Ob1l97zjCVMxPJmFYSZ2A
4+r4yFXno1RB50K2SZBruOzW3/09aPROlZXWTzD9dWaSLwGYg0prY0E+kZJo9H9N
EFcR0g9WnPsKVtjch4zwjwYS1H8dA+G65QwhLEYFvGeMJXASGMyTd1CgBcRHC7ON
lHV5gNN7BZvdn6wUur2c5Ts+mRKFiu6LPA/C4FmjWtncFPI8wP0zXnrpdHGheJ7L
PfeBVy0j/O2jftcpHgwwj2tXxRNvzEKhB1W+o1ktIUTHEY1v2qut9+G2WYsPwieh
SvatkKuqZw+t7nRpGa8k9zsxu9ivuEUwGXyhoL43HDJgpdIoPBTu0oMUw8UxiXDl
J8QheOAgM3m+utwq8nhwuLBWL+KFj3TtpHh/n/QVeheoxnk9ApY2PCoWfQOfWpI4
dt27HFubR6xTmVOHIvUbnEBWFyggZPcXiLG1+OgtWObqou06KCYc/v27jJFedoCy
vxkHL1rfuS6hq305qvmH/UGtJqfGZtTgRS8M+ptD5xFs3+DxR5I=
=TSuk
-----END PGP SIGNATURE-----

--0E1UUQfZzvbHsdCIvlJd6p1qwhX6cN6Yn--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?c4174ccb-8f12-5738-c444-e7236c9885d8>