#244 Add the process for adding a new VM
Merged 2 years ago by zlopez. Opened 2 years ago by zlopez.
zlopez/infra-docs-fpo create_vm  into  master

@@ -225,8 +225,9 @@ 

  

  == 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-virtual-hosts.adoc[]

  

  == Cloud Instances

  

@@ -62,7 +62,7 @@ 

  === 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-virtual-hosts.adoc[] for the details.

  

  === Editing the domain(s)

  

@@ -95,7 +95,6 @@ 

  * xref:debuginfod.adoc[Debuginfod Service]

  * xref:departing-admin.adoc[Departing admin]

  * xref:dnf-counting.adoc[DNF Counting]

- * xref:new-hosts.adoc[DNS Host Addition]

  * xref:dns.adoc[DNS repository for fedoraproject]

  * xref:docs.fedoraproject.org.adoc[Docs]

  * xref:externally-hosted-services.adoc[Externally Hosted Services]
@@ -185,6 +184,7 @@ 

  * xref:2-factor.adoc[Two factor auth]

  * xref:unbound.adoc[Unbound Notes]

  * xref:virtio.adoc[Virtio Notes]

+ * xref:new-virtual-hosts.adoc[Virtual Host Addition]

  * xref:voting.adoc[Voting Infrastructure]

  * xref:waiverdb.adoc[WaiverDB]

  * xref:fedorawebsites.adoc[Websites Release]

modules/sysadmin_guide/pages/new-virtual-hosts.adoc modules/sysadmin_guide/pages/new-hosts.adoc
file renamed
+11 -6
@@ -1,4 +1,4 @@ 

- = DNS Host Addition SOP

+ = Virtual Host Addition SOP

  

  You should be able to follow these steps in order to create a new set of

  hosts in infrastructure.
@@ -217,10 +217,6 @@ 

  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 @@ 

  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 <ansible list of hosts or groups>

+ # 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 @@ 

  * 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

rebased onto 2d9b0e8

2 years ago

can we call this 'new-virtual-hosts' ? hardware hosts are not installed/setup with this same process. ;)

should not need sudo here. It's running locally in your git working dir....

Some minor nitpicks, otherwise looks ok.

should not need sudo here. It's running locally in your git working dir....

It didn't work for me, I don't exactly remember why, but it had some permission issues.

can we call this 'new-virtual-hosts' ? hardware hosts are not installed/setup with this same process. ;)

I can rename the file, but it was already there before I started working on this. Just under adding new machines to DNS.

1 new commit added

  • Rename the DNS Host addition SOP
2 years ago

2 new commits added

  • Rename the DNS Host addition SOP
  • Add the process for adding a new VM
2 years ago

1 new commit added

  • Remove the sudo from DNS guide
2 years ago

You were right about the sudo, it seems that I accidentally did some git operation as root.

Pull-Request has been merged by zlopez

2 years ago