diff --git a/ansible/ansible.cfg b/ansible/ansible.cfg new file mode 100644 index 0000000..e1e8d87 --- /dev/null +++ b/ansible/ansible.cfg @@ -0,0 +1,30 @@ +[defaults] + +fact_caching = jsonfile +fact_caching_connection = ~/.ansible/facts +fact_caching_timeout = 14400 +forks = 20 +gather_subset = !all +gather_timeout = 14400 +gathering = smart +host_key_checking = False +internal_poll_interval = 0.0003 +module_compression = 'ZIP_DEFLATED' +nocows = 1 +poll_interval = 1 +retry_files_enabled = False +roles_path = roles +# strategy = free +var_compression_level = 8 + +[ssh_connections] + +control_path = %(directory)s/%%h-%%r +control_path_dir = ~/.ansible/cp +pipelining = True +ssh_args = -C -o ControlMaster=auto -o ControlPersist=300s +transfer_method = piped + +[persistent_connection] + +connect_timeout = 180 diff --git a/ansible/clean-retry.sh b/ansible/clean-retry.sh new file mode 100755 index 0000000..a59cd17 --- /dev/null +++ b/ansible/clean-retry.sh @@ -0,0 +1,2 @@ +#!/bin/sh +find ./ -name "*.retry" -exec rm -fv {} \; diff --git a/ansible/inventories/docksand b/ansible/inventories/docksand new file mode 100644 index 0000000..9050805 --- /dev/null +++ b/ansible/inventories/docksand @@ -0,0 +1,42 @@ +[ds1] +docksand1 + +[ds2] +docksand2 + +[ds3] +docksand3 + +[ds4] +docksand4 + +[ds5] +docksand5 + +[ds6] +docksand6 + +[ds7] +docksand7 + +[ds8] +docksand8 + +[ds9] +docksand9 + +[ds10] +docksand10 + +[docksand:children] + +ds1 +ds2 +ds3 +ds4 +ds5 +ds6 +ds7 +ds8 +ds9 +ds10 diff --git a/ansible/inventories/localhost b/ansible/inventories/localhost new file mode 100644 index 0000000..ad2e1cd --- /dev/null +++ b/ansible/inventories/localhost @@ -0,0 +1,9 @@ +[lh] +localhost + +[localhost:children] +lh + +[tools_servers:children] + +lh diff --git a/ansible/playbooks/docksand/docksand_build.yml b/ansible/playbooks/docksand/docksand_build.yml new file mode 100644 index 0000000..cb69ff3 --- /dev/null +++ b/ansible/playbooks/docksand/docksand_build.yml @@ -0,0 +1,13 @@ +- hosts: localhost + tasks: + - name: Get current domain name + shell: hostname -d + register: domainname + + - name: Create docker sandbox containers + command: docker run -dh "dock{{ item }}.{{ domainname.stdout }}" \ + --name "docksand{{ item }}" \ + --net=docksandnet \ + --volume=/shared:/shared \ + "{{ docker_registry }}/{{ sandbox_image }}" + with_sequence: start="{{ docksand_start }}" end="{{ docksand_end }}" diff --git a/ansible/playbooks/docksand/docksand_destroy.yml b/ansible/playbooks/docksand/docksand_destroy.yml new file mode 100644 index 0000000..c3fd6e7 --- /dev/null +++ b/ansible/playbooks/docksand/docksand_destroy.yml @@ -0,0 +1,10 @@ +- hosts: localhost + tasks: + + - name: Stop running docker sandbox containers + command: docker stop docksand1 docksand2 docksand3 docksand4 docksand5 docksand6 docksand7 docksand8 docksand9 docksand10 + ignore_errors: True + + - name: Remove sandbox containers + command: docker rm docksand1 docksand2 docksand3 docksand4 docksand5 docksand6 docksand7 docksand8 docksand9 docksand10 + ignore_errors: True diff --git a/ansible/playbooks/docksand/docksand_rebuild.yml b/ansible/playbooks/docksand/docksand_rebuild.yml new file mode 100644 index 0000000..f993345 --- /dev/null +++ b/ansible/playbooks/docksand/docksand_rebuild.yml @@ -0,0 +1,2 @@ +- import_playbook: docksand_destroy.yml +- import_playbook: docksand_build.yml diff --git a/ansible/roles/docsand/meta/main.yml b/ansible/roles/docsand/meta/main.yml new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/ansible/roles/docsand/meta/main.yml diff --git a/ansible/roles/docsand/tasks/main.yml b/ansible/roles/docsand/tasks/main.yml new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/ansible/roles/docsand/tasks/main.yml diff --git a/ansible/roles/docsand/vars/main.yml b/ansible/roles/docsand/vars/main.yml new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/ansible/roles/docsand/vars/main.yml diff --git a/ansible/roles/role-template/meta/main.yml b/ansible/roles/role-template/meta/main.yml new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/ansible/roles/role-template/meta/main.yml diff --git a/ansible/roles/role-template/tasks/main.yml b/ansible/roles/role-template/tasks/main.yml new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/ansible/roles/role-template/tasks/main.yml diff --git a/ansible/roles/role-template/vars/main.yml b/ansible/roles/role-template/vars/main.yml new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/ansible/roles/role-template/vars/main.yml diff --git a/dockerfiles/common/keys/ssh_host_dsa_key.pub b/dockerfiles/common/keys/ssh_host_dsa_key.pub index 68cfcee..f3cc5fa 100644 --- a/dockerfiles/common/keys/ssh_host_dsa_key.pub +++ b/dockerfiles/common/keys/ssh_host_dsa_key.pub @@ -1 +1 @@ -ssh-dss AAAAB3NzaC1kc3MAAACBAMPDt0o2y4/7FpWPs2Gtg1PsxzhIrIELyVU6RFXzu4zySFMP+vX+GjIf0TWI1GcdZNkAjCUgOcGuwYeQjBaFsatWO5gMEigKfvlNRaH/RCWQ01FbU9bnpvLFvYLGGNqlNymBzn2MpRD9yV2vPiI9UbilP+iBRIlK2gGY4I1W/Tb7AAAAFQDpNI/p45ES2XEgu7TleqlUetIQQQAAAIEAnh/opq2PSy/42t4FBjXotXnJOfs/OsksZ6q5npTiAnNhX/3JUzRFU1MrFqj/kT2gkJ+X9Dt+fzh9d8QwtUbYhSr1wkhQ+NZ0do26nIiR17P8r3O9IM1ZriGdnF172J0wWXG1xUQ00889Z61Y+/gMDmoKxlKFg3GsLKV6T9l6ZYgAAACBAKhsAWCXt3eDA092RYzz1eivyhmpTDn3Qa3Ad3/GiJP59RqPvqCdkGNVXCPStpgSkBIHZmYq2jS0Omp0l38emI52Eotc/rNgSF7uPohtbSzi/n3H/6JSXmkZJEd/BZRQdjCqB50AXffxl6IvmBSNR2hEQidjBzXo/h0aGavVZRn6 tundra@viper +ssh-dss AAAAB3NzaC1kc3MAAACBAMPDt0o2y4/7FpWPs2Gtg1PsxzhIrIELyVU6RFXzu4zySFMP+vX+GjIf0TWI1GcdZNkAjCUgOcGuwYeQjBaFsatWO5gMEigKfvlNRaH/RCWQ01FbU9bnpvLFvYLGGNqlNymBzn2MpRD9yV2vPiI9UbilP+iBRIlK2gGY4I1W/Tb7AAAAFQDpNI/p45ES2XEgu7TleqlUetIQQQAAAIEAnh/opq2PSy/42t4FBjXotXnJOfs/OsksZ6q5npTiAnNhX/3JUzRFU1MrFqj/kT2gkJ+X9Dt+fzh9d8QwtUbYhSr1wkhQ+NZ0do26nIiR17P8r3O9IM1ZriGdnF172J0wWXG1xUQ00889Z61Y+/gMDmoKxlKFg3GsLKV6T9l6ZYgAAACBAKhsAWCXt3eDA092RYzz1eivyhmpTDn3Qa3Ad3/GiJP59RqPvqCdkGNVXCPStpgSkBIHZmYq2jS0Omp0l38emI52Eotc/rNgSF7uPohtbSzi/n3H/6JSXmkZJEd/BZRQdjCqB50AXffxl6IvmBSNR2hEQidjBzXo/h0aGavVZRn6 dockersand diff --git a/dockerfiles/common/keys/ssh_host_ecdsa_key.pub b/dockerfiles/common/keys/ssh_host_ecdsa_key.pub index d9f9624..febb5c9 100644 --- a/dockerfiles/common/keys/ssh_host_ecdsa_key.pub +++ b/dockerfiles/common/keys/ssh_host_ecdsa_key.pub @@ -1 +1 @@ -ssh-dss AAAAB3NzaC1kc3MAAACBAN+bLNfrRqeARQfHkjoQwZDECKKyUFq42n+aWhkccCHkwIqQtktLgNNEtTagXc29VBdNhkd4ztvwxO2eUG+zn18TFTFXEvPxAPozzvrxIHmax2fFyOUBOCBzV8Xo+Awu7AbjCEHQxLTBiA/P5GuWMDX8zB+H/8VMOxYBvJGV7uJTAAAAFQCq7oAVOi0lPsfzm4wQf7TmxwGSjQAAAIBsOkO7aCwWk1Pn8WN2rinV0Vsot5YDQ8OdEqXU3lIf2a8akQEZky5QmZD97NYnLIrML6LSkyg8+n5Wu/SekfDyos9p4mZGTikZQjeAus/NI7+b+WHxyyo7jYxEE7DuskPPOl2Exk7UZZ8InkpbWSB7dku8mtlKV0Pgz8g3ieReYgAAAIAJmdu1qErsXLv3RLkTIztGnR+wfJQZIvtzk/REQbfPRUVe0EsezUcwPsa1HimswXRKPXfDkZrKGi446C3WX1hYjRjmeKGfmodGwWen4UA6mPTWHZsZFnXCNWtd8BSqF6W12ZmkMJJVi7x1Zkv8SH7/SVZONyOCeklk3Z3evNhUtw== tundra@viper +ssh-dss AAAAB3NzaC1kc3MAAACBAN+bLNfrRqeARQfHkjoQwZDECKKyUFq42n+aWhkccCHkwIqQtktLgNNEtTagXc29VBdNhkd4ztvwxO2eUG+zn18TFTFXEvPxAPozzvrxIHmax2fFyOUBOCBzV8Xo+Awu7AbjCEHQxLTBiA/P5GuWMDX8zB+H/8VMOxYBvJGV7uJTAAAAFQCq7oAVOi0lPsfzm4wQf7TmxwGSjQAAAIBsOkO7aCwWk1Pn8WN2rinV0Vsot5YDQ8OdEqXU3lIf2a8akQEZky5QmZD97NYnLIrML6LSkyg8+n5Wu/SekfDyos9p4mZGTikZQjeAus/NI7+b+WHxyyo7jYxEE7DuskPPOl2Exk7UZZ8InkpbWSB7dku8mtlKV0Pgz8g3ieReYgAAAIAJmdu1qErsXLv3RLkTIztGnR+wfJQZIvtzk/REQbfPRUVe0EsezUcwPsa1HimswXRKPXfDkZrKGi446C3WX1hYjRjmeKGfmodGwWen4UA6mPTWHZsZFnXCNWtd8BSqF6W12ZmkMJJVi7x1Zkv8SH7/SVZONyOCeklk3Z3evNhUtw== dockersand diff --git a/dockerfiles/common/keys/ssh_host_ed25519_key.pub b/dockerfiles/common/keys/ssh_host_ed25519_key.pub index ce5bfdf..714ada6 100644 --- a/dockerfiles/common/keys/ssh_host_ed25519_key.pub +++ b/dockerfiles/common/keys/ssh_host_ed25519_key.pub @@ -1 +1 @@ -ssh-dss AAAAB3NzaC1kc3MAAACBALz3LMaMiCDd2DLWG2sXkqAnHQ6wZa1UIRCfqT+0+ojjf9Qpx3XNPqLpOHT4eu0rWIJB9mkS1qY22HfU6c+3tkJSZ2wYI3YxlBDsRXS6QMF24JnZ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pub b/dockerfiles/common/keys/ssh_host_rsa_key.pub index 64e0c89..c247652 100644 --- a/dockerfiles/common/keys/ssh_host_rsa_key.pub +++ b/dockerfiles/common/keys/ssh_host_rsa_key.pub @@ -1 +1 @@ -ssh-dss AAAAB3NzaC1kc3MAAACBALv+HtATAamxNiv9mEnowqKvQHas0mH/gn7iewdSLfUUJioKIER4nVc9nyqZOASWVSPG5yaIfy8M+kiV2uf+Ib6O1fejvmqGyXDfgHayYv1AehScT1jqPGnd2aIECg6LQ6vQ7X/PsGQcXR9Pju2jzsz/9jNknsWy7kMD01c0cIk7AAAAFQDAjXI4K8zrpj5aRAiJ21s9OrLNwQAAAIEAhkUwws27nmADCdQaIyffCn4n0FKTvxEzfUquQX2ijimMbc3CndEftsB+ZWFKWt31WuzT5IM2gVWg8H/0O2GenHauQz529hC0Wgw33VjFpP/yllJlo6ScBgLUN4vUbuRxe0rNXXpVpodnGlVRlCtFr5EvJsqW6x9x2JHF2fDy0jUAAACAe1JjxS+CbGCrXetzQhP/kdDvQEUZbI6n+LF8Ay1etUy0k/fI6JMG0rYYA9MewgQZIT4fwOWfWbvYaoYULFpbgX4lzIKPRnjIRD5SLqDjyvfLwSt+2U/3Qiw1+QuDJb4TtNf8y4tPpJeU/O++tay6R+GKytD0+CPn6M+kdnA0OFY= tundra@viper +ssh-dss AAAAB3NzaC1kc3MAAACBALv+HtATAamxNiv9mEnowqKvQHas0mH/gn7iewdSLfUUJioKIER4nVc9nyqZOASWVSPG5yaIfy8M+kiV2uf+Ib6O1fejvmqGyXDfgHayYv1AehScT1jqPGnd2aIECg6LQ6vQ7X/PsGQcXR9Pju2jzsz/9jNknsWy7kMD01c0cIk7AAAAFQDAjXI4K8zrpj5aRAiJ21s9OrLNwQAAAIEAhkUwws27nmADCdQaIyffCn4n0FKTvxEzfUquQX2ijimMbc3CndEftsB+ZWFKWt31WuzT5IM2gVWg8H/0O2GenHauQz529hC0Wgw33VjFpP/yllJlo6ScBgLUN4vUbuRxe0rNXXpVpodnGlVRlCtFr5EvJsqW6x9x2JHF2fDy0jUAAACAe1JjxS+CbGCrXetzQhP/kdDvQEUZbI6n+LF8Ay1etUy0k/fI6JMG0rYYA9MewgQZIT4fwOWfWbvYaoYULFpbgX4lzIKPRnjIRD5SLqDjyvfLwSt+2U/3Qiw1+QuDJb4TtNf8y4tPpJeU/O++tay6R+GKytD0+CPn6M+kdnA0OFY= dockersand diff --git a/dockerfiles/ds-debian/ds-debian.dockerfile b/dockerfiles/ds-debian/ds-debian.dockerfile index f2c9179..a04af80 100644 --- a/dockerfiles/ds-debian/ds-debian.dockerfile +++ b/dockerfiles/ds-debian/ds-debian.dockerfile @@ -1,4 +1,4 @@ -# Dockerfile For Standard TundraWare Inc. Debian Image +# Dockerfile Docker Sandbox Debian Image FROM debian MAINTAINER tundra@tundraware.com