| 91 | |
| 92 | ==== Patch yum PHP files (for fc12 nodes) ==== |
| 93 | |
| 94 | The above patching method only works temporarily, until the MyPLC controller restores the files to their original. For a permanent solution, you will need to modify some PHP scripts that the MyPLC controller uses to configure yum on the nodes. |
| 95 | |
| 96 | In `/var/www/html/yum/yum.php` on the MyPLC controller, comment out the existing assignment to the `fcdistro` variable and add the following line beneath it: |
| 97 | {{{ |
| 98 | $fcdistro=f12; |
| 99 | }}} |
| 100 | |
| 101 | In `/var/www/html/yum/myplc.repo.php` on the MyPLC controller, comment out the existing assignment to the `nodefamily` variable and add the following line beneath it: |
| 102 | {{{ |
| 103 | $nodefamily='planetlab-f12-i386'; |
| 104 | }}} |
| 105 | Also, comment out the existing assignment to the `topurl` variable and add the following line beneath it: |
| 106 | {{{ |
| 107 | $topurl="https://$PLC_BOOT_HOST" . "/install-rpms/" . $nodefamily; |
| 108 | }}} |
| 109 | Lastly, add the following line after the the `gpgcheck=$gpgcheck` line: |
| 110 | {{{ |
| 111 | sslverify=0 |
| 112 | }}} |