One could argue that if you run lxc/lxd you're after system-like
functionality (and not docker-style containers) hence you treat it the same
way you'd treat a VM.
One easy way of installing ssh inside a container is to use images with
cloud-init.
kind regards
Pshem
On Thu, 26 Jan 2017 at 06:14
On 25.01.17 18:14 'Hadmut Danisch' via Ansible Project wrote:
> It is, furthermore, illogical and causes a chicken-egg-problem:
Depends on what you define as 'containers'.
I have multiple containers running on my hosts, and all have sshd
running. Thus I can manage them like normal machines. No
Am Mittwoch, 25. Januar 2017 17:56:22 UTC+1 schrieb Mario Keller:
>
> Running a bunch of sshd on a single host in every container just for
> automation is the opposite to the lightweight idea of ansible.
>
It is, furthermore, illogical and causes a chicken-egg-problem:
How would one
Running a bunch of sshd on a single host in every container just for
automation is the opposite to the lightweight idea of ansible. Currently
the host has lxc installed, so the lxd connection will not work because it
uses "lxc exec" instead of "lxc-attach" to run commands.
I will give lxd a
On 25.01.17 01:19 Pshem Kowalczyk wrote:
> Is there any particular reason you don't want have ssh inside the container
> at least initially? You can always disable it after you're done with
> initial configuration.
+1 for installing ssh in the container.
And use the host as a jumphost
Is there any particular reason you don't want have ssh inside the container
at least initially? You can always disable it after you're done with
initial configuration.
kind regards
Pshem
On Wed, 25 Jan 2017 at 12:31 'Mario Keller' via Ansible Project <
ansible-project@googlegroups.com> wrote:
look at lxd connection plugin, IIRc it allows for remote connections
--
Brian Coca
--
You received this message because you are subscribed to the Google Groups
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to
Hello,
I'm trying to configure lxc containers via ansible running on a remote
host. I have ssh access to the remote host, but inside the containers there
are no ssh services running. There is a lxc connection plugin that handle
access to the containers via lxc-attach but it seems that this