asg1612 / ansible-role-gocd Goto Github PK
View Code? Open in Web Editor NEWAnsible role for install GOCD server and agents
Ansible role for install GOCD server and agents
Update Readme.md with more information
Use var for "traefik.gocd.frontend.rule" in Jinja template (docker-compose.yml.j2)
--> Action: 'lint'
--> Executing Yamllint on files found in /home/travis/build/asg1612/ansible-role-gocd/...
/home/travis/build/asg1612/ansible-role-gocd/tasks/main.yml
20:1 error trailing spaces (trailing-spaces)
/home/travis/build/asg1612/ansible-role-gocd/tasks/go-server.yml
13:7 error wrong indentation: expected 4 but found 6 (indentation)
13:16 warning truthy value is not quoted (truthy)
Add GO_SERVER_URL var for use it on go-agent config file
Github action gofrolist/molecule-action@v2 having some issues with driver podman and I'm working on fix. For now I recommend to use driver docker
TASK [Discover local Podman images] ********************************************
failed: [localhost] (item=molecule-gocd-server) => {"ansible_loop_var": "item", "changed": false, "item": {"ansible_index_var": "i", "ansible_loop_var": "item", "changed": true, "checksum": "68ec1be989c98282ba67f7657776513635816e15", "dest": "/github/home/.cache/molecule/ansible-role-gocd/default/Dockerfile_asg1612_docker_systemd", "diff": [], "failed": false, "gid": 0, "group": "root", "i": 0, "invocation": {"module_args": {"_original_basename": "Dockerfile.j2", "attributes": null, "backup": false, "checksum": "68ec1be989c98282ba67f7657776513635816e15", "content": null, "dest": "/github/home/.cache/molecule/ansible-role-gocd/default/Dockerfile_asg1612_docker_systemd", "directory_mode": null, "follow": false, "force": true, "group": null, "local_follow": null, "mode": "0600", "owner": null, "remote_src": null, "selevel": null, "serole": null, "setype": null, "seuser": null, "src": "/root/.ansible/tmp/ansible-tmp-1634279342.0860417-272-210027621527269/source", "unsafe_writes": false, "validate": null}}, "item": {"command": "/lib/systemd/systemd", "exposed_ports": ["8153:8153", "8154:8154"], "groups": ["gocd_server"], "image": "asg1612/docker-systemd", "name": "molecule-gocd-server", "privileged": true, "required": "True", "volumes": ["/sys/fs/cgroup:/sys/fs/cgroup:ro"]}, "md5sum": "5f9db9bd13e0c4ed20da26858a63b075", "mode": "0600", "owner": "root", "size": 1051, "src": "/root/.ansible/tmp/ansible-tmp-1634279342.0860417-272-210027621527269/source", "state": "file", "uid": 0}, "msg": "Unable to gather info for 'molecule_local/molecule-gocd-server': cannot clone: Operation not permitted\nError: cannot re-exec process\n"}
--> Action: 'verify'
--> Executing Testinfra tests found in /home/travis/build/asg1612/ansible-role-gocd/molecule/default/tests/...
============================= test session starts ==============================
platform linux2 -- Python 2.7.14, pytest-3.3.0, py-1.5.2, pluggy-0.6.0
rootdir: /home/travis/build/asg1612/ansible-role-gocd/molecule/default, inifile:
plugins: testinfra-1.7.1
collected 4 items
tests/test_server.py FF [ 50%]
tests/test_agent.py .. [100%]
=================================== FAILURES ===================================
____________ test_server_container[ansible://molecule-gocd-server] _____________
host = <testinfra.host.Host object at 0x7fc6f461bf90>
def test_server_container(host):
# 'host' now binds to the container
> assert host.check_output('docker ps -f "name=gocd-server" -f '
'"status=running" --format '
'{{ "{{.Names}}" }}') == 'gocd-server'
E AssertionError: assert '' == 'gocd-server'
E + gocd-server
tests/test_server.py:11: AssertionError
------------------------------ Captured log call -------------------------------
ansible.py 64 INFO RUN Ansible(u'shell', 'docker ps -f "name=gocd-server" -f "status=running" --format {{ "{{.Names}}" }}', {}): {'_ansible_no_log': False,
'_ansible_parsed': True,
u'changed': True,
u'cmd': u'docker ps -f "name=gocd-server" -f "status=running" --format {{.Names}}',
u'delta': u'0:00:00.051266',
u'end': u'2018-03-13 12:27:22.589392',
u'invocation': {u'module_args': {u'_raw_params': u'docker ps -f "name=gocd-server" -f "status=running" --format {{.Names}}',
u'_uses_shell': True,
u'chdir': None,
u'creates': None,
u'executable': None,
u'removes': None,
u'stdin': None,
u'warn': True}},
u'rc': 0,
u'start': u'2018-03-13 12:27:22.538126',
u'stderr': u'',
'stderr_lines': [],
u'stdout': u'',
'stdout_lines': []}
base.py 241 INFO RUN CommandResult(command='docker ps -f "name=gocd-server" -f "status=running" --format {{ "{{.Names}}" }}', exit_status=0, stdout=u'', stderr=u'')
____________ test_traefik_container[ansible://molecule-gocd-server] ____________
host = <testinfra.host.Host object at 0x7fc6f461bf90>
def test_traefik_container(host):
# 'host' now binds to the container
command = ('docker ps -f "name=traefik_traefik_1" -f "status=running" '
'--format {{ "{{.Names}}" }}')
> assert host.check_output(command) == 'traefik_traefik_1'
E AssertionError: assert '' == 'traefik_traefik_1'
E + traefik_traefik_1
tests/test_server.py:20: AssertionError
------------------------------ Captured log call -------------------------------
ansible.py 64 INFO RUN Ansible(u'shell', 'docker ps -f "name=traefik_traefik_1" -f "status=running" --format {{ "{{.Names}}" }}', {}): {'_ansible_no_log': False,
'_ansible_parsed': True,
u'changed': True,
u'cmd': u'docker ps -f "name=traefik_traefik_1" -f "status=running" --format {{.Names}}',
u'delta': u'0:00:00.049543',
u'end': u'2018-03-13 12:27:23.777118',
u'invocation': {u'module_args': {u'_raw_params': u'docker ps -f "name=traefik_traefik_1" -f "status=running" --format {{.Names}}',
u'_uses_shell': True,
u'chdir': None,
u'creates': None,
u'executable': None,
u'removes': None,
u'stdin': None,
u'warn': True}},
u'rc': 0,
u'start': u'2018-03-13 12:27:23.727575',
u'stderr': u'',
'stderr_lines': [],
u'stdout': u'',
'stdout_lines': []}
base.py 241 INFO RUN CommandResult(command='docker ps -f "name=traefik_traefik_1" -f "status=running" --format {{ "{{.Names}}" }}', exit_status=0, stdout=u'', stderr=u'')
===================== 2 failed, 2 passed in 16.28 seconds ======================
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.