diff --git a/manifests/init.pp b/manifests/init.pp index a5c0acb..6233248 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -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', diff --git a/templates/index.html.erb b/templates/index.html.erb new file mode 100644 index 0000000..384bb95 --- /dev/null +++ b/templates/index.html.erb @@ -0,0 +1,24 @@ + + + + + Quick PTG Resources + + + + + +
+

Quick PTG Resources

+

Follow links to useful sites for the OpenStack Project Teams Gathering.

+ +
+ + + diff --git a/templates/ptgbot_config.json.erb b/templates/ptgbot_config.json.erb index 6b956ae..575b068 100644 --- a/templates/ptgbot_config.json.erb +++ b/templates/ptgbot_config.json.erb @@ -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"] } ] }