Assuming you are configuring r720-02-nginx01
, a jail on
r720-02.int.unixathome.org
NOTE: the jail can be named anything you want. r720-02-nginx01
is used only by
Ansible.
host r720-02-freshports-nginx01
user minion
ProxyJump [email protected]
hostname 127.163.0.80
ForwardAgent yes
host r720-02-freshports-ingress01
user minion
ProxyJump [email protected]
hostname 127.163.0.10
ForwardAgent yes
svn cp TEMPLATE-freshports-nginx r720-02-freshports-nginx01
svn cp TEMPLATE-freshports-ingress r720-02-freshports-ingress01
Adjust values contained therein
add r720-02-nginx01
to these hostgroups in the hosts
file:
logcheck
nrpe
freshports_websites
freshports_websites_new
freshports_modules
**** This may not be required
add r720-02-ingress01
to these hostgroups in the hosts
file:
logcheck
nrpe
freshports_ingress
freshports_ingress_new
freshports_modules
freshports_scripts
Create (if required) a new hostgroup (note all hyphens and periods must be converted to underscrores in the group name):
[r720_02_int_unixathome_org_jails]
r720-02-freshports-nginx01
r720-02-freshports-ingress01
This will go into /etc/hosts
on the jail host - this is carried out by the
etc-hosts
task in freshports-host.yml
.
etc_hosts:
- "127.163.0.10 aws-1.freshports-ingress01"
- "127.163.0.80 aws-1.freshports-nginx01"
Based on the group name used above, create this file:
cd group_vars
svn cp TEMPLATE_freshports_host r720_02_int_unixathome.org_jails
Amend the values accordingly.
fp_email_server: '127.1.0.202'
fp_system_owner_email: '{{ admin_email }}'
create and install certificates to /usr/local/etc/ssl