Update to Queens, add a site index

For convenience, assemble a list of links to useful PTG-related
documents people may want to consult while at the event. Make this
the site index so they only need to remember one very short URL.

Also update URLs (and ethercalc layout) to Queens.

Change-Id: I2cc4e70dfc1b84a6a86824546c9a1d0846ba01f1
This commit is contained in:
Jeremy Stanley 2017-07-18 13:40:42 +00:00 committed by Thierry Carrez
parent 94a1552c6c
commit 6d4a8cb4c9
3 changed files with 48 additions and 14 deletions

View File

@ -5,6 +5,9 @@ class ptgbot(
$password,
$channel,
$vhost_name,
$ethercalc = 'https://ethercalc.openstack.org',
$pads = 'https://wiki.openstack.org/wiki/PTG/Queens/Etherpads',
$sheet = 'Queens-PTG-Discussion-Rooms',
) {
user { 'ptgbot':
@ -90,6 +93,15 @@ class ptgbot(
User['ptgbot']]
}
file { '/var/lib/ptgbot/www/index.html':
ensure => present,
content => template('ptgbot/index.html.erb'),
group => 'root',
mode => '0444',
owner => 'root',
require => File['/var/lib/ptgbot/www'],
}
file { '/var/lib/ptgbot/www/ptg.html':
ensure => present,
group => 'ptgbot',

24
templates/index.html.erb Normal file
View File

@ -0,0 +1,24 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Quick PTG Resources</title>
<!-- Latest compiled and minified CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
</head>
<body>
<div class="container">
<h2>Quick PTG Resources</h2>
<p>Follow links to useful sites for the OpenStack Project Teams Gathering.</p>
<ul>
<li><a href="https://www.openstack.org/ptg/">event details, full schedule, travel info, FAQs</a></li>
<li><a href="ptg.html">current/next activities and today's reserved rooms</a></li>
<li><a href="<%= @pads %>">complete index of team etherpads</a></li>
<li><a href="<%= @ethercalc %>/<%= @sheet %>">consult or edit the reserved rooms schedule</a></li>
<li><a href="https://git.openstack.org/cgit/openstack/ptgbot/tree/README.rst">instructions for interacting with the IRC bot</a></li>
</ul>
</div>
</body>
</html>

View File

@ -6,35 +6,33 @@
"irc_channel": "<%= @channel %>",
"db_filename": "/var/lib/ptgbot/www/ptg.json",
"log_config": "/etc/ptgbot/logging.config",
"ethercalc_url": "https://ethercalc.openstack.org/_/Pike-PTG-Discussion-Rooms/cells",
"ethercalc_url": "<%= @ethercalc %>/_/<%= @sheet %>/cells",
"ethercalc_cells": {
"room_line": "8",
"time_column": "A",
"time_range": [ 9, 24 ],
"time_range": [ 9, 23 ],
"days": [
{
"B": ["14", "15", "16"],
"C": [],
"D": []
"B": ["14", "15", "16", "17", "18", "19", "20", "21", "22", "23"],
"C": ["15"],
"D": ["15"]
},
{
"E": ["14", "15", "16"],
"F": [],
"G": []
"F": ["15"],
"G": ["15"]
},
{
"H": ["14", "15", "16"],
"I": [],
"J": []
"I": ["15"]
},
{
"K": ["14", "15", "16"],
"L": [],
"M": []
"J": ["14", "15", "16"],
"K": ["15"]
},
{
"N": [],
"O": []
"L": ["14", "15", "16"],
"M": ["15"]
}
]
}