diff --git a/modules/sysadmin_guide/pages/ansible.adoc b/modules/sysadmin_guide/pages/ansible.adoc index 5fad7a1..8b7e6d4 100644 --- a/modules/sysadmin_guide/pages/ansible.adoc +++ b/modules/sysadmin_guide/pages/ansible.adoc @@ -225,8 +225,9 @@ Templates use the jinja2 syntax. == Libvirt virtuals -* TODO: add steps to make new libvirt virtuals in staging and production -* TODO: merge in new-hosts.txt +=== Add new virtual machine + +See xref:new-hosts.adoc[] == Cloud Instances diff --git a/modules/sysadmin_guide/pages/dns.adoc b/modules/sysadmin_guide/pages/dns.adoc index b685f48..4a57db6 100644 --- a/modules/sysadmin_guide/pages/dns.adoc +++ b/modules/sysadmin_guide/pages/dns.adoc @@ -62,7 +62,7 @@ $ git clone /srv/git/dns === Adding a new Host Adding a new host requires to add it to DNS and to ansible, see -new-hosts.rst for the details. +xref:new-hosts.adoc[] for the details. === Editing the domain(s) diff --git a/modules/sysadmin_guide/pages/new-hosts.adoc b/modules/sysadmin_guide/pages/new-hosts.adoc index cda0f02..cabc0db 100644 --- a/modules/sysadmin_guide/pages/new-hosts.adoc +++ b/modules/sysadmin_guide/pages/new-hosts.adoc @@ -88,10 +88,10 @@ Once that is committed, you need to run a script to build the zones and then push them to the dns servers.: .... -./do-domains # This builds the files +sudo ./do-domains # This builds the files git add . git commit -a -m 'done build' -git push +sudo git push $ sudo -i ansible ns\* -a '/usr/local/bin/update-dns' # This tells the dns servers to load the new files .... @@ -217,10 +217,6 @@ for example for _elections01.iad2.fedoraproject.org_ that would be: ifconfig-push 192.168.1.44 192.168.0.44 .... -== Work in progress - -From here to the end of file is still being worked on - === host_vars and group_vars ansible consults files in @@ -263,6 +259,15 @@ The host will need vmhost declaration. There is a script in how many free cpus each vmhost has. You can use that to inform your decision. By convention, staging hosts go on virthost12. +[NOTE] +==== +The `vhost-info` needs to be executed as `root` user on `batcave01` +.... +python3.11 /srv/web/infra/ansible/scripts/vhost-info --host +# for example virthost +.... +==== + Each vmhost has a different volume group. To figure out what volume group that is, execute the following command on the virthost.: @@ -312,7 +317,7 @@ The host playbook is rather basic * Most things won't change much .... -ansible-playbook /srv/web/infra/ansible/infra/ansible/playbooks/grous/mailman.yml +ansible-playbook /srv/web/infra/ansible/infra/ansible/playbooks/groups/mailman.yml .... == Adding a new proxy or webserver