Skip to content

Instantly share code, notes, and snippets.

View markuman's full-sized avatar
🐧
Linux Only - fail fast, move on

Markus Bergholz markuman

🐧
Linux Only - fail fast, move on
  • Lekker Energie GmbH
  • Berlin
View GitHub Profile
plugin: aws_ec2
regions:
- eu-central-1
hostnames:
- tag:Name
filters:
tag:made_with_ansible: "yes"
tag:ssh_access: "ldap"
compose:
ansible_user: someuser
m@pop-os:~/git/upstream-ansible/markuman-ansible$ git pull --rebase origin gitlab_project_variable
From https://github.com/markuman/ansible
* branch gitlab_project_variable -> FETCH_HEAD
Already up to date.
Current branch gitlab_project_variable is up to date.
m@pop-os:~/git/upstream-ansible/markuman-ansible$ git push origin gitlab_project_variable
Everything up-to-date
m@pop-os:~/git/upstream-ansible/markuman-ansible$
---
- hosts: localhost
connection: local
gather_facts: False
####################
#
# run with
# ANSIBLE_HOST_KEY_CHECKING=False \
# AWS_PROFILE=myaws \
+ ansible-playbook -i ../../inventory -e @../../integration_config.yml -v playbooks/multiple_actions_fail.yml -v -e @/root/.ansible/test/tmp/elb_application_lb-zstr7yga-ÅÑŚÌβŁÈ/test/integration/config-file-3quivj_e.json
Error reading config file (/root/.ansible/test/tmp/elb_application_lb-zstr7yga-ÅÑŚÌβŁÈ/test/integration/integration.cfg): File contains no section headers.
file: '<string>', line: 1
'---\n'
+ rm -rf /tmp/tmp.wSqikxufok
NOTICE: To resume at this test target, use the option: --start-at elb_application_lb
ERROR: Command "./runme.sh -v -e '@/root/.ansible/test/tmp/elb_application_lb-zstr7yga-ÅÑŚÌβŁÈ/test/integration/config-file-3quivj_e.json'" returned exit status 5.
Run command: docker exec 54c03dfc32cf7d9e39c28325266a2547fe4cd5dba5982733acee8a9e015ecb9f tar czf /root/results.tgz -C /root/ansible/test results
Run command: docker exec -i 54c03dfc32cf7d9e39c28325266a2547fe4cd5dba5982733acee8a9e015ecb9f dd if=/root/results.tgz bs=65536
Run command: tar oxzf /tmp/ansible-result-ark7mj1a.tgz -C test
+ ansible-playbook -i ../../inventory -e @../../integration_config.yml -e @../../cloud-config-aws.yml -v playbooks/multiple_actions_fail.yml -v -e @/root/.ansible/test/tmp/elb_application_lb-e42xs4ht-ÅÑŚÌβŁÈ/test/integration/config-file-dvjabeor.json
ansible-playbook 2.8.0.dev0
config file = /root/.ansible/test/tmp/elb_application_lb-e42xs4ht-ÅÑŚÌβŁÈ/test/integration/integration.cfg
configured module search path = ['/dev/null']
ansible python module location = /root/ansible/lib/ansible
executable location = /root/ansible/bin/ansible-playbook
python version = 3.6.8 (default, Dec 24 2018, 19:24:27) [GCC 5.4.0 20160609]
Using /root/.ansible/test/tmp/elb_application_lb-e42xs4ht-ÅÑŚÌβŁÈ/test/integration/integration.cfg as config file
ERROR! Unable to retrieve file contents
Could not find or access '/root/.ansible/test/tmp/elb_application_lb-e42xs4ht-ÅÑŚÌβŁÈ/test/integration/cloud-config-aws.yml' on the Ansible Controller.
+ ansible-playbook -i ../../inventory -e @../../integration_config.yml -e @../../cloud-config-aws.yml -v playbooks/network_fail.yml -v -e @/root/.ansible/test/tmp/ecs_cluster-algo7iq9-ÅÑŚÌβŁÈ/test/integration/config-file-xus62nmu.json
ansible-playbook 2.9.0.dev0
config file = /root/.ansible/test/tmp/ecs_cluster-algo7iq9-ÅÑŚÌβŁÈ/test/integration/integration.cfg
configured module search path = ['/dev/null']
ansible python module location = /root/ansible/lib/ansible
executable location = /root/ansible/bin/ansible-playbook
python version = 3.7.3 (default, Mar 26 2019, 01:59:45) [GCC 5.4.0 20160609]
Using /root/.ansible/test/tmp/ecs_cluster-algo7iq9-ÅÑŚÌβŁÈ/test/integration/integration.cfg as config file
ERROR! Unable to retrieve file contents
Could not find or access '/root/.ansible/test/tmp/ecs_cluster-algo7iq9-ÅÑŚÌβŁÈ/test/integration/cloud-config-aws.yml' on the Ansible Controller.
  • test host t3a.small unlimited cpu
  • glusterfs 3 x t3a.micro unlimited cpu splot instances
  • all in eu-west-1c
Test Target MiB/sec
768 x 768K glusterfs 113
768 x 768K efs general purpose 15
768 x 768K efs max i/o 9
200 x 2M glusterfs 131
m@pop-os:~/git/upstream-ansible/markuman-ansible$ gs
On branch devel
Your branch is up to date with 'origin/devel'.
nothing to commit, working tree clean
m@pop-os:~/git/upstream-ansible/markuman-ansible$ git remote -v
origin https://markuman:[email protected]/markuman/ansible (fetch)
origin https://markuman:[email protected]/markuman/ansible (push)
upstream https://github.com/ansible/ansible.git (fetch)
upstream https://github.com/ansible/ansible.git (push)
2019-04-18T11:50:35.901839161Z gitea.1.davouv81yxa0@hetzner | [Macaron] 2019-04-18 11:50:35: Started GET /star/gitea/src/commit/d8d24a56195e0724a5c1a82e8c620a2b879f6ebd/contrib?lang=zh-CN for 46.229.168.153
[log]
ENABLE_ACCESS_LOG = true
ACCESS = console
ACCESS_LOG_TEMPLATE = {{.Ctx.RemoteAddr}} - {{.Identity}} {{.Start.Format "[02/Jan/2006:15:04:05 -0700]" }} "{{.Ctx.Req.Method}} {{.Ctx.Req.RequestURI}} {{.Ctx.Req.Proto}}" {{.ResponseWriter.Status}} {{.ResponseWriter.Size}} "{{.Ctx.Req.Referer}}\" \"{{.Ctx.Req.UserAgent}}"
$ docker run -ti --rm -v ~/.aws/:/root/.aws/ --network public -p 127.0.0.1:24224:24224 markuman/fluentd
/ # mkdir fluent
/ # apk update
fetch http://dl-cdn.alpinelinux.org/alpine/v3.9/main/x86_64/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/v3.9/community/x86_64/APKINDEX.tar.gz
v3.9.3-21-g265a28802e [http://dl-cdn.alpinelinux.org/alpine/v3.9/main]
v3.9.3-15-g583c0d55e9 [http://dl-cdn.alpinelinux.org/alpine/v3.9/community]
OK: 9754 distinct packages available
/ # apk add nano
(1/1) Installing nano (3.2-r0)