Skip to content
Snippets Groups Projects
Commit 1ca680a0 authored by Martin van Es's avatar Martin van Es
Browse files

Move ansible user and key to inventory configuration and

make use of aliases for easier config
parent 13dd5cff
No related branches found
No related tags found
No related merge requests found
[defaults] [defaults]
gathering = smart gathering = smart
remote_user = ansible
[privilege_escalation] [privilege_escalation]
become = True become = True
[ssh_connection] [ssh_connection]
pipelining = True pipelining = True
ssh_args = -o ControlMaster=auto -o ControlPersist=3600s -o StrictHostKeyChecking=false -i .ssh/id_ansible ssh_args = -o ControlMaster=auto -o ControlPersist=3600s -o StrictHostKeyChecking=false
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
tld: srv.mdx.incubator.geant.org tld: srv.mdx.incubator.geant.org
hosts: hosts:
et2.gndev.hexaa.eu: et2:
hostname: srv1 hostname: srv1
altname: 'server-md2.et2.com' altname: 'server-md2.et2.com'
...@@ -20,7 +20,7 @@ hosts: ...@@ -20,7 +20,7 @@ hosts:
signer: 'http://srv2-signer.srv.mdx.incubator.geant.org' signer: 'http://srv2-signer.srv.mdx.incubator.geant.org'
altname: 'edugain-md.et2.com' altname: 'edugain-md.et2.com'
mdxcdn.pt-38.utr.surfcloud.nl: mdxcdn:
hostname: srv2 hostname: srv2
altname: 'server-md2.et2.com' altname: 'server-md2.et2.com'
...@@ -36,7 +36,7 @@ hosts: ...@@ -36,7 +36,7 @@ hosts:
edugain: edugain:
signer: 'http://localhost:5001' signer: 'http://localhost:5001'
62.217.72.109: okeanos:
hostname: srv3 hostname: srv3
mdproxy: mdproxy:
...@@ -46,7 +46,7 @@ hosts: ...@@ -46,7 +46,7 @@ hosts:
edugain: edugain:
signer: 'http://srv2-signer.srv.mdx.incubator.geant.org' signer: 'http://srv2-signer.srv.mdx.incubator.geant.org'
alternative-mdx.pt-76.utr.surfcloud.nl: alternative-mdx:
hostname: srv4 hostname: srv4
altname: 'server-md.example.com' altname: 'server-md.example.com'
......
# Inventory Aliases
# Make sure to change group_vars/all.yml for the same hosts keys
et2 ansible_host=et2.gndev.hexaa.eu ansible_user=ansible ansible_ssh_private_key_file=.ssh/id_ansible
mdxcdn ansible_host=mdxcdn.pt-38.utr.surfcloud.nl ansible_user=ansible ansible_ssh_private_key_file=.ssh/id_ansible
alternative-mdx ansible_host=alternative-mdx.pt-76.utr.surfcloud.nl ansible_user=ansible ansible_ssh_private_key_file=.ssh/id_ansible
okeanos ansible_host=62.217.72.109 ansible_user=ansible ansible_ssh_private_key_file=.ssh/id_ansible
# Hosts that receive the mdserver role
[mdserver] [mdserver]
et2.gndev.hexaa.eu et2
mdxcdn.pt-38.utr.surfcloud.nl mdxcdn
alternative-mdx.pt-76.utr.surfcloud.nl alternative-mdx
# Hosts that receive the mdproxy role
[mdproxy] [mdproxy]
et2.gndev.hexaa.eu et2
mdxcdn.pt-38.utr.surfcloud.nl mdxcdn
alternative-mdx.pt-76.utr.surfcloud.nl alternative-mdx
62.217.72.109 okeanos
# Hosts that receive the GeoDNS role
[geodns] [geodns]
et2.gndev.hexaa.eu et2
mdxcdn.pt-38.utr.surfcloud.nl mdxcdn
# All hosts for base role
[all:children] [all:children]
mdserver mdserver
mdproxy mdproxy
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment