This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# lxc-turnkey - Template for TurnKey GNU/Linux appliances | |
# | |
# lxc: linux Container library | |
# Authors: | |
# Daniel Lezcano <daniel.lezcano@free.fr> | |
# Modified for TurnKey GNU/Linux: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
##### EXPECTED RESULTS | |
<!--- What did you expect to happen when running the steps above? --> | |
Results from version 2.0.1.0 (passed) | |
``` | |
TASK [Test appliance webmin] *************************************************** | |
task path: /home/ansible/playbooks/webmin-test.yml:139 | |
<lxc> ESTABLISH SSH CONNECTION FOR USER: root | |
<lxc> SSH: EXEC ssh -C -q -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o Port=22 -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/ansible/.ansible/cp/ansible-ssh-%h-%p-%r -tt lxc '/bin/sh -c '"'"'mkdir -p "` echo ~/.ansible/tmp/ansible-tmp-1470625603.84-183242562950122 `" && echo "` echo ~/.ansible/tmp/ansible-tmp-1470625603.84-183242562950122 `"'"'"'' | |
<lxc> PUT /tmp/tmpJw5Mg0 TO /root/.ansible/tmp/ansible-tmp-1470625603.84-183242562950122/uri |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/bash | |
# --------------------------------------------------------------------------- | |
# turnkey-setup - Setup and configure a freshly installed TurnKey appliance | |
# Install ssh key for automated remote login | |
# Install vim-nox | |
# Setup additional bash aliases | |
# Copyright 2013, John Carver <dude4linux@gmail.com> | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
- name: Test a TurnKey appliance | |
hosts: lxc | |
gather_facts: false | |
vars: | |
host_key_checking: false | |
ssh_user: '{{lookup("env", "USER")}}' | |
ssh_key: '{{lookup("file", "~/.ssh/id_rsa.pub")}}' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# test-dnsmasq | |
# | |
app="wordpress" | |
container="${app}-container" | |
domain="${app}.local.lxc" | |
LEASES="/var/lib/misc/dnsmasq.leases" | |
release_lease() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# test-dnsmasq | |
# | |
app="wordpress" | |
container="${app}-container" | |
domain="${app}.local.lxc" | |
LEASES="/var/lib/misc/dnsmasq.leases" | |
release_lease() { |