diff --git a/manifests/init.pp b/manifests/init.pp index 3205225..3ebd360 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -5,9 +5,6 @@ class ptgbot( $password, $channel, $vhost_name, - $venuemap = 'https://www.openstack.org/assets/ptg/Denver-map.pdf', - $pads = 'https://wiki.openstack.org/wiki/PTG/Stein/Etherpads', - $cityguide = 'https://wiki.openstack.org/wiki/PTG/Stein/CityGuide', ) { include ::pip @@ -96,12 +93,15 @@ class 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'], + ensure => present, + group => 'ptgbot', + mode => '0444', + owner => 'root', + replace => true, + require => [File['/var/lib/ptgbot/www'], + User['ptgbot']], + source => '/opt/ptgbot/html/index.html', + subscribe => Vcsrepo['/opt/ptgbot'], } file { '/var/lib/ptgbot/www/ptg.html': @@ -164,6 +164,18 @@ class ptgbot( subscribe => Vcsrepo['/opt/ptgbot'], } + file { '/var/lib/ptgbot/www/index.js': + ensure => present, + group => 'ptgbot', + mode => '0444', + owner => 'root', + replace => true, + require => [File['/var/lib/ptgbot/www'], + User['ptgbot']], + source => '/opt/ptgbot/html/index.js', + subscribe => Vcsrepo['/opt/ptgbot'], + } + file { '/var/lib/ptgbot/www/jquery-1.9.1.min.js': ensure => present, group => 'ptgbot', diff --git a/templates/index.html.erb b/templates/index.html.erb deleted file mode 100644 index 33062ca..0000000 --- a/templates/index.html.erb +++ /dev/null @@ -1,25 +0,0 @@ - - - - - Quick PTG Resources - - - - - -
-

Quick PTG Resources

-

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

- -
- - -