Skip to content

Instantly share code, notes, and snippets.

View duntonr's full-sized avatar

Bob Dunton duntonr

View GitHub Profile
@duntonr
duntonr / glcirunner_register_docker.sh.j2
Created January 23, 2016 18:04
Ansible example of loading a template as a script and running it
View glcirunner_register_docker.sh.j2
#!/bin/bash
gitlab-ci-multi-runner register <<EOF
https://{{ ci_host_name }}/ci
{{ ci_coordinator_token }}
{{ ansible_fqdn }}
{{ ci_tags }}
{{ ci_executor }}
{{ ci_executor_var }}
latest
@duntonr
duntonr / gist:0474e8ece54529257809
Created January 5, 2016 05:10
/etc/ansible/ssh.config file for ansible tower + jump box
View gist:0474e8ece54529257809
Host 172.30.*.* ![jump host IP]
ServerAliveInterval 60
TCPKeepAlive yes
ProxyCommand ssh -q -A -W %h:%p -i /etc/ansible/bastionInstanceKey.pem [jump user]@[jump host]
ControlMaster auto
ControlPath ~/.ssh/mux-%r@%h:%p
ControlPersist 8h