my own rolls server?

67 views
Skip to first unread message

Gustavo Berman

unread,
Oct 6, 2017, 3:14:52 PM10/6/17
to rocks7-beta
Hi There!
At installation I cannot access the rolls via network because I cannot configure proxy settings
I downloaded every .iso and extracted all content into a web server
I verify that I can access every directory from a console using wget
But when I use the URL with the installer it says "no rolls found!"

What I publish looks like this:

http://localurl/rocks7/rolls/

Inside I have a dir for every roll, so I have:

[DIR]    CentOS/    2017-09-25 01:34     -      
[DIR]    base/    2017-10-04 16:39     -      
[DIR]    core/    2017-10-03 18:40     -      
[DIR]    fingerprint/    2017-09-25 10:37     -      
[DIR]    ganglia/    2017-09-25 03:13     -      
[DIR]    hpc/    2017-09-26 01:13     -     
[DIR]    kernel/    2017-09-28 18:28     -      
[DIR]    kvm/    2017-09-25 10:39     -      
[DIR]    perl/    2017-09-25 11:18     -      
[DIR]    python/    2017-09-25 10:37     -      
[DIR]    serf/    2017-09-25 10:39     -      
[DIR]    sge/    2017-10-01 22:11     -      
[DIR]    zfs-linux/    2017-09-25 13:59     -     


Is there a way to make a rolls server just from the downloaded ISOs?


Thanks!

Philip Papadopoulos

unread,
Oct 6, 2017, 4:59:40 PM10/6/17
to Gustavo Berman, rocks7-beta
Yes, not too hard  to make your own roll server  on a standard http server.
Since you've already copied the contents of the rolls:

You need a rocks-supplied index.cgi to provide the directory listing (and cgi processing enabled in your httpd config for that directory)
The rocks installer requires the directory listing to appear a certain way.

The contents of the index.cgi looks like
#!/usr/bin/env python

import os

try:
        dir = os.environ['DOCUMENT_ROOT'] + os.environ['REQUEST_URI']
except:
        dir = '.'
        pass

out = ''

out += '<html>'
out += '<body>'
out += '<table>'

listing = os.listdir(dir)
listing.sort(key=str.lower)
for file in listing:
        if file not in [ 'index.cgi' ]:
                out += '<tr><td>\n'

                if os.path.isdir(os.path.join(dir, file)):
                        out += '<a href="%s/">%s/</a>\n' % (file, file)
                else:
                        out += '<a href="%s">%s</a>\n' % (file, file)

                out += '</td></tr>'
                out += '\n'

out += '</table>'
out += '</body>'
out += '</html>'

print 'Content-type: text/html'
print 'Content-length: %d' % (len(out))
print ''
print out




--
You received this message because you are subscribed to the Google Groups "rocks7-beta" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rocks7-beta+unsubscribe@googlegroups.com.
To post to this group, send email to rocks...@googlegroups.com.
Visit this group at https://groups.google.com/group/rocks7-beta.
To view this discussion on the web visit https://groups.google.com/d/msgid/rocks7-beta/537df789-87bb-44cf-8ce6-4d22775c89ea%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Philip Papadopoulos, Ph.D

Gustavo Berman

unread,
Oct 9, 2017, 9:12:05 AM10/9/17
to rocks7-beta
That worked!
Thanks Philip!
To unsubscribe from this group and stop receiving emails from it, send an email to rocks7-beta...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages