Add shell hosts group

This commit is contained in:
Timo Makinen 2020-09-11 15:46:32 +00:00
parent d88f341d15
commit 199e250562
4 changed files with 50 additions and 0 deletions

9
group_vars/shell.yml Normal file
View file

@ -0,0 +1,9 @@
---
# beef up shell hosts
dsk_size: 40
mem_size: 4096
num_cpus: 4
firewall_in:
- {proto: tcp, port: 22}

View file

@ -0,0 +1,14 @@
---
vmhost: vmhost02.home.foo.sh
network_interfaces:
- device: eth0
vlan: 102
ipaddr: 37.16.96.156
netmask: 255.255.255.240
proto: static
- device: eth1
vlan: 30
ipaddr: 172.20.30.22
netmask: 255.255.255.0
proto: static
network_default_gateway: 37.16.96.145

4
hosts
View file

@ -31,6 +31,9 @@ atl01.vultr.foo.sh
proxy01.home.foo.sh proxy01.home.foo.sh
proxy02.home.foo.sh proxy02.home.foo.sh
[shell]
shell02.foo.sh
[static] [static]
static02.home.foo.sh static02.home.foo.sh
@ -43,6 +46,7 @@ atl01.vultr.foo.sh
[centos8:children] [centos8:children]
adm adm
nas nas
shell
static static
vmhost vmhost

23
playbooks/shell.yml Normal file
View file

@ -0,0 +1,23 @@
---
- import_playbook: "include/deploy-kvm-guest.yml myhosts=shell"
- name: configure instance
hosts: shell
user: root
gather_facts: true
vars_files:
- "{{ ansible_private }}/vars.yml"
roles:
- base
- role: kerberos/keytab
principals:
- "host/{{ inventory_hostname }}@{{ kerberos_realm }}"
- "nfs/{{ inventory_hostname }}@{{ kerberos_realm }}"
- nfs-client
- kerberos/client
- kerberos-auth
- ldap/client
- ldap/nss
- autofs